@jaggerxtrm/specialists 3.17.0 → 3.18.0
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/README.md +268 -134
- package/config/mandatory-rules/json-only-final-output.md +13 -0
- package/config/mandatory-rules/service-skills-diff-scan-mandatory.md +26 -0
- package/config/mandatory-rules/service-skills-gitnexus-triage.md +5 -0
- package/config/skills/setup-specialists/SKILL.md +556 -0
- package/config/skills/specialists-creator/SKILL.md +132 -4
- package/config/skills/specialists-creator/scripts/audit-spec-uniformity.mjs +1 -1
- package/config/specialists/bare.specialist.json +3 -3
- package/config/specialists/changelog-drafter.specialist.json +5 -4
- package/config/specialists/changelog-keeper.specialist.json +7 -6
- package/config/specialists/debugger.specialist.json +2 -2
- package/config/specialists/executor.specialist.json +2 -2
- package/config/specialists/explorer.specialist.json +4 -4
- package/config/specialists/memory-processor.specialist.json +3 -3
- package/config/specialists/node-coordinator.specialist.json +3 -3
- package/config/specialists/obligations-scanner.specialist.json +67 -17
- package/config/specialists/overthinker.specialist.json +3 -3
- package/config/specialists/planner.specialist.json +4 -4
- package/config/specialists/quant-methodologist.specialist.json +145 -0
- package/config/specialists/quant-researcher.specialist.json +144 -0
- package/config/specialists/researcher.specialist.json +5 -5
- package/config/specialists/reviewer.specialist.json +1 -1
- package/config/specialists/seconder.specialist.json +2 -2
- package/config/specialists/security-auditor.specialist.json +2 -2
- package/config/specialists/service-skills-sync.specialist.json +90 -75
- package/config/specialists/specialists-creator.specialist.json +4 -4
- package/config/specialists/sync-docs.specialist.json +4 -4
- package/config/specialists/test-engineer.specialist.json +3 -3
- package/config/specialists/test-runner.specialist.json +7 -7
- package/config/specialists/transcriber.specialist.json +3 -3
- package/config/specialists/xt-merge.specialist.json +4 -4
- package/dist/asset-contract.json +21 -2
- package/dist/index.js +25704 -16376
- package/dist/lib.js +9849 -6147
- package/dist/types/cli/console/components.d.ts +83 -0
- package/dist/types/cli/console/components.d.ts.map +1 -0
- package/dist/types/cli/console/config-source.d.ts +58 -0
- package/dist/types/cli/console/config-source.d.ts.map +1 -0
- package/dist/types/cli/console/forensic.d.ts +11 -0
- package/dist/types/cli/console/forensic.d.ts.map +1 -0
- package/dist/types/cli/console/git.d.ts +28 -0
- package/dist/types/cli/console/git.d.ts.map +1 -0
- package/dist/types/cli/console/help.d.ts +2 -0
- package/dist/types/cli/console/help.d.ts.map +1 -0
- package/dist/types/cli/console/log.d.ts +13 -0
- package/dist/types/cli/console/log.d.ts.map +1 -0
- package/dist/types/cli/console/repo-config.d.ts +26 -0
- package/dist/types/cli/console/repo-config.d.ts.map +1 -0
- package/dist/types/cli/console/repo-discovery.d.ts +12 -0
- package/dist/types/cli/console/repo-discovery.d.ts.map +1 -0
- package/dist/types/cli/console/runtime.d.ts +12 -0
- package/dist/types/cli/console/runtime.d.ts.map +1 -0
- package/dist/types/cli/console/subscribe-prototype.d.ts +18 -0
- package/dist/types/cli/console/subscribe-prototype.d.ts.map +1 -0
- package/dist/types/cli/console/theme.d.ts +91 -0
- package/dist/types/cli/console/theme.d.ts.map +1 -0
- package/dist/types/cli/console/types.d.ts +231 -0
- package/dist/types/cli/console/types.d.ts.map +1 -0
- package/dist/types/cli/console/view-model.d.ts +252 -0
- package/dist/types/cli/console/view-model.d.ts.map +1 -0
- package/dist/types/cli/console.d.ts +2 -0
- package/dist/types/cli/console.d.ts.map +1 -0
- package/dist/types/cli/db.d.ts.map +1 -1
- package/dist/types/cli/doctor.d.ts.map +1 -1
- package/dist/types/cli/edit.d.ts.map +1 -1
- package/dist/types/cli/epic.d.ts.map +1 -1
- package/dist/types/cli/feed.d.ts.map +1 -1
- package/dist/types/cli/forensic.d.ts +2 -0
- package/dist/types/cli/forensic.d.ts.map +1 -0
- package/dist/types/cli/format-helpers.d.ts +4 -2
- package/dist/types/cli/format-helpers.d.ts.map +1 -1
- package/dist/types/cli/help.d.ts.map +1 -1
- package/dist/types/cli/init.d.ts +10 -0
- package/dist/types/cli/init.d.ts.map +1 -1
- package/dist/types/cli/list.d.ts.map +1 -1
- package/dist/types/cli/log.d.ts.map +1 -1
- package/dist/types/cli/metrics.d.ts +2 -0
- package/dist/types/cli/metrics.d.ts.map +1 -0
- package/dist/types/cli/ps.d.ts.map +1 -1
- package/dist/types/cli/result.d.ts.map +1 -1
- package/dist/types/cli/run.d.ts +1 -0
- package/dist/types/cli/run.d.ts.map +1 -1
- package/dist/types/cli/script.d.ts +3 -0
- package/dist/types/cli/script.d.ts.map +1 -1
- package/dist/types/cli/serve.d.ts.map +1 -1
- package/dist/types/cli/setup.d.ts +19 -1
- package/dist/types/cli/setup.d.ts.map +1 -1
- package/dist/types/cli/status.d.ts.map +1 -1
- package/dist/types/cli/version-check.d.ts +1 -0
- package/dist/types/cli/version-check.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/pi/session.d.ts +11 -1
- package/dist/types/pi/session.d.ts.map +1 -1
- package/dist/types/server.d.ts +15 -0
- package/dist/types/server.d.ts.map +1 -1
- package/dist/types/specialist/benchmarks.d.ts +37 -0
- package/dist/types/specialist/benchmarks.d.ts.map +1 -0
- package/dist/types/specialist/chain-identity.d.ts +7 -1
- package/dist/types/specialist/chain-identity.d.ts.map +1 -1
- package/dist/types/specialist/control.d.ts.map +1 -1
- package/dist/types/specialist/forensic-events.d.ts +138 -0
- package/dist/types/specialist/forensic-events.d.ts.map +1 -0
- package/dist/types/specialist/forensic-renderer.d.ts +34 -0
- package/dist/types/specialist/forensic-renderer.d.ts.map +1 -0
- package/dist/types/specialist/git-diff-evidence.d.ts +28 -0
- package/dist/types/specialist/git-diff-evidence.d.ts.map +1 -0
- package/dist/types/specialist/global-config.d.ts +389 -0
- package/dist/types/specialist/global-config.d.ts.map +1 -0
- package/dist/types/specialist/launch.d.ts +1 -0
- package/dist/types/specialist/launch.d.ts.map +1 -1
- package/dist/types/specialist/live-aggregates.d.ts +46 -0
- package/dist/types/specialist/live-aggregates.d.ts.map +1 -0
- package/dist/types/specialist/loader.d.ts +50 -1
- package/dist/types/specialist/loader.d.ts.map +1 -1
- package/dist/types/specialist/model-chain.d.ts +7 -0
- package/dist/types/specialist/model-chain.d.ts.map +1 -0
- package/dist/types/specialist/model-probes.d.ts +28 -0
- package/dist/types/specialist/model-probes.d.ts.map +1 -0
- package/dist/types/specialist/node-contract.d.ts +18 -18
- package/dist/types/specialist/node-supervisor.d.ts.map +1 -1
- package/dist/types/specialist/observability-db.d.ts +1 -1
- package/dist/types/specialist/observability-db.d.ts.map +1 -1
- package/dist/types/specialist/observability-sqlite.d.ts +25 -0
- package/dist/types/specialist/observability-sqlite.d.ts.map +1 -1
- package/dist/types/specialist/preset-resolver.d.ts +56 -0
- package/dist/types/specialist/preset-resolver.d.ts.map +1 -0
- package/dist/types/specialist/prometheus-projection.d.ts +25 -0
- package/dist/types/specialist/prometheus-projection.d.ts.map +1 -0
- package/dist/types/specialist/runner.d.ts +26 -1
- package/dist/types/specialist/runner.d.ts.map +1 -1
- package/dist/types/specialist/schema.d.ts +163 -54
- package/dist/types/specialist/schema.d.ts.map +1 -1
- package/dist/types/specialist/script-runner.d.ts +5 -1
- package/dist/types/specialist/script-runner.d.ts.map +1 -1
- package/dist/types/specialist/snapshot-diff.d.ts +8 -0
- package/dist/types/specialist/snapshot-diff.d.ts.map +1 -0
- package/dist/types/specialist/source-queue.d.ts +13 -0
- package/dist/types/specialist/source-queue.d.ts.map +1 -0
- package/dist/types/specialist/supervisor.d.ts +15 -1
- package/dist/types/specialist/supervisor.d.ts.map +1 -1
- package/dist/types/specialist/timeline-events.d.ts +68 -1
- package/dist/types/specialist/timeline-events.d.ts.map +1 -1
- package/dist/types/tools/specialist/resume_specialist.tool.d.ts +4 -4
- package/dist/types/tools/specialist/specialist_status.tool.d.ts +1 -1
- package/dist/types/tools/specialist/steer_specialist.tool.d.ts +4 -4
- package/dist/types/tools/specialist/use_specialist.tool.d.ts +16 -16
- package/docs/ARCHITECTURE.md +1176 -0
- package/docs/TODO.md +9 -0
- package/docs/architecture.md +11 -0
- package/docs/archive/2026-03-13-bd-decision-context-template-plan.md +96 -0
- package/docs/archive/AGENT-HANDOFF.md +351 -0
- package/docs/archive/PARITY-ANALYSIS.md +296 -0
- package/docs/archive/SPECIALISTS_REFACTOR.md.md +30 -0
- package/docs/archive/cc-programmatic.md +216 -0
- package/docs/archive/claude-agent-sdk.md +594 -0
- package/docs/archive/decision-specialist-directory.md +41 -0
- package/docs/archive/discoveries.md +148 -0
- package/docs/archive/executor-benchmark-protocol.md +198 -0
- package/docs/archive/future-features.md +66 -0
- package/docs/archive/gzrx-completion-critique.md +183 -0
- package/docs/archive/gzrx-research-notes.md +401 -0
- package/docs/archive/gzrx-tool-catalog.md +760 -0
- package/docs/archive/iron-review-hardening-qa-chain-substrate.md +322 -0
- package/docs/archive/iron-review-hardening.html +1004 -0
- package/docs/archive/issuetracking.md +312 -0
- package/docs/archive/qa-v3.0.2.md +220 -0
- package/docs/archive/restructure.md +231 -0
- package/docs/archive/script-specialists.md +1254 -0
- package/docs/archive/spec-v3.md +792 -0
- package/docs/archive/specialist-stats.md +127 -0
- package/docs/archive/specialists-friction-audit.md +1347 -0
- package/docs/archive/specialists-runtime-critique.md +170 -0
- package/docs/archive/specialists-service-evaluation.md +713 -0
- package/docs/archive/specialists-substrate-alignment.md +255 -0
- package/docs/archive/substrate-review.md +1288 -0
- package/docs/archive/test-writer-specialist.md +254 -0
- package/docs/archive/using-specialists-v3-improvements-2026-05-09.md +600 -0
- package/docs/archive/xtrm-specialists-analysis.md +314 -0
- package/docs/authoring.md +701 -0
- package/docs/background-jobs.md +203 -0
- package/docs/bare-specialists.md +83 -0
- package/docs/benchmarks/executor-benchmark-runner.md +66 -0
- package/docs/bootstrap.md +161 -0
- package/docs/cli-reference.md +1645 -0
- package/docs/deploying-alongside.md +155 -0
- package/docs/design/README.md +36 -0
- package/docs/design/darth-feedor-migration.md +290 -0
- package/docs/design/roadmap/README.md +32 -0
- package/docs/design/roadmap/chain-templates/README.md +146 -0
- package/docs/design/roadmap/chain-templates/code-quick.formula.json +27 -0
- package/docs/design/roadmap/chain-templates/code-standard.formula.json +126 -0
- package/docs/design/roadmap/chain-templates/code-with-advisors.formula.json +128 -0
- package/docs/design/roadmap/chain-templates/code-with-tests.formula.json +76 -0
- package/docs/design/roadmap/chain-templates/debug.formula.json +128 -0
- package/docs/design/roadmap/chain-templates/doc-sync.formula.json +28 -0
- package/docs/design/roadmap/chain-templates/memory-hygiene.formula.json +27 -0
- package/docs/design/roadmap/chain-templates/planning.formula.json +27 -0
- package/docs/design/roadmap/chain-templates/premortem.formula.json +26 -0
- package/docs/design/roadmap/chain-templates/release-prep.formula.json +36 -0
- package/docs/design/roadmap/chain-templates/research-only.formula.json +28 -0
- package/docs/design/roadmap/chain-templates/restitch.formula.json +125 -0
- package/docs/design/roadmap/chain-templates/security-deep.formula.json +161 -0
- package/docs/design/roadmap/chain-templates/test-only.formula.json +52 -0
- package/docs/design/roadmap/chain-templates/triage.formula.json +35 -0
- package/docs/design/roadmap/history/handoff-from-substrate-design.md +87 -0
- package/docs/design/roadmap/history/substrate-reconciliation.md +105 -0
- package/docs/design/roadmap/specialists-roadmap.md +1193 -0
- package/docs/design/sp-console-subscribe-via-materializer.md +231 -0
- package/docs/design/sp-console-tui-mock-v2.html +293 -0
- package/docs/design/sp-console-tui-mock.html +120 -0
- package/docs/design/sp-console-tui.md +340 -0
- package/docs/design/specialist-agentops-suite.md +323 -0
- package/docs/design/substrate/channels.md +14 -0
- package/docs/design/substrate/devops-platform-engineering-prd.md +446 -0
- package/docs/design/substrate/html-design-example.md +339 -0
- package/docs/design/xtrm-tiers-architecture.svg +132 -0
- package/docs/devops/dependency-verdict-materialization.md +46 -0
- package/docs/epic-readiness.md +75 -0
- package/docs/examples/mercury-atomic-summarizer.specialist.json +26 -0
- package/docs/examples/smoke-echo-text-expected-keys.specialist.json +25 -0
- package/docs/examples/smoke-echo.specialist.json +25 -0
- package/docs/features.md +1577 -0
- package/docs/hooks.md +81 -0
- package/docs/installation.md +142 -0
- package/docs/manifest.md +184 -0
- package/docs/mcp-servers.md +73 -0
- package/docs/mcp-tools.md +71 -0
- package/docs/nodes.md +231 -0
- package/docs/observability-metrics.md +152 -0
- package/docs/operator/sp-console-v2-walkthrough.md +410 -0
- package/docs/overrides-guide.md +306 -0
- package/docs/pi-rpc-boundary.md +118 -0
- package/docs/pi-session.md +195 -0
- package/docs/release.md +22 -0
- package/docs/skills.md +132 -0
- package/docs/specialists/handoff-schema.md +181 -0
- package/docs/specialists-catalog.md +99 -0
- package/docs/specialists-service-install.md +226 -0
- package/docs/specialists-service.md +363 -0
- package/docs/surface-ownership.md +138 -0
- package/docs/upgrade-notes/kan-90-global-user-config.md +114 -0
- package/docs/upgrade-notes/kan-91-expanded-overrides.md +261 -0
- package/docs/workflow.md +114 -0
- package/docs/worktree.md +71 -0
- package/docs/worktrees.md +309 -0
- package/package.json +6 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/server.ts"],"names":[],"mappings":"AAcA,OAAO,EAAmC,KAAK,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AAgBvH,KAAK,cAAc,GAAG;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,GAAE;IAAE,EAAE,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,cAAc,CAOtG;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAQzE;AAED,wBAAgB,oBAAoB,CAClC,aAAa,EAAE,yBAAyB,GAAG,IAAI,EAC/C,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,UAAU,CAAC,EAAE,MAAM,EACnB,SAAS,CAAC,EAAE,MAAM,GACjB,IAAI,CAiCN;AAED,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,KAAK,CAAY;IACzB,OAAO,CAAC,aAAa,CAAmC;IACxD,OAAO,CAAC,YAAY,CAAS;;IAgB7B,OAAO,CAAC,WAAW,CAAoC;IAEvD,OAAO,CAAC,aAAa;IAqDf,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAmBtB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const PRIMARY_BENCHMARK_URL = "https://artificialanalysis.ai/api/v2/data/llms/models";
|
|
2
|
+
export declare const SECONDARY_BENCHMARK_URL = "https://lmarena.ai/leaderboard/json";
|
|
3
|
+
export declare const BENCHMARK_TTL_MS = 86400000;
|
|
4
|
+
export declare const DEFAULT_MAX_SNAPSHOT_AGE_MS: number;
|
|
5
|
+
export type BenchmarkSource = 'artificialanalysis' | 'lmarena';
|
|
6
|
+
export interface BenchmarkRow {
|
|
7
|
+
id: string;
|
|
8
|
+
provider: string;
|
|
9
|
+
quality_score?: number;
|
|
10
|
+
elo?: number;
|
|
11
|
+
cost_input?: number;
|
|
12
|
+
cost_output?: number;
|
|
13
|
+
context_window?: number;
|
|
14
|
+
tools_supported?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface BenchmarkSnapshot {
|
|
17
|
+
source: BenchmarkSource;
|
|
18
|
+
source_url: string;
|
|
19
|
+
fetched_at: string;
|
|
20
|
+
models: Map<string, BenchmarkRow>;
|
|
21
|
+
}
|
|
22
|
+
export interface BenchmarkWarning {
|
|
23
|
+
source?: BenchmarkSource;
|
|
24
|
+
message: string;
|
|
25
|
+
}
|
|
26
|
+
export interface LoadBenchmarkOptions {
|
|
27
|
+
cacheDir?: string;
|
|
28
|
+
now?: Date;
|
|
29
|
+
ttlMs?: number;
|
|
30
|
+
maxSnapshotAgeMs?: number;
|
|
31
|
+
offline?: boolean;
|
|
32
|
+
fetchImpl?: typeof fetch;
|
|
33
|
+
warn?: (warning: BenchmarkWarning) => void;
|
|
34
|
+
}
|
|
35
|
+
export declare function loadBenchmarkSnapshot(options?: LoadBenchmarkOptions): Promise<BenchmarkSnapshot | null>;
|
|
36
|
+
export declare function getBenchmarkCachePath(source: BenchmarkSource, cacheDir?: string): string;
|
|
37
|
+
//# sourceMappingURL=benchmarks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"benchmarks.d.ts","sourceRoot":"","sources":["../../../src/specialist/benchmarks.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,qBAAqB,0DAA0D,CAAC;AAC7F,eAAO,MAAM,uBAAuB,wCAAwC,CAAC;AAC7E,eAAO,MAAM,gBAAgB,WAAa,CAAC;AAC3C,eAAO,MAAM,2BAA2B,QAAkB,CAAC;AAE3D,MAAM,MAAM,eAAe,GAAG,oBAAoB,GAAG,SAAS,CAAC;AAE/D,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,eAAe,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;IACzB,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAC5C;AAmBD,wBAAsB,qBAAqB,CAAC,OAAO,GAAE,oBAAyB,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAcjH;AAmHD,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,eAAe,EAAE,QAAQ,SAAyD,GAAG,MAAM,CAExI"}
|
|
@@ -6,12 +6,18 @@ export interface PersistedChainIdentity {
|
|
|
6
6
|
chain_id?: string;
|
|
7
7
|
chain_root_job_id?: string;
|
|
8
8
|
chain_root_bead_id?: string;
|
|
9
|
+
trace_id?: string;
|
|
10
|
+
span_id?: string;
|
|
11
|
+
parent_span_id?: string;
|
|
9
12
|
}
|
|
10
|
-
export interface ChainIdentityResolverInput extends Pick<SupervisorStatus, 'id' | 'bead_id' | 'worktree_path' | 'worktree_owner_job_id' | 'chain_id' | 'chain_root_job_id' | 'chain_root_bead_id'> {
|
|
13
|
+
export interface ChainIdentityResolverInput extends Pick<SupervisorStatus, 'id' | 'bead_id' | 'worktree_path' | 'worktree_owner_job_id' | 'chain_id' | 'chain_root_job_id' | 'chain_root_bead_id' | 'trace_id' | 'span_id' | 'parent_span_id'> {
|
|
11
14
|
}
|
|
12
15
|
export interface ChainRootSnapshot {
|
|
13
16
|
bead_id?: string;
|
|
14
17
|
chain_root_bead_id?: string;
|
|
18
|
+
trace_id?: string;
|
|
19
|
+
span_id?: string;
|
|
20
|
+
parent_span_id?: string;
|
|
15
21
|
}
|
|
16
22
|
export declare function isChainKind(value: string | undefined): value is ChainKind;
|
|
17
23
|
export declare function derivePersistedChainIdentity(status: ChainIdentityResolverInput, chainRootSnapshot?: ChainRootSnapshot): PersistedChainIdentity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain-identity.d.ts","sourceRoot":"","sources":["../../../src/specialist/chain-identity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chain-identity.d.ts","sourceRoot":"","sources":["../../../src/specialist/chain-identity.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD,eAAO,MAAM,WAAW,4BAA6B,CAAC;AAEtD,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,SAAS,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,0BAA2B,SAAQ,IAAI,CAAC,gBAAgB,EAAE,IAAI,GAAG,SAAS,GAAG,eAAe,GAAG,uBAAuB,GAAG,UAAU,GAAG,mBAAmB,GAAG,oBAAoB,GAAG,UAAU,GAAG,SAAS,GAAG,gBAAgB,CAAC;CAAG;AAEjP,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,KAAK,IAAI,SAAS,CAEzE;AAED,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,0BAA0B,EAClC,iBAAiB,CAAC,EAAE,iBAAiB,GACpC,sBAAsB,CA0BxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control.d.ts","sourceRoot":"","sources":["../../../src/specialist/control.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"control.d.ts","sourceRoot":"","sources":["../../../src/specialist/control.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAsCD,wBAAsB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,cAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CA0GrF;AAED,wBAAsB,WAAW,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,GAAE,kBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,CAoDrG"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
export declare const FORENSIC_SCHEMA_VERSION: "xtrm.forensic.v1";
|
|
2
|
+
export type ForensicSeverity = 'debug' | 'info' | 'warn' | 'error' | 'critical';
|
|
3
|
+
export type RedactionStatus = 'clean' | 'redacted' | 'unknown';
|
|
4
|
+
export interface ForensicResource {
|
|
5
|
+
service_namespace: string;
|
|
6
|
+
service_name: string;
|
|
7
|
+
service_component: string;
|
|
8
|
+
deployment_environment: string;
|
|
9
|
+
repo: string;
|
|
10
|
+
service_version?: string;
|
|
11
|
+
runtime?: string;
|
|
12
|
+
participant_kind?: string;
|
|
13
|
+
participant_role?: string;
|
|
14
|
+
model_provider?: string;
|
|
15
|
+
model?: string;
|
|
16
|
+
worktree_mode?: string;
|
|
17
|
+
chain_kind?: string;
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
}
|
|
20
|
+
export interface ForensicCorrelation {
|
|
21
|
+
participant_id?: string;
|
|
22
|
+
job_id?: string;
|
|
23
|
+
bead_id?: string;
|
|
24
|
+
issue_id?: string;
|
|
25
|
+
container_id?: string;
|
|
26
|
+
chain_id?: string;
|
|
27
|
+
chain_root_job_id?: string;
|
|
28
|
+
chain_root_bead_id?: string;
|
|
29
|
+
epic_id?: string;
|
|
30
|
+
node_id?: string;
|
|
31
|
+
pulse_id?: string;
|
|
32
|
+
turn_id?: string;
|
|
33
|
+
tool_call_id?: string;
|
|
34
|
+
trace_id?: string;
|
|
35
|
+
span_id?: string;
|
|
36
|
+
parent_span_id?: string;
|
|
37
|
+
session_id?: string;
|
|
38
|
+
conversation_id?: string;
|
|
39
|
+
mcp_session_id?: string;
|
|
40
|
+
jsonrpc_request_id?: string;
|
|
41
|
+
eval_id?: string;
|
|
42
|
+
policy_decision_id?: string;
|
|
43
|
+
identity_request_id?: string;
|
|
44
|
+
commit_sha?: string;
|
|
45
|
+
[key: string]: unknown;
|
|
46
|
+
}
|
|
47
|
+
export interface ForensicRedaction {
|
|
48
|
+
status: RedactionStatus;
|
|
49
|
+
fields?: string[];
|
|
50
|
+
rules?: string[];
|
|
51
|
+
}
|
|
52
|
+
export interface ForensicEvent<TBody extends Record<string, unknown> = Record<string, unknown>> {
|
|
53
|
+
schema_version: typeof FORENSIC_SCHEMA_VERSION;
|
|
54
|
+
timestamp: string;
|
|
55
|
+
t_unix_ms: number;
|
|
56
|
+
seq?: number;
|
|
57
|
+
severity: ForensicSeverity;
|
|
58
|
+
event_family: string;
|
|
59
|
+
event_name: string;
|
|
60
|
+
event_version: number;
|
|
61
|
+
resource: ForensicResource;
|
|
62
|
+
correlation: ForensicCorrelation;
|
|
63
|
+
body: TBody;
|
|
64
|
+
redaction: ForensicRedaction;
|
|
65
|
+
trace?: Record<string, unknown>;
|
|
66
|
+
otel?: Record<string, unknown>;
|
|
67
|
+
links?: Record<string, unknown>;
|
|
68
|
+
diagnostics?: Record<string, unknown>;
|
|
69
|
+
}
|
|
70
|
+
export interface CreateForensicEventOptions<TBody extends Record<string, unknown> = Record<string, unknown>> {
|
|
71
|
+
event_family: string;
|
|
72
|
+
event_name: string;
|
|
73
|
+
resource: ForensicResource;
|
|
74
|
+
correlation?: ForensicCorrelation;
|
|
75
|
+
body?: TBody;
|
|
76
|
+
severity?: ForensicSeverity;
|
|
77
|
+
event_version?: number;
|
|
78
|
+
redaction?: ForensicRedaction;
|
|
79
|
+
t_unix_ms?: number;
|
|
80
|
+
timestamp?: string;
|
|
81
|
+
seq?: number;
|
|
82
|
+
trace?: Record<string, unknown>;
|
|
83
|
+
otel?: Record<string, unknown>;
|
|
84
|
+
links?: Record<string, unknown>;
|
|
85
|
+
diagnostics?: Record<string, unknown>;
|
|
86
|
+
}
|
|
87
|
+
export declare const FORBIDDEN_PROMETHEUS_LABELS: Set<string>;
|
|
88
|
+
export declare const DEFAULT_LABEL_ALLOWLIST: Set<string>;
|
|
89
|
+
interface RedactionResult<T = unknown> {
|
|
90
|
+
value: T;
|
|
91
|
+
fields: string[];
|
|
92
|
+
rules: string[];
|
|
93
|
+
}
|
|
94
|
+
export declare function redactForensicValue<T>(value: T, path?: string): RedactionResult<T>;
|
|
95
|
+
export declare function createForensicEvent<TBody extends Record<string, unknown> = Record<string, unknown>>(options: CreateForensicEventOptions<TBody>): ForensicEvent<TBody>;
|
|
96
|
+
export declare function normalizeResource(resource: ForensicResource): ForensicResource;
|
|
97
|
+
export interface ParticipantIdentityInput {
|
|
98
|
+
participant_kind?: string;
|
|
99
|
+
participant_role: string;
|
|
100
|
+
chain_id?: string;
|
|
101
|
+
container_id?: string;
|
|
102
|
+
session_uuid?: string;
|
|
103
|
+
node_id?: string;
|
|
104
|
+
member_index?: number;
|
|
105
|
+
adapter_id?: string;
|
|
106
|
+
}
|
|
107
|
+
export declare function deriveParticipantId(input: ParticipantIdentityInput): string | undefined;
|
|
108
|
+
export declare function assertKnownTopLevelFields(event: Record<string, unknown>): void;
|
|
109
|
+
export declare function assertNoForbiddenLabels(labels: Record<string, unknown>): void;
|
|
110
|
+
export declare function pickAllowedLabels(source: Record<string, unknown>, allowlist?: Set<string>): Record<string, string>;
|
|
111
|
+
export interface TimelineForensicContext {
|
|
112
|
+
jobId: string;
|
|
113
|
+
specialist: string;
|
|
114
|
+
beadId?: string;
|
|
115
|
+
nodeId?: string;
|
|
116
|
+
repo?: string;
|
|
117
|
+
serviceComponent?: string;
|
|
118
|
+
model?: string;
|
|
119
|
+
backend?: string;
|
|
120
|
+
chainKind?: string;
|
|
121
|
+
chainId?: string;
|
|
122
|
+
chainRootJobId?: string;
|
|
123
|
+
chainRootBeadId?: string;
|
|
124
|
+
epicId?: string;
|
|
125
|
+
sessionId?: string;
|
|
126
|
+
conversationId?: string;
|
|
127
|
+
traceId?: string;
|
|
128
|
+
spanId?: string;
|
|
129
|
+
parentSpanId?: string;
|
|
130
|
+
}
|
|
131
|
+
export declare function forensicEventFromTimelineEvent(event: {
|
|
132
|
+
t: number;
|
|
133
|
+
seq?: number;
|
|
134
|
+
type: string;
|
|
135
|
+
[key: string]: unknown;
|
|
136
|
+
}, context: TimelineForensicContext): ForensicEvent;
|
|
137
|
+
export {};
|
|
138
|
+
//# sourceMappingURL=forensic-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forensic-events.d.ts","sourceRoot":"","sources":["../../../src/specialist/forensic-events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,EAAG,kBAA2B,CAAC;AAEnE,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,U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,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,EACxE,OAAO,EAAE,uBAAuB,GAC/B,aAAa,CAmDf"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type ForensicCorrelation, type ForensicEvent, type ForensicSeverity } from './forensic-events.js';
|
|
2
|
+
export interface RenderedRow {
|
|
3
|
+
ts: number;
|
|
4
|
+
seq?: number;
|
|
5
|
+
type: string;
|
|
6
|
+
actor: string;
|
|
7
|
+
severity: ForensicSeverity;
|
|
8
|
+
payload: string;
|
|
9
|
+
jobId: string;
|
|
10
|
+
beadId?: string;
|
|
11
|
+
schemaWarning?: string;
|
|
12
|
+
correlation?: Pick<ForensicCorrelation, 'chain_id' | 'chain_root_job_id' | 'participant_id'>;
|
|
13
|
+
}
|
|
14
|
+
export interface RenderOpts {
|
|
15
|
+
includeJobPrefix?: boolean;
|
|
16
|
+
includeBeadPrefix?: boolean;
|
|
17
|
+
maxPayloadFields?: number;
|
|
18
|
+
maxFieldValueChars?: number;
|
|
19
|
+
}
|
|
20
|
+
export declare function forensicEventToRow(ev: ForensicEvent, opts?: RenderOpts): RenderedRow;
|
|
21
|
+
export interface ColumnLayout {
|
|
22
|
+
seqW: number;
|
|
23
|
+
typeW: number;
|
|
24
|
+
actorW: number;
|
|
25
|
+
}
|
|
26
|
+
export declare const SPEC_72_LAYOUT: ColumnLayout;
|
|
27
|
+
export interface ColumnStrings {
|
|
28
|
+
seq: string;
|
|
29
|
+
type: string;
|
|
30
|
+
actor: string;
|
|
31
|
+
payload: string;
|
|
32
|
+
}
|
|
33
|
+
export declare function formatRenderedRowColumns(row: RenderedRow, layout?: ColumnLayout): ColumnStrings;
|
|
34
|
+
//# sourceMappingURL=forensic-renderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forensic-renderer.d.ts","sourceRoot":"","sources":["../../../src/specialist/forensic-renderer.ts"],"names":[],"mappings":"AAgBA,OAAO,EAGL,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,IAAI,CAAC,mBAAmB,EAAE,UAAU,GAAG,mBAAmB,GAAG,gBAAgB,CAAC,CAAC;CAC9F;AAED,MAAM,WAAW,UAAU;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAKD,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,aAAa,EAAE,IAAI,GAAE,UAAe,GAAG,WAAW,CAsBxF;AA6BD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,cAAc,EAAE,YAAiD,CAAC;AAE/E,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,WAAW,EAChB,MAAM,GAAE,YAA6B,GACpC,aAAa,CAOf"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface GitChangedFileEvidence {
|
|
2
|
+
path: string;
|
|
3
|
+
added_lines: number;
|
|
4
|
+
removed_lines: number;
|
|
5
|
+
}
|
|
6
|
+
export interface GitDiffEvidence {
|
|
7
|
+
base_ref?: string;
|
|
8
|
+
base_sha?: string;
|
|
9
|
+
head_sha?: string;
|
|
10
|
+
changed_files: GitChangedFileEvidence[];
|
|
11
|
+
hunks?: string;
|
|
12
|
+
hunks_artifact_ref?: string;
|
|
13
|
+
hunks_inline?: boolean;
|
|
14
|
+
hunks_truncated?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare function redactGitDiffHunks(hunks: string): string;
|
|
17
|
+
export declare function willHunksBeInline(hunks: string): boolean;
|
|
18
|
+
export declare function writeGitDiffHunksArtifact(jobDir: string, artifactName: string, hunks: string): string;
|
|
19
|
+
export declare function parseGitNumstat(output: string): GitChangedFileEvidence[];
|
|
20
|
+
export declare function buildGitDiffEvidence(options: {
|
|
21
|
+
base_ref?: string;
|
|
22
|
+
base_sha?: string;
|
|
23
|
+
head_sha?: string;
|
|
24
|
+
numstat_output: string;
|
|
25
|
+
hunks_output?: string;
|
|
26
|
+
artifact_ref?: string;
|
|
27
|
+
}): GitDiffEvidence;
|
|
28
|
+
//# sourceMappingURL=git-diff-evidence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-diff-evidence.d.ts","sourceRoot":"","sources":["../../../src/specialist/git-diff-evidence.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,sBAAsB,EAAE,CAAC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAsBD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CASxD;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAExD;AAGD,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAMrG;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,sBAAsB,EAAE,CAgBxE;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,eAAe,CAelB"}
|