pi-harness-runtime 1.1.445 → 1.1.447
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +18 -6
- package/README.md +1 -1
- package/RULES.md +3 -3
- package/footer-status.ts +2 -2
- package/harness/langchain/daemon.ts +17 -2
- package/harness/langchain/tunnel-command.ts +43 -0
- package/harness/loop-review-agent.ts +10 -7
- package/index.ts +12 -26
- package/package.json +151 -40
- package/packages/agent-policy/package.json +1 -1
- package/packages/auth/package.json +1 -1
- package/packages/autonomous-runtime/package.json +1 -1
- package/packages/checkpoint/package.json +1 -1
- package/packages/clipboard/dist/src/github-login.js +1 -1
- package/packages/clipboard/dist/src/github-login.js.map +1 -1
- package/packages/clipboard/package.json +1 -1
- package/packages/clipboard/src/github-login.ts +1 -1
- package/packages/codex-watcher/package.json +1 -1
- package/packages/config-capture/package.json +1 -1
- package/packages/contracts/package.json +1 -1
- package/packages/cookie-sanitizer/package.json +1 -1
- package/packages/evaluation-engine/package.json +1 -1
- package/packages/event-bus/package.json +1 -1
- package/packages/event-store/package.json +1 -1
- package/packages/experience-replay/package.json +1 -1
- package/packages/file-copy-helper/package.json +1 -1
- package/packages/intent-analyzer/package.json +1 -1
- package/packages/jev-judge/package.json +1 -1
- package/packages/knowledge-retrieval/package.json +1 -1
- package/packages/learning-engine/package.json +1 -1
- package/packages/logging/package.json +1 -1
- package/packages/memory-engine/package.json +1 -1
- package/packages/notification/package.json +1 -1
- package/packages/paperclip-integration/package.json +1 -1
- package/packages/performance-optimizer/package.json +1 -1
- package/packages/privilege-broker/package.json +1 -1
- package/packages/prompt-compiler/package.json +1 -1
- package/packages/providers/package.json +1 -1
- package/packages/qdrant-skills/package.json +1 -1
- package/packages/quota-manager/package.json +1 -1
- package/packages/relay/package.json +1 -1
- package/packages/skill-mcp-client/package.json +1 -1
- package/packages/skills/dist/index.d.ts +1 -0
- package/packages/skills/dist/index.d.ts.map +1 -1
- package/packages/skills/dist/index.js +1 -27
- package/packages/skills/dist/index.js.map +1 -1
- package/packages/skills/dist/skill-commands.d.ts.map +1 -1
- package/packages/skills/dist/skill-commands.js +16 -6
- package/packages/skills/dist/skill-commands.js.map +1 -1
- package/packages/skills/dist/sync-source.d.ts +57 -0
- package/packages/skills/dist/sync-source.d.ts.map +1 -0
- package/packages/skills/dist/sync-source.js +107 -0
- package/packages/skills/dist/sync-source.js.map +1 -0
- package/packages/skills/package.json +1 -1
- package/packages/skills/src/index.ts +1 -34
- package/packages/skills/src/skill-commands.ts +23 -7
- package/packages/skills/src/sync-source.ts +114 -0
- package/packages/todo-bd-sync/package.json +1 -1
- package/packages/token-estimation/package.json +1 -1
- package/packages/tooling-preference/package.json +1 -1
- package/packages/trajectory/package.json +1 -1
- package/packages/tui/package.json +1 -1
- package/packages/two-phase-review/package.json +1 -1
- package/packages/types/package.json +1 -1
- package/packages/webmcp-tester/package.json +1 -1
- package/packages/wiki/package.json +1 -1
- package/packages/write-review/package.json +1 -1
- package/scripts/copy-plugins.js +12 -2
- package/scripts/sync-skills.ts +19 -4
- package/scripts/sync-to-qdrant.ts +39 -23
- package/CLAUDE.md +0 -77
- package/TODO-todo-bd-sync.md +0 -124
- package/auto-resume-fix-prompt.md +0 -189
- package/harness/reports/PROJECT_STATE.md +0 -342
- package/harness/reports/PROVIDER_USAGE_RESEARCH.md +0 -115
- package/harness/reports/SESSION_STATUS.md +0 -107
- package/harness/skills-plan/2026-07-12-herdr-moo-skills-adaptation-plan.md +0 -282
- package/harness/skills-plan/2026-07-12-minimax-prompt-step1-sync.md +0 -345
- package/harness/skills-plan/2026-07-12-public-skill-export-and-sync-design.md +0 -504
- package/harness/skills-plan/ACTION-PLAN.md +0 -108
- package/packages/a2a-adapter/README.md +0 -35
- package/packages/a2a-adapter/dist/agent.d.ts +0 -27
- package/packages/a2a-adapter/dist/agent.d.ts.map +0 -1
- package/packages/a2a-adapter/dist/agent.js +0 -120
- package/packages/a2a-adapter/dist/agent.js.map +0 -1
- package/packages/a2a-adapter/dist/client.d.ts +0 -58
- package/packages/a2a-adapter/dist/client.d.ts.map +0 -1
- package/packages/a2a-adapter/dist/client.js +0 -77
- package/packages/a2a-adapter/dist/client.js.map +0 -1
- package/packages/a2a-adapter/dist/discovery.d.ts +0 -52
- package/packages/a2a-adapter/dist/discovery.d.ts.map +0 -1
- package/packages/a2a-adapter/dist/discovery.js +0 -75
- package/packages/a2a-adapter/dist/discovery.js.map +0 -1
- package/packages/a2a-adapter/dist/index.d.ts +0 -10
- package/packages/a2a-adapter/dist/index.d.ts.map +0 -1
- package/packages/a2a-adapter/dist/index.js +0 -9
- package/packages/a2a-adapter/dist/index.js.map +0 -1
- package/packages/a2a-adapter/dist/protocol.d.ts +0 -34
- package/packages/a2a-adapter/dist/protocol.d.ts.map +0 -1
- package/packages/a2a-adapter/dist/protocol.js +0 -40
- package/packages/a2a-adapter/dist/protocol.js.map +0 -1
- package/packages/a2a-adapter/dist/transport.d.ts +0 -55
- package/packages/a2a-adapter/dist/transport.d.ts.map +0 -1
- package/packages/a2a-adapter/dist/transport.js +0 -109
- package/packages/a2a-adapter/dist/transport.js.map +0 -1
- package/packages/a2a-adapter/dist/types.d.ts +0 -117
- package/packages/a2a-adapter/dist/types.d.ts.map +0 -1
- package/packages/a2a-adapter/dist/types.js +0 -5
- package/packages/a2a-adapter/dist/types.js.map +0 -1
- package/packages/a2a-adapter/package.json +0 -21
- package/packages/a2a-adapter/src/agent.ts +0 -139
- package/packages/a2a-adapter/src/client.ts +0 -107
- package/packages/a2a-adapter/src/discovery.ts +0 -105
- package/packages/a2a-adapter/src/index.ts +0 -38
- package/packages/a2a-adapter/src/protocol.ts +0 -46
- package/packages/a2a-adapter/src/transport.ts +0 -142
- package/packages/a2a-adapter/src/types.ts +0 -117
- package/packages/architecture-generator/dist/adr.d.ts +0 -15
- package/packages/architecture-generator/dist/adr.d.ts.map +0 -1
- package/packages/architecture-generator/dist/adr.js +0 -42
- package/packages/architecture-generator/dist/adr.js.map +0 -1
- package/packages/architecture-generator/dist/index.d.ts +0 -9
- package/packages/architecture-generator/dist/index.d.ts.map +0 -1
- package/packages/architecture-generator/dist/index.js +0 -9
- package/packages/architecture-generator/dist/index.js.map +0 -1
- package/packages/architecture-generator/dist/mermaid.d.ts +0 -30
- package/packages/architecture-generator/dist/mermaid.d.ts.map +0 -1
- package/packages/architecture-generator/dist/mermaid.js +0 -58
- package/packages/architecture-generator/dist/mermaid.js.map +0 -1
- package/packages/architecture-generator/dist/types.d.ts +0 -30
- package/packages/architecture-generator/dist/types.d.ts.map +0 -1
- package/packages/architecture-generator/dist/types.js +0 -7
- package/packages/architecture-generator/dist/types.js.map +0 -1
- package/packages/architecture-generator/package.json +0 -21
- package/packages/architecture-generator/src/adr.ts +0 -51
- package/packages/architecture-generator/src/index.ts +0 -9
- package/packages/architecture-generator/src/mermaid.ts +0 -76
- package/packages/architecture-generator/src/types.ts +0 -30
- package/packages/auth/README.md +0 -60
- package/packages/autonomous-refactor/dist/detector.d.ts +0 -11
- package/packages/autonomous-refactor/dist/detector.d.ts.map +0 -1
- package/packages/autonomous-refactor/dist/detector.js +0 -175
- package/packages/autonomous-refactor/dist/detector.js.map +0 -1
- package/packages/autonomous-refactor/dist/index.d.ts +0 -7
- package/packages/autonomous-refactor/dist/index.d.ts.map +0 -1
- package/packages/autonomous-refactor/dist/index.js +0 -6
- package/packages/autonomous-refactor/dist/index.js.map +0 -1
- package/packages/autonomous-refactor/dist/planner.d.ts +0 -9
- package/packages/autonomous-refactor/dist/planner.d.ts.map +0 -1
- package/packages/autonomous-refactor/dist/planner.js +0 -71
- package/packages/autonomous-refactor/dist/planner.js.map +0 -1
- package/packages/autonomous-refactor/dist/types.d.ts +0 -39
- package/packages/autonomous-refactor/dist/types.d.ts.map +0 -1
- package/packages/autonomous-refactor/dist/types.js +0 -11
- package/packages/autonomous-refactor/dist/types.js.map +0 -1
- package/packages/autonomous-refactor/package.json +0 -21
- package/packages/autonomous-refactor/src/detector.ts +0 -219
- package/packages/autonomous-refactor/src/index.ts +0 -16
- package/packages/autonomous-refactor/src/planner.ts +0 -99
- package/packages/autonomous-refactor/src/types.ts +0 -57
- package/packages/autonomous-runtime/README.md +0 -48
- package/packages/cache-strategy/dist/cache.d.ts +0 -31
- package/packages/cache-strategy/dist/cache.d.ts.map +0 -1
- package/packages/cache-strategy/dist/cache.js +0 -195
- package/packages/cache-strategy/dist/cache.js.map +0 -1
- package/packages/cache-strategy/dist/index.d.ts +0 -6
- package/packages/cache-strategy/dist/index.d.ts.map +0 -1
- package/packages/cache-strategy/dist/index.js +0 -5
- package/packages/cache-strategy/dist/index.js.map +0 -1
- package/packages/cache-strategy/dist/types.d.ts +0 -35
- package/packages/cache-strategy/dist/types.d.ts.map +0 -1
- package/packages/cache-strategy/dist/types.js +0 -5
- package/packages/cache-strategy/dist/types.js.map +0 -1
- package/packages/cache-strategy/package.json +0 -21
- package/packages/cache-strategy/src/cache.ts +0 -213
- package/packages/cache-strategy/src/index.ts +0 -6
- package/packages/cache-strategy/src/types.ts +0 -40
- package/packages/capability-registry/dist/defaults.d.ts +0 -6
- package/packages/capability-registry/dist/defaults.d.ts.map +0 -1
- package/packages/capability-registry/dist/defaults.js +0 -242
- package/packages/capability-registry/dist/defaults.js.map +0 -1
- package/packages/capability-registry/dist/index.d.ts +0 -24
- package/packages/capability-registry/dist/index.d.ts.map +0 -1
- package/packages/capability-registry/dist/index.js +0 -26
- package/packages/capability-registry/dist/index.js.map +0 -1
- package/packages/capability-registry/dist/query.d.ts +0 -21
- package/packages/capability-registry/dist/query.d.ts.map +0 -1
- package/packages/capability-registry/dist/query.js +0 -66
- package/packages/capability-registry/dist/query.js.map +0 -1
- package/packages/capability-registry/dist/registry.d.ts +0 -64
- package/packages/capability-registry/dist/registry.d.ts.map +0 -1
- package/packages/capability-registry/dist/registry.js +0 -171
- package/packages/capability-registry/dist/registry.js.map +0 -1
- package/packages/capability-registry/dist/types.d.ts +0 -47
- package/packages/capability-registry/dist/types.d.ts.map +0 -1
- package/packages/capability-registry/dist/types.js +0 -10
- package/packages/capability-registry/dist/types.js.map +0 -1
- package/packages/capability-registry/package.json +0 -41
- package/packages/capability-registry/src/defaults.ts +0 -247
- package/packages/capability-registry/src/index.ts +0 -43
- package/packages/capability-registry/src/query.ts +0 -99
- package/packages/capability-registry/src/registry.ts +0 -222
- package/packages/capability-registry/src/types.ts +0 -83
- package/packages/checkpoint/README.md +0 -206
- package/packages/cli-plugin-sdk/README.md +0 -48
- package/packages/cli-plugin-sdk/dist/index.d.ts +0 -30
- package/packages/cli-plugin-sdk/dist/index.d.ts.map +0 -1
- package/packages/cli-plugin-sdk/dist/index.js +0 -128
- package/packages/cli-plugin-sdk/dist/index.js.map +0 -1
- package/packages/cli-plugin-sdk/dist/plugin-fs.d.ts +0 -21
- package/packages/cli-plugin-sdk/dist/plugin-fs.d.ts.map +0 -1
- package/packages/cli-plugin-sdk/dist/plugin-fs.js +0 -80
- package/packages/cli-plugin-sdk/dist/plugin-fs.js.map +0 -1
- package/packages/cli-plugin-sdk/dist/registry.d.ts +0 -16
- package/packages/cli-plugin-sdk/dist/registry.d.ts.map +0 -1
- package/packages/cli-plugin-sdk/dist/registry.js +0 -45
- package/packages/cli-plugin-sdk/dist/registry.js.map +0 -1
- package/packages/cli-plugin-sdk/dist/types.d.ts +0 -28
- package/packages/cli-plugin-sdk/dist/types.d.ts.map +0 -1
- package/packages/cli-plugin-sdk/dist/types.js +0 -5
- package/packages/cli-plugin-sdk/dist/types.js.map +0 -1
- package/packages/cli-plugin-sdk/package.json +0 -24
- package/packages/cli-plugin-sdk/src/index.ts +0 -169
- package/packages/cli-plugin-sdk/src/plugin-fs.ts +0 -91
- package/packages/cli-plugin-sdk/src/registry.ts +0 -55
- package/packages/cli-plugin-sdk/src/types.ts +0 -32
- package/packages/clipboard-plugin/dist/index.d.ts +0 -28
- package/packages/clipboard-plugin/dist/index.d.ts.map +0 -1
- package/packages/clipboard-plugin/dist/index.js +0 -67
- package/packages/clipboard-plugin/dist/index.js.map +0 -1
- package/packages/clipboard-plugin/dist/types.d.ts +0 -37
- package/packages/clipboard-plugin/dist/types.d.ts.map +0 -1
- package/packages/clipboard-plugin/dist/types.js +0 -5
- package/packages/clipboard-plugin/dist/types.js.map +0 -1
- package/packages/clipboard-plugin/package.json +0 -15
- package/packages/clipboard-plugin/src/index.ts +0 -77
- package/packages/clipboard-plugin/src/types.ts +0 -37
- package/packages/code-generation/README.md +0 -302
- package/packages/code-generation/dist/faker.d.ts +0 -32
- package/packages/code-generation/dist/faker.d.ts.map +0 -1
- package/packages/code-generation/dist/faker.js +0 -398
- package/packages/code-generation/dist/faker.js.map +0 -1
- package/packages/code-generation/dist/generator.d.ts +0 -73
- package/packages/code-generation/dist/generator.d.ts.map +0 -1
- package/packages/code-generation/dist/generator.js +0 -334
- package/packages/code-generation/dist/generator.js.map +0 -1
- package/packages/code-generation/dist/index.d.ts +0 -12
- package/packages/code-generation/dist/index.d.ts.map +0 -1
- package/packages/code-generation/dist/index.js +0 -15
- package/packages/code-generation/dist/index.js.map +0 -1
- package/packages/code-generation/dist/templates/ejs-renderer.d.ts +0 -33
- package/packages/code-generation/dist/templates/ejs-renderer.d.ts.map +0 -1
- package/packages/code-generation/dist/templates/ejs-renderer.js +0 -106
- package/packages/code-generation/dist/templates/ejs-renderer.js.map +0 -1
- package/packages/code-generation/dist/templates/registry.d.ts +0 -63
- package/packages/code-generation/dist/templates/registry.d.ts.map +0 -1
- package/packages/code-generation/dist/templates/registry.js +0 -139
- package/packages/code-generation/dist/templates/registry.js.map +0 -1
- package/packages/code-generation/dist/types.d.ts +0 -313
- package/packages/code-generation/dist/types.d.ts.map +0 -1
- package/packages/code-generation/dist/types.js +0 -11
- package/packages/code-generation/dist/types.js.map +0 -1
- package/packages/code-generation/package.json +0 -38
- package/packages/code-generation/src/faker.ts +0 -461
- package/packages/code-generation/src/generator.ts +0 -421
- package/packages/code-generation/src/index.ts +0 -56
- package/packages/code-generation/src/templates/ejs-renderer.ts +0 -142
- package/packages/code-generation/src/templates/registry.ts +0 -174
- package/packages/code-generation/src/types.ts +0 -373
- package/packages/code-review/README.md +0 -312
- package/packages/code-review/dist/engine.d.ts +0 -69
- package/packages/code-review/dist/engine.d.ts.map +0 -1
- package/packages/code-review/dist/engine.js +0 -338
- package/packages/code-review/dist/engine.js.map +0 -1
- package/packages/code-review/dist/index.d.ts +0 -12
- package/packages/code-review/dist/index.d.ts.map +0 -1
- package/packages/code-review/dist/index.js +0 -15
- package/packages/code-review/dist/index.js.map +0 -1
- package/packages/code-review/dist/reports/html.d.ts +0 -21
- package/packages/code-review/dist/reports/html.d.ts.map +0 -1
- package/packages/code-review/dist/reports/html.js +0 -136
- package/packages/code-review/dist/reports/html.js.map +0 -1
- package/packages/code-review/dist/reports/markdown.d.ts +0 -29
- package/packages/code-review/dist/reports/markdown.d.ts.map +0 -1
- package/packages/code-review/dist/reports/markdown.js +0 -165
- package/packages/code-review/dist/reports/markdown.js.map +0 -1
- package/packages/code-review/dist/reports/text.d.ts +0 -29
- package/packages/code-review/dist/reports/text.d.ts.map +0 -1
- package/packages/code-review/dist/reports/text.js +0 -143
- package/packages/code-review/dist/reports/text.js.map +0 -1
- package/packages/code-review/dist/types.d.ts +0 -266
- package/packages/code-review/dist/types.d.ts.map +0 -1
- package/packages/code-review/dist/types.js +0 -11
- package/packages/code-review/dist/types.js.map +0 -1
- package/packages/code-review/package.json +0 -38
- package/packages/code-review/src/engine.ts +0 -408
- package/packages/code-review/src/index.ts +0 -46
- package/packages/code-review/src/reports/html.ts +0 -143
- package/packages/code-review/src/reports/markdown.ts +0 -197
- package/packages/code-review/src/reports/text.ts +0 -171
- package/packages/code-review/src/types.ts +0 -324
- package/packages/codex-adapter/dist/executor.d.ts +0 -14
- package/packages/codex-adapter/dist/executor.d.ts.map +0 -1
- package/packages/codex-adapter/dist/executor.js +0 -69
- package/packages/codex-adapter/dist/executor.js.map +0 -1
- package/packages/codex-adapter/dist/index.d.ts +0 -8
- package/packages/codex-adapter/dist/index.d.ts.map +0 -1
- package/packages/codex-adapter/dist/index.js +0 -7
- package/packages/codex-adapter/dist/index.js.map +0 -1
- package/packages/codex-adapter/dist/provider.d.ts +0 -26
- package/packages/codex-adapter/dist/provider.d.ts.map +0 -1
- package/packages/codex-adapter/dist/provider.js +0 -170
- package/packages/codex-adapter/dist/provider.js.map +0 -1
- package/packages/codex-adapter/dist/types.d.ts +0 -52
- package/packages/codex-adapter/dist/types.d.ts.map +0 -1
- package/packages/codex-adapter/dist/types.js +0 -64
- package/packages/codex-adapter/dist/types.js.map +0 -1
- package/packages/codex-adapter/package.json +0 -24
- package/packages/codex-adapter/src/executor.ts +0 -83
- package/packages/codex-adapter/src/index.ts +0 -16
- package/packages/codex-adapter/src/provider.ts +0 -213
- package/packages/codex-adapter/src/types.ts +0 -118
- package/packages/connection-runtime/dist/index.d.ts +0 -11
- package/packages/connection-runtime/dist/index.js +0 -11
- package/packages/connection-runtime/dist/registry.d.ts +0 -69
- package/packages/connection-runtime/dist/registry.js +0 -117
- package/packages/connection-runtime/dist/supervisor.d.ts +0 -89
- package/packages/connection-runtime/dist/supervisor.js +0 -169
- package/packages/connection-runtime/dist/types.d.ts +0 -70
- package/packages/connection-runtime/dist/types.js +0 -16
- package/packages/connection-runtime/package.json +0 -24
- package/packages/connection-runtime/src/index.ts +0 -12
- package/packages/connection-runtime/src/registry.ts +0 -142
- package/packages/connection-runtime/src/supervisor.ts +0 -224
- package/packages/connection-runtime/src/types.ts +0 -88
- package/packages/context-compiler/dist/budget.d.ts +0 -42
- package/packages/context-compiler/dist/budget.d.ts.map +0 -1
- package/packages/context-compiler/dist/budget.js +0 -94
- package/packages/context-compiler/dist/budget.js.map +0 -1
- package/packages/context-compiler/dist/cache.d.ts +0 -34
- package/packages/context-compiler/dist/cache.d.ts.map +0 -1
- package/packages/context-compiler/dist/cache.js +0 -99
- package/packages/context-compiler/dist/cache.js.map +0 -1
- package/packages/context-compiler/dist/compiler.d.ts +0 -57
- package/packages/context-compiler/dist/compiler.d.ts.map +0 -1
- package/packages/context-compiler/dist/compiler.js +0 -219
- package/packages/context-compiler/dist/compiler.js.map +0 -1
- package/packages/context-compiler/dist/deduplicate.d.ts +0 -25
- package/packages/context-compiler/dist/deduplicate.d.ts.map +0 -1
- package/packages/context-compiler/dist/deduplicate.js +0 -146
- package/packages/context-compiler/dist/deduplicate.js.map +0 -1
- package/packages/context-compiler/dist/filter.d.ts +0 -26
- package/packages/context-compiler/dist/filter.d.ts.map +0 -1
- package/packages/context-compiler/dist/filter.js +0 -108
- package/packages/context-compiler/dist/filter.js.map +0 -1
- package/packages/context-compiler/dist/index.d.ts +0 -30
- package/packages/context-compiler/dist/index.d.ts.map +0 -1
- package/packages/context-compiler/dist/index.js +0 -28
- package/packages/context-compiler/dist/index.js.map +0 -1
- package/packages/context-compiler/dist/okf-loader.d.ts +0 -32
- package/packages/context-compiler/dist/okf-loader.d.ts.map +0 -1
- package/packages/context-compiler/dist/okf-loader.js +0 -63
- package/packages/context-compiler/dist/okf-loader.js.map +0 -1
- package/packages/context-compiler/dist/score.d.ts +0 -46
- package/packages/context-compiler/dist/score.d.ts.map +0 -1
- package/packages/context-compiler/dist/score.js +0 -96
- package/packages/context-compiler/dist/score.js.map +0 -1
- package/packages/context-compiler/dist/types.d.ts +0 -148
- package/packages/context-compiler/dist/types.d.ts.map +0 -1
- package/packages/context-compiler/dist/types.js +0 -48
- package/packages/context-compiler/dist/types.js.map +0 -1
- package/packages/context-compiler/package.json +0 -28
- package/packages/context-compiler/src/budget.ts +0 -122
- package/packages/context-compiler/src/cache.ts +0 -134
- package/packages/context-compiler/src/compiler.ts +0 -314
- package/packages/context-compiler/src/deduplicate.ts +0 -171
- package/packages/context-compiler/src/filter.ts +0 -135
- package/packages/context-compiler/src/index.ts +0 -61
- package/packages/context-compiler/src/okf-loader.ts +0 -86
- package/packages/context-compiler/src/score.ts +0 -130
- package/packages/context-compiler/src/types.ts +0 -246
- package/packages/context-discovery/dist/discover.d.ts.map +0 -1
- package/packages/context-discovery/dist/discover.js.map +0 -1
- package/packages/context-discovery/dist/discovery.d.ts.map +0 -1
- package/packages/context-discovery/dist/discovery.js.map +0 -1
- package/packages/context-discovery/dist/index.d.ts.map +0 -1
- package/packages/context-discovery/dist/index.js.map +0 -1
- package/packages/context-discovery/dist/src/discover.d.ts +0 -3
- package/packages/context-discovery/dist/src/discover.d.ts.map +0 -1
- package/packages/context-discovery/dist/src/discover.js +0 -42
- package/packages/context-discovery/dist/src/discover.js.map +0 -1
- package/packages/context-discovery/dist/src/discovery.d.ts +0 -28
- package/packages/context-discovery/dist/src/discovery.d.ts.map +0 -1
- package/packages/context-discovery/dist/src/discovery.js +0 -21
- package/packages/context-discovery/dist/src/discovery.js.map +0 -1
- package/packages/context-discovery/dist/src/index.d.ts +0 -3
- package/packages/context-discovery/dist/src/index.d.ts.map +0 -1
- package/packages/context-discovery/dist/src/index.js +0 -2
- package/packages/context-discovery/dist/src/index.js.map +0 -1
- package/packages/context-discovery/dist/src/types.d.ts +0 -16
- package/packages/context-discovery/dist/src/types.d.ts.map +0 -1
- package/packages/context-discovery/dist/src/types.js +0 -2
- package/packages/context-discovery/dist/src/types.js.map +0 -1
- package/packages/context-discovery/dist/types.d.ts.map +0 -1
- package/packages/context-discovery/dist/types.js.map +0 -1
- package/packages/context-discovery/package.json +0 -12
- package/packages/context-discovery/src/discover.ts +0 -42
- package/packages/context-discovery/src/discovery.ts +0 -44
- package/packages/context-discovery/src/index.ts +0 -2
- package/packages/context-discovery/src/types.ts +0 -15
- package/packages/context-manager/dist/compaction.d.ts +0 -11
- package/packages/context-manager/dist/compaction.d.ts.map +0 -1
- package/packages/context-manager/dist/compaction.js +0 -110
- package/packages/context-manager/dist/compaction.js.map +0 -1
- package/packages/context-manager/dist/core.d.ts +0 -24
- package/packages/context-manager/dist/core.d.ts.map +0 -1
- package/packages/context-manager/dist/core.js +0 -62
- package/packages/context-manager/dist/core.js.map +0 -1
- package/packages/context-manager/dist/index.d.ts +0 -7
- package/packages/context-manager/dist/index.d.ts.map +0 -1
- package/packages/context-manager/dist/index.js +0 -6
- package/packages/context-manager/dist/index.js.map +0 -1
- package/packages/context-manager/dist/types.d.ts +0 -39
- package/packages/context-manager/dist/types.d.ts.map +0 -1
- package/packages/context-manager/dist/types.js +0 -5
- package/packages/context-manager/dist/types.js.map +0 -1
- package/packages/context-manager/package.json +0 -21
- package/packages/context-manager/src/compaction.ts +0 -139
- package/packages/context-manager/src/core.ts +0 -85
- package/packages/context-manager/src/index.ts +0 -22
- package/packages/context-manager/src/types.ts +0 -44
- package/packages/cookie-sanitizer/README.md +0 -141
- package/packages/cost-optimizer/dist/budget.d.ts +0 -22
- package/packages/cost-optimizer/dist/budget.d.ts.map +0 -1
- package/packages/cost-optimizer/dist/budget.js +0 -101
- package/packages/cost-optimizer/dist/budget.js.map +0 -1
- package/packages/cost-optimizer/dist/config.d.ts +0 -10
- package/packages/cost-optimizer/dist/config.d.ts.map +0 -1
- package/packages/cost-optimizer/dist/config.js +0 -29
- package/packages/cost-optimizer/dist/config.js.map +0 -1
- package/packages/cost-optimizer/dist/forecast.d.ts +0 -15
- package/packages/cost-optimizer/dist/forecast.d.ts.map +0 -1
- package/packages/cost-optimizer/dist/forecast.js +0 -43
- package/packages/cost-optimizer/dist/forecast.js.map +0 -1
- package/packages/cost-optimizer/dist/index.d.ts +0 -29
- package/packages/cost-optimizer/dist/index.d.ts.map +0 -1
- package/packages/cost-optimizer/dist/index.js +0 -34
- package/packages/cost-optimizer/dist/index.js.map +0 -1
- package/packages/cost-optimizer/dist/optimizer.d.ts +0 -67
- package/packages/cost-optimizer/dist/optimizer.d.ts.map +0 -1
- package/packages/cost-optimizer/dist/optimizer.js +0 -203
- package/packages/cost-optimizer/dist/optimizer.js.map +0 -1
- package/packages/cost-optimizer/dist/selection.d.ts +0 -44
- package/packages/cost-optimizer/dist/selection.d.ts.map +0 -1
- package/packages/cost-optimizer/dist/selection.js +0 -189
- package/packages/cost-optimizer/dist/selection.js.map +0 -1
- package/packages/cost-optimizer/dist/tracker.d.ts +0 -32
- package/packages/cost-optimizer/dist/tracker.d.ts.map +0 -1
- package/packages/cost-optimizer/dist/tracker.js +0 -95
- package/packages/cost-optimizer/dist/tracker.js.map +0 -1
- package/packages/cost-optimizer/dist/types.d.ts +0 -142
- package/packages/cost-optimizer/dist/types.d.ts.map +0 -1
- package/packages/cost-optimizer/dist/types.js +0 -5
- package/packages/cost-optimizer/dist/types.js.map +0 -1
- package/packages/cost-optimizer/package.json +0 -41
- package/packages/cost-optimizer/src/budget.ts +0 -138
- package/packages/cost-optimizer/src/config.ts +0 -34
- package/packages/cost-optimizer/src/forecast.ts +0 -59
- package/packages/cost-optimizer/src/index.ts +0 -74
- package/packages/cost-optimizer/src/optimizer.ts +0 -277
- package/packages/cost-optimizer/src/selection.ts +0 -264
- package/packages/cost-optimizer/src/tracker.ts +0 -122
- package/packages/cost-optimizer/src/types.ts +0 -134
- package/packages/dependency-analyzer/dist/src/analyzer.d.ts +0 -17
- package/packages/dependency-analyzer/dist/src/analyzer.d.ts.map +0 -1
- package/packages/dependency-analyzer/dist/src/analyzer.js +0 -119
- package/packages/dependency-analyzer/dist/src/analyzer.js.map +0 -1
- package/packages/dependency-analyzer/dist/src/imports.d.ts +0 -12
- package/packages/dependency-analyzer/dist/src/imports.d.ts.map +0 -1
- package/packages/dependency-analyzer/dist/src/imports.js +0 -73
- package/packages/dependency-analyzer/dist/src/imports.js.map +0 -1
- package/packages/dependency-analyzer/dist/src/index.d.ts +0 -4
- package/packages/dependency-analyzer/dist/src/index.d.ts.map +0 -1
- package/packages/dependency-analyzer/dist/src/index.js +0 -3
- package/packages/dependency-analyzer/dist/src/index.js.map +0 -1
- package/packages/dependency-analyzer/dist/src/types.d.ts +0 -28
- package/packages/dependency-analyzer/dist/src/types.d.ts.map +0 -1
- package/packages/dependency-analyzer/dist/src/types.js +0 -5
- package/packages/dependency-analyzer/dist/src/types.js.map +0 -1
- package/packages/dependency-analyzer/package.json +0 -12
- package/packages/dependency-analyzer/src/analyzer.ts +0 -140
- package/packages/dependency-analyzer/src/imports.ts +0 -93
- package/packages/dependency-analyzer/src/index.ts +0 -9
- package/packages/dependency-analyzer/src/types.ts +0 -38
- package/packages/django-plugin/README.md +0 -1
- package/packages/django-plugin/dist/analyzer.d.ts +0 -8
- package/packages/django-plugin/dist/analyzer.d.ts.map +0 -1
- package/packages/django-plugin/dist/analyzer.js +0 -249
- package/packages/django-plugin/dist/analyzer.js.map +0 -1
- package/packages/django-plugin/dist/index.d.ts +0 -8
- package/packages/django-plugin/dist/index.d.ts.map +0 -1
- package/packages/django-plugin/dist/index.js +0 -30
- package/packages/django-plugin/dist/index.js.map +0 -1
- package/packages/django-plugin/dist/types.d.ts +0 -32
- package/packages/django-plugin/dist/types.d.ts.map +0 -1
- package/packages/django-plugin/dist/types.js +0 -5
- package/packages/django-plugin/dist/types.js.map +0 -1
- package/packages/django-plugin/package.json +0 -20
- package/packages/django-plugin/src/analyzer.ts +0 -284
- package/packages/django-plugin/src/index.ts +0 -39
- package/packages/django-plugin/src/types.ts +0 -35
- package/packages/doc-generator/dist/detector.d.ts +0 -9
- package/packages/doc-generator/dist/detector.d.ts.map +0 -1
- package/packages/doc-generator/dist/detector.js +0 -98
- package/packages/doc-generator/dist/detector.js.map +0 -1
- package/packages/doc-generator/dist/docs.d.ts +0 -9
- package/packages/doc-generator/dist/docs.d.ts.map +0 -1
- package/packages/doc-generator/dist/docs.js +0 -132
- package/packages/doc-generator/dist/docs.js.map +0 -1
- package/packages/doc-generator/dist/index.d.ts +0 -7
- package/packages/doc-generator/dist/index.d.ts.map +0 -1
- package/packages/doc-generator/dist/index.js +0 -6
- package/packages/doc-generator/dist/index.js.map +0 -1
- package/packages/doc-generator/dist/types.d.ts +0 -37
- package/packages/doc-generator/dist/types.d.ts.map +0 -1
- package/packages/doc-generator/dist/types.js +0 -5
- package/packages/doc-generator/dist/types.js.map +0 -1
- package/packages/doc-generator/package.json +0 -21
- package/packages/doc-generator/src/detector.ts +0 -113
- package/packages/doc-generator/src/docs.ts +0 -158
- package/packages/doc-generator/src/index.ts +0 -7
- package/packages/doc-generator/src/types.ts +0 -58
- package/packages/durable-review/dist/client.d.ts +0 -46
- package/packages/durable-review/dist/client.d.ts.map +0 -1
- package/packages/durable-review/dist/client.js +0 -88
- package/packages/durable-review/dist/client.js.map +0 -1
- package/packages/durable-review/dist/documents.d.ts +0 -82
- package/packages/durable-review/dist/documents.d.ts.map +0 -1
- package/packages/durable-review/dist/documents.js +0 -65
- package/packages/durable-review/dist/documents.js.map +0 -1
- package/packages/durable-review/dist/extension.d.ts +0 -31
- package/packages/durable-review/dist/extension.d.ts.map +0 -1
- package/packages/durable-review/dist/extension.js +0 -123
- package/packages/durable-review/dist/extension.js.map +0 -1
- package/packages/durable-review/dist/index.d.ts +0 -12
- package/packages/durable-review/dist/index.d.ts.map +0 -1
- package/packages/durable-review/dist/index.js +0 -18
- package/packages/durable-review/dist/index.js.map +0 -1
- package/packages/durable-review/dist/reviewer.d.ts +0 -67
- package/packages/durable-review/dist/reviewer.d.ts.map +0 -1
- package/packages/durable-review/dist/reviewer.js +0 -119
- package/packages/durable-review/dist/reviewer.js.map +0 -1
- package/packages/durable-review/dist/service.d.ts +0 -52
- package/packages/durable-review/dist/service.d.ts.map +0 -1
- package/packages/durable-review/dist/service.js +0 -119
- package/packages/durable-review/dist/service.js.map +0 -1
- package/packages/durable-review/dist/types.d.ts +0 -139
- package/packages/durable-review/dist/types.d.ts.map +0 -1
- package/packages/durable-review/dist/types.js +0 -58
- package/packages/durable-review/dist/types.js.map +0 -1
- package/packages/durable-review/dist/worker.d.ts +0 -70
- package/packages/durable-review/dist/worker.d.ts.map +0 -1
- package/packages/durable-review/dist/worker.js +0 -307
- package/packages/durable-review/dist/worker.js.map +0 -1
- package/packages/durable-review/package.json +0 -33
- package/packages/durable-review/src/client.ts +0 -117
- package/packages/durable-review/src/documents.ts +0 -134
- package/packages/durable-review/src/extension.ts +0 -150
- package/packages/durable-review/src/index.ts +0 -23
- package/packages/durable-review/src/reviewer.ts +0 -166
- package/packages/durable-review/src/service.ts +0 -144
- package/packages/durable-review/src/types.ts +0 -183
- package/packages/durable-review/src/worker.ts +0 -385
- package/packages/e2e-tester/README.md +0 -142
- package/packages/e2e-tester/dist/index.d.ts +0 -133
- package/packages/e2e-tester/dist/index.js +0 -380
- package/packages/e2e-tester/dist/types.d.ts +0 -91
- package/packages/e2e-tester/dist/types.js +0 -17
- package/packages/e2e-tester/package.json +0 -31
- package/packages/e2e-tester/src/index.ts +0 -488
- package/packages/e2e-tester/src/types.ts +0 -95
- package/packages/evaluation-runner/dist/index.d.ts +0 -6
- package/packages/evaluation-runner/dist/index.d.ts.map +0 -1
- package/packages/evaluation-runner/dist/index.js +0 -5
- package/packages/evaluation-runner/dist/index.js.map +0 -1
- package/packages/evaluation-runner/dist/runner.d.ts +0 -17
- package/packages/evaluation-runner/dist/runner.d.ts.map +0 -1
- package/packages/evaluation-runner/dist/runner.js +0 -153
- package/packages/evaluation-runner/dist/runner.js.map +0 -1
- package/packages/evaluation-runner/dist/types.d.ts +0 -48
- package/packages/evaluation-runner/dist/types.d.ts.map +0 -1
- package/packages/evaluation-runner/dist/types.js +0 -5
- package/packages/evaluation-runner/dist/types.js.map +0 -1
- package/packages/evaluation-runner/package.json +0 -21
- package/packages/evaluation-runner/src/index.ts +0 -6
- package/packages/evaluation-runner/src/runner.ts +0 -182
- package/packages/evaluation-runner/src/types.ts +0 -51
- package/packages/event-sink/dist/index.d.ts +0 -12
- package/packages/event-sink/dist/index.js +0 -12
- package/packages/event-sink/dist/outbox.d.ts +0 -51
- package/packages/event-sink/dist/outbox.js +0 -88
- package/packages/event-sink/dist/projection.d.ts +0 -41
- package/packages/event-sink/dist/projection.js +0 -62
- package/packages/event-sink/dist/sink.d.ts +0 -81
- package/packages/event-sink/dist/sink.js +0 -106
- package/packages/event-sink/package.json +0 -28
- package/packages/event-sink/src/index.ts +0 -15
- package/packages/event-sink/src/outbox.ts +0 -119
- package/packages/event-sink/src/projection.ts +0 -84
- package/packages/event-sink/src/sink.ts +0 -167
- package/packages/feedback-collector/dist/collector.d.ts +0 -20
- package/packages/feedback-collector/dist/collector.d.ts.map +0 -1
- package/packages/feedback-collector/dist/collector.js +0 -145
- package/packages/feedback-collector/dist/collector.js.map +0 -1
- package/packages/feedback-collector/dist/index.d.ts +0 -6
- package/packages/feedback-collector/dist/index.d.ts.map +0 -1
- package/packages/feedback-collector/dist/index.js +0 -5
- package/packages/feedback-collector/dist/index.js.map +0 -1
- package/packages/feedback-collector/dist/types.d.ts +0 -46
- package/packages/feedback-collector/dist/types.d.ts.map +0 -1
- package/packages/feedback-collector/dist/types.js +0 -5
- package/packages/feedback-collector/dist/types.js.map +0 -1
- package/packages/feedback-collector/package.json +0 -21
- package/packages/feedback-collector/src/collector.ts +0 -160
- package/packages/feedback-collector/src/index.ts +0 -6
- package/packages/feedback-collector/src/types.ts +0 -51
- package/packages/framework-detector/README.md +0 -283
- package/packages/framework-detector/dist/detector.d.ts +0 -74
- package/packages/framework-detector/dist/detector.d.ts.map +0 -1
- package/packages/framework-detector/dist/detector.js +0 -473
- package/packages/framework-detector/dist/detector.js.map +0 -1
- package/packages/framework-detector/dist/index.d.ts +0 -9
- package/packages/framework-detector/dist/index.d.ts.map +0 -1
- package/packages/framework-detector/dist/index.js +0 -12
- package/packages/framework-detector/dist/index.js.map +0 -1
- package/packages/framework-detector/dist/signatures/registry.d.ts +0 -45
- package/packages/framework-detector/dist/signatures/registry.d.ts.map +0 -1
- package/packages/framework-detector/dist/signatures/registry.js +0 -583
- package/packages/framework-detector/dist/signatures/registry.js.map +0 -1
- package/packages/framework-detector/dist/types.d.ts +0 -239
- package/packages/framework-detector/dist/types.d.ts.map +0 -1
- package/packages/framework-detector/dist/types.js +0 -11
- package/packages/framework-detector/dist/types.js.map +0 -1
- package/packages/framework-detector/package.json +0 -38
- package/packages/framework-detector/src/detector.ts +0 -586
- package/packages/framework-detector/src/index.ts +0 -46
- package/packages/framework-detector/src/signatures/registry.ts +0 -648
- package/packages/framework-detector/src/types.ts +0 -299
- package/packages/framework-plugin-sdk/README.md +0 -399
- package/packages/framework-plugin-sdk/dist/index.d.ts +0 -8
- package/packages/framework-plugin-sdk/dist/index.d.ts.map +0 -1
- package/packages/framework-plugin-sdk/dist/index.js +0 -10
- package/packages/framework-plugin-sdk/dist/index.js.map +0 -1
- package/packages/framework-plugin-sdk/dist/manager.d.ts +0 -103
- package/packages/framework-plugin-sdk/dist/manager.d.ts.map +0 -1
- package/packages/framework-plugin-sdk/dist/manager.js +0 -384
- package/packages/framework-plugin-sdk/dist/manager.js.map +0 -1
- package/packages/framework-plugin-sdk/dist/types.d.ts +0 -349
- package/packages/framework-plugin-sdk/dist/types.d.ts.map +0 -1
- package/packages/framework-plugin-sdk/dist/types.js +0 -47
- package/packages/framework-plugin-sdk/dist/types.js.map +0 -1
- package/packages/framework-plugin-sdk/package.json +0 -39
- package/packages/framework-plugin-sdk/src/index.ts +0 -45
- package/packages/framework-plugin-sdk/src/manager.ts +0 -525
- package/packages/framework-plugin-sdk/src/types.ts +0 -449
- package/packages/frappe-plugin/dist/analyzer.d.ts +0 -15
- package/packages/frappe-plugin/dist/analyzer.d.ts.map +0 -1
- package/packages/frappe-plugin/dist/analyzer.js +0 -368
- package/packages/frappe-plugin/dist/analyzer.js.map +0 -1
- package/packages/frappe-plugin/dist/index.d.ts +0 -27
- package/packages/frappe-plugin/dist/index.d.ts.map +0 -1
- package/packages/frappe-plugin/dist/index.js +0 -52
- package/packages/frappe-plugin/dist/index.js.map +0 -1
- package/packages/frappe-plugin/dist/types.d.ts +0 -91
- package/packages/frappe-plugin/dist/types.d.ts.map +0 -1
- package/packages/frappe-plugin/dist/types.js +0 -13
- package/packages/frappe-plugin/dist/types.js.map +0 -1
- package/packages/frappe-plugin/package.json +0 -20
- package/packages/frappe-plugin/src/analyzer.ts +0 -454
- package/packages/frappe-plugin/src/index.ts +0 -72
- package/packages/frappe-plugin/src/types.ts +0 -135
- package/packages/generic-web-plugin/dist/analyzer.d.ts +0 -15
- package/packages/generic-web-plugin/dist/analyzer.d.ts.map +0 -1
- package/packages/generic-web-plugin/dist/analyzer.js +0 -312
- package/packages/generic-web-plugin/dist/analyzer.js.map +0 -1
- package/packages/generic-web-plugin/dist/index.d.ts +0 -20
- package/packages/generic-web-plugin/dist/index.d.ts.map +0 -1
- package/packages/generic-web-plugin/dist/index.js +0 -47
- package/packages/generic-web-plugin/dist/index.js.map +0 -1
- package/packages/generic-web-plugin/dist/types.d.ts +0 -21
- package/packages/generic-web-plugin/dist/types.d.ts.map +0 -1
- package/packages/generic-web-plugin/dist/types.js +0 -5
- package/packages/generic-web-plugin/dist/types.js.map +0 -1
- package/packages/generic-web-plugin/package.json +0 -20
- package/packages/generic-web-plugin/src/analyzer.ts +0 -350
- package/packages/generic-web-plugin/src/index.ts +0 -61
- package/packages/generic-web-plugin/src/types.ts +0 -41
- package/packages/health-monitor/dist/index.d.ts +0 -6
- package/packages/health-monitor/dist/index.d.ts.map +0 -1
- package/packages/health-monitor/dist/index.js +0 -5
- package/packages/health-monitor/dist/index.js.map +0 -1
- package/packages/health-monitor/dist/monitor.d.ts +0 -39
- package/packages/health-monitor/dist/monitor.d.ts.map +0 -1
- package/packages/health-monitor/dist/monitor.js +0 -155
- package/packages/health-monitor/dist/monitor.js.map +0 -1
- package/packages/health-monitor/dist/types.d.ts +0 -33
- package/packages/health-monitor/dist/types.d.ts.map +0 -1
- package/packages/health-monitor/dist/types.js +0 -5
- package/packages/health-monitor/dist/types.js.map +0 -1
- package/packages/health-monitor/package.json +0 -21
- package/packages/health-monitor/src/index.ts +0 -16
- package/packages/health-monitor/src/monitor.ts +0 -216
- package/packages/health-monitor/src/types.ts +0 -45
- package/packages/jev-judge/README.md +0 -295
- package/packages/knowledge-graph/dist/graph-extractor.d.ts +0 -27
- package/packages/knowledge-graph/dist/graph-extractor.d.ts.map +0 -1
- package/packages/knowledge-graph/dist/graph-extractor.js +0 -276
- package/packages/knowledge-graph/dist/graph-extractor.js.map +0 -1
- package/packages/knowledge-graph/dist/index.d.ts +0 -27
- package/packages/knowledge-graph/dist/index.d.ts.map +0 -1
- package/packages/knowledge-graph/dist/index.js +0 -27
- package/packages/knowledge-graph/dist/index.js.map +0 -1
- package/packages/knowledge-graph/dist/mcp-client.d.ts +0 -38
- package/packages/knowledge-graph/dist/mcp-client.d.ts.map +0 -1
- package/packages/knowledge-graph/dist/mcp-client.js +0 -157
- package/packages/knowledge-graph/dist/mcp-client.js.map +0 -1
- package/packages/knowledge-graph/dist/provenance-linker.d.ts +0 -19
- package/packages/knowledge-graph/dist/provenance-linker.d.ts.map +0 -1
- package/packages/knowledge-graph/dist/provenance-linker.js +0 -91
- package/packages/knowledge-graph/dist/provenance-linker.js.map +0 -1
- package/packages/knowledge-graph/dist/types.d.ts +0 -53
- package/packages/knowledge-graph/dist/types.d.ts.map +0 -1
- package/packages/knowledge-graph/dist/types.js +0 -7
- package/packages/knowledge-graph/dist/types.js.map +0 -1
- package/packages/knowledge-graph/package.json +0 -24
- package/packages/knowledge-graph/src/graph-extractor.ts +0 -338
- package/packages/knowledge-graph/src/index.ts +0 -27
- package/packages/knowledge-graph/src/mcp-client.ts +0 -237
- package/packages/knowledge-graph/src/provenance-linker.ts +0 -101
- package/packages/knowledge-graph/src/types.ts +0 -86
- package/packages/laravel-plugin/README.md +0 -1
- package/packages/laravel-plugin/dist/analyzer.d.ts +0 -8
- package/packages/laravel-plugin/dist/analyzer.d.ts.map +0 -1
- package/packages/laravel-plugin/dist/analyzer.js +0 -297
- package/packages/laravel-plugin/dist/analyzer.js.map +0 -1
- package/packages/laravel-plugin/dist/index.d.ts +0 -8
- package/packages/laravel-plugin/dist/index.d.ts.map +0 -1
- package/packages/laravel-plugin/dist/index.js +0 -31
- package/packages/laravel-plugin/dist/index.js.map +0 -1
- package/packages/laravel-plugin/dist/types.d.ts +0 -23
- package/packages/laravel-plugin/dist/types.d.ts.map +0 -1
- package/packages/laravel-plugin/dist/types.js +0 -5
- package/packages/laravel-plugin/dist/types.js.map +0 -1
- package/packages/laravel-plugin/package.json +0 -20
- package/packages/laravel-plugin/src/analyzer.ts +0 -323
- package/packages/laravel-plugin/src/index.ts +0 -40
- package/packages/laravel-plugin/src/types.ts +0 -24
- package/packages/logging/README.md +0 -105
- package/packages/mcp-adapter/README.md +0 -47
- package/packages/mcp-adapter/dist/index.d.ts +0 -8
- package/packages/mcp-adapter/dist/index.d.ts.map +0 -1
- package/packages/mcp-adapter/dist/index.js +0 -7
- package/packages/mcp-adapter/dist/index.js.map +0 -1
- package/packages/mcp-adapter/dist/server.d.ts +0 -9
- package/packages/mcp-adapter/dist/server.d.ts.map +0 -1
- package/packages/mcp-adapter/dist/server.js +0 -230
- package/packages/mcp-adapter/dist/server.js.map +0 -1
- package/packages/mcp-adapter/dist/tools.d.ts +0 -12
- package/packages/mcp-adapter/dist/tools.d.ts.map +0 -1
- package/packages/mcp-adapter/dist/tools.js +0 -178
- package/packages/mcp-adapter/dist/tools.js.map +0 -1
- package/packages/mcp-adapter/dist/types.d.ts +0 -80
- package/packages/mcp-adapter/dist/types.d.ts.map +0 -1
- package/packages/mcp-adapter/dist/types.js +0 -5
- package/packages/mcp-adapter/dist/types.js.map +0 -1
- package/packages/mcp-adapter/package.json +0 -21
- package/packages/mcp-adapter/src/index.ts +0 -20
- package/packages/mcp-adapter/src/server.ts +0 -276
- package/packages/mcp-adapter/src/tools.ts +0 -220
- package/packages/mcp-adapter/src/types.ts +0 -79
- package/packages/milestone-manager/dist/engine.d.ts +0 -27
- package/packages/milestone-manager/dist/engine.d.ts.map +0 -1
- package/packages/milestone-manager/dist/engine.js +0 -78
- package/packages/milestone-manager/dist/engine.js.map +0 -1
- package/packages/milestone-manager/dist/index.d.ts +0 -6
- package/packages/milestone-manager/dist/index.d.ts.map +0 -1
- package/packages/milestone-manager/dist/index.js +0 -6
- package/packages/milestone-manager/dist/index.js.map +0 -1
- package/packages/milestone-manager/dist/types.d.ts +0 -25
- package/packages/milestone-manager/dist/types.d.ts.map +0 -1
- package/packages/milestone-manager/dist/types.js +0 -7
- package/packages/milestone-manager/dist/types.js.map +0 -1
- package/packages/milestone-manager/package.json +0 -21
- package/packages/milestone-manager/src/engine.ts +0 -105
- package/packages/milestone-manager/src/index.ts +0 -6
- package/packages/milestone-manager/src/types.ts +0 -28
- package/packages/model-registry/dist/cost.d.ts +0 -28
- package/packages/model-registry/dist/cost.d.ts.map +0 -1
- package/packages/model-registry/dist/cost.js +0 -54
- package/packages/model-registry/dist/cost.js.map +0 -1
- package/packages/model-registry/dist/defaults.d.ts +0 -6
- package/packages/model-registry/dist/defaults.d.ts.map +0 -1
- package/packages/model-registry/dist/defaults.js +0 -173
- package/packages/model-registry/dist/defaults.js.map +0 -1
- package/packages/model-registry/dist/index.d.ts +0 -30
- package/packages/model-registry/dist/index.d.ts.map +0 -1
- package/packages/model-registry/dist/index.js +0 -33
- package/packages/model-registry/dist/index.js.map +0 -1
- package/packages/model-registry/dist/query.d.ts +0 -21
- package/packages/model-registry/dist/query.d.ts.map +0 -1
- package/packages/model-registry/dist/query.js +0 -62
- package/packages/model-registry/dist/query.js.map +0 -1
- package/packages/model-registry/dist/registry.d.ts +0 -68
- package/packages/model-registry/dist/registry.d.ts.map +0 -1
- package/packages/model-registry/dist/registry.js +0 -154
- package/packages/model-registry/dist/registry.js.map +0 -1
- package/packages/model-registry/dist/types.d.ts +0 -63
- package/packages/model-registry/dist/types.d.ts.map +0 -1
- package/packages/model-registry/dist/types.js +0 -5
- package/packages/model-registry/dist/types.js.map +0 -1
- package/packages/model-registry/package.json +0 -41
- package/packages/model-registry/src/cost.ts +0 -80
- package/packages/model-registry/src/defaults.ts +0 -178
- package/packages/model-registry/src/index.ts +0 -57
- package/packages/model-registry/src/query.ts +0 -85
- package/packages/model-registry/src/registry.ts +0 -188
- package/packages/model-registry/src/types.ts +0 -69
- package/packages/nextjs-plugin/README.md +0 -1
- package/packages/nextjs-plugin/dist/analyzer.d.ts +0 -12
- package/packages/nextjs-plugin/dist/analyzer.d.ts.map +0 -1
- package/packages/nextjs-plugin/dist/analyzer.js +0 -217
- package/packages/nextjs-plugin/dist/analyzer.js.map +0 -1
- package/packages/nextjs-plugin/dist/index.d.ts +0 -8
- package/packages/nextjs-plugin/dist/index.d.ts.map +0 -1
- package/packages/nextjs-plugin/dist/index.js +0 -32
- package/packages/nextjs-plugin/dist/index.js.map +0 -1
- package/packages/nextjs-plugin/dist/types.d.ts +0 -33
- package/packages/nextjs-plugin/dist/types.d.ts.map +0 -1
- package/packages/nextjs-plugin/dist/types.js +0 -5
- package/packages/nextjs-plugin/dist/types.js.map +0 -1
- package/packages/nextjs-plugin/package.json +0 -30
- package/packages/nextjs-plugin/src/analyzer.ts +0 -247
- package/packages/nextjs-plugin/src/index.ts +0 -41
- package/packages/nextjs-plugin/src/types.ts +0 -36
- package/packages/observability/README.md +0 -241
- package/packages/observability/dist/alerts.d.ts +0 -99
- package/packages/observability/dist/alerts.d.ts.map +0 -1
- package/packages/observability/dist/alerts.js +0 -297
- package/packages/observability/dist/alerts.js.map +0 -1
- package/packages/observability/dist/health.d.ts +0 -61
- package/packages/observability/dist/health.d.ts.map +0 -1
- package/packages/observability/dist/health.js +0 -261
- package/packages/observability/dist/health.js.map +0 -1
- package/packages/observability/dist/index.d.ts +0 -18
- package/packages/observability/dist/index.d.ts.map +0 -1
- package/packages/observability/dist/index.js +0 -19
- package/packages/observability/dist/index.js.map +0 -1
- package/packages/observability/dist/logger.d.ts +0 -111
- package/packages/observability/dist/logger.d.ts.map +0 -1
- package/packages/observability/dist/logger.js +0 -317
- package/packages/observability/dist/logger.js.map +0 -1
- package/packages/observability/dist/metrics.d.ts +0 -129
- package/packages/observability/dist/metrics.d.ts.map +0 -1
- package/packages/observability/dist/metrics.js +0 -373
- package/packages/observability/dist/metrics.js.map +0 -1
- package/packages/observability/dist/tracer.d.ts +0 -110
- package/packages/observability/dist/tracer.d.ts.map +0 -1
- package/packages/observability/dist/tracer.js +0 -261
- package/packages/observability/dist/tracer.js.map +0 -1
- package/packages/observability/dist/types.d.ts +0 -329
- package/packages/observability/dist/types.d.ts.map +0 -1
- package/packages/observability/dist/types.js +0 -11
- package/packages/observability/dist/types.js.map +0 -1
- package/packages/observability/package.json +0 -34
- package/packages/observability/src/alerts.ts +0 -355
- package/packages/observability/src/health.ts +0 -325
- package/packages/observability/src/index.ts +0 -79
- package/packages/observability/src/logger.ts +0 -373
- package/packages/observability/src/metrics.ts +0 -475
- package/packages/observability/src/tracer.ts +0 -336
- package/packages/observability/src/types.ts +0 -391
- package/packages/okf-indexer/dist/cli.d.ts +0 -16
- package/packages/okf-indexer/dist/cli.d.ts.map +0 -1
- package/packages/okf-indexer/dist/cli.js +0 -41
- package/packages/okf-indexer/dist/cli.js.map +0 -1
- package/packages/okf-indexer/dist/index.d.ts +0 -9
- package/packages/okf-indexer/dist/index.d.ts.map +0 -1
- package/packages/okf-indexer/dist/index.js +0 -9
- package/packages/okf-indexer/dist/index.js.map +0 -1
- package/packages/okf-indexer/dist/indexer.d.ts +0 -55
- package/packages/okf-indexer/dist/indexer.d.ts.map +0 -1
- package/packages/okf-indexer/dist/indexer.js +0 -147
- package/packages/okf-indexer/dist/indexer.js.map +0 -1
- package/packages/okf-indexer/package.json +0 -12
- package/packages/okf-indexer/src/cli.ts +0 -48
- package/packages/okf-indexer/src/index.ts +0 -9
- package/packages/okf-indexer/src/indexer.ts +0 -186
- package/packages/permission-mode/dist/checker.d.ts +0 -66
- package/packages/permission-mode/dist/checker.js +0 -64
- package/packages/permission-mode/dist/index.d.ts +0 -12
- package/packages/permission-mode/dist/index.js +0 -11
- package/packages/permission-mode/dist/manager.d.ts +0 -65
- package/packages/permission-mode/dist/manager.js +0 -91
- package/packages/permission-mode/dist/mode.d.ts +0 -31
- package/packages/permission-mode/dist/mode.js +0 -47
- package/packages/permission-mode/package.json +0 -24
- package/packages/permission-mode/src/checker.ts +0 -103
- package/packages/permission-mode/src/index.ts +0 -13
- package/packages/permission-mode/src/manager.ts +0 -154
- package/packages/permission-mode/src/mode.ts +0 -73
- package/packages/privilege-broker/README.md +0 -45
- package/packages/project-analyzer/dist/analyzer.d.ts +0 -67
- package/packages/project-analyzer/dist/analyzer.d.ts.map +0 -1
- package/packages/project-analyzer/dist/analyzer.js +0 -512
- package/packages/project-analyzer/dist/analyzer.js.map +0 -1
- package/packages/project-analyzer/dist/cache.d.ts +0 -97
- package/packages/project-analyzer/dist/cache.d.ts.map +0 -1
- package/packages/project-analyzer/dist/cache.js +0 -242
- package/packages/project-analyzer/dist/cache.js.map +0 -1
- package/packages/project-analyzer/dist/command-discovery.d.ts +0 -38
- package/packages/project-analyzer/dist/command-discovery.d.ts.map +0 -1
- package/packages/project-analyzer/dist/command-discovery.js +0 -188
- package/packages/project-analyzer/dist/command-discovery.js.map +0 -1
- package/packages/project-analyzer/dist/index.d.ts +0 -20
- package/packages/project-analyzer/dist/index.d.ts.map +0 -1
- package/packages/project-analyzer/dist/index.js +0 -23
- package/packages/project-analyzer/dist/index.js.map +0 -1
- package/packages/project-analyzer/dist/plugins/index.d.ts +0 -8
- package/packages/project-analyzer/dist/plugins/index.d.ts.map +0 -1
- package/packages/project-analyzer/dist/plugins/index.js +0 -7
- package/packages/project-analyzer/dist/plugins/index.js.map +0 -1
- package/packages/project-analyzer/dist/rule-discovery.d.ts +0 -50
- package/packages/project-analyzer/dist/rule-discovery.d.ts.map +0 -1
- package/packages/project-analyzer/dist/rule-discovery.js +0 -223
- package/packages/project-analyzer/dist/rule-discovery.js.map +0 -1
- package/packages/project-analyzer/dist/signals.d.ts +0 -52
- package/packages/project-analyzer/dist/signals.d.ts.map +0 -1
- package/packages/project-analyzer/dist/signals.js +0 -290
- package/packages/project-analyzer/dist/signals.js.map +0 -1
- package/packages/project-analyzer/dist/types.d.ts +0 -277
- package/packages/project-analyzer/dist/types.d.ts.map +0 -1
- package/packages/project-analyzer/dist/types.js +0 -44
- package/packages/project-analyzer/dist/types.js.map +0 -1
- package/packages/project-analyzer/dist/walker.d.ts +0 -106
- package/packages/project-analyzer/dist/walker.d.ts.map +0 -1
- package/packages/project-analyzer/dist/walker.js +0 -298
- package/packages/project-analyzer/dist/walker.js.map +0 -1
- package/packages/project-analyzer/package.json +0 -43
- package/packages/project-analyzer/src/analyzer.ts +0 -683
- package/packages/project-analyzer/src/cache.ts +0 -329
- package/packages/project-analyzer/src/command-discovery.ts +0 -239
- package/packages/project-analyzer/src/index.ts +0 -123
- package/packages/project-analyzer/src/plugins/index.ts +0 -16
- package/packages/project-analyzer/src/rule-discovery.ts +0 -282
- package/packages/project-analyzer/src/signals.ts +0 -355
- package/packages/project-analyzer/src/types.ts +0 -412
- package/packages/project-analyzer/src/walker.ts +0 -366
- package/packages/project-bootstrap/dist/bootstrap.d.ts +0 -23
- package/packages/project-bootstrap/dist/bootstrap.d.ts.map +0 -1
- package/packages/project-bootstrap/dist/bootstrap.js +0 -128
- package/packages/project-bootstrap/dist/bootstrap.js.map +0 -1
- package/packages/project-bootstrap/dist/frappe.d.ts +0 -8
- package/packages/project-bootstrap/dist/frappe.d.ts.map +0 -1
- package/packages/project-bootstrap/dist/frappe.js +0 -82
- package/packages/project-bootstrap/dist/frappe.js.map +0 -1
- package/packages/project-bootstrap/dist/index.d.ts +0 -27
- package/packages/project-bootstrap/dist/index.d.ts.map +0 -1
- package/packages/project-bootstrap/dist/index.js +0 -27
- package/packages/project-bootstrap/dist/index.js.map +0 -1
- package/packages/project-bootstrap/dist/minimal.d.ts +0 -8
- package/packages/project-bootstrap/dist/minimal.d.ts.map +0 -1
- package/packages/project-bootstrap/dist/minimal.js +0 -35
- package/packages/project-bootstrap/dist/minimal.js.map +0 -1
- package/packages/project-bootstrap/dist/types.d.ts +0 -61
- package/packages/project-bootstrap/dist/types.d.ts.map +0 -1
- package/packages/project-bootstrap/dist/types.js +0 -7
- package/packages/project-bootstrap/dist/types.js.map +0 -1
- package/packages/project-bootstrap/dist/typescript.d.ts +0 -8
- package/packages/project-bootstrap/dist/typescript.d.ts.map +0 -1
- package/packages/project-bootstrap/dist/typescript.js +0 -103
- package/packages/project-bootstrap/dist/typescript.js.map +0 -1
- package/packages/project-bootstrap/package.json +0 -24
- package/packages/project-bootstrap/src/bootstrap.ts +0 -166
- package/packages/project-bootstrap/src/frappe.ts +0 -97
- package/packages/project-bootstrap/src/index.ts +0 -27
- package/packages/project-bootstrap/src/minimal.ts +0 -45
- package/packages/project-bootstrap/src/types.ts +0 -66
- package/packages/project-bootstrap/src/typescript.ts +0 -114
- package/packages/projection-engine/dist/engine.d.ts.map +0 -1
- package/packages/projection-engine/dist/engine.js.map +0 -1
- package/packages/projection-engine/dist/index.d.ts.map +0 -1
- package/packages/projection-engine/dist/index.js.map +0 -1
- package/packages/projection-engine/dist/project.d.ts.map +0 -1
- package/packages/projection-engine/dist/project.js.map +0 -1
- package/packages/projection-engine/dist/src/engine.d.ts +0 -61
- package/packages/projection-engine/dist/src/engine.d.ts.map +0 -1
- package/packages/projection-engine/dist/src/engine.js +0 -87
- package/packages/projection-engine/dist/src/engine.js.map +0 -1
- package/packages/projection-engine/dist/src/index.d.ts +0 -2
- package/packages/projection-engine/dist/src/index.d.ts.map +0 -1
- package/packages/projection-engine/dist/src/index.js +0 -2
- package/packages/projection-engine/dist/src/index.js.map +0 -1
- package/packages/projection-engine/dist/src/project.d.ts +0 -3
- package/packages/projection-engine/dist/src/project.d.ts.map +0 -1
- package/packages/projection-engine/dist/src/project.js +0 -24
- package/packages/projection-engine/dist/src/project.js.map +0 -1
- package/packages/projection-engine/dist/src/types.d.ts +0 -55
- package/packages/projection-engine/dist/src/types.d.ts.map +0 -1
- package/packages/projection-engine/dist/src/types.js +0 -5
- package/packages/projection-engine/dist/src/types.js.map +0 -1
- package/packages/projection-engine/dist/types.d.ts.map +0 -1
- package/packages/projection-engine/dist/types.js.map +0 -1
- package/packages/projection-engine/package.json +0 -12
- package/packages/projection-engine/src/engine.ts +0 -134
- package/packages/projection-engine/src/index.ts +0 -8
- package/packages/projection-engine/src/project.ts +0 -24
- package/packages/projection-engine/src/types.ts +0 -60
- package/packages/prompt-versioning/dist/index.d.ts +0 -6
- package/packages/prompt-versioning/dist/index.d.ts.map +0 -1
- package/packages/prompt-versioning/dist/index.js +0 -5
- package/packages/prompt-versioning/dist/index.js.map +0 -1
- package/packages/prompt-versioning/dist/types.d.ts +0 -37
- package/packages/prompt-versioning/dist/types.d.ts.map +0 -1
- package/packages/prompt-versioning/dist/types.js +0 -5
- package/packages/prompt-versioning/dist/types.js.map +0 -1
- package/packages/prompt-versioning/dist/versioning.d.ts +0 -26
- package/packages/prompt-versioning/dist/versioning.d.ts.map +0 -1
- package/packages/prompt-versioning/dist/versioning.js +0 -130
- package/packages/prompt-versioning/dist/versioning.js.map +0 -1
- package/packages/prompt-versioning/package.json +0 -21
- package/packages/prompt-versioning/src/index.ts +0 -6
- package/packages/prompt-versioning/src/types.ts +0 -41
- package/packages/prompt-versioning/src/versioning.ts +0 -149
- package/packages/provider-adapter-sdk/README.md +0 -221
- package/packages/provider-adapter-sdk/dist/builder.d.ts +0 -147
- package/packages/provider-adapter-sdk/dist/builder.d.ts.map +0 -1
- package/packages/provider-adapter-sdk/dist/builder.js +0 -356
- package/packages/provider-adapter-sdk/dist/builder.js.map +0 -1
- package/packages/provider-adapter-sdk/dist/errors.d.ts +0 -71
- package/packages/provider-adapter-sdk/dist/errors.d.ts.map +0 -1
- package/packages/provider-adapter-sdk/dist/errors.js +0 -111
- package/packages/provider-adapter-sdk/dist/errors.js.map +0 -1
- package/packages/provider-adapter-sdk/dist/index.d.ts +0 -15
- package/packages/provider-adapter-sdk/dist/index.d.ts.map +0 -1
- package/packages/provider-adapter-sdk/dist/index.js +0 -19
- package/packages/provider-adapter-sdk/dist/index.js.map +0 -1
- package/packages/provider-adapter-sdk/dist/registry.d.ts +0 -128
- package/packages/provider-adapter-sdk/dist/registry.d.ts.map +0 -1
- package/packages/provider-adapter-sdk/dist/registry.js +0 -356
- package/packages/provider-adapter-sdk/dist/registry.js.map +0 -1
- package/packages/provider-adapter-sdk/dist/tester.d.ts +0 -74
- package/packages/provider-adapter-sdk/dist/tester.d.ts.map +0 -1
- package/packages/provider-adapter-sdk/dist/tester.js +0 -399
- package/packages/provider-adapter-sdk/dist/tester.js.map +0 -1
- package/packages/provider-adapter-sdk/dist/types.d.ts +0 -237
- package/packages/provider-adapter-sdk/dist/types.d.ts.map +0 -1
- package/packages/provider-adapter-sdk/dist/types.js +0 -11
- package/packages/provider-adapter-sdk/dist/types.js.map +0 -1
- package/packages/provider-adapter-sdk/examples/custom-adapter.ts +0 -353
- package/packages/provider-adapter-sdk/package.json +0 -36
- package/packages/provider-adapter-sdk/src/builder.ts +0 -442
- package/packages/provider-adapter-sdk/src/errors.ts +0 -153
- package/packages/provider-adapter-sdk/src/index.ts +0 -84
- package/packages/provider-adapter-sdk/src/registry.ts +0 -486
- package/packages/provider-adapter-sdk/src/tester.ts +0 -483
- package/packages/provider-adapter-sdk/src/types.ts +0 -293
- package/packages/provider-router/dist/index.d.ts +0 -23
- package/packages/provider-router/dist/index.d.ts.map +0 -1
- package/packages/provider-router/dist/index.js +0 -25
- package/packages/provider-router/dist/index.js.map +0 -1
- package/packages/provider-router/dist/policy.d.ts +0 -10
- package/packages/provider-router/dist/policy.d.ts.map +0 -1
- package/packages/provider-router/dist/policy.js +0 -45
- package/packages/provider-router/dist/policy.js.map +0 -1
- package/packages/provider-router/dist/provider-router.d.ts +0 -56
- package/packages/provider-router/dist/provider-router.d.ts.map +0 -1
- package/packages/provider-router/dist/provider-router.js +0 -222
- package/packages/provider-router/dist/provider-router.js.map +0 -1
- package/packages/provider-router/dist/strategies.d.ts +0 -19
- package/packages/provider-router/dist/strategies.d.ts.map +0 -1
- package/packages/provider-router/dist/strategies.js +0 -110
- package/packages/provider-router/dist/strategies.js.map +0 -1
- package/packages/provider-router/dist/types.d.ts +0 -91
- package/packages/provider-router/dist/types.d.ts.map +0 -1
- package/packages/provider-router/dist/types.js +0 -10
- package/packages/provider-router/dist/types.js.map +0 -1
- package/packages/provider-router/package.json +0 -41
- package/packages/provider-router/src/index.ts +0 -49
- package/packages/provider-router/src/policy.ts +0 -50
- package/packages/provider-router/src/provider-router.ts +0 -315
- package/packages/provider-router/src/strategies.ts +0 -158
- package/packages/provider-router/src/types.ts +0 -130
- package/packages/provider-selector/dist/index.d.ts +0 -6
- package/packages/provider-selector/dist/index.d.ts.map +0 -1
- package/packages/provider-selector/dist/index.js +0 -5
- package/packages/provider-selector/dist/index.js.map +0 -1
- package/packages/provider-selector/dist/selector.d.ts +0 -17
- package/packages/provider-selector/dist/selector.d.ts.map +0 -1
- package/packages/provider-selector/dist/selector.js +0 -93
- package/packages/provider-selector/dist/selector.js.map +0 -1
- package/packages/provider-selector/dist/types.d.ts +0 -26
- package/packages/provider-selector/dist/types.d.ts.map +0 -1
- package/packages/provider-selector/dist/types.js +0 -5
- package/packages/provider-selector/dist/types.js.map +0 -1
- package/packages/provider-selector/package.json +0 -21
- package/packages/provider-selector/src/index.ts +0 -13
- package/packages/provider-selector/src/selector.ts +0 -120
- package/packages/provider-selector/src/types.ts +0 -33
- package/packages/providers/README.md +0 -3
- package/packages/quota-manager/README.md +0 -3
- package/packages/quota-manager/examples/tui-usage-integration.ts +0 -72
- package/packages/rate-limiter/dist/index.d.ts +0 -6
- package/packages/rate-limiter/dist/index.d.ts.map +0 -1
- package/packages/rate-limiter/dist/index.js +0 -5
- package/packages/rate-limiter/dist/index.js.map +0 -1
- package/packages/rate-limiter/dist/limiter.d.ts +0 -20
- package/packages/rate-limiter/dist/limiter.d.ts.map +0 -1
- package/packages/rate-limiter/dist/limiter.js +0 -101
- package/packages/rate-limiter/dist/limiter.js.map +0 -1
- package/packages/rate-limiter/dist/types.d.ts +0 -36
- package/packages/rate-limiter/dist/types.d.ts.map +0 -1
- package/packages/rate-limiter/dist/types.js +0 -5
- package/packages/rate-limiter/dist/types.js.map +0 -1
- package/packages/rate-limiter/package.json +0 -21
- package/packages/rate-limiter/src/index.ts +0 -6
- package/packages/rate-limiter/src/limiter.ts +0 -122
- package/packages/rate-limiter/src/types.ts +0 -41
- package/packages/react-vite-plugin/README.md +0 -1
- package/packages/react-vite-plugin/dist/analyzer.d.ts +0 -8
- package/packages/react-vite-plugin/dist/analyzer.d.ts.map +0 -1
- package/packages/react-vite-plugin/dist/analyzer.js +0 -193
- package/packages/react-vite-plugin/dist/analyzer.js.map +0 -1
- package/packages/react-vite-plugin/dist/index.d.ts +0 -8
- package/packages/react-vite-plugin/dist/index.d.ts.map +0 -1
- package/packages/react-vite-plugin/dist/index.js +0 -30
- package/packages/react-vite-plugin/dist/index.js.map +0 -1
- package/packages/react-vite-plugin/dist/types.d.ts +0 -26
- package/packages/react-vite-plugin/dist/types.d.ts.map +0 -1
- package/packages/react-vite-plugin/dist/types.js +0 -5
- package/packages/react-vite-plugin/dist/types.js.map +0 -1
- package/packages/react-vite-plugin/package.json +0 -20
- package/packages/react-vite-plugin/src/analyzer.ts +0 -226
- package/packages/react-vite-plugin/src/index.ts +0 -39
- package/packages/react-vite-plugin/src/types.ts +0 -28
- package/packages/release-manager/dist/changelog.d.ts +0 -14
- package/packages/release-manager/dist/changelog.d.ts.map +0 -1
- package/packages/release-manager/dist/changelog.js +0 -126
- package/packages/release-manager/dist/changelog.js.map +0 -1
- package/packages/release-manager/dist/index.d.ts +0 -7
- package/packages/release-manager/dist/index.d.ts.map +0 -1
- package/packages/release-manager/dist/index.js +0 -6
- package/packages/release-manager/dist/index.js.map +0 -1
- package/packages/release-manager/dist/types.d.ts +0 -36
- package/packages/release-manager/dist/types.d.ts.map +0 -1
- package/packages/release-manager/dist/types.js +0 -5
- package/packages/release-manager/dist/types.js.map +0 -1
- package/packages/release-manager/dist/version.d.ts +0 -10
- package/packages/release-manager/dist/version.d.ts.map +0 -1
- package/packages/release-manager/dist/version.js +0 -53
- package/packages/release-manager/dist/version.js.map +0 -1
- package/packages/release-manager/package.json +0 -21
- package/packages/release-manager/src/changelog.ts +0 -148
- package/packages/release-manager/src/index.ts +0 -21
- package/packages/release-manager/src/types.ts +0 -50
- package/packages/release-manager/src/version.ts +0 -52
- package/packages/requirement-compiler/dist/ambiguity-detector.d.ts +0 -11
- package/packages/requirement-compiler/dist/ambiguity-detector.d.ts.map +0 -1
- package/packages/requirement-compiler/dist/ambiguity-detector.js +0 -236
- package/packages/requirement-compiler/dist/ambiguity-detector.js.map +0 -1
- package/packages/requirement-compiler/dist/classifier.d.ts +0 -11
- package/packages/requirement-compiler/dist/classifier.d.ts.map +0 -1
- package/packages/requirement-compiler/dist/classifier.js +0 -101
- package/packages/requirement-compiler/dist/classifier.js.map +0 -1
- package/packages/requirement-compiler/dist/compiler.d.ts +0 -11
- package/packages/requirement-compiler/dist/compiler.d.ts.map +0 -1
- package/packages/requirement-compiler/dist/compiler.js +0 -231
- package/packages/requirement-compiler/dist/compiler.js.map +0 -1
- package/packages/requirement-compiler/dist/extractor.d.ts +0 -11
- package/packages/requirement-compiler/dist/extractor.d.ts.map +0 -1
- package/packages/requirement-compiler/dist/extractor.js +0 -125
- package/packages/requirement-compiler/dist/extractor.js.map +0 -1
- package/packages/requirement-compiler/dist/index.d.ts +0 -13
- package/packages/requirement-compiler/dist/index.d.ts.map +0 -1
- package/packages/requirement-compiler/dist/index.js +0 -13
- package/packages/requirement-compiler/dist/index.js.map +0 -1
- package/packages/requirement-compiler/dist/normalizer.d.ts +0 -11
- package/packages/requirement-compiler/dist/normalizer.d.ts.map +0 -1
- package/packages/requirement-compiler/dist/normalizer.js +0 -141
- package/packages/requirement-compiler/dist/normalizer.js.map +0 -1
- package/packages/requirement-compiler/dist/risk-detector.d.ts +0 -11
- package/packages/requirement-compiler/dist/risk-detector.d.ts.map +0 -1
- package/packages/requirement-compiler/dist/risk-detector.js +0 -48
- package/packages/requirement-compiler/dist/risk-detector.js.map +0 -1
- package/packages/requirement-compiler/dist/types.d.ts +0 -403
- package/packages/requirement-compiler/dist/types.d.ts.map +0 -1
- package/packages/requirement-compiler/dist/types.js +0 -129
- package/packages/requirement-compiler/dist/types.js.map +0 -1
- package/packages/requirement-compiler/package.json +0 -25
- package/packages/requirement-compiler/src/ambiguity-detector.ts +0 -302
- package/packages/requirement-compiler/src/classifier.ts +0 -145
- package/packages/requirement-compiler/src/compiler.ts +0 -328
- package/packages/requirement-compiler/src/extractor.ts +0 -155
- package/packages/requirement-compiler/src/index.ts +0 -36
- package/packages/requirement-compiler/src/normalizer.ts +0 -161
- package/packages/requirement-compiler/src/risk-detector.ts +0 -58
- package/packages/requirement-compiler/src/types.ts +0 -596
- package/packages/runtime/README.md +0 -3
- package/packages/runtime/dist/command-executor.d.ts +0 -129
- package/packages/runtime/dist/command-executor.d.ts.map +0 -1
- package/packages/runtime/dist/command-executor.js +0 -383
- package/packages/runtime/dist/command-executor.js.map +0 -1
- package/packages/runtime/dist/index.d.ts +0 -11
- package/packages/runtime/dist/index.d.ts.map +0 -1
- package/packages/runtime/dist/index.js +0 -11
- package/packages/runtime/dist/index.js.map +0 -1
- package/packages/runtime/dist/local-runtime-agent.d.ts +0 -111
- package/packages/runtime/dist/local-runtime-agent.d.ts.map +0 -1
- package/packages/runtime/dist/local-runtime-agent.js +0 -356
- package/packages/runtime/dist/local-runtime-agent.js.map +0 -1
- package/packages/runtime/dist/policy-engine.d.ts +0 -203
- package/packages/runtime/dist/policy-engine.d.ts.map +0 -1
- package/packages/runtime/dist/policy-engine.js +0 -592
- package/packages/runtime/dist/policy-engine.js.map +0 -1
- package/packages/runtime/dist/runtime-api.d.ts +0 -192
- package/packages/runtime/dist/runtime-api.d.ts.map +0 -1
- package/packages/runtime/dist/runtime-api.js +0 -507
- package/packages/runtime/dist/runtime-api.js.map +0 -1
- package/packages/runtime/dist/workspace-manager.d.ts +0 -162
- package/packages/runtime/dist/workspace-manager.d.ts.map +0 -1
- package/packages/runtime/dist/workspace-manager.js +0 -451
- package/packages/runtime/dist/workspace-manager.js.map +0 -1
- package/packages/runtime/package.json +0 -22
- package/packages/runtime/src/command-executor.ts +0 -523
- package/packages/runtime/src/index.ts +0 -11
- package/packages/runtime/src/local-runtime-agent.ts +0 -480
- package/packages/runtime/src/policy-engine.ts +0 -813
- package/packages/runtime/src/runtime-api.ts +0 -781
- package/packages/runtime/src/workspace-manager.ts +0 -591
- package/packages/scheduler/README.md +0 -3
- package/packages/scheduler/dist/index.d.ts +0 -9
- package/packages/scheduler/dist/index.d.ts.map +0 -1
- package/packages/scheduler/dist/index.js +0 -9
- package/packages/scheduler/dist/index.js.map +0 -1
- package/packages/scheduler/dist/scheduler.d.ts +0 -17
- package/packages/scheduler/dist/scheduler.d.ts.map +0 -1
- package/packages/scheduler/dist/scheduler.js +0 -41
- package/packages/scheduler/dist/scheduler.js.map +0 -1
- package/packages/scheduler/package.json +0 -22
- package/packages/scheduler/src/index.ts +0 -9
- package/packages/scheduler/src/scheduler.ts +0 -50
- package/packages/scheduler-adapter/README.md +0 -36
- package/packages/scheduler-adapter/dist/cron.d.ts +0 -21
- package/packages/scheduler-adapter/dist/cron.d.ts.map +0 -1
- package/packages/scheduler-adapter/dist/cron.js +0 -116
- package/packages/scheduler-adapter/dist/cron.js.map +0 -1
- package/packages/scheduler-adapter/dist/index.d.ts +0 -9
- package/packages/scheduler-adapter/dist/index.d.ts.map +0 -1
- package/packages/scheduler-adapter/dist/index.js +0 -8
- package/packages/scheduler-adapter/dist/index.js.map +0 -1
- package/packages/scheduler-adapter/dist/interface.d.ts +0 -61
- package/packages/scheduler-adapter/dist/interface.d.ts.map +0 -1
- package/packages/scheduler-adapter/dist/interface.js +0 -2
- package/packages/scheduler-adapter/dist/interface.js.map +0 -1
- package/packages/scheduler-adapter/dist/internal.d.ts +0 -30
- package/packages/scheduler-adapter/dist/internal.d.ts.map +0 -1
- package/packages/scheduler-adapter/dist/internal.js +0 -82
- package/packages/scheduler-adapter/dist/internal.js.map +0 -1
- package/packages/scheduler-adapter/dist/systemd.d.ts +0 -31
- package/packages/scheduler-adapter/dist/systemd.d.ts.map +0 -1
- package/packages/scheduler-adapter/dist/systemd.js +0 -203
- package/packages/scheduler-adapter/dist/systemd.js.map +0 -1
- package/packages/scheduler-adapter/package.json +0 -32
- package/packages/scheduler-adapter/src/cron.ts +0 -123
- package/packages/scheduler-adapter/src/index.ts +0 -9
- package/packages/scheduler-adapter/src/interface.ts +0 -61
- package/packages/scheduler-adapter/src/internal.ts +0 -99
- package/packages/scheduler-adapter/src/systemd.ts +0 -221
- package/packages/session/README.md +0 -273
- package/packages/session/dist/history.d.ts +0 -124
- package/packages/session/dist/history.d.ts.map +0 -1
- package/packages/session/dist/history.js +0 -286
- package/packages/session/dist/history.js.map +0 -1
- package/packages/session/dist/index.d.ts +0 -12
- package/packages/session/dist/index.d.ts.map +0 -1
- package/packages/session/dist/index.js +0 -17
- package/packages/session/dist/index.js.map +0 -1
- package/packages/session/dist/manager.d.ts +0 -99
- package/packages/session/dist/manager.d.ts.map +0 -1
- package/packages/session/dist/manager.js +0 -372
- package/packages/session/dist/manager.js.map +0 -1
- package/packages/session/dist/policy.d.ts +0 -113
- package/packages/session/dist/policy.d.ts.map +0 -1
- package/packages/session/dist/policy.js +0 -291
- package/packages/session/dist/policy.js.map +0 -1
- package/packages/session/dist/store.d.ts +0 -108
- package/packages/session/dist/store.d.ts.map +0 -1
- package/packages/session/dist/store.js +0 -274
- package/packages/session/dist/store.js.map +0 -1
- package/packages/session/dist/types.d.ts +0 -213
- package/packages/session/dist/types.d.ts.map +0 -1
- package/packages/session/dist/types.js +0 -11
- package/packages/session/dist/types.js.map +0 -1
- package/packages/session/package.json +0 -38
- package/packages/session/src/history.ts +0 -353
- package/packages/session/src/index.ts +0 -53
- package/packages/session/src/manager.ts +0 -484
- package/packages/session/src/policy.ts +0 -363
- package/packages/session/src/store.ts +0 -348
- package/packages/session/src/types.ts +0 -275
- package/packages/session-api/dist/api.d.ts.map +0 -1
- package/packages/session-api/dist/api.js.map +0 -1
- package/packages/session-api/dist/index.d.ts.map +0 -1
- package/packages/session-api/dist/index.js.map +0 -1
- package/packages/session-api/dist/src/api.d.ts +0 -83
- package/packages/session-api/dist/src/api.d.ts.map +0 -1
- package/packages/session-api/dist/src/api.js +0 -49
- package/packages/session-api/dist/src/api.js.map +0 -1
- package/packages/session-api/dist/src/index.d.ts +0 -2
- package/packages/session-api/dist/src/index.d.ts.map +0 -1
- package/packages/session-api/dist/src/index.js +0 -2
- package/packages/session-api/dist/src/index.js.map +0 -1
- package/packages/session-api/dist/src/types.d.ts +0 -22
- package/packages/session-api/dist/src/types.d.ts.map +0 -1
- package/packages/session-api/dist/src/types.js +0 -5
- package/packages/session-api/dist/src/types.js.map +0 -1
- package/packages/session-api/dist/types.d.ts.map +0 -1
- package/packages/session-api/dist/types.js.map +0 -1
- package/packages/session-api/package.json +0 -12
- package/packages/session-api/src/api.ts +0 -117
- package/packages/session-api/src/index.ts +0 -1
- package/packages/session-api/src/types.ts +0 -23
- package/packages/session-export/dist/exporter.d.ts.map +0 -1
- package/packages/session-export/dist/exporter.js.map +0 -1
- package/packages/session-export/dist/index.d.ts.map +0 -1
- package/packages/session-export/dist/index.js.map +0 -1
- package/packages/session-export/dist/src/exporter.d.ts +0 -28
- package/packages/session-export/dist/src/exporter.d.ts.map +0 -1
- package/packages/session-export/dist/src/exporter.js +0 -42
- package/packages/session-export/dist/src/exporter.js.map +0 -1
- package/packages/session-export/dist/src/index.d.ts +0 -2
- package/packages/session-export/dist/src/index.d.ts.map +0 -1
- package/packages/session-export/dist/src/index.js +0 -2
- package/packages/session-export/dist/src/index.js.map +0 -1
- package/packages/session-export/dist/src/types.d.ts +0 -20
- package/packages/session-export/dist/src/types.d.ts.map +0 -1
- package/packages/session-export/dist/src/types.js +0 -5
- package/packages/session-export/dist/src/types.js.map +0 -1
- package/packages/session-export/dist/types.d.ts.map +0 -1
- package/packages/session-export/dist/types.js.map +0 -1
- package/packages/session-export/package.json +0 -12
- package/packages/session-export/src/exporter.ts +0 -81
- package/packages/session-export/src/index.ts +0 -1
- package/packages/session-export/src/types.ts +0 -22
- package/packages/shared-context/README.md +0 -3
- package/packages/shared-context/dist/index.d.ts +0 -7
- package/packages/shared-context/dist/index.d.ts.map +0 -1
- package/packages/shared-context/dist/index.js +0 -7
- package/packages/shared-context/dist/index.js.map +0 -1
- package/packages/shared-context/dist/shared-context.d.ts +0 -12
- package/packages/shared-context/dist/shared-context.d.ts.map +0 -1
- package/packages/shared-context/dist/shared-context.js +0 -39
- package/packages/shared-context/dist/shared-context.js.map +0 -1
- package/packages/shared-context/package.json +0 -22
- package/packages/shared-context/src/index.ts +0 -7
- package/packages/shared-context/src/shared-context.ts +0 -42
- package/packages/skill-registry/dist/defaults.d.ts +0 -6
- package/packages/skill-registry/dist/defaults.d.ts.map +0 -1
- package/packages/skill-registry/dist/defaults.js +0 -136
- package/packages/skill-registry/dist/defaults.js.map +0 -1
- package/packages/skill-registry/dist/index.d.ts +0 -23
- package/packages/skill-registry/dist/index.d.ts.map +0 -1
- package/packages/skill-registry/dist/index.js +0 -25
- package/packages/skill-registry/dist/index.js.map +0 -1
- package/packages/skill-registry/dist/matching.d.ts +0 -26
- package/packages/skill-registry/dist/matching.d.ts.map +0 -1
- package/packages/skill-registry/dist/matching.js +0 -97
- package/packages/skill-registry/dist/matching.js.map +0 -1
- package/packages/skill-registry/dist/registry.d.ts +0 -65
- package/packages/skill-registry/dist/registry.d.ts.map +0 -1
- package/packages/skill-registry/dist/registry.js +0 -169
- package/packages/skill-registry/dist/registry.js.map +0 -1
- package/packages/skill-registry/dist/types.d.ts +0 -87
- package/packages/skill-registry/dist/types.d.ts.map +0 -1
- package/packages/skill-registry/dist/types.js +0 -5
- package/packages/skill-registry/dist/types.js.map +0 -1
- package/packages/skill-registry/package.json +0 -41
- package/packages/skill-registry/src/defaults.ts +0 -146
- package/packages/skill-registry/src/index.ts +0 -48
- package/packages/skill-registry/src/matching.ts +0 -118
- package/packages/skill-registry/src/registry.ts +0 -211
- package/packages/skill-registry/src/types.ts +0 -97
- package/packages/sprint-planner/dist/decomposer.d.ts +0 -13
- package/packages/sprint-planner/dist/decomposer.d.ts.map +0 -1
- package/packages/sprint-planner/dist/decomposer.js +0 -38
- package/packages/sprint-planner/dist/decomposer.js.map +0 -1
- package/packages/sprint-planner/dist/index.d.ts +0 -7
- package/packages/sprint-planner/dist/index.d.ts.map +0 -1
- package/packages/sprint-planner/dist/index.js +0 -6
- package/packages/sprint-planner/dist/index.js.map +0 -1
- package/packages/sprint-planner/dist/planner.d.ts +0 -9
- package/packages/sprint-planner/dist/planner.d.ts.map +0 -1
- package/packages/sprint-planner/dist/planner.js +0 -114
- package/packages/sprint-planner/dist/planner.js.map +0 -1
- package/packages/sprint-planner/dist/types.d.ts +0 -51
- package/packages/sprint-planner/dist/types.d.ts.map +0 -1
- package/packages/sprint-planner/dist/types.js +0 -5
- package/packages/sprint-planner/dist/types.js.map +0 -1
- package/packages/sprint-planner/package.json +0 -21
- package/packages/sprint-planner/src/decomposer.ts +0 -57
- package/packages/sprint-planner/src/index.ts +0 -16
- package/packages/sprint-planner/src/planner.ts +0 -150
- package/packages/sprint-planner/src/types.ts +0 -59
- package/packages/subscription-engine/dist/engine.d.ts.map +0 -1
- package/packages/subscription-engine/dist/engine.js.map +0 -1
- package/packages/subscription-engine/dist/index.d.ts.map +0 -1
- package/packages/subscription-engine/dist/index.js.map +0 -1
- package/packages/subscription-engine/dist/src/engine.d.ts +0 -13
- package/packages/subscription-engine/dist/src/engine.d.ts.map +0 -1
- package/packages/subscription-engine/dist/src/engine.js +0 -40
- package/packages/subscription-engine/dist/src/engine.js.map +0 -1
- package/packages/subscription-engine/dist/src/index.d.ts +0 -2
- package/packages/subscription-engine/dist/src/index.d.ts.map +0 -1
- package/packages/subscription-engine/dist/src/index.js +0 -2
- package/packages/subscription-engine/dist/src/index.js.map +0 -1
- package/packages/subscription-engine/dist/src/subscriptions.d.ts +0 -19
- package/packages/subscription-engine/dist/src/subscriptions.d.ts.map +0 -1
- package/packages/subscription-engine/dist/src/subscriptions.js +0 -39
- package/packages/subscription-engine/dist/src/subscriptions.js.map +0 -1
- package/packages/subscription-engine/dist/src/types.d.ts +0 -24
- package/packages/subscription-engine/dist/src/types.d.ts.map +0 -1
- package/packages/subscription-engine/dist/src/types.js +0 -5
- package/packages/subscription-engine/dist/src/types.js.map +0 -1
- package/packages/subscription-engine/dist/subscriptions.d.ts.map +0 -1
- package/packages/subscription-engine/dist/subscriptions.js.map +0 -1
- package/packages/subscription-engine/dist/types.d.ts.map +0 -1
- package/packages/subscription-engine/dist/types.js.map +0 -1
- package/packages/subscription-engine/package.json +0 -12
- package/packages/subscription-engine/src/engine.ts +0 -55
- package/packages/subscription-engine/src/index.ts +0 -6
- package/packages/subscription-engine/src/subscriptions.ts +0 -55
- package/packages/subscription-engine/src/types.ts +0 -27
- package/packages/task-compiler/dist/command-policy.d.ts +0 -18
- package/packages/task-compiler/dist/command-policy.d.ts.map +0 -1
- package/packages/task-compiler/dist/command-policy.js +0 -164
- package/packages/task-compiler/dist/command-policy.js.map +0 -1
- package/packages/task-compiler/dist/compiler.d.ts +0 -22
- package/packages/task-compiler/dist/compiler.d.ts.map +0 -1
- package/packages/task-compiler/dist/compiler.js +0 -66
- package/packages/task-compiler/dist/compiler.js.map +0 -1
- package/packages/task-compiler/dist/decompose.d.ts +0 -16
- package/packages/task-compiler/dist/decompose.d.ts.map +0 -1
- package/packages/task-compiler/dist/decompose.js +0 -222
- package/packages/task-compiler/dist/decompose.js.map +0 -1
- package/packages/task-compiler/dist/file-scope.d.ts +0 -17
- package/packages/task-compiler/dist/file-scope.d.ts.map +0 -1
- package/packages/task-compiler/dist/file-scope.js +0 -188
- package/packages/task-compiler/dist/file-scope.js.map +0 -1
- package/packages/task-compiler/dist/graph.d.ts +0 -19
- package/packages/task-compiler/dist/graph.d.ts.map +0 -1
- package/packages/task-compiler/dist/graph.js +0 -122
- package/packages/task-compiler/dist/graph.js.map +0 -1
- package/packages/task-compiler/dist/index.d.ts +0 -19
- package/packages/task-compiler/dist/index.d.ts.map +0 -1
- package/packages/task-compiler/dist/index.js +0 -20
- package/packages/task-compiler/dist/index.js.map +0 -1
- package/packages/task-compiler/dist/types.d.ts +0 -138
- package/packages/task-compiler/dist/types.d.ts.map +0 -1
- package/packages/task-compiler/dist/types.js +0 -75
- package/packages/task-compiler/dist/types.js.map +0 -1
- package/packages/task-compiler/dist/validate.d.ts +0 -29
- package/packages/task-compiler/dist/validate.d.ts.map +0 -1
- package/packages/task-compiler/dist/validate.js +0 -168
- package/packages/task-compiler/dist/validate.js.map +0 -1
- package/packages/task-compiler/dist/verification.d.ts +0 -13
- package/packages/task-compiler/dist/verification.d.ts.map +0 -1
- package/packages/task-compiler/dist/verification.js +0 -213
- package/packages/task-compiler/dist/verification.js.map +0 -1
- package/packages/task-compiler/package.json +0 -43
- package/packages/task-compiler/src/command-policy.ts +0 -193
- package/packages/task-compiler/src/compiler.ts +0 -114
- package/packages/task-compiler/src/decompose.ts +0 -265
- package/packages/task-compiler/src/file-scope.ts +0 -240
- package/packages/task-compiler/src/graph.ts +0 -144
- package/packages/task-compiler/src/index.ts +0 -38
- package/packages/task-compiler/src/types.ts +0 -225
- package/packages/task-compiler/src/validate.ts +0 -218
- package/packages/task-compiler/src/verification.ts +0 -248
- package/packages/tencentdb-memory/package.json +0 -23
- package/packages/tencentdb-memory/src/client.ts +0 -130
- package/packages/tencentdb-memory/src/index.ts +0 -32
- package/packages/tencentdb-memory/src/loader.ts +0 -150
- package/packages/tencentdb-memory/src/mcp-tools.ts +0 -213
- package/packages/tencentdb-memory/src/types.ts +0 -101
- package/packages/tencentdb-sync/dist/cli.d.ts +0 -35
- package/packages/tencentdb-sync/dist/cli.d.ts.map +0 -1
- package/packages/tencentdb-sync/dist/cli.js +0 -335
- package/packages/tencentdb-sync/dist/cli.js.map +0 -1
- package/packages/tencentdb-sync/dist/client.d.ts +0 -141
- package/packages/tencentdb-sync/dist/client.d.ts.map +0 -1
- package/packages/tencentdb-sync/dist/client.js +0 -166
- package/packages/tencentdb-sync/dist/client.js.map +0 -1
- package/packages/tencentdb-sync/dist/config.d.ts +0 -32
- package/packages/tencentdb-sync/dist/config.d.ts.map +0 -1
- package/packages/tencentdb-sync/dist/config.js +0 -102
- package/packages/tencentdb-sync/dist/config.js.map +0 -1
- package/packages/tencentdb-sync/dist/index.d.ts +0 -9
- package/packages/tencentdb-sync/dist/index.d.ts.map +0 -1
- package/packages/tencentdb-sync/dist/index.js +0 -8
- package/packages/tencentdb-sync/dist/index.js.map +0 -1
- package/packages/tencentdb-sync/package.json +0 -26
- package/packages/tencentdb-sync/src/cli.ts +0 -399
- package/packages/tencentdb-sync/src/client.ts +0 -268
- package/packages/tencentdb-sync/src/config.ts +0 -139
- package/packages/tencentdb-sync/src/index.ts +0 -15
- package/packages/test-data-generator/README.md +0 -365
- package/packages/test-data-generator/dist/faker-adapter.d.ts +0 -175
- package/packages/test-data-generator/dist/faker-adapter.d.ts.map +0 -1
- package/packages/test-data-generator/dist/faker-adapter.js +0 -580
- package/packages/test-data-generator/dist/faker-adapter.js.map +0 -1
- package/packages/test-data-generator/dist/generator.d.ts +0 -67
- package/packages/test-data-generator/dist/generator.d.ts.map +0 -1
- package/packages/test-data-generator/dist/generator.js +0 -357
- package/packages/test-data-generator/dist/generator.js.map +0 -1
- package/packages/test-data-generator/dist/index.d.ts +0 -9
- package/packages/test-data-generator/dist/index.d.ts.map +0 -1
- package/packages/test-data-generator/dist/index.js +0 -12
- package/packages/test-data-generator/dist/index.js.map +0 -1
- package/packages/test-data-generator/dist/types.d.ts +0 -306
- package/packages/test-data-generator/dist/types.d.ts.map +0 -1
- package/packages/test-data-generator/dist/types.js +0 -11
- package/packages/test-data-generator/dist/types.js.map +0 -1
- package/packages/test-data-generator/package.json +0 -39
- package/packages/test-data-generator/src/faker-adapter.ts +0 -657
- package/packages/test-data-generator/src/generator.ts +0 -461
- package/packages/test-data-generator/src/index.ts +0 -48
- package/packages/test-data-generator/src/types.ts +0 -421
- package/packages/test-generator/dist/generator.d.ts +0 -13
- package/packages/test-generator/dist/generator.d.ts.map +0 -1
- package/packages/test-generator/dist/generator.js +0 -116
- package/packages/test-generator/dist/generator.js.map +0 -1
- package/packages/test-generator/dist/index.d.ts +0 -6
- package/packages/test-generator/dist/index.d.ts.map +0 -1
- package/packages/test-generator/dist/index.js +0 -5
- package/packages/test-generator/dist/index.js.map +0 -1
- package/packages/test-generator/dist/types.d.ts +0 -34
- package/packages/test-generator/dist/types.d.ts.map +0 -1
- package/packages/test-generator/dist/types.js +0 -5
- package/packages/test-generator/dist/types.js.map +0 -1
- package/packages/test-generator/package.json +0 -21
- package/packages/test-generator/src/generator.ts +0 -144
- package/packages/test-generator/src/index.ts +0 -11
- package/packages/test-generator/src/types.ts +0 -39
- package/packages/todo-bd-sync/README.md +0 -71
- package/packages/token-optimizer/dist/index.d.ts +0 -6
- package/packages/token-optimizer/dist/index.d.ts.map +0 -1
- package/packages/token-optimizer/dist/index.js +0 -5
- package/packages/token-optimizer/dist/index.js.map +0 -1
- package/packages/token-optimizer/dist/optimizer.d.ts +0 -29
- package/packages/token-optimizer/dist/optimizer.d.ts.map +0 -1
- package/packages/token-optimizer/dist/optimizer.js +0 -106
- package/packages/token-optimizer/dist/optimizer.js.map +0 -1
- package/packages/token-optimizer/dist/types.d.ts +0 -36
- package/packages/token-optimizer/dist/types.d.ts.map +0 -1
- package/packages/token-optimizer/dist/types.js +0 -5
- package/packages/token-optimizer/dist/types.js.map +0 -1
- package/packages/token-optimizer/package.json +0 -21
- package/packages/token-optimizer/src/index.ts +0 -15
- package/packages/token-optimizer/src/optimizer.ts +0 -150
- package/packages/token-optimizer/src/types.ts +0 -47
- package/packages/tui/README.md +0 -3
- package/packages/voice-api/dist/index.d.ts +0 -14
- package/packages/voice-api/dist/index.js +0 -12
- package/packages/voice-api/dist/line.d.ts +0 -101
- package/packages/voice-api/dist/line.js +0 -150
- package/packages/voice-api/dist/provider.d.ts +0 -23
- package/packages/voice-api/dist/provider.js +0 -154
- package/packages/voice-api/dist/telegram.d.ts +0 -74
- package/packages/voice-api/dist/telegram.js +0 -126
- package/packages/voice-api/dist/transcriber.d.ts +0 -19
- package/packages/voice-api/dist/transcriber.js +0 -98
- package/packages/voice-api/dist/types.d.ts +0 -75
- package/packages/voice-api/dist/types.js +0 -4
- package/packages/voice-api/package.json +0 -24
- package/packages/voice-api/src/index.ts +0 -15
- package/packages/voice-api/src/line.ts +0 -232
- package/packages/voice-api/src/provider.ts +0 -186
- package/packages/voice-api/src/telegram.ts +0 -199
- package/packages/voice-api/src/transcriber.ts +0 -112
- package/packages/voice-api/src/types.ts +0 -79
- package/packages/workflow-events/dist/events.d.ts.map +0 -1
- package/packages/workflow-events/dist/events.js.map +0 -1
- package/packages/workflow-events/dist/index.d.ts.map +0 -1
- package/packages/workflow-events/dist/index.js.map +0 -1
- package/packages/workflow-events/dist/pipeline.d.ts.map +0 -1
- package/packages/workflow-events/dist/pipeline.js.map +0 -1
- package/packages/workflow-events/dist/src/events.d.ts +0 -38
- package/packages/workflow-events/dist/src/events.d.ts.map +0 -1
- package/packages/workflow-events/dist/src/events.js +0 -55
- package/packages/workflow-events/dist/src/events.js.map +0 -1
- package/packages/workflow-events/dist/src/index.d.ts +0 -2
- package/packages/workflow-events/dist/src/index.d.ts.map +0 -1
- package/packages/workflow-events/dist/src/index.js +0 -2
- package/packages/workflow-events/dist/src/index.js.map +0 -1
- package/packages/workflow-events/dist/src/pipeline.d.ts +0 -21
- package/packages/workflow-events/dist/src/pipeline.d.ts.map +0 -1
- package/packages/workflow-events/dist/src/pipeline.js +0 -36
- package/packages/workflow-events/dist/src/pipeline.js.map +0 -1
- package/packages/workflow-events/dist/src/types.d.ts +0 -110
- package/packages/workflow-events/dist/src/types.d.ts.map +0 -1
- package/packages/workflow-events/dist/src/types.js +0 -5
- package/packages/workflow-events/dist/src/types.js.map +0 -1
- package/packages/workflow-events/dist/types.d.ts.map +0 -1
- package/packages/workflow-events/dist/types.js.map +0 -1
- package/packages/workflow-events/package.json +0 -12
- package/packages/workflow-events/src/events.ts +0 -86
- package/packages/workflow-events/src/index.ts +0 -19
- package/packages/workflow-events/src/pipeline.ts +0 -41
- package/packages/workflow-events/src/types.ts +0 -139
- package/packages/workspace-scanner/dist/src/detect.d.ts +0 -3
- package/packages/workspace-scanner/dist/src/detect.d.ts.map +0 -1
- package/packages/workspace-scanner/dist/src/detect.js +0 -60
- package/packages/workspace-scanner/dist/src/detect.js.map +0 -1
- package/packages/workspace-scanner/dist/src/git.d.ts +0 -7
- package/packages/workspace-scanner/dist/src/git.d.ts.map +0 -1
- package/packages/workspace-scanner/dist/src/git.js +0 -75
- package/packages/workspace-scanner/dist/src/git.js.map +0 -1
- package/packages/workspace-scanner/dist/src/index.d.ts +0 -5
- package/packages/workspace-scanner/dist/src/index.d.ts.map +0 -1
- package/packages/workspace-scanner/dist/src/index.js +0 -4
- package/packages/workspace-scanner/dist/src/index.js.map +0 -1
- package/packages/workspace-scanner/dist/src/scanner.d.ts +0 -11
- package/packages/workspace-scanner/dist/src/scanner.d.ts.map +0 -1
- package/packages/workspace-scanner/dist/src/scanner.js +0 -59
- package/packages/workspace-scanner/dist/src/scanner.js.map +0 -1
- package/packages/workspace-scanner/dist/src/types.d.ts +0 -35
- package/packages/workspace-scanner/dist/src/types.d.ts.map +0 -1
- package/packages/workspace-scanner/dist/src/types.js +0 -5
- package/packages/workspace-scanner/dist/src/types.js.map +0 -1
- package/packages/workspace-scanner/package.json +0 -12
- package/packages/workspace-scanner/src/detect.ts +0 -77
- package/packages/workspace-scanner/src/git.ts +0 -83
- package/packages/workspace-scanner/src/index.ts +0 -9
- package/packages/workspace-scanner/src/scanner.ts +0 -73
- package/packages/workspace-scanner/src/types.ts +0 -48
- package/packages/worktree/README.md +0 -3
- package/packages/worktree/dist/index.d.ts +0 -7
- package/packages/worktree/dist/index.d.ts.map +0 -1
- package/packages/worktree/dist/index.js +0 -7
- package/packages/worktree/dist/index.js.map +0 -1
- package/packages/worktree/dist/worktree.d.ts +0 -119
- package/packages/worktree/dist/worktree.d.ts.map +0 -1
- package/packages/worktree/dist/worktree.js +0 -252
- package/packages/worktree/dist/worktree.js.map +0 -1
- package/packages/worktree/package.json +0 -22
- package/packages/worktree/src/index.ts +0 -7
- package/packages/worktree/src/worktree.ts +0 -331
- package/scripts/build-packages.ts +0 -162
- package/scripts/check-sensitive-terms.d.mts +0 -116
- package/scripts/check-sensitive-terms.mjs +0 -772
- package/scripts/check-version-sync.ts +0 -80
- package/scripts/convert-skills-to-okf.ts +0 -171
- package/scripts/debug-codex-integration.ts +0 -203
- package/scripts/gist-auth.ts +0 -64
- package/scripts/guard-scan.sh +0 -102
- package/scripts/lib/runtime-imports.ts +0 -449
- package/scripts/npm-unpublish-with-approval.sh +0 -268
- package/scripts/npm-verify-removal.mjs +0 -302
- package/scripts/r2-storage.ts +0 -218
- package/scripts/relay-client.ts +0 -204
- package/scripts/release/actions-monitor.ts +0 -357
- package/scripts/release/adapters/base.ts +0 -95
- package/scripts/release/adapters/detector.ts +0 -181
- package/scripts/release/adapters/node-workspace.ts +0 -228
- package/scripts/release/adapters/python.ts +0 -236
- package/scripts/release/adapters/rust.ts +0 -129
- package/scripts/release/adapters/tauri.ts +0 -298
- package/scripts/release/orchestrator.ts +0 -284
- package/scripts/release/tsconfig.json +0 -11
- package/scripts/release-all.ts +0 -213
- package/scripts/run-e2e-scripts.mjs +0 -74
- package/scripts/run-e2e-test.ts +0 -214
- package/scripts/run-langchain-tests.mjs +0 -169
- package/scripts/run-node-tests.mjs +0 -196
- package/scripts/run-root-tests.mjs +0 -207
- package/scripts/scan-secrets.sh +0 -68
- package/scripts/sensitive-terms-selftest.sh +0 -127
- package/scripts/skills-sync.ts +0 -487
- package/scripts/sync-callback-queue.ts +0 -58
- package/scripts/sync-keys-from-pi.ts +0 -188
- package/scripts/telegram-callback-processor.ts +0 -196
- package/scripts/telegram-mobile-bot.ts +0 -439
- package/scripts/telegram-mobile-integration.ts +0 -480
- package/scripts/telegram-webhook-server.ts +0 -473
- package/scripts/test-codex-session.ts +0 -23
- package/scripts/test-honcho.ts +0 -58
- package/scripts/test-openai.ts +0 -14
- package/scripts/test-r2-telegram.ts +0 -108
- package/scripts/test-r2.ts +0 -63
- package/scripts/test-telegram-approval.ts +0 -68
- package/scripts/test-telegram.ts +0 -74
- package/scripts/tsconfig.json +0 -12
- package/scripts/typecheck-packages.mjs +0 -235
- package/scripts/unified-webhook-server.ts +0 -716
- package/scripts/validation-run.ts +0 -191
- package/scripts/verify-package-contents.ts +0 -845
- package/scripts/voice-api-example.ts +0 -115
- package/scripts/ws-server.ts +0 -87
|
@@ -1,845 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bun
|
|
2
|
-
/**
|
|
3
|
-
* Verify that the published `pi-harness-runtime` package is a SINGLE, self
|
|
4
|
-
* contained app.
|
|
5
|
-
*
|
|
6
|
-
* The user installs one package:
|
|
7
|
-
*
|
|
8
|
-
* npm install pi-harness-runtime
|
|
9
|
-
*
|
|
10
|
-
* and must get every internal app with it. The internal packages are not
|
|
11
|
-
* published on their own, so the runtime reaches them through relative paths
|
|
12
|
-
* into `packages/<name>/...`. That only works when:
|
|
13
|
-
*
|
|
14
|
-
* 1. every internal package was built (its `dist` exists), and
|
|
15
|
-
* 2. every VALUE import of the shipped runtime resolves to a file that the
|
|
16
|
-
* build produces, and
|
|
17
|
-
* 3. the tarball that npm publishes actually contains those files.
|
|
18
|
-
*
|
|
19
|
-
* A type-only import is erased at runtime, so it may keep pointing at the
|
|
20
|
-
* source. A value import may not: `packages/<pkg>/src/<file>.js` only exists
|
|
21
|
-
* when somebody compiled the package in place, and a clean build emits into
|
|
22
|
-
* `dist/`. The published app would then fail to import it.
|
|
23
|
-
*
|
|
24
|
-
* Usage:
|
|
25
|
-
* bun scripts/verify-package-contents.ts # file checks
|
|
26
|
-
* bun scripts/verify-package-contents.ts --pack # also inspect the tarball
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
30
|
-
import { execFile, spawnSync } from "node:child_process";
|
|
31
|
-
import { builtinModules } from "node:module";
|
|
32
|
-
import { join, resolve, dirname, relative } from "node:path";
|
|
33
|
-
import { fileURLToPath } from "node:url";
|
|
34
|
-
import {
|
|
35
|
-
extractBareImports,
|
|
36
|
-
extractRelativeValueImports,
|
|
37
|
-
extractStaticBareImports,
|
|
38
|
-
findRequireCalls,
|
|
39
|
-
hasLocalRequire,
|
|
40
|
-
packageNameOf,
|
|
41
|
-
resolveRelativeImport,
|
|
42
|
-
} from "./lib/runtime-imports.js";
|
|
43
|
-
import {
|
|
44
|
-
readTermsFile,
|
|
45
|
-
redactTerms,
|
|
46
|
-
scanText,
|
|
47
|
-
termsFromEnv,
|
|
48
|
-
} from "./check-sensitive-terms.mjs";
|
|
49
|
-
|
|
50
|
-
const ROOT = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
|
51
|
-
const verifyTarball = process.argv.includes("--pack");
|
|
52
|
-
|
|
53
|
-
interface Problem {
|
|
54
|
-
kind:
|
|
55
|
-
| "missing-dist"
|
|
56
|
-
| "missing-import"
|
|
57
|
-
| "broken-import"
|
|
58
|
-
| "missing-tarball"
|
|
59
|
-
| "missing-package"
|
|
60
|
-
| "forbidden-path"
|
|
61
|
-
| "missing-plugin"
|
|
62
|
-
| "sensitive-content"
|
|
63
|
-
| "undeclared-dependency"
|
|
64
|
-
| "esm-require";
|
|
65
|
-
detail: string;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
const problems: Problem[] = [];
|
|
69
|
-
/** Every runtime import that must resolve: "file -> specifier". */
|
|
70
|
-
const runtimeImports = new Map<string, { file: string; specifier: string; target: string }>();
|
|
71
|
-
|
|
72
|
-
/** Every directory whose sources are part of the published tarball. */
|
|
73
|
-
const SHIPPED_SOURCE_DIRS = ["harness", "scripts", "packages"];
|
|
74
|
-
|
|
75
|
-
const SHIPPED_ROOT_FILES = [
|
|
76
|
-
"index.ts",
|
|
77
|
-
"status-parsers.ts",
|
|
78
|
-
"tracker.ts",
|
|
79
|
-
"windows.ts",
|
|
80
|
-
];
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Paths that must never reach the published package.
|
|
84
|
-
*
|
|
85
|
-
* `.pi/` holds per-machine extension state and the user's private skills.
|
|
86
|
-
* `.pi-lens/` holds a local tool policy directory. The skill payload
|
|
87
|
-
* directories hold skill content: skills live in the user's own Qdrant
|
|
88
|
-
* collection and in the installation-local skill store, never in the
|
|
89
|
-
* published repository.
|
|
90
|
-
*
|
|
91
|
-
* `packages/skills/` is NOT in this list: that package is the runtime
|
|
92
|
-
* implementation that loads, queries and indexes skills.
|
|
93
|
-
*/
|
|
94
|
-
const FORBIDDEN_PACKAGE_PREFIXES = [
|
|
95
|
-
".pi/",
|
|
96
|
-
".pi-lens/",
|
|
97
|
-
".agents/skills/",
|
|
98
|
-
".claude/skills/",
|
|
99
|
-
];
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* The one skill directory the package owns and publishes.
|
|
103
|
-
*
|
|
104
|
-
* `skills/harness-runtime/` is the skill of the package itself: it tells an
|
|
105
|
-
* installed agent what the harness is. It is public content, written for
|
|
106
|
-
* every user of the package, so it ships.
|
|
107
|
-
*
|
|
108
|
-
* Every other directory under `skills/` belongs to a user. Such a skill
|
|
109
|
-
* lives in that user's own Qdrant collection and in their installation-local
|
|
110
|
-
* skill store, and it must never reach the published tarball.
|
|
111
|
-
*/
|
|
112
|
-
const PACKAGE_SKILL_DIR = "skills/harness-runtime/";
|
|
113
|
-
|
|
114
|
-
/** The files the published skill directory must contain. */
|
|
115
|
-
const REQUIRED_SKILL_FILES = ["skills/harness-runtime/SKILL.md"];
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Whether a path is a skill payload that the package must not publish.
|
|
119
|
-
*
|
|
120
|
-
* A path under `skills/` is forbidden unless it belongs to the package's
|
|
121
|
-
* own skill directory.
|
|
122
|
-
*/
|
|
123
|
-
function isForbiddenSkillPath(path: string): boolean {
|
|
124
|
-
if (!path.startsWith("skills/")) return false;
|
|
125
|
-
return !path.startsWith(PACKAGE_SKILL_DIR);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/** The plugin directory that ships with the package. */
|
|
129
|
-
const PLUGIN_DIR = "plugins";
|
|
130
|
-
|
|
131
|
-
/** The files a shipped herdr plugin must contain. */
|
|
132
|
-
const REQUIRED_PLUGIN_FILES = [
|
|
133
|
-
"plugins/herdr-clipboard/herdr-plugin.toml",
|
|
134
|
-
"plugins/herdr-clipboard/paste.sh",
|
|
135
|
-
"plugins/herdr-clipboard/start-bridge.sh",
|
|
136
|
-
"plugins/herdr-clipboard/tmux-watch.sh",
|
|
137
|
-
];
|
|
138
|
-
|
|
139
|
-
function listFiles(dir: string, filter: (file: string) => boolean): string[] {
|
|
140
|
-
if (!existsSync(dir)) return [];
|
|
141
|
-
const out: string[] = [];
|
|
142
|
-
for (const entry of readdirSync(dir)) {
|
|
143
|
-
const full = join(dir, entry);
|
|
144
|
-
let isDir = false;
|
|
145
|
-
try {
|
|
146
|
-
isDir = statSync(full).isDirectory();
|
|
147
|
-
} catch {
|
|
148
|
-
continue;
|
|
149
|
-
}
|
|
150
|
-
if (isDir) {
|
|
151
|
-
// node_modules and the build output of a package are not sources.
|
|
152
|
-
if (entry === "node_modules" || entry === "dist" || entry === ".git") continue;
|
|
153
|
-
out.push(...listFiles(full, filter));
|
|
154
|
-
} else if (filter(full)) {
|
|
155
|
-
out.push(full);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
return out;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
function isSourceFile(file: string): boolean {
|
|
162
|
-
return /\.(ts|mts|cts|mjs|js)$/.test(file) && !file.endsWith(".d.ts");
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
/** Every source file that ends up in the published package. */
|
|
166
|
-
function shippedSourceFiles(): string[] {
|
|
167
|
-
const files: string[] = [];
|
|
168
|
-
for (const name of SHIPPED_ROOT_FILES) {
|
|
169
|
-
const full = join(ROOT, name);
|
|
170
|
-
if (existsSync(full)) files.push(full);
|
|
171
|
-
}
|
|
172
|
-
for (const dir of SHIPPED_SOURCE_DIRS) {
|
|
173
|
-
files.push(...listFiles(join(ROOT, dir), isSourceFile));
|
|
174
|
-
}
|
|
175
|
-
return files;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
// A value import: a static import without the `type` keyword, a dynamic
|
|
179
|
-
// import or a side effect import.
|
|
180
|
-
const STATIC_IMPORT = /import\s+(type\s+)?[^;]*?from\s*["']([^"']+)["']/g;
|
|
181
|
-
const DYNAMIC_IMPORT = /import\s*\(\s*["']([^"']+)["']\s*\)/g;
|
|
182
|
-
const SIDE_EFFECT_IMPORT = /(?:^|\n)\s*import\s*["']([^"']+)["']/g;
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* The published package must not carry a skill payload or a local state
|
|
186
|
-
* directory, and it must carry the plugin that the postinstall copies.
|
|
187
|
-
*
|
|
188
|
-
* The check runs on the git index, because that is what the release commits
|
|
189
|
-
* and what npm packs from.
|
|
190
|
-
*/
|
|
191
|
-
function checkPackageLayout(): void {
|
|
192
|
-
const tracked = spawnSync("git", ["ls-files"], {
|
|
193
|
-
cwd: ROOT,
|
|
194
|
-
encoding: "utf8",
|
|
195
|
-
});
|
|
196
|
-
const files =
|
|
197
|
-
tracked.status === 0 ? tracked.stdout.split("\n").filter(Boolean) : [];
|
|
198
|
-
|
|
199
|
-
for (const file of files) {
|
|
200
|
-
const posix = file.split("\\").join("/");
|
|
201
|
-
for (const prefix of FORBIDDEN_PACKAGE_PREFIXES) {
|
|
202
|
-
if (posix.startsWith(prefix)) {
|
|
203
|
-
problems.push({
|
|
204
|
-
kind: "forbidden-path",
|
|
205
|
-
detail: `${posix} is tracked - ${prefix} must not be committed`,
|
|
206
|
-
});
|
|
207
|
-
break;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
if (isForbiddenSkillPath(posix)) {
|
|
211
|
-
problems.push({
|
|
212
|
-
kind: "forbidden-path",
|
|
213
|
-
detail: `${posix} is tracked - only ${PACKAGE_SKILL_DIR} may be committed`,
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
for (const required of REQUIRED_PLUGIN_FILES) {
|
|
219
|
-
if (!files.includes(required)) {
|
|
220
|
-
problems.push({
|
|
221
|
-
kind: "missing-plugin",
|
|
222
|
-
detail: `${required} is not tracked - the plugin would not ship`,
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
for (const required of REQUIRED_SKILL_FILES) {
|
|
228
|
-
if (!files.includes(required)) {
|
|
229
|
-
problems.push({
|
|
230
|
-
kind: "missing-plugin",
|
|
231
|
-
detail: `${required} is not tracked - the package would ship no skill`,
|
|
232
|
-
});
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* The terms of the list, and where they came from.
|
|
239
|
-
*
|
|
240
|
-
* The list is the repository secret, or the local file. A run without a
|
|
241
|
-
* list scans nothing - and says so, because "no name was found" and
|
|
242
|
-
* "nothing was looked at" are not the same statement.
|
|
243
|
-
*/
|
|
244
|
-
function sensitiveTerms(): { terms: string[]; source: string } {
|
|
245
|
-
const fromEnv = termsFromEnv(process.env);
|
|
246
|
-
if (fromEnv.length > 0) return { terms: fromEnv, source: "the environment" };
|
|
247
|
-
const file = process.env.PI_SENSITIVE_TERMS_FILE;
|
|
248
|
-
if (file) {
|
|
249
|
-
const terms = readTermsFile(file);
|
|
250
|
-
if (terms.length > 0) return { terms, source: file };
|
|
251
|
-
}
|
|
252
|
-
return { terms: [], source: "none" };
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* The published files must not hold a client name.
|
|
257
|
-
*
|
|
258
|
-
* The other checks look at the paths of the published files. This one
|
|
259
|
-
* looks at what is inside them: a name in a comment, in a doc or in a
|
|
260
|
-
* string is published like any other byte, and npm keeps a published
|
|
261
|
-
* version for a long time - long enough that the removal of one becomes
|
|
262
|
-
* a support ticket.
|
|
263
|
-
*
|
|
264
|
-
* The report names the file and the line and never the term, and the
|
|
265
|
-
* path is printed with the terms hidden because a path is often the
|
|
266
|
-
* place the term is in.
|
|
267
|
-
*/
|
|
268
|
-
function checkSensitiveContent(files: string[]): void {
|
|
269
|
-
const { terms, source } = sensitiveTerms();
|
|
270
|
-
if (terms.length === 0) {
|
|
271
|
-
// Nothing was checked. The release workflow runs this check on
|
|
272
|
-
// its own, with the secret, and it fails closed.
|
|
273
|
-
console.log(
|
|
274
|
-
"[verify-package-contents] the sensitive content scan was skipped: no term list is configured",
|
|
275
|
-
);
|
|
276
|
-
return;
|
|
277
|
-
}
|
|
278
|
-
// A file that cannot be read is a file that was not checked. The
|
|
279
|
-
// check fails closed for the same reason it fails closed on a
|
|
280
|
-
// missing term list: "nothing was found" must not mean "nothing
|
|
281
|
-
// was looked at".
|
|
282
|
-
let unreadable = 0;
|
|
283
|
-
for (const file of files) {
|
|
284
|
-
let content: string;
|
|
285
|
-
try {
|
|
286
|
-
content = readFileSync(join(ROOT, file), "utf8");
|
|
287
|
-
} catch {
|
|
288
|
-
unreadable++;
|
|
289
|
-
continue;
|
|
290
|
-
}
|
|
291
|
-
for (const found of scanText(content, file, terms)) {
|
|
292
|
-
problems.push({
|
|
293
|
-
kind: "sensitive-content",
|
|
294
|
-
detail: `${redactTerms(found.path, terms)}:${found.line} holds a term from the sensitive list`,
|
|
295
|
-
});
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
console.log(
|
|
299
|
-
`[verify-package-contents] the sensitive content scan looked at ${files.length - unreadable} published file(s) with the list of ${source}`,
|
|
300
|
-
);
|
|
301
|
-
if (unreadable > 0) {
|
|
302
|
-
problems.push({
|
|
303
|
-
kind: "sensitive-content",
|
|
304
|
-
detail: `${unreadable} published file(s) could not be read, so the sensitive content scan did not cover them`,
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* The postinstall copies the plugin from the package root.
|
|
311
|
-
*
|
|
312
|
-
* When the source directory moved to `plugins/` the copy script kept its
|
|
313
|
-
* old path, and the plugin silently stopped being installed.
|
|
314
|
-
*/
|
|
315
|
-
function checkPluginCopySource(): void {
|
|
316
|
-
const script = join(ROOT, "scripts", "copy-plugins.js");
|
|
317
|
-
if (!existsSync(script)) {
|
|
318
|
-
problems.push({
|
|
319
|
-
kind: "missing-plugin",
|
|
320
|
-
detail: "scripts/copy-plugins.js is missing - the plugin would not be installed",
|
|
321
|
-
});
|
|
322
|
-
return;
|
|
323
|
-
}
|
|
324
|
-
const source = readFileSync(script, "utf8");
|
|
325
|
-
if (!source.includes(`"${PLUGIN_DIR}"`)) {
|
|
326
|
-
problems.push({
|
|
327
|
-
kind: "missing-plugin",
|
|
328
|
-
detail: `scripts/copy-plugins.js does not read from the ${PLUGIN_DIR}/ directory`,
|
|
329
|
-
});
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
function checkImports(): void {
|
|
334
|
-
for (const file of shippedSourceFiles()) {
|
|
335
|
-
const content = readFileSync(file, "utf8");
|
|
336
|
-
const consider = (specifier: string) => {
|
|
337
|
-
if (!specifier.startsWith(".")) return;
|
|
338
|
-
if (!specifier.includes("packages/")) return;
|
|
339
|
-
const target = resolve(dirname(file), specifier);
|
|
340
|
-
const key = `${file} -> ${specifier}`;
|
|
341
|
-
runtimeImports.set(key, { file, specifier, target });
|
|
342
|
-
if (!existsSync(target)) {
|
|
343
|
-
problems.push({
|
|
344
|
-
kind: "missing-import",
|
|
345
|
-
detail: `${relative(ROOT, file)} imports ${specifier} but ${
|
|
346
|
-
relative(ROOT, target)
|
|
347
|
-
} does not exist`,
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
|
-
};
|
|
351
|
-
|
|
352
|
-
for (const match of content.matchAll(STATIC_IMPORT)) {
|
|
353
|
-
if (match[1]) continue; // type-only import: erased at runtime
|
|
354
|
-
consider(match[2]);
|
|
355
|
-
}
|
|
356
|
-
for (const match of content.matchAll(DYNAMIC_IMPORT)) consider(match[1]);
|
|
357
|
-
for (const match of content.matchAll(SIDE_EFFECT_IMPORT)) consider(match[1]);
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
/** Collect every file path a package manifest promises to publish. */
|
|
362
|
-
function manifestEntries(manifest: {
|
|
363
|
-
main?: string;
|
|
364
|
-
exports?: unknown;
|
|
365
|
-
bin?: unknown;
|
|
366
|
-
}): string[] {
|
|
367
|
-
const entries: string[] = [];
|
|
368
|
-
if (typeof manifest.main === "string") entries.push(manifest.main);
|
|
369
|
-
if (typeof manifest.bin === "string") entries.push(manifest.bin);
|
|
370
|
-
else if (manifest.bin && typeof manifest.bin === "object") {
|
|
371
|
-
for (const value of Object.values(manifest.bin as Record<string, string>)) {
|
|
372
|
-
if (typeof value === "string") entries.push(value);
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
const walk = (node: unknown): void => {
|
|
377
|
-
if (typeof node === "string") {
|
|
378
|
-
if (node.startsWith("./")) entries.push(node);
|
|
379
|
-
return;
|
|
380
|
-
}
|
|
381
|
-
if (node && typeof node === "object") {
|
|
382
|
-
for (const value of Object.values(node as Record<string, unknown>)) walk(value);
|
|
383
|
-
}
|
|
384
|
-
};
|
|
385
|
-
walk(manifest.exports);
|
|
386
|
-
|
|
387
|
-
return [...new Set(entries)];
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
/** Is the file tracked by git? A clean checkout only has tracked files. */
|
|
391
|
-
function isTracked(file: string): boolean {
|
|
392
|
-
const run = spawnSync("git", ["ls-files", "--error-unmatch", "--", file], {
|
|
393
|
-
cwd: ROOT,
|
|
394
|
-
encoding: "utf8",
|
|
395
|
-
});
|
|
396
|
-
return run.status === 0;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
/**
|
|
400
|
-
* Every workspace package must have its published entry points built.
|
|
401
|
-
*
|
|
402
|
-
* An entry that points into `src/` is a defect: the build emits into
|
|
403
|
-
* `dist/`, so a `src/*.js` entry only exists when somebody compiled the
|
|
404
|
-
* package in place and would be missing from a clean checkout.
|
|
405
|
-
*/
|
|
406
|
-
function checkPackageEntries(): void {
|
|
407
|
-
const packagesDir = join(ROOT, "packages");
|
|
408
|
-
if (!existsSync(packagesDir)) return;
|
|
409
|
-
|
|
410
|
-
for (const entry of readdirSync(packagesDir)) {
|
|
411
|
-
const dir = join(packagesDir, entry);
|
|
412
|
-
if (!statSync(dir).isDirectory()) continue;
|
|
413
|
-
const manifestPath = join(dir, "package.json");
|
|
414
|
-
if (!existsSync(manifestPath)) continue;
|
|
415
|
-
|
|
416
|
-
let manifest: { main?: string; exports?: unknown; bin?: unknown };
|
|
417
|
-
try {
|
|
418
|
-
manifest = JSON.parse(readFileSync(manifestPath, "utf8"));
|
|
419
|
-
} catch {
|
|
420
|
-
continue;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
for (const target of manifestEntries(manifest)) {
|
|
424
|
-
const full = join(dir, target);
|
|
425
|
-
if (!existsSync(full)) {
|
|
426
|
-
problems.push({
|
|
427
|
-
kind: "missing-package",
|
|
428
|
-
detail: `packages/${entry} publishes ${target} but the file is not built`,
|
|
429
|
-
});
|
|
430
|
-
continue;
|
|
431
|
-
}
|
|
432
|
-
if (target.startsWith("./src/") && target.endsWith(".js")) {
|
|
433
|
-
// A package without any TypeScript source is vendored as
|
|
434
|
-
// compiled JavaScript (the telegram app). Its entry point
|
|
435
|
-
// stays in src/ - but the file must be tracked, otherwise a
|
|
436
|
-
// clean checkout publishes a package without its entry point.
|
|
437
|
-
const hasTypeScript = listFiles(join(dir, "src"), (file) =>
|
|
438
|
-
file.endsWith(".ts") && !file.endsWith(".d.ts"),
|
|
439
|
-
).length > 0;
|
|
440
|
-
const tracked = isTracked(join(dir, target));
|
|
441
|
-
if (hasTypeScript) {
|
|
442
|
-
problems.push({
|
|
443
|
-
kind: "missing-package",
|
|
444
|
-
detail: `packages/${entry} publishes ${target} from src/ - point it at the built dist/ file`,
|
|
445
|
-
});
|
|
446
|
-
} else if (!tracked) {
|
|
447
|
-
problems.push({
|
|
448
|
-
kind: "missing-package",
|
|
449
|
-
detail: `packages/${entry} publishes ${target} from src/ but the file is not tracked by git`,
|
|
450
|
-
});
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
/**
|
|
458
|
-
* A built output that is older than its source is stale.
|
|
459
|
-
*
|
|
460
|
-
* The release publishes the compiled `dist/`, so a dist that is older than the
|
|
461
|
-
* source it was compiled from ships yesterday's code. The build clears the
|
|
462
|
-
* incremental state before it compiles, so a fresh build is never stale.
|
|
463
|
-
*/
|
|
464
|
-
function checkStaleOutputs(): void {
|
|
465
|
-
const packagesDir = join(ROOT, "packages");
|
|
466
|
-
if (!existsSync(packagesDir)) return;
|
|
467
|
-
|
|
468
|
-
for (const entry of readdirSync(packagesDir)) {
|
|
469
|
-
const dir = join(packagesDir, entry);
|
|
470
|
-
if (!statSync(dir).isDirectory()) continue;
|
|
471
|
-
if (!existsSync(join(dir, "tsconfig.json"))) continue;
|
|
472
|
-
if (!existsSync(join(dir, "dist"))) continue;
|
|
473
|
-
|
|
474
|
-
const sources = listFiles(dir, (file) => {
|
|
475
|
-
if (!file.endsWith(".ts") || file.endsWith(".d.ts")) return false;
|
|
476
|
-
const rel = relative(dir, file).split("\\").join("/");
|
|
477
|
-
if (rel.startsWith("dist/") || rel.startsWith("node_modules/")) return false;
|
|
478
|
-
// Test sources are not part of the published build.
|
|
479
|
-
return !/^(test|tests|__tests__)\//.test(rel);
|
|
480
|
-
});
|
|
481
|
-
const outputs = listFiles(join(dir, "dist"), (file) => file.endsWith(".js"));
|
|
482
|
-
if (sources.length === 0 || outputs.length === 0) continue;
|
|
483
|
-
|
|
484
|
-
const newestSource = Math.max(...sources.map((file) => statSync(file).mtimeMs));
|
|
485
|
-
const oldestOutput = Math.min(...outputs.map((file) => statSync(file).mtimeMs));
|
|
486
|
-
if (newestSource > oldestOutput + 1_000) {
|
|
487
|
-
const newest = sources
|
|
488
|
-
.map((file) => ({ file, mtime: statSync(file).mtimeMs }))
|
|
489
|
-
.sort((a, b) => b.mtime - a.mtime)[0];
|
|
490
|
-
problems.push({
|
|
491
|
-
kind: "missing-dist",
|
|
492
|
-
detail: `packages/${entry} has a stale build - ${relative(
|
|
493
|
-
ROOT,
|
|
494
|
-
newest.file,
|
|
495
|
-
)} is newer than the compiled output. Run "bun run build".`,
|
|
496
|
-
});
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
/**
|
|
502
|
-
* The files npm would publish.
|
|
503
|
-
*
|
|
504
|
-
* The list comes from npm itself, so a check sees exactly what a consumer
|
|
505
|
-
* gets - not what the repository happens to contain.
|
|
506
|
-
*/
|
|
507
|
-
async function packFileList(): Promise<string[]> {
|
|
508
|
-
const stdout = await new Promise<string>((resolveText, rejectText) => {
|
|
509
|
-
execFile(
|
|
510
|
-
"npm",
|
|
511
|
-
["pack", "--dry-run", "--json", "--ignore-scripts"],
|
|
512
|
-
{ cwd: ROOT, maxBuffer: 64 * 1024 * 1024 },
|
|
513
|
-
(error, out, err) => {
|
|
514
|
-
if (error) {
|
|
515
|
-
rejectText(new Error(`${error.message}: ${String(err).slice(0, 400)}`));
|
|
516
|
-
return;
|
|
517
|
-
}
|
|
518
|
-
resolveText(out);
|
|
519
|
-
},
|
|
520
|
-
);
|
|
521
|
-
});
|
|
522
|
-
|
|
523
|
-
try {
|
|
524
|
-
// `npm pack --json` returns an array with one entry per packed tarball.
|
|
525
|
-
const parsed = JSON.parse(stdout) as
|
|
526
|
-
| { files?: { path: string }[] }[]
|
|
527
|
-
| { files?: { path: string }[] };
|
|
528
|
-
const entries = Array.isArray(parsed) ? parsed : [parsed];
|
|
529
|
-
return entries.flatMap((entry) => entry?.files ?? []).map((file) => file.path);
|
|
530
|
-
} catch {
|
|
531
|
-
return [];
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
/**
|
|
536
|
-
* The names of the workspace packages.
|
|
537
|
-
*
|
|
538
|
-
* The workspace packages ship inside this one tarball and are never
|
|
539
|
-
* installed as separate packages, so a bare import that names one of them
|
|
540
|
-
* cannot resolve at runtime - not in a consumer's installation, and not in
|
|
541
|
-
* the repository either, because the workspace is never linked into
|
|
542
|
-
* `node_modules` under its own name.
|
|
543
|
-
*/
|
|
544
|
-
function workspacePackageNames(): Set<string> {
|
|
545
|
-
const names = new Set<string>();
|
|
546
|
-
const packagesDir = join(ROOT, "packages");
|
|
547
|
-
if (!existsSync(packagesDir)) return names;
|
|
548
|
-
for (const name of readdirSync(packagesDir)) {
|
|
549
|
-
const manifestPath = join(packagesDir, name, "package.json");
|
|
550
|
-
if (!existsSync(manifestPath)) continue;
|
|
551
|
-
try {
|
|
552
|
-
const manifest = JSON.parse(readFileSync(manifestPath, "utf8")) as {
|
|
553
|
-
name?: string;
|
|
554
|
-
};
|
|
555
|
-
if (manifest.name) names.add(manifest.name);
|
|
556
|
-
} catch {
|
|
557
|
-
// A manifest that cannot be read names no package.
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
return names;
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
/**
|
|
564
|
-
* Every relative import of a published file must resolve.
|
|
565
|
-
*
|
|
566
|
-
* The published app reaches its internal packages through relative paths,
|
|
567
|
-
* so an import that does not resolve is a module graph that breaks when it
|
|
568
|
-
* runs. A published `.js` file has to reach a published file: a consumer
|
|
569
|
-
* never sees the repository. A published `.ts` file is resolved by the
|
|
570
|
-
* compiler, so it may reach a source file in the repository.
|
|
571
|
-
*
|
|
572
|
-
* The earlier import check only followed specifiers that contained
|
|
573
|
-
* "packages/" and never looked at the compiled output, so an import inside
|
|
574
|
-
* a package was never verified. That is how a package whose entry point
|
|
575
|
-
* could not be imported reached the registry.
|
|
576
|
-
*/
|
|
577
|
-
function checkRelativeImports(files: string[]): void {
|
|
578
|
-
const published = new Set(files);
|
|
579
|
-
const workspaceNames = workspacePackageNames();
|
|
580
|
-
|
|
581
|
-
for (const path of files) {
|
|
582
|
-
if (!/\.(ts|mts|cts|mjs|js|cjs)$/.test(path)) continue;
|
|
583
|
-
if (path.endsWith(".d.ts") || path.endsWith(".d.mts")) continue;
|
|
584
|
-
const full = join(ROOT, path);
|
|
585
|
-
if (!existsSync(full)) continue;
|
|
586
|
-
const content = readFileSync(full, "utf8");
|
|
587
|
-
for (const specifier of extractRelativeValueImports(content)) {
|
|
588
|
-
const result = resolveRelativeImport({
|
|
589
|
-
importer: full,
|
|
590
|
-
specifier,
|
|
591
|
-
exists: existsSync,
|
|
592
|
-
isPublished: (candidate) =>
|
|
593
|
-
published.has(relative(ROOT, candidate).split("\\").join("/")),
|
|
594
|
-
});
|
|
595
|
-
if (result.ok) continue;
|
|
596
|
-
problems.push({
|
|
597
|
-
kind: "broken-import",
|
|
598
|
-
detail: `${path} imports ${specifier} but ${result.reason}`,
|
|
599
|
-
});
|
|
600
|
-
}
|
|
601
|
-
// A bare import that names a workspace package names something that
|
|
602
|
-
// is never installed: the workspace packages are inside this one
|
|
603
|
-
// tarball. Such an import has to point at the built artifact.
|
|
604
|
-
for (const specifier of extractBareImports(content)) {
|
|
605
|
-
const name = packageNameOf(specifier);
|
|
606
|
-
if (!workspaceNames.has(name)) continue;
|
|
607
|
-
problems.push({
|
|
608
|
-
kind: "broken-import",
|
|
609
|
-
detail: `${path} imports ${specifier} but ${name} is a workspace package: it ships inside this tarball and is never installed, so the name cannot resolve`,
|
|
610
|
-
});
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
/**
|
|
616
|
-
* Every package that the published package declares.
|
|
617
|
-
*
|
|
618
|
-
* The consumer installs one package, so that one package has to carry the
|
|
619
|
-
* dependencies of every module it ships. A module that imports a package
|
|
620
|
-
* the manifest does not name cannot be imported by the consumer: the
|
|
621
|
-
* dependency is missing from the install.
|
|
622
|
-
*
|
|
623
|
-
* A dynamic import is a different case: it is resolved when the code
|
|
624
|
-
* reaches it, so a module that loads one at run time may treat it as an
|
|
625
|
-
* optional dependency. Only a static import is checked here.
|
|
626
|
-
*/
|
|
627
|
-
function declaredDependencyNames(): Set<string> {
|
|
628
|
-
const names = new Set<string>();
|
|
629
|
-
let manifest: {
|
|
630
|
-
dependencies?: Record<string, string>;
|
|
631
|
-
optionalDependencies?: Record<string, string>;
|
|
632
|
-
peerDependencies?: Record<string, string>;
|
|
633
|
-
};
|
|
634
|
-
try {
|
|
635
|
-
manifest = JSON.parse(readFileSync(join(ROOT, "package.json"), "utf8"));
|
|
636
|
-
} catch {
|
|
637
|
-
return names;
|
|
638
|
-
}
|
|
639
|
-
for (const group of [
|
|
640
|
-
manifest.dependencies,
|
|
641
|
-
manifest.optionalDependencies,
|
|
642
|
-
manifest.peerDependencies,
|
|
643
|
-
]) {
|
|
644
|
-
for (const name of Object.keys(group ?? {})) names.add(name);
|
|
645
|
-
}
|
|
646
|
-
return names;
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
/**
|
|
650
|
-
* The names that a published module may import without a declaration.
|
|
651
|
-
*
|
|
652
|
-
* A Node builtin is always there. A test runner is only there when the
|
|
653
|
-
* tests run, and a published module never imports one at run time.
|
|
654
|
-
*/
|
|
655
|
-
const ALWAYS_AVAILABLE_NAMES = new Set([
|
|
656
|
-
...builtinModules,
|
|
657
|
-
...builtinModules.map((name) => `node:${name}`),
|
|
658
|
-
"bun:test",
|
|
659
|
-
"node:test",
|
|
660
|
-
]);
|
|
661
|
-
|
|
662
|
-
/**
|
|
663
|
-
* Every static import of a published file must name a declared package.
|
|
664
|
-
*
|
|
665
|
-
* The check runs on the file list that npm itself produced, so it covers
|
|
666
|
-
* exactly what a consumer receives - the compiled output included.
|
|
667
|
-
*/
|
|
668
|
-
function checkDeclaredDependencies(files: string[]): void {
|
|
669
|
-
const declared = declaredDependencyNames();
|
|
670
|
-
const workspaces = workspacePackageNames();
|
|
671
|
-
for (const path of files) {
|
|
672
|
-
if (!/\.(ts|mts|cts|mjs|js|cjs)$/.test(path)) continue;
|
|
673
|
-
if (path.endsWith(".d.ts") || path.endsWith(".d.mts")) continue;
|
|
674
|
-
const full = join(ROOT, path);
|
|
675
|
-
if (!existsSync(full)) continue;
|
|
676
|
-
const content = readFileSync(full, "utf8");
|
|
677
|
-
for (const specifier of extractStaticBareImports(content)) {
|
|
678
|
-
const name = packageNameOf(specifier);
|
|
679
|
-
if (!name) continue;
|
|
680
|
-
if (ALWAYS_AVAILABLE_NAMES.has(name)) continue;
|
|
681
|
-
if (declared.has(name) || workspaces.has(name)) continue;
|
|
682
|
-
problems.push({
|
|
683
|
-
kind: "undeclared-dependency",
|
|
684
|
-
detail: `${path} imports ${name}, which the published package does not declare - a consumer cannot import this module`,
|
|
685
|
-
});
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
/**
|
|
691
|
-
* A published module must not call `require` when it is loaded.
|
|
692
|
-
*
|
|
693
|
-
* The published package is an ES module (`"type": "module"`), and Node
|
|
694
|
-
* has no `require` there: a call at the top level of a module throws the
|
|
695
|
-
* moment the module is imported. A `require` inside a function is only a
|
|
696
|
-
* problem when that function runs, so only the module scope is checked.
|
|
697
|
-
*/
|
|
698
|
-
/**
|
|
699
|
-
* The module system of a published file.
|
|
700
|
-
*
|
|
701
|
-
* A file that belongs to a CommonJS package may call `require`. A file
|
|
702
|
-
* that belongs to an ES module may not: Node has no `require` there.
|
|
703
|
-
*/
|
|
704
|
-
function moduleTypeOf(path: string): "module" | "commonjs" {
|
|
705
|
-
let dir = dirname(resolve(ROOT, path));
|
|
706
|
-
for (;;) {
|
|
707
|
-
const manifestPath = join(dir, "package.json");
|
|
708
|
-
if (existsSync(manifestPath)) {
|
|
709
|
-
try {
|
|
710
|
-
const manifest = JSON.parse(readFileSync(manifestPath, "utf8")) as {
|
|
711
|
-
type?: string;
|
|
712
|
-
};
|
|
713
|
-
return manifest.type === "commonjs" ? "commonjs" : "module";
|
|
714
|
-
} catch {
|
|
715
|
-
return "module";
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
const parent = dirname(dir);
|
|
719
|
-
if (parent === dir) return "module";
|
|
720
|
-
dir = parent;
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
/**
|
|
725
|
-
* A published module must not call the global `require`.
|
|
726
|
-
*
|
|
727
|
-
* The published package is an ES module, and Node has no `require` there:
|
|
728
|
-
* a call at the top level of a module throws the moment the module is
|
|
729
|
-
* imported, and a call inside a function throws when that function runs.
|
|
730
|
-
*
|
|
731
|
-
* A module that builds its own `require` with `createRequire` owns a
|
|
732
|
-
* working `require` and is not affected.
|
|
733
|
-
*/
|
|
734
|
-
function checkModuleScopeRequires(files: string[]): void {
|
|
735
|
-
for (const path of files) {
|
|
736
|
-
if (!path.endsWith(".js")) continue;
|
|
737
|
-
if (moduleTypeOf(path) !== "module") continue;
|
|
738
|
-
const full = join(ROOT, path);
|
|
739
|
-
if (!existsSync(full)) continue;
|
|
740
|
-
const content = readFileSync(full, "utf8");
|
|
741
|
-
if (hasLocalRequire(content)) continue;
|
|
742
|
-
for (const call of findRequireCalls(content)) {
|
|
743
|
-
problems.push({
|
|
744
|
-
kind: "esm-require",
|
|
745
|
-
detail: call.moduleScope
|
|
746
|
-
? `${path} calls require(${call.specifier}) when the module is loaded, but the published package is an ES module`
|
|
747
|
-
: `${path} calls require(${call.specifier}), but the published package is an ES module and has no require`,
|
|
748
|
-
});
|
|
749
|
-
}
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
/** The tarball npm would publish must contain the built output. */
|
|
754
|
-
function inspectTarball(files: string[]): void {
|
|
755
|
-
for (const file of files) {
|
|
756
|
-
const posix = file.split("\\").join("/");
|
|
757
|
-
for (const prefix of FORBIDDEN_PACKAGE_PREFIXES) {
|
|
758
|
-
if (posix.startsWith(prefix)) {
|
|
759
|
-
problems.push({
|
|
760
|
-
kind: "forbidden-path",
|
|
761
|
-
detail: `${posix} is in the tarball - ${prefix} must not be published`,
|
|
762
|
-
});
|
|
763
|
-
break;
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
if (isForbiddenSkillPath(posix)) {
|
|
767
|
-
problems.push({
|
|
768
|
-
kind: "forbidden-path",
|
|
769
|
-
detail: `${posix} is in the tarball - only ${PACKAGE_SKILL_DIR} may be published`,
|
|
770
|
-
});
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
for (const required of REQUIRED_PLUGIN_FILES) {
|
|
775
|
-
if (!files.includes(required)) {
|
|
776
|
-
problems.push({
|
|
777
|
-
kind: "missing-plugin",
|
|
778
|
-
detail: `${required} is not in the tarball`,
|
|
779
|
-
});
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
for (const required of REQUIRED_SKILL_FILES) {
|
|
784
|
-
if (!files.includes(required)) {
|
|
785
|
-
problems.push({
|
|
786
|
-
kind: "missing-plugin",
|
|
787
|
-
detail: `${required} is not in the tarball`,
|
|
788
|
-
});
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
const inTarball = new Set(files);
|
|
793
|
-
for (const { file, specifier, target } of runtimeImports.values()) {
|
|
794
|
-
const relativeTarget = relative(ROOT, target).split("\\").join("/");
|
|
795
|
-
if (!inTarball.has(relativeTarget)) {
|
|
796
|
-
problems.push({
|
|
797
|
-
kind: "missing-tarball",
|
|
798
|
-
detail: `${relativeTarget} (imported by ${relative(
|
|
799
|
-
ROOT,
|
|
800
|
-
file,
|
|
801
|
-
)} as ${specifier}) is not in the tarball`,
|
|
802
|
-
});
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
checkPackageLayout();
|
|
808
|
-
checkPluginCopySource();
|
|
809
|
-
checkImports();
|
|
810
|
-
checkPackageEntries();
|
|
811
|
-
checkStaleOutputs();
|
|
812
|
-
|
|
813
|
-
// The published file list drives both the import check and the tarball
|
|
814
|
-
// check: it is what a consumer receives.
|
|
815
|
-
const publishedFiles = await packFileList();
|
|
816
|
-
if (publishedFiles.length === 0) {
|
|
817
|
-
problems.push({
|
|
818
|
-
kind: "missing-tarball",
|
|
819
|
-
detail: "npm pack --dry-run did not return a file list",
|
|
820
|
-
});
|
|
821
|
-
} else {
|
|
822
|
-
checkRelativeImports(publishedFiles);
|
|
823
|
-
checkDeclaredDependencies(publishedFiles);
|
|
824
|
-
checkModuleScopeRequires(publishedFiles);
|
|
825
|
-
checkSensitiveContent(publishedFiles);
|
|
826
|
-
if (verifyTarball) inspectTarball(publishedFiles);
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
if (problems.length > 0) {
|
|
830
|
-
console.error(`[verify-package-contents] FAILED with ${problems.length} problem(s):`);
|
|
831
|
-
for (const problem of problems) {
|
|
832
|
-
console.error(` - [${problem.kind}] ${problem.detail}`);
|
|
833
|
-
}
|
|
834
|
-
console.error(
|
|
835
|
-
"",
|
|
836
|
-
"Every internal package must ship inside pi-harness-runtime. Run `bun run build` and check the tsc output before publishing.",
|
|
837
|
-
);
|
|
838
|
-
process.exit(1);
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
console.log(
|
|
842
|
-
`[verify-package-contents] OK - ${runtimeImports.size} runtime import(s) resolved, ${
|
|
843
|
-
publishedFiles.length
|
|
844
|
-
} published file(s) checked${verifyTarball ? ", tarball verified" : ""}`,
|
|
845
|
-
);
|