Lines 42-82json
42 "default": "./dist/protocol/index.js"
50 "watch": "tsc --watch",
51 "clean": "rm -rf dist",
52 "bundle": "npm run clean && tsc && node scripts/bundle.mjs",
53 "bundle:worker": "npm run clean && tsc && node scripts/bundle.mjs --runtime-transport=worker --require-worker-runtime",
54 "build:obfuscated": "npm run bundle",
55 "check:package-version": "node scripts/check-package-version.mjs",
56 "hooks:install": "sh scripts/install-git-hooks.sh",
57 "release:check": "bash scripts/release-npm.sh check",
58 "release:beta": "bash scripts/release-npm.sh beta",
59 "release:latest": "bash scripts/release-npm.sh latest",
60 "release:promote": "bash scripts/release-npm.sh promote",
61 "prepublishOnly": "npm run bundle",
62 "postinstall": "node scripts/postinstall.cjs",
HighInstall Time Lifecycle Scripts
Package defines install-time lifecycle scripts.
package.jsonView on unpkg · L62 MediumAmbiguous Install Lifecycle Script
Install-time lifecycle script is not statically allowlisted and needs review.
package.jsonView on unpkg · L62 63 "demo:minimal": "npm run demo:chat",
64 "demo:image": "node examples/image-input-demo/demo.mjs",
65 "demo:models": "npm run build && node examples/list-models-demo/demo.mjs",
66 "demo:usage": "npm run build && node examples/usage-info-demo/demo.mjs",
67 "demo:chat": "npm run build && node examples/interactive-chat-demo/demo.mjs",
68 "demo:mcp-oauth": "npm run build && node examples/mcp-oauth-demo/demo.mjs",
69 "demo:inprocess-mcp": "npm run build && node examples/inprocess-mcp-demo/demo.mjs",
70 "demo:byok": "npm run build && node examples/byok-validation-demo/demo.mjs",
71 "test": "npm run test:unit",
72 "test:unit": "npm run build && node --test tests/*.test.mjs",
73 "test:query-session-control:unit": "npm run build && node --test tests/query-session-control/unit/*.test.mjs",
74 "test:query-session-control:functional": "npm run build && node --test tests/query-session-control/functional/*.test.mjs",
75 "test:query-input-output:unit": "npm run build && node --test tests/query-input-output/unit/*.test.mjs",
76 "test:query-input-output:functional": "npm run build && node --test tests/query-input-output/functional/*.test.mjs",
77 "test:query-auth": "npm run test:query-auth:unit && npm run test:query-auth:functional",
78 "test:query-auth:unit": "npm run build && node --test tests/query-auth/unit/*.test.mjs",
79 "test:query-auth:functional": "npm run build && node --test tests/query-auth/functional/*.test.mjs",
80 "test:query-auth:e2e": "npm run test:query-auth:functional",
81 "test:query-system-prompt:unit": "npm run build && node --test tests/query-system-prompt/unit/*.test.mjs",
82 "test:query-system-prompt:functional": "npm run build && node --test tests/query-system-prompt/functional/*.test.mjs",