File size: 3,459 Bytes
494c9e4
 
 
 
 
 
 
17037b0
 
 
ca74a9e
a80474a
 
 
 
7cf3cea
042658f
c056ab3
7cf3cea
ef04721
494c9e4
 
 
 
 
 
9d67259
ef04721
65b5c07
494c9e4
 
 
 
312e591
494c9e4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
  "name": "inforadar",
  "version": "0.1.0",
  "description": "Info Lens toolbox — Info Highlight, raw chat, attribution, causal flow",
  "main": "webpack.config.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "test:charIndex": "npx tsx tests/utils/charIndexForByteLimit.test.ts",
    "test:findSplitPoint": "npx tsx tests/utils/findSplitPoint.test.ts",
    "test:splitChunks": "npx tsx tests/utils/splitTextToChunks.test.ts",
    "test:dagPropagationPlayback": "npx tsx tests/prediction_attribution/genAttributeDagPropagationPlayback.test.ts",
    "test:dagAttentionPlayback": "npx tsx tests/prediction_attribution/genAttributeDagAttentionPlayback.test.ts",
    "test:runAttentionPlayback": "npx tsx tests/prediction_attribution/runAttentionPlayback.test.ts",
    "test:dagStepPlayback": "npx tsx tests/prediction_attribution/genAttributeDagStepPlayback.test.ts",
    "test:dagPreprocess": "npx tsx tests/prediction_attribution/genAttributeDagPreprocess.test.ts",
    "test:prediction-attribution": "npm run test:dagPreprocess && npm run test:dagStepPlayback && npm run test:dagAttentionPlayback && npm run test:runAttentionPlayback && npm run test:dagPropagationPlayback && npm run test:dagLightning && npm run test:dagFocusAttribution && npm run test:dagLayoutTransition",
    "test:dagLightning": "npx tsx tests/prediction_attribution/genAttributeDagLightning.test.ts",
    "test:dagFocusAttribution": "npx tsx tests/prediction_attribution/genAttributeDagFocusAttribution.test.ts",
    "test:dagLayoutTransition": "npx tsx tests/prediction_attribution/genAttributeDagLayoutTransition.test.ts",
    "test:resolveApiBase": "npx tsx tests/api/resolveApiBase.test.ts",
    "prebuild": "node scripts/updateIntroHTML.js",
    "prebuild:dev": "node scripts/updateIntroHTML.js",
    "wp": "npm run build:dev",
    "ww": "npm run watch",
    "stats": "webpack --mode production --json --profile > stats.json",
    "build": "webpack --mode production",
    "build:github-pages": "npm run prebuild && INFORADAR_API_BASE=https://infolens-api.xiaoyundqy.workers.dev INFORADAR_WEB_DIST=dist-github_pages webpack --mode production",
    "preview:github-pages": "npx serve ../dist-github_pages -p 8091 -c ../src/serve.json",
    "build:cf": "npm run prebuild && INFORADAR_API_BASE=\"${INFORADAR_API_BASE:-https://infolens-api.xiaoyundqy.workers.dev}\" INFORADAR_WEB_DIST=dist-cf webpack --mode production",
    "build:dev": "webpack --mode development --devtool=inline-source-map",
    "watch": "webpack --mode development --devtool=inline-source-map --watch",
    "start": "webpack serve --mode development --devtool=inline-source-map"
  },
  "author": "dqy <xiaoyundqy@qq.com>",
  "license": "Apache-2.0",
  "dependencies": {
    "@types/d3": "^7.4.3",
    "@types/d3-selection": "^3.0.8",
    "@types/lodash": "^4.14.202",
    "@types/node": "^20.10.0",
    "d3": "^7.8.5",
    "d3-selection": "^3.0.0",
    "font-awesome": "4.7.0",
    "graphology": "^0.26.0",
    "jquery": "^3.7.1",
    "lodash": "^4.17.21"
  },
  "devDependencies": {
    "copy-webpack-plugin": "^11.0.0",
    "css-loader": "^6.8.1",
    "fork-ts-checker-webpack-plugin": "^7.3.0",
    "mini-css-extract-plugin": "^2.7.6",
    "sass": "^1.69.5",
    "sass-loader": "^13.3.2",
    "style-loader": "^3.3.3",
    "ts-loader": "^9.5.1",
    "typescript": "^5.3.3",
    "webpack": "^5.89.0",
    "webpack-cli": "^5.1.4",
    "webpack-dev-server": "^4.15.1"
  }
}