@isaacriehm/cairn 0.1.0 → 0.1.4
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/dist/.tsbuildinfo +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/backprop/id.d.ts +0 -14
- package/dist/backprop/id.js +0 -40
- package/dist/backprop/id.js.map +0 -1
- package/dist/backprop/index.d.ts +0 -23
- package/dist/backprop/index.js +0 -21
- package/dist/backprop/index.js.map +0 -1
- package/dist/backprop/prompt.d.ts +0 -16
- package/dist/backprop/prompt.js +0 -101
- package/dist/backprop/prompt.js.map +0 -1
- package/dist/backprop/runner.d.ts +0 -18
- package/dist/backprop/runner.js +0 -95
- package/dist/backprop/runner.js.map +0 -1
- package/dist/backprop/schema.d.ts +0 -61
- package/dist/backprop/schema.js +0 -55
- package/dist/backprop/schema.js.map +0 -1
- package/dist/backprop/types.d.ts +0 -101
- package/dist/backprop/types.js +0 -24
- package/dist/backprop/types.js.map +0 -1
- package/dist/backprop/writer.d.ts +0 -27
- package/dist/backprop/writer.js +0 -301
- package/dist/backprop/writer.js.map +0 -1
- package/dist/claude/error.d.ts +0 -33
- package/dist/claude/error.js +0 -58
- package/dist/claude/error.js.map +0 -1
- package/dist/claude/index.d.ts +0 -3
- package/dist/claude/index.js +0 -3
- package/dist/claude/index.js.map +0 -1
- package/dist/claude/runner.d.ts +0 -11
- package/dist/claude/runner.js +0 -132
- package/dist/claude/runner.js.map +0 -1
- package/dist/claude/types.d.ts +0 -52
- package/dist/claude/types.js +0 -14
- package/dist/claude/types.js.map +0 -1
- package/dist/cli/daemon.d.ts +0 -54
- package/dist/cli/daemon.js +0 -351
- package/dist/cli/daemon.js.map +0 -1
- package/dist/cli/install.d.ts +0 -52
- package/dist/cli/install.js +0 -308
- package/dist/cli/install.js.map +0 -1
- package/dist/cli/mirror.d.ts +0 -1
- package/dist/cli/mirror.js +0 -97
- package/dist/cli/mirror.js.map +0 -1
- package/dist/cli/run.d.ts +0 -1
- package/dist/cli/run.js +0 -174
- package/dist/cli/run.js.map +0 -1
- package/dist/cli/task.d.ts +0 -18
- package/dist/cli/task.js +0 -137
- package/dist/cli/task.js.map +0 -1
- package/dist/cli/watch.d.ts +0 -1
- package/dist/cli/watch.js +0 -73
- package/dist/cli/watch.js.map +0 -1
- package/dist/decision-capture/capture.d.ts +0 -57
- package/dist/decision-capture/capture.js +0 -186
- package/dist/decision-capture/capture.js.map +0 -1
- package/dist/decision-capture/extractor.d.ts +0 -20
- package/dist/decision-capture/extractor.js +0 -103
- package/dist/decision-capture/extractor.js.map +0 -1
- package/dist/decision-capture/id.d.ts +0 -14
- package/dist/decision-capture/id.js +0 -44
- package/dist/decision-capture/id.js.map +0 -1
- package/dist/decision-capture/index.d.ts +0 -25
- package/dist/decision-capture/index.js +0 -21
- package/dist/decision-capture/index.js.map +0 -1
- package/dist/decision-capture/prompt.d.ts +0 -15
- package/dist/decision-capture/prompt.js +0 -68
- package/dist/decision-capture/prompt.js.map +0 -1
- package/dist/decision-capture/refinement-prompt.d.ts +0 -25
- package/dist/decision-capture/refinement-prompt.js +0 -146
- package/dist/decision-capture/refinement-prompt.js.map +0 -1
- package/dist/decision-capture/refinement-schema.d.ts +0 -52
- package/dist/decision-capture/refinement-schema.js +0 -61
- package/dist/decision-capture/refinement-schema.js.map +0 -1
- package/dist/decision-capture/refinement.d.ts +0 -60
- package/dist/decision-capture/refinement.js +0 -439
- package/dist/decision-capture/refinement.js.map +0 -1
- package/dist/decision-capture/schema.d.ts +0 -70
- package/dist/decision-capture/schema.js +0 -71
- package/dist/decision-capture/schema.js.map +0 -1
- package/dist/decision-capture/types.d.ts +0 -201
- package/dist/decision-capture/types.js +0 -20
- package/dist/decision-capture/types.js.map +0 -1
- package/dist/decision-capture/writer.d.ts +0 -90
- package/dist/decision-capture/writer.js +0 -267
- package/dist/decision-capture/writer.js.map +0 -1
- package/dist/frontend/discord/acl.d.ts +0 -6
- package/dist/frontend/discord/acl.js +0 -19
- package/dist/frontend/discord/acl.js.map +0 -1
- package/dist/frontend/discord/channels.d.ts +0 -29
- package/dist/frontend/discord/channels.js +0 -58
- package/dist/frontend/discord/channels.js.map +0 -1
- package/dist/frontend/discord/classifier.d.ts +0 -16
- package/dist/frontend/discord/classifier.js +0 -29
- package/dist/frontend/discord/classifier.js.map +0 -1
- package/dist/frontend/discord/index.d.ts +0 -118
- package/dist/frontend/discord/index.js +0 -1104
- package/dist/frontend/discord/index.js.map +0 -1
- package/dist/frontend/discord/slash.d.ts +0 -18
- package/dist/frontend/discord/slash.js +0 -90
- package/dist/frontend/discord/slash.js.map +0 -1
- package/dist/frontend/inbox.d.ts +0 -17
- package/dist/frontend/inbox.js +0 -30
- package/dist/frontend/inbox.js.map +0 -1
- package/dist/frontend/index.d.ts +0 -8
- package/dist/frontend/index.js +0 -6
- package/dist/frontend/index.js.map +0 -1
- package/dist/frontend/stub/index.d.ts +0 -58
- package/dist/frontend/stub/index.js +0 -144
- package/dist/frontend/stub/index.js.map +0 -1
- package/dist/frontend/types.d.ts +0 -247
- package/dist/frontend/types.js +0 -15
- package/dist/frontend/types.js.map +0 -1
- package/dist/gc/apply.d.ts +0 -26
- package/dist/gc/apply.js +0 -48
- package/dist/gc/apply.js.map +0 -1
- package/dist/gc/canary.d.ts +0 -42
- package/dist/gc/canary.js +0 -134
- package/dist/gc/canary.js.map +0 -1
- package/dist/gc/classify.d.ts +0 -25
- package/dist/gc/classify.js +0 -89
- package/dist/gc/classify.js.map +0 -1
- package/dist/gc/doc-gardening.d.ts +0 -29
- package/dist/gc/doc-gardening.js +0 -146
- package/dist/gc/doc-gardening.js.map +0 -1
- package/dist/gc/frontmatter.d.ts +0 -35
- package/dist/gc/frontmatter.js +0 -111
- package/dist/gc/frontmatter.js.map +0 -1
- package/dist/gc/generator-drift.d.ts +0 -28
- package/dist/gc/generator-drift.js +0 -53
- package/dist/gc/generator-drift.js.map +0 -1
- package/dist/gc/index.d.ts +0 -35
- package/dist/gc/index.js +0 -26
- package/dist/gc/index.js.map +0 -1
- package/dist/gc/quality-update.d.ts +0 -23
- package/dist/gc/quality-update.js +0 -69
- package/dist/gc/quality-update.js.map +0 -1
- package/dist/gc/stub-hits.d.ts +0 -31
- package/dist/gc/stub-hits.js +0 -125
- package/dist/gc/stub-hits.js.map +0 -1
- package/dist/gc/sweep.d.ts +0 -56
- package/dist/gc/sweep.js +0 -178
- package/dist/gc/sweep.js.map +0 -1
- package/dist/gc/types.d.ts +0 -129
- package/dist/gc/types.js +0 -26
- package/dist/gc/types.js.map +0 -1
- package/dist/ground/drift.d.ts +0 -8
- package/dist/ground/drift.js +0 -23
- package/dist/ground/drift.js.map +0 -1
- package/dist/ground/frontmatter.d.ts +0 -20
- package/dist/ground/frontmatter.js +0 -49
- package/dist/ground/frontmatter.js.map +0 -1
- package/dist/ground/glob.d.ts +0 -10
- package/dist/ground/glob.js +0 -46
- package/dist/ground/glob.js.map +0 -1
- package/dist/ground/index.d.ts +0 -14
- package/dist/ground/index.js +0 -10
- package/dist/ground/index.js.map +0 -1
- package/dist/ground/ledgers.d.ts +0 -18
- package/dist/ground/ledgers.js +0 -103
- package/dist/ground/ledgers.js.map +0 -1
- package/dist/ground/manifest.d.ts +0 -10
- package/dist/ground/manifest.js +0 -88
- package/dist/ground/manifest.js.map +0 -1
- package/dist/ground/paths.d.ts +0 -20
- package/dist/ground/paths.js +0 -61
- package/dist/ground/paths.js.map +0 -1
- package/dist/ground/quality-grades.d.ts +0 -11
- package/dist/ground/quality-grades.js +0 -98
- package/dist/ground/quality-grades.js.map +0 -1
- package/dist/ground/schemas.d.ts +0 -306
- package/dist/ground/schemas.js +0 -188
- package/dist/ground/schemas.js.map +0 -1
- package/dist/ground/walk.d.ts +0 -7
- package/dist/ground/walk.js +0 -53
- package/dist/ground/walk.js.map +0 -1
- package/dist/init/detect.d.ts +0 -25
- package/dist/init/detect.js +0 -336
- package/dist/init/detect.js.map +0 -1
- package/dist/init/index.d.ts +0 -14
- package/dist/init/index.js +0 -9
- package/dist/init/index.js.map +0 -1
- package/dist/init/init.d.ts +0 -68
- package/dist/init/init.js +0 -673
- package/dist/init/init.js.map +0 -1
- package/dist/init/mapper.d.ts +0 -160
- package/dist/init/mapper.js +0 -248
- package/dist/init/mapper.js.map +0 -1
- package/dist/init/prompts.d.ts +0 -70
- package/dist/init/prompts.js +0 -80
- package/dist/init/prompts.js.map +0 -1
- package/dist/init/secrets.d.ts +0 -18
- package/dist/init/secrets.js +0 -76
- package/dist/init/secrets.js.map +0 -1
- package/dist/init/seed.d.ts +0 -21
- package/dist/init/seed.js +0 -75
- package/dist/init/seed.js.map +0 -1
- package/dist/init/setup-runners.d.ts +0 -17
- package/dist/init/setup-runners.js +0 -70
- package/dist/init/setup-runners.js.map +0 -1
- package/dist/init/types.d.ts +0 -59
- package/dist/init/types.js +0 -10
- package/dist/init/types.js.map +0 -1
- package/dist/init/walker.d.ts +0 -53
- package/dist/init/walker.js +0 -460
- package/dist/init/walker.js.map +0 -1
- package/dist/init/workflow-block.d.ts +0 -34
- package/dist/init/workflow-block.js +0 -110
- package/dist/init/workflow-block.js.map +0 -1
- package/dist/logger.d.ts +0 -3
- package/dist/logger.js +0 -23
- package/dist/logger.js.map +0 -1
- package/dist/mcp/context.d.ts +0 -16
- package/dist/mcp/context.js +0 -8
- package/dist/mcp/context.js.map +0 -1
- package/dist/mcp/errors.d.ts +0 -17
- package/dist/mcp/errors.js +0 -23
- package/dist/mcp/errors.js.map +0 -1
- package/dist/mcp/index.d.ts +0 -10
- package/dist/mcp/index.js +0 -7
- package/dist/mcp/index.js.map +0 -1
- package/dist/mcp/path-allowlist.d.ts +0 -25
- package/dist/mcp/path-allowlist.js +0 -66
- package/dist/mcp/path-allowlist.js.map +0 -1
- package/dist/mcp/result.d.ts +0 -8
- package/dist/mcp/result.js +0 -18
- package/dist/mcp/result.js.map +0 -1
- package/dist/mcp/schemas.d.ts +0 -153
- package/dist/mcp/schemas.js +0 -135
- package/dist/mcp/schemas.js.map +0 -1
- package/dist/mcp/server.d.ts +0 -11
- package/dist/mcp/server.js +0 -58
- package/dist/mcp/server.js.map +0 -1
- package/dist/mcp/telemetry.d.ts +0 -15
- package/dist/mcp/telemetry.js +0 -13
- package/dist/mcp/telemetry.js.map +0 -1
- package/dist/mcp/tools/append.d.ts +0 -8
- package/dist/mcp/tools/append.js +0 -33
- package/dist/mcp/tools/append.js.map +0 -1
- package/dist/mcp/tools/archive.d.ts +0 -8
- package/dist/mcp/tools/archive.js +0 -49
- package/dist/mcp/tools/archive.js.map +0 -1
- package/dist/mcp/tools/ask-operator.d.ts +0 -34
- package/dist/mcp/tools/ask-operator.js +0 -93
- package/dist/mcp/tools/ask-operator.js.map +0 -1
- package/dist/mcp/tools/canonical-for-topic.d.ts +0 -6
- package/dist/mcp/tools/canonical-for-topic.js +0 -40
- package/dist/mcp/tools/canonical-for-topic.js.map +0 -1
- package/dist/mcp/tools/decision-get.d.ts +0 -6
- package/dist/mcp/tools/decision-get.js +0 -49
- package/dist/mcp/tools/decision-get.js.map +0 -1
- package/dist/mcp/tools/decisions-for-symbol.d.ts +0 -7
- package/dist/mcp/tools/decisions-for-symbol.js +0 -42
- package/dist/mcp/tools/decisions-for-symbol.js.map +0 -1
- package/dist/mcp/tools/decisions-in-scope.d.ts +0 -7
- package/dist/mcp/tools/decisions-in-scope.js +0 -47
- package/dist/mcp/tools/decisions-in-scope.js.map +0 -1
- package/dist/mcp/tools/drop-task.d.ts +0 -12
- package/dist/mcp/tools/drop-task.js +0 -47
- package/dist/mcp/tools/drop-task.js.map +0 -1
- package/dist/mcp/tools/get-full.d.ts +0 -7
- package/dist/mcp/tools/get-full.js +0 -46
- package/dist/mcp/tools/get-full.js.map +0 -1
- package/dist/mcp/tools/ground-get.d.ts +0 -7
- package/dist/mcp/tools/ground-get.js +0 -80
- package/dist/mcp/tools/ground-get.js.map +0 -1
- package/dist/mcp/tools/index.d.ts +0 -3
- package/dist/mcp/tools/index.js +0 -44
- package/dist/mcp/tools/index.js.map +0 -1
- package/dist/mcp/tools/invariant-get.d.ts +0 -6
- package/dist/mcp/tools/invariant-get.js +0 -49
- package/dist/mcp/tools/invariant-get.js.map +0 -1
- package/dist/mcp/tools/invariants-in-scope.d.ts +0 -7
- package/dist/mcp/tools/invariants-in-scope.js +0 -65
- package/dist/mcp/tools/invariants-in-scope.js.map +0 -1
- package/dist/mcp/tools/query-history.d.ts +0 -9
- package/dist/mcp/tools/query-history.js +0 -33
- package/dist/mcp/tools/query-history.js.map +0 -1
- package/dist/mcp/tools/record-decision.d.ts +0 -14
- package/dist/mcp/tools/record-decision.js +0 -101
- package/dist/mcp/tools/record-decision.js.map +0 -1
- package/dist/mcp/tools/record-run-event.d.ts +0 -10
- package/dist/mcp/tools/record-run-event.js +0 -28
- package/dist/mcp/tools/record-run-event.js.map +0 -1
- package/dist/mcp/tools/search.d.ts +0 -9
- package/dist/mcp/tools/search.js +0 -165
- package/dist/mcp/tools/search.js.map +0 -1
- package/dist/mcp/tools/supersedes-chain.d.ts +0 -6
- package/dist/mcp/tools/supersedes-chain.js +0 -66
- package/dist/mcp/tools/supersedes-chain.js.map +0 -1
- package/dist/mcp/tools/timeline.d.ts +0 -9
- package/dist/mcp/tools/timeline.js +0 -65
- package/dist/mcp/tools/timeline.js.map +0 -1
- package/dist/mcp/tools/types.d.ts +0 -9
- package/dist/mcp/tools/types.js +0 -2
- package/dist/mcp/tools/types.js.map +0 -1
- package/dist/mirror/clone.d.ts +0 -6
- package/dist/mirror/clone.js +0 -48
- package/dist/mirror/clone.js.map +0 -1
- package/dist/mirror/dirty-overlap.d.ts +0 -13
- package/dist/mirror/dirty-overlap.js +0 -77
- package/dist/mirror/dirty-overlap.js.map +0 -1
- package/dist/mirror/index.d.ts +0 -7
- package/dist/mirror/index.js +0 -7
- package/dist/mirror/index.js.map +0 -1
- package/dist/mirror/paths.d.ts +0 -18
- package/dist/mirror/paths.js +0 -45
- package/dist/mirror/paths.js.map +0 -1
- package/dist/mirror/push.d.ts +0 -9
- package/dist/mirror/push.js +0 -27
- package/dist/mirror/push.js.map +0 -1
- package/dist/mirror/state.d.ts +0 -4
- package/dist/mirror/state.js +0 -36
- package/dist/mirror/state.js.map +0 -1
- package/dist/mirror/sync.d.ts +0 -9
- package/dist/mirror/sync.js +0 -33
- package/dist/mirror/sync.js.map +0 -1
- package/dist/mirror/types.d.ts +0 -77
- package/dist/mirror/types.js +0 -2
- package/dist/mirror/types.js.map +0 -1
- package/dist/orchestrator/activity-summarizer.d.ts +0 -33
- package/dist/orchestrator/activity-summarizer.js +0 -120
- package/dist/orchestrator/activity-summarizer.js.map +0 -1
- package/dist/orchestrator/inbox.d.ts +0 -78
- package/dist/orchestrator/inbox.js +0 -115
- package/dist/orchestrator/inbox.js.map +0 -1
- package/dist/orchestrator/index.d.ts +0 -9
- package/dist/orchestrator/index.js +0 -7
- package/dist/orchestrator/index.js.map +0 -1
- package/dist/orchestrator/orchestrator.d.ts +0 -154
- package/dist/orchestrator/orchestrator.js +0 -2437
- package/dist/orchestrator/orchestrator.js.map +0 -1
- package/dist/orchestrator/prompt.d.ts +0 -19
- package/dist/orchestrator/prompt.js +0 -50
- package/dist/orchestrator/prompt.js.map +0 -1
- package/dist/orchestrator/queue.d.ts +0 -21
- package/dist/orchestrator/queue.js +0 -80
- package/dist/orchestrator/queue.js.map +0 -1
- package/dist/orchestrator/run-log.d.ts +0 -53
- package/dist/orchestrator/run-log.js +0 -92
- package/dist/orchestrator/run-log.js.map +0 -1
- package/dist/orchestrator/runner.d.ts +0 -56
- package/dist/orchestrator/runner.js +0 -172
- package/dist/orchestrator/runner.js.map +0 -1
- package/dist/orchestrator/tool-digest.d.ts +0 -35
- package/dist/orchestrator/tool-digest.js +0 -116
- package/dist/orchestrator/tool-digest.js.map +0 -1
- package/dist/orchestrator/types.d.ts +0 -263
- package/dist/orchestrator/types.js +0 -2
- package/dist/orchestrator/types.js.map +0 -1
- package/dist/orchestrator/workspace.d.ts +0 -21
- package/dist/orchestrator/workspace.js +0 -31
- package/dist/orchestrator/workspace.js.map +0 -1
- package/dist/profiles/index.d.ts +0 -3
- package/dist/profiles/index.js +0 -3
- package/dist/profiles/index.js.map +0 -1
- package/dist/profiles/registry.d.ts +0 -5
- package/dist/profiles/registry.js +0 -31
- package/dist/profiles/registry.js.map +0 -1
- package/dist/profiles/types.d.ts +0 -48
- package/dist/profiles/types.js +0 -11
- package/dist/profiles/types.js.map +0 -1
- package/dist/profiles/unknown.d.ts +0 -9
- package/dist/profiles/unknown.js +0 -17
- package/dist/profiles/unknown.js.map +0 -1
- package/dist/reviewer/index.d.ts +0 -6
- package/dist/reviewer/index.js +0 -5
- package/dist/reviewer/index.js.map +0 -1
- package/dist/reviewer/prompt.d.ts +0 -11
- package/dist/reviewer/prompt.js +0 -132
- package/dist/reviewer/prompt.js.map +0 -1
- package/dist/reviewer/remediation.d.ts +0 -15
- package/dist/reviewer/remediation.js +0 -61
- package/dist/reviewer/remediation.js.map +0 -1
- package/dist/reviewer/reviewer.d.ts +0 -9
- package/dist/reviewer/reviewer.js +0 -89
- package/dist/reviewer/reviewer.js.map +0 -1
- package/dist/reviewer/schema.d.ts +0 -45
- package/dist/reviewer/schema.js +0 -43
- package/dist/reviewer/schema.js.map +0 -1
- package/dist/reviewer/types.d.ts +0 -74
- package/dist/reviewer/types.js +0 -14
- package/dist/reviewer/types.js.map +0 -1
- package/dist/sensors/attestation.d.ts +0 -44
- package/dist/sensors/attestation.js +0 -262
- package/dist/sensors/attestation.js.map +0 -1
- package/dist/sensors/catalog.d.ts +0 -41
- package/dist/sensors/catalog.js +0 -123
- package/dist/sensors/catalog.js.map +0 -1
- package/dist/sensors/decisions.d.ts +0 -30
- package/dist/sensors/decisions.js +0 -393
- package/dist/sensors/decisions.js.map +0 -1
- package/dist/sensors/diff.d.ts +0 -27
- package/dist/sensors/diff.js +0 -148
- package/dist/sensors/diff.js.map +0 -1
- package/dist/sensors/index.d.ts +0 -13
- package/dist/sensors/index.js +0 -9
- package/dist/sensors/index.js.map +0 -1
- package/dist/sensors/remediation.d.ts +0 -20
- package/dist/sensors/remediation.js +0 -65
- package/dist/sensors/remediation.js.map +0 -1
- package/dist/sensors/runner.d.ts +0 -44
- package/dist/sensors/runner.js +0 -95
- package/dist/sensors/runner.js.map +0 -1
- package/dist/sensors/structural.d.ts +0 -30
- package/dist/sensors/structural.js +0 -204
- package/dist/sensors/structural.js.map +0 -1
- package/dist/sensors/stub-catalog.d.ts +0 -39
- package/dist/sensors/stub-catalog.js +0 -115
- package/dist/sensors/stub-catalog.js.map +0 -1
- package/dist/sensors/types.d.ts +0 -135
- package/dist/sensors/types.js +0 -14
- package/dist/sensors/types.js.map +0 -1
- package/dist/tier0/classify.d.ts +0 -5
- package/dist/tier0/classify.js +0 -91
- package/dist/tier0/classify.js.map +0 -1
- package/dist/tier0/index.d.ts +0 -3
- package/dist/tier0/index.js +0 -3
- package/dist/tier0/index.js.map +0 -1
- package/dist/tier0/ollama.d.ts +0 -22
- package/dist/tier0/ollama.js +0 -63
- package/dist/tier0/ollama.js.map +0 -1
- package/dist/tier0/types.d.ts +0 -24
- package/dist/tier0/types.js +0 -7
- package/dist/tier0/types.js.map +0 -1
- package/dist/tightener/index.d.ts +0 -4
- package/dist/tightener/index.js +0 -4
- package/dist/tightener/index.js.map +0 -1
- package/dist/tightener/prompt.d.ts +0 -3
- package/dist/tightener/prompt.js +0 -67
- package/dist/tightener/prompt.js.map +0 -1
- package/dist/tightener/schema.d.ts +0 -68
- package/dist/tightener/schema.js +0 -44
- package/dist/tightener/schema.js.map +0 -1
- package/dist/tightener/tighten.d.ts +0 -2
- package/dist/tightener/tighten.js +0 -66
- package/dist/tightener/tighten.js.map +0 -1
- package/dist/tightener/types.d.ts +0 -74
- package/dist/tightener/types.js +0 -6
- package/dist/tightener/types.js.map +0 -1
- package/dist/uat/bundle.d.ts +0 -68
- package/dist/uat/bundle.js +0 -168
- package/dist/uat/bundle.js.map +0 -1
- package/dist/uat/index.d.ts +0 -15
- package/dist/uat/index.js +0 -10
- package/dist/uat/index.js.map +0 -1
- package/dist/uat/persistent.d.ts +0 -64
- package/dist/uat/persistent.js +0 -206
- package/dist/uat/persistent.js.map +0 -1
- package/dist/uat/probes/cli.d.ts +0 -11
- package/dist/uat/probes/cli.js +0 -107
- package/dist/uat/probes/cli.js.map +0 -1
- package/dist/uat/probes/http.d.ts +0 -12
- package/dist/uat/probes/http.js +0 -139
- package/dist/uat/probes/http.js.map +0 -1
- package/dist/uat/probes/index.d.ts +0 -21
- package/dist/uat/probes/index.js +0 -30
- package/dist/uat/probes/index.js.map +0 -1
- package/dist/uat/probes/integration.d.ts +0 -18
- package/dist/uat/probes/integration.js +0 -188
- package/dist/uat/probes/integration.js.map +0 -1
- package/dist/uat/probes/sql/config.d.ts +0 -14
- package/dist/uat/probes/sql/config.js +0 -57
- package/dist/uat/probes/sql/config.js.map +0 -1
- package/dist/uat/probes/sql/index.d.ts +0 -29
- package/dist/uat/probes/sql/index.js +0 -43
- package/dist/uat/probes/sql/index.js.map +0 -1
- package/dist/uat/probes/sql/mysql.d.ts +0 -12
- package/dist/uat/probes/sql/mysql.js +0 -96
- package/dist/uat/probes/sql/mysql.js.map +0 -1
- package/dist/uat/probes/sql/pg.d.ts +0 -20
- package/dist/uat/probes/sql/pg.js +0 -102
- package/dist/uat/probes/sql/pg.js.map +0 -1
- package/dist/uat/probes/sql/sqlite.d.ts +0 -9
- package/dist/uat/probes/sql/sqlite.js +0 -58
- package/dist/uat/probes/sql/sqlite.js.map +0 -1
- package/dist/uat/probes/sql/types.d.ts +0 -46
- package/dist/uat/probes/sql/types.js +0 -10
- package/dist/uat/probes/sql/types.js.map +0 -1
- package/dist/uat/probes/sql.d.ts +0 -9
- package/dist/uat/probes/sql.js +0 -119
- package/dist/uat/probes/sql.js.map +0 -1
- package/dist/uat/probes/ui.d.ts +0 -19
- package/dist/uat/probes/ui.js +0 -244
- package/dist/uat/probes/ui.js.map +0 -1
- package/dist/uat/prompt.d.ts +0 -10
- package/dist/uat/prompt.js +0 -85
- package/dist/uat/prompt.js.map +0 -1
- package/dist/uat/question.d.ts +0 -50
- package/dist/uat/question.js +0 -139
- package/dist/uat/question.js.map +0 -1
- package/dist/uat/rejection.d.ts +0 -58
- package/dist/uat/rejection.js +0 -163
- package/dist/uat/rejection.js.map +0 -1
- package/dist/uat/runner.d.ts +0 -6
- package/dist/uat/runner.js +0 -96
- package/dist/uat/runner.js.map +0 -1
- package/dist/uat/schema.d.ts +0 -322
- package/dist/uat/schema.js +0 -189
- package/dist/uat/schema.js.map +0 -1
- package/dist/uat/types.d.ts +0 -268
- package/dist/uat/types.js +0 -18
- package/dist/uat/types.js.map +0 -1
- package/dist/uat/uat.d.ts +0 -89
- package/dist/uat/uat.js +0 -256
- package/dist/uat/uat.js.map +0 -1
- package/dist/voice/index.d.ts +0 -4
- package/dist/voice/index.js +0 -4
- package/dist/voice/index.js.map +0 -1
- package/dist/voice/model.d.ts +0 -23
- package/dist/voice/model.js +0 -46
- package/dist/voice/model.js.map +0 -1
- package/dist/voice/pipe.d.ts +0 -9
- package/dist/voice/pipe.js +0 -47
- package/dist/voice/pipe.js.map +0 -1
- package/dist/voice/transcribe.d.ts +0 -3
- package/dist/voice/transcribe.js +0 -43
- package/dist/voice/transcribe.js.map +0 -1
- package/dist/voice/types.d.ts +0 -26
- package/dist/voice/types.js +0 -9
- package/dist/voice/types.js.map +0 -1
- package/dist/watch/daemon.d.ts +0 -21
- package/dist/watch/daemon.js +0 -143
- package/dist/watch/daemon.js.map +0 -1
- package/dist/watch/index.d.ts +0 -4
- package/dist/watch/index.js +0 -3
- package/dist/watch/index.js.map +0 -1
- package/dist/watch/regenerate.d.ts +0 -25
- package/dist/watch/regenerate.js +0 -51
- package/dist/watch/regenerate.js.map +0 -1
package/dist/mcp/context.js
DELETED
package/dist/mcp/context.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/mcp/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAepC,MAAM,UAAU,aAAa,CAAC,IAA0C;IACtE,OAAO;QACL,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC;QAChC,GAAG,CAAC,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC3D,CAAC;AACJ,CAAC"}
|
package/dist/mcp/errors.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Error envelope per MCP_SURFACE §"Failure modes".
|
|
3
|
-
*
|
|
4
|
-
* Tools NEVER throw. They return either a success payload or an error envelope
|
|
5
|
-
* shaped as { error: { code, message, details? } }. The envelope is wrapped in
|
|
6
|
-
* the MCP `CallToolResult` content text.
|
|
7
|
-
*/
|
|
8
|
-
export type McpErrorCode = "VALIDATION_FAILED" | "TOOL_NOT_FOUND" | "PATH_OUTSIDE_REPO" | "PATH_HISTORICAL_USE_QUERY_HISTORY" | "PATH_NOT_ALLOWED" | "FILE_NOT_FOUND" | "DAEMON_UNAVAILABLE" | "OPERATION_TIMEOUT" | "DECISION_NOT_FOUND" | "DECISION_ID_TAKEN" | "INVALID_ASSERTION_KIND" | "SUPERSEDES_NOT_FOUND" | "INVARIANT_NOT_FOUND" | "TOPIC_NOT_REGISTERED" | "RUN_NOT_FOUND" | "TASK_NOT_FOUND" | "NOT_ALLOWED" | "NOT_IMPLEMENTED";
|
|
9
|
-
export interface McpErrorPayload {
|
|
10
|
-
error: {
|
|
11
|
-
code: McpErrorCode;
|
|
12
|
-
message: string;
|
|
13
|
-
details?: unknown;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export declare function mcpError(code: McpErrorCode, message: string, details?: unknown): McpErrorPayload;
|
|
17
|
-
export declare function isMcpError(payload: unknown): payload is McpErrorPayload;
|
package/dist/mcp/errors.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Error envelope per MCP_SURFACE §"Failure modes".
|
|
3
|
-
*
|
|
4
|
-
* Tools NEVER throw. They return either a success payload or an error envelope
|
|
5
|
-
* shaped as { error: { code, message, details? } }. The envelope is wrapped in
|
|
6
|
-
* the MCP `CallToolResult` content text.
|
|
7
|
-
*/
|
|
8
|
-
export function mcpError(code, message, details) {
|
|
9
|
-
return {
|
|
10
|
-
error: {
|
|
11
|
-
code,
|
|
12
|
-
message,
|
|
13
|
-
...(details !== undefined ? { details } : {}),
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export function isMcpError(payload) {
|
|
18
|
-
return (typeof payload === "object" &&
|
|
19
|
-
payload !== null &&
|
|
20
|
-
"error" in payload &&
|
|
21
|
-
typeof payload.error === "object");
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=errors.js.map
|
package/dist/mcp/errors.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/mcp/errors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA8BH,MAAM,UAAU,QAAQ,CACtB,IAAkB,EAClB,OAAe,EACf,OAAiB;IAEjB,OAAO;QACL,KAAK,EAAE;YACL,IAAI;YACJ,OAAO;YACP,GAAG,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAC9C;KACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,OAAgB;IACzC,OAAO,CACL,OAAO,OAAO,KAAK,QAAQ;QAC3B,OAAO,KAAK,IAAI;QAChB,OAAO,IAAI,OAAO;QAClB,OAAQ,OAA8B,CAAC,KAAK,KAAK,QAAQ,CAC1D,CAAC;AACJ,CAAC"}
|
package/dist/mcp/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { startMcpServer } from "./server.js";
|
|
2
|
-
export type { StartServerOptions } from "./server.js";
|
|
3
|
-
export { createContext } from "./context.js";
|
|
4
|
-
export type { McpContext } from "./context.js";
|
|
5
|
-
export { allTools } from "./tools/index.js";
|
|
6
|
-
export type { ToolDef } from "./tools/types.js";
|
|
7
|
-
export { mcpError, isMcpError } from "./errors.js";
|
|
8
|
-
export type { McpErrorCode, McpErrorPayload } from "./errors.js";
|
|
9
|
-
export { asMcpResult } from "./result.js";
|
|
10
|
-
export { APPEND_ALLOWLIST, ARCHIVE_DENY, HISTORICAL_ZONE, isAppendAllowed, isArchiveDenied, isHistorical, safeJoin, } from "./path-allowlist.js";
|
package/dist/mcp/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { startMcpServer } from "./server.js";
|
|
2
|
-
export { createContext } from "./context.js";
|
|
3
|
-
export { allTools } from "./tools/index.js";
|
|
4
|
-
export { mcpError, isMcpError } from "./errors.js";
|
|
5
|
-
export { asMcpResult } from "./result.js";
|
|
6
|
-
export { APPEND_ALLOWLIST, ARCHIVE_DENY, HISTORICAL_ZONE, isAppendAllowed, isArchiveDenied, isHistorical, safeJoin, } from "./path-allowlist.js";
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
package/dist/mcp/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/mcp/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,eAAe,EACf,eAAe,EACf,YAAY,EACZ,QAAQ,GACT,MAAM,qBAAqB,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { type McpErrorPayload } from "./errors.js";
|
|
2
|
-
/**
|
|
3
|
-
* Append-write allowlist. Server-side, NOT agent-controllable.
|
|
4
|
-
*
|
|
5
|
-
* Per MCP_SURFACE.md §"Write tools — append-only":
|
|
6
|
-
* - .harness/runs/active/<run-id>/events.jsonl
|
|
7
|
-
* - .harness/runs/active/<run-id>/commands.jsonl
|
|
8
|
-
* - .harness/staleness/log.jsonl
|
|
9
|
-
* - .harness/inbox/** (system-only; rarely used by agents)
|
|
10
|
-
*/
|
|
11
|
-
export declare const APPEND_ALLOWLIST: readonly string[];
|
|
12
|
-
/**
|
|
13
|
-
* Paths agents may NOT archive. AGENTS.md, CLAUDE.md, brand guidelines, and
|
|
14
|
-
* decisions/ are all sacred ground.
|
|
15
|
-
*/
|
|
16
|
-
export declare const ARCHIVE_DENY: readonly string[];
|
|
17
|
-
/** Historical-zone globs — read tools refuse these; query_history is the ONE escape. */
|
|
18
|
-
export declare const HISTORICAL_ZONE: readonly string[];
|
|
19
|
-
/** Resolves a relative path against repoRoot and rejects escapes. */
|
|
20
|
-
export declare function safeJoin(repoRoot: string, rel: string): string | McpErrorPayload;
|
|
21
|
-
/** Returns repo-relative POSIX-style path for a path already inside repoRoot. */
|
|
22
|
-
export declare function relPosix(repoRoot: string, abs: string): string;
|
|
23
|
-
export declare function isAppendAllowed(repoRelPath: string): boolean;
|
|
24
|
-
export declare function isArchiveDenied(repoRelPath: string): boolean;
|
|
25
|
-
export declare function isHistorical(repoRelPath: string): boolean;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { isAbsolute, normalize, relative, resolve } from "node:path";
|
|
2
|
-
import { matchAnyGlob } from "../ground/glob.js";
|
|
3
|
-
import { mcpError } from "./errors.js";
|
|
4
|
-
/**
|
|
5
|
-
* Append-write allowlist. Server-side, NOT agent-controllable.
|
|
6
|
-
*
|
|
7
|
-
* Per MCP_SURFACE.md §"Write tools — append-only":
|
|
8
|
-
* - .harness/runs/active/<run-id>/events.jsonl
|
|
9
|
-
* - .harness/runs/active/<run-id>/commands.jsonl
|
|
10
|
-
* - .harness/staleness/log.jsonl
|
|
11
|
-
* - .harness/inbox/** (system-only; rarely used by agents)
|
|
12
|
-
*/
|
|
13
|
-
export const APPEND_ALLOWLIST = [
|
|
14
|
-
".harness/runs/active/*/events.jsonl",
|
|
15
|
-
".harness/runs/active/*/commands.jsonl",
|
|
16
|
-
".harness/staleness/log.jsonl",
|
|
17
|
-
".harness/inbox/**",
|
|
18
|
-
];
|
|
19
|
-
/**
|
|
20
|
-
* Paths agents may NOT archive. AGENTS.md, CLAUDE.md, brand guidelines, and
|
|
21
|
-
* decisions/ are all sacred ground.
|
|
22
|
-
*/
|
|
23
|
-
export const ARCHIVE_DENY = [
|
|
24
|
-
"AGENTS.md",
|
|
25
|
-
"CLAUDE.md",
|
|
26
|
-
".claude/**",
|
|
27
|
-
"docs/decisions/**",
|
|
28
|
-
".harness/ground/decisions/**",
|
|
29
|
-
".harness/ground/invariants/**",
|
|
30
|
-
".harness/config/**",
|
|
31
|
-
"docs/design/brand/**",
|
|
32
|
-
];
|
|
33
|
-
/** Historical-zone globs — read tools refuse these; query_history is the ONE escape. */
|
|
34
|
-
export const HISTORICAL_ZONE = [
|
|
35
|
-
".archive/**",
|
|
36
|
-
".harness/runs/terminal/**",
|
|
37
|
-
".harness/tasks/done/**",
|
|
38
|
-
".harness/tasks/archived/**",
|
|
39
|
-
".harness/ground/decisions/_inbox/**",
|
|
40
|
-
];
|
|
41
|
-
/** Resolves a relative path against repoRoot and rejects escapes. */
|
|
42
|
-
export function safeJoin(repoRoot, rel) {
|
|
43
|
-
if (isAbsolute(rel)) {
|
|
44
|
-
return mcpError("PATH_OUTSIDE_REPO", `Absolute paths not accepted: ${rel}`);
|
|
45
|
-
}
|
|
46
|
-
const abs = resolve(repoRoot, rel);
|
|
47
|
-
const back = relative(repoRoot, abs);
|
|
48
|
-
if (back.startsWith("..") || isAbsolute(back)) {
|
|
49
|
-
return mcpError("PATH_OUTSIDE_REPO", `Path resolves outside repo: ${rel}`);
|
|
50
|
-
}
|
|
51
|
-
return abs;
|
|
52
|
-
}
|
|
53
|
-
/** Returns repo-relative POSIX-style path for a path already inside repoRoot. */
|
|
54
|
-
export function relPosix(repoRoot, abs) {
|
|
55
|
-
return normalize(relative(repoRoot, abs)).replace(/\\/g, "/");
|
|
56
|
-
}
|
|
57
|
-
export function isAppendAllowed(repoRelPath) {
|
|
58
|
-
return matchAnyGlob(repoRelPath, APPEND_ALLOWLIST);
|
|
59
|
-
}
|
|
60
|
-
export function isArchiveDenied(repoRelPath) {
|
|
61
|
-
return matchAnyGlob(repoRelPath, ARCHIVE_DENY);
|
|
62
|
-
}
|
|
63
|
-
export function isHistorical(repoRelPath) {
|
|
64
|
-
return matchAnyGlob(repoRelPath, HISTORICAL_ZONE);
|
|
65
|
-
}
|
|
66
|
-
//# sourceMappingURL=path-allowlist.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"path-allowlist.js","sourceRoot":"","sources":["../../src/mcp/path-allowlist.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAwB,MAAM,aAAa,CAAC;AAE7D;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAsB;IACjD,qCAAqC;IACrC,uCAAuC;IACvC,8BAA8B;IAC9B,mBAAmB;CACpB,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAsB;IAC7C,WAAW;IACX,WAAW;IACX,YAAY;IACZ,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eAAe,CAAC,CAAC;AACpD,CAAC"}
|
package/dist/mcp/result.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
-
import type { McpErrorPayload } from "./errors.js";
|
|
3
|
-
/**
|
|
4
|
-
* Wraps a tool's payload (success object OR error envelope) as the MCP
|
|
5
|
-
* CallToolResult shape: { content: [{ type: "text", text: <json> }], isError? }.
|
|
6
|
-
*/
|
|
7
|
-
export declare function asMcpResult(payload: unknown): CallToolResult;
|
|
8
|
-
export type { McpErrorPayload };
|
package/dist/mcp/result.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { isMcpError } from "./errors.js";
|
|
2
|
-
/**
|
|
3
|
-
* Wraps a tool's payload (success object OR error envelope) as the MCP
|
|
4
|
-
* CallToolResult shape: { content: [{ type: "text", text: <json> }], isError? }.
|
|
5
|
-
*/
|
|
6
|
-
export function asMcpResult(payload) {
|
|
7
|
-
const isError = isMcpError(payload);
|
|
8
|
-
return {
|
|
9
|
-
content: [
|
|
10
|
-
{
|
|
11
|
-
type: "text",
|
|
12
|
-
text: JSON.stringify(payload, null, 2),
|
|
13
|
-
},
|
|
14
|
-
],
|
|
15
|
-
isError,
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=result.js.map
|
package/dist/mcp/result.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"result.js","sourceRoot":"","sources":["../../src/mcp/result.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC;;;GAGG;AACH,MAAM,UAAU,WAAW,CAAC,OAAgB;IAC1C,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IACpC,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;aACvC;SACF;QACD,OAAO;KACR,CAAC;AACJ,CAAC"}
|
package/dist/mcp/schemas.d.ts
DELETED
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const decisionGetInput: {
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
};
|
|
5
|
-
export declare const decisionsInScopeInput: {
|
|
6
|
-
path_globs: z.ZodArray<z.ZodString>;
|
|
7
|
-
status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
8
|
-
draft: "draft";
|
|
9
|
-
accepted: "accepted";
|
|
10
|
-
superseded: "superseded";
|
|
11
|
-
archived: "archived";
|
|
12
|
-
}>>>;
|
|
13
|
-
};
|
|
14
|
-
export declare const decisionsForSymbolInput: {
|
|
15
|
-
file: z.ZodString;
|
|
16
|
-
symbol: z.ZodString;
|
|
17
|
-
};
|
|
18
|
-
export declare const canonicalForTopicInput: {
|
|
19
|
-
topic: z.ZodString;
|
|
20
|
-
};
|
|
21
|
-
export declare const groundGetInput: {
|
|
22
|
-
category: z.ZodEnum<{
|
|
23
|
-
schema: "schema";
|
|
24
|
-
routes: "routes";
|
|
25
|
-
events: "events";
|
|
26
|
-
quality_grades: "quality_grades";
|
|
27
|
-
glossary: "glossary";
|
|
28
|
-
manifest: "manifest";
|
|
29
|
-
}>;
|
|
30
|
-
key: z.ZodOptional<z.ZodString>;
|
|
31
|
-
};
|
|
32
|
-
export declare const supersedesChainInput: {
|
|
33
|
-
decision_id: z.ZodString;
|
|
34
|
-
};
|
|
35
|
-
export declare const invariantGetInput: {
|
|
36
|
-
id: z.ZodString;
|
|
37
|
-
};
|
|
38
|
-
export declare const invariantsInScopeInput: {
|
|
39
|
-
path_globs: z.ZodArray<z.ZodString>;
|
|
40
|
-
status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
41
|
-
superseded: "superseded";
|
|
42
|
-
active: "active";
|
|
43
|
-
}>>>;
|
|
44
|
-
};
|
|
45
|
-
export declare const searchInput: {
|
|
46
|
-
query: z.ZodString;
|
|
47
|
-
scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
48
|
-
kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
49
|
-
manifest: "manifest";
|
|
50
|
-
decision: "decision";
|
|
51
|
-
invariant: "invariant";
|
|
52
|
-
task: "task";
|
|
53
|
-
run: "run";
|
|
54
|
-
doc: "doc";
|
|
55
|
-
}>>>;
|
|
56
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
57
|
-
};
|
|
58
|
-
export declare const timelineInput: {
|
|
59
|
-
scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
60
|
-
since: z.ZodOptional<z.ZodString>;
|
|
61
|
-
until: z.ZodOptional<z.ZodString>;
|
|
62
|
-
kinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
63
|
-
};
|
|
64
|
-
export declare const getFullInput: {
|
|
65
|
-
id: z.ZodString;
|
|
66
|
-
kind: z.ZodEnum<{
|
|
67
|
-
decision: "decision";
|
|
68
|
-
invariant: "invariant";
|
|
69
|
-
task: "task";
|
|
70
|
-
run: "run";
|
|
71
|
-
}>;
|
|
72
|
-
};
|
|
73
|
-
export declare const queryHistoryInput: {
|
|
74
|
-
scope: z.ZodString;
|
|
75
|
-
path_hint: z.ZodOptional<z.ZodString>;
|
|
76
|
-
since: z.ZodOptional<z.ZodString>;
|
|
77
|
-
until: z.ZodOptional<z.ZodString>;
|
|
78
|
-
};
|
|
79
|
-
export declare const appendInput: {
|
|
80
|
-
path: z.ZodString;
|
|
81
|
-
content: z.ZodString;
|
|
82
|
-
newline_separator: z.ZodOptional<z.ZodBoolean>;
|
|
83
|
-
};
|
|
84
|
-
export declare const recordDecisionInput: {
|
|
85
|
-
id: z.ZodOptional<z.ZodString>;
|
|
86
|
-
title: z.ZodString;
|
|
87
|
-
summary: z.ZodString;
|
|
88
|
-
scope_globs: z.ZodArray<z.ZodString>;
|
|
89
|
-
supersedes: z.ZodOptional<z.ZodString>;
|
|
90
|
-
assertions: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
91
|
-
human_review_hint: z.ZodOptional<z.ZodString>;
|
|
92
|
-
body_markdown: z.ZodOptional<z.ZodString>;
|
|
93
|
-
target: z.ZodOptional<z.ZodEnum<{
|
|
94
|
-
accepted: "accepted";
|
|
95
|
-
inbox: "inbox";
|
|
96
|
-
}>>;
|
|
97
|
-
};
|
|
98
|
-
export declare const recordRunEventInput: {
|
|
99
|
-
run_id: z.ZodString;
|
|
100
|
-
event: z.ZodObject<{
|
|
101
|
-
kind: z.ZodString;
|
|
102
|
-
payload: z.ZodOptional<z.ZodUnknown>;
|
|
103
|
-
}, z.core.$strip>;
|
|
104
|
-
};
|
|
105
|
-
export declare const dropTaskInput: {
|
|
106
|
-
title: z.ZodString;
|
|
107
|
-
body: z.ZodString;
|
|
108
|
-
intent: z.ZodEnum<{
|
|
109
|
-
unknown: "unknown";
|
|
110
|
-
run_pilot: "run_pilot";
|
|
111
|
-
review_module: "review_module";
|
|
112
|
-
fix_issue: "fix_issue";
|
|
113
|
-
eval: "eval";
|
|
114
|
-
staleness_scan: "staleness_scan";
|
|
115
|
-
}>;
|
|
116
|
-
target_path_globs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
117
|
-
priority: z.ZodOptional<z.ZodNumber>;
|
|
118
|
-
parent_task_id: z.ZodOptional<z.ZodString>;
|
|
119
|
-
source: z.ZodOptional<z.ZodString>;
|
|
120
|
-
};
|
|
121
|
-
export declare const archiveInput: {
|
|
122
|
-
path: z.ZodString;
|
|
123
|
-
reason: z.ZodString;
|
|
124
|
-
archive_dir: z.ZodOptional<z.ZodString>;
|
|
125
|
-
};
|
|
126
|
-
export declare const askOperatorInput: {
|
|
127
|
-
/** The agent's run id — files land under runs/active/<run_id>/questions/. */
|
|
128
|
-
run_id: z.ZodString;
|
|
129
|
-
/** The question text shown to the operator. */
|
|
130
|
-
question: z.ZodString;
|
|
131
|
-
/**
|
|
132
|
-
* Optional A/B/C/D candidate resolutions. When present the operator
|
|
133
|
-
* dialog uses buttons; when empty the operator must reply free-form
|
|
134
|
-
* (the orchestrator falls back to a follow-up message handler).
|
|
135
|
-
*/
|
|
136
|
-
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
137
|
-
/**
|
|
138
|
-
* Why the agent needs the operator's input. One of:
|
|
139
|
-
* "ambiguity" — spec is genuinely vague / multiple valid paths
|
|
140
|
-
* "permission" — about to take a non-recoverable action (delete,
|
|
141
|
-
* force-push, etc.)
|
|
142
|
-
* "stuck" — couldn't make progress without external info
|
|
143
|
-
* "verify" — operator should confirm the agent's interpretation
|
|
144
|
-
*/
|
|
145
|
-
category: z.ZodOptional<z.ZodEnum<{
|
|
146
|
-
ambiguity: "ambiguity";
|
|
147
|
-
permission: "permission";
|
|
148
|
-
stuck: "stuck";
|
|
149
|
-
verify: "verify";
|
|
150
|
-
}>>;
|
|
151
|
-
/** Per-call timeout. Default 10 minutes. */
|
|
152
|
-
timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
153
|
-
};
|
package/dist/mcp/schemas.js
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
// Each constant below is the input zod RAW SHAPE the MCP SDK accepts directly
|
|
3
|
-
// in `registerTool({ inputSchema: ... })`. Keeping them as raw shapes (not
|
|
4
|
-
// pre-built objects) lets the SDK convert to JSON Schema for tool listings.
|
|
5
|
-
// ── Read tools — graph traversal ───────────────────────────────────────────
|
|
6
|
-
export const decisionGetInput = {
|
|
7
|
-
id: z.string().regex(/^DEC-\d{4,}$/, "decision id must match DEC-NNNN"),
|
|
8
|
-
};
|
|
9
|
-
export const decisionsInScopeInput = {
|
|
10
|
-
path_globs: z.array(z.string()).min(1),
|
|
11
|
-
status: z.array(z.enum(["draft", "accepted", "superseded", "archived"])).optional(),
|
|
12
|
-
};
|
|
13
|
-
export const decisionsForSymbolInput = {
|
|
14
|
-
file: z.string().min(1),
|
|
15
|
-
symbol: z.string().min(1),
|
|
16
|
-
};
|
|
17
|
-
export const canonicalForTopicInput = {
|
|
18
|
-
topic: z.string().min(1),
|
|
19
|
-
};
|
|
20
|
-
export const groundGetInput = {
|
|
21
|
-
category: z.enum([
|
|
22
|
-
"schema",
|
|
23
|
-
"routes",
|
|
24
|
-
"events",
|
|
25
|
-
"quality_grades",
|
|
26
|
-
"glossary",
|
|
27
|
-
"manifest",
|
|
28
|
-
]),
|
|
29
|
-
key: z.string().optional(),
|
|
30
|
-
};
|
|
31
|
-
export const supersedesChainInput = {
|
|
32
|
-
decision_id: z.string().min(1),
|
|
33
|
-
};
|
|
34
|
-
export const invariantGetInput = {
|
|
35
|
-
id: z.string().regex(/^V\d{4,}$/, "invariant id must match V<NNNN>"),
|
|
36
|
-
};
|
|
37
|
-
export const invariantsInScopeInput = {
|
|
38
|
-
path_globs: z.array(z.string()).min(1),
|
|
39
|
-
status: z.array(z.enum(["active", "superseded"])).optional(),
|
|
40
|
-
};
|
|
41
|
-
// ── Read tools — 3-layer progressive retrieval ─────────────────────────────
|
|
42
|
-
export const searchInput = {
|
|
43
|
-
query: z.string().min(1),
|
|
44
|
-
scope: z.array(z.string()).optional(),
|
|
45
|
-
kinds: z.array(z.enum(["decision", "invariant", "task", "run", "doc", "manifest"])).optional(),
|
|
46
|
-
limit: z.number().int().positive().max(50).optional(),
|
|
47
|
-
};
|
|
48
|
-
export const timelineInput = {
|
|
49
|
-
scope: z.array(z.string()).optional(),
|
|
50
|
-
since: z.string().optional(),
|
|
51
|
-
until: z.string().optional(),
|
|
52
|
-
kinds: z.array(z.string()).optional(),
|
|
53
|
-
};
|
|
54
|
-
export const getFullInput = {
|
|
55
|
-
id: z.string().min(1),
|
|
56
|
-
kind: z.enum(["decision", "invariant", "task", "run"]),
|
|
57
|
-
};
|
|
58
|
-
// ── Read tools — historical zone (gated) ───────────────────────────────────
|
|
59
|
-
export const queryHistoryInput = {
|
|
60
|
-
scope: z.string().min(1),
|
|
61
|
-
path_hint: z.string().optional(),
|
|
62
|
-
since: z.string().optional(),
|
|
63
|
-
until: z.string().optional(),
|
|
64
|
-
};
|
|
65
|
-
// ── Write tools ────────────────────────────────────────────────────────────
|
|
66
|
-
export const appendInput = {
|
|
67
|
-
path: z.string().min(1),
|
|
68
|
-
content: z.string(),
|
|
69
|
-
newline_separator: z.boolean().optional(),
|
|
70
|
-
};
|
|
71
|
-
export const recordDecisionInput = {
|
|
72
|
-
id: z.string().regex(/^DEC-\d{4,}$/).optional(),
|
|
73
|
-
title: z.string().min(1),
|
|
74
|
-
summary: z.string().min(1),
|
|
75
|
-
scope_globs: z.array(z.string()).min(1),
|
|
76
|
-
supersedes: z.string().optional(),
|
|
77
|
-
assertions: z.array(z.unknown()).optional(),
|
|
78
|
-
human_review_hint: z.string().optional(),
|
|
79
|
-
body_markdown: z.string().optional(),
|
|
80
|
-
target: z.enum(["inbox", "accepted"]).optional(),
|
|
81
|
-
};
|
|
82
|
-
export const recordRunEventInput = {
|
|
83
|
-
run_id: z.string().min(1),
|
|
84
|
-
event: z.object({
|
|
85
|
-
kind: z.string().min(1),
|
|
86
|
-
payload: z.unknown().optional(),
|
|
87
|
-
}),
|
|
88
|
-
};
|
|
89
|
-
export const dropTaskInput = {
|
|
90
|
-
title: z.string().min(1),
|
|
91
|
-
body: z.string().min(1),
|
|
92
|
-
intent: z.enum([
|
|
93
|
-
"run_pilot",
|
|
94
|
-
"review_module",
|
|
95
|
-
"fix_issue",
|
|
96
|
-
"eval",
|
|
97
|
-
"staleness_scan",
|
|
98
|
-
"unknown",
|
|
99
|
-
]),
|
|
100
|
-
target_path_globs: z.array(z.string()).optional(),
|
|
101
|
-
priority: z.number().int().min(1).max(10).optional(),
|
|
102
|
-
parent_task_id: z.string().optional(),
|
|
103
|
-
source: z.string().optional(),
|
|
104
|
-
};
|
|
105
|
-
export const archiveInput = {
|
|
106
|
-
path: z.string().min(1),
|
|
107
|
-
reason: z.string().min(1),
|
|
108
|
-
archive_dir: z.string().optional(),
|
|
109
|
-
};
|
|
110
|
-
export const askOperatorInput = {
|
|
111
|
-
/** The agent's run id — files land under runs/active/<run_id>/questions/. */
|
|
112
|
-
run_id: z.string().min(1),
|
|
113
|
-
/** The question text shown to the operator. */
|
|
114
|
-
question: z.string().min(1),
|
|
115
|
-
/**
|
|
116
|
-
* Optional A/B/C/D candidate resolutions. When present the operator
|
|
117
|
-
* dialog uses buttons; when empty the operator must reply free-form
|
|
118
|
-
* (the orchestrator falls back to a follow-up message handler).
|
|
119
|
-
*/
|
|
120
|
-
options: z.array(z.string().min(1)).max(4).optional(),
|
|
121
|
-
/**
|
|
122
|
-
* Why the agent needs the operator's input. One of:
|
|
123
|
-
* "ambiguity" — spec is genuinely vague / multiple valid paths
|
|
124
|
-
* "permission" — about to take a non-recoverable action (delete,
|
|
125
|
-
* force-push, etc.)
|
|
126
|
-
* "stuck" — couldn't make progress without external info
|
|
127
|
-
* "verify" — operator should confirm the agent's interpretation
|
|
128
|
-
*/
|
|
129
|
-
category: z
|
|
130
|
-
.enum(["ambiguity", "permission", "stuck", "verify"])
|
|
131
|
-
.optional(),
|
|
132
|
-
/** Per-call timeout. Default 10 minutes. */
|
|
133
|
-
timeout_ms: z.number().int().min(1000).max(86_400_000).optional(),
|
|
134
|
-
};
|
|
135
|
-
//# sourceMappingURL=schemas.js.map
|
package/dist/mcp/schemas.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../src/mcp/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,8EAA8E;AAC9E,2EAA2E;AAC3E,4EAA4E;AAE5E,8EAA8E;AAE9E,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,cAAc,EAAE,iCAAiC,CAAC;CACxE,CA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AG,CAAC,CAAC,CAAC;IACvB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,6EAA6E;IAC7E,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,+CAA+C;IAC/C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B;;;;OAIG;IACH,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACrD;;;;;;;OAOG;IACH,QAAQ,EAAE,CAAC;SACR,IAAI,CAAC,CAAC,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;SACpD,QAAQ,EAAE;IACb,4CAA4C;IAC5C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE;CAClE,CAAC"}
|
package/dist/mcp/server.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
|
-
import type { McpContext } from "./context.js";
|
|
3
|
-
export interface StartServerOptions {
|
|
4
|
-
ctx: McpContext;
|
|
5
|
-
/** When true, do not connect to stdio — caller wires its own transport. */
|
|
6
|
-
noConnect?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare function startMcpServer(opts: StartServerOptions): Promise<{
|
|
9
|
-
server: McpServer;
|
|
10
|
-
close: () => Promise<void>;
|
|
11
|
-
}>;
|
package/dist/mcp/server.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
|
-
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
3
|
-
import { logger } from "../logger.js";
|
|
4
|
-
import { VERSION } from "../index.js";
|
|
5
|
-
import { isMcpError, mcpError } from "./errors.js";
|
|
6
|
-
import { asMcpResult } from "./result.js";
|
|
7
|
-
import { recordCall } from "./telemetry.js";
|
|
8
|
-
import { allTools } from "./tools/index.js";
|
|
9
|
-
const log = logger("mcp.server");
|
|
10
|
-
export async function startMcpServer(opts) {
|
|
11
|
-
const { ctx } = opts;
|
|
12
|
-
const server = new McpServer({ name: "harness-mcp", version: VERSION });
|
|
13
|
-
for (const tool of allTools) {
|
|
14
|
-
server.registerTool(tool.name, {
|
|
15
|
-
description: tool.description,
|
|
16
|
-
inputSchema: tool.inputSchema,
|
|
17
|
-
}, async (rawInput) => {
|
|
18
|
-
const start = process.hrtime.bigint();
|
|
19
|
-
let payload;
|
|
20
|
-
try {
|
|
21
|
-
payload = await tool.handler(ctx, rawInput);
|
|
22
|
-
}
|
|
23
|
-
catch (err) {
|
|
24
|
-
payload = mcpError("OPERATION_TIMEOUT", err instanceof Error ? err.message : "tool handler threw");
|
|
25
|
-
log.error({ tool: tool.name, err: String(err) }, "tool handler threw");
|
|
26
|
-
}
|
|
27
|
-
const durationMs = Number(process.hrtime.bigint() - start) / 1_000_000;
|
|
28
|
-
const result = asMcpResult(payload);
|
|
29
|
-
const resultSize = result.content?.[0]?.type === "text" ? result.content[0].text.length : 0;
|
|
30
|
-
try {
|
|
31
|
-
recordCall(ctx, {
|
|
32
|
-
ts: new Date().toISOString(),
|
|
33
|
-
tool: tool.name,
|
|
34
|
-
args: rawInput ?? {},
|
|
35
|
-
result_kind: isMcpError(payload) ? "error" : "ok",
|
|
36
|
-
result_size: resultSize,
|
|
37
|
-
duration_ms: Math.round(durationMs * 100) / 100,
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
catch {
|
|
41
|
-
// telemetry must not break tool calls
|
|
42
|
-
}
|
|
43
|
-
return result;
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
if (opts.noConnect !== true) {
|
|
47
|
-
const transport = new StdioServerTransport();
|
|
48
|
-
await server.connect(transport);
|
|
49
|
-
log.info({ tools: allTools.length, repoRoot: ctx.repoRoot }, "MCP server listening on stdio");
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
server,
|
|
53
|
-
close: async () => {
|
|
54
|
-
await server.close();
|
|
55
|
-
},
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
//# sourceMappingURL=server.js.map
|
package/dist/mcp/server.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/mcp/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,MAAM,GAAG,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;AAQjC,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,IAAwB;IAI3D,MAAM,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IACrB,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EA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oBAC5B,IAAI,EAAE,IAAI,CAAC,IAAI;oBACf,IAAI,EAAE,QAAQ,IAAI,EAAE;oBACpB,WAAW,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI;oBACjD,WAAW,EAAE,UAAU;oBACvB,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,GAAG,CAAC,GAAG,GAAG;iBAChD,CAAC,CAAC;YACL,CAAC;YAAC,MAAM,CAAC;gBACP,sCAAsC;YACxC,CAAC;YACD,OAAO,MAAM,CAAC;QAChB,CAAC,CACF,CAAC;IACJ,CAAC;IAED,IAAI,IAAI,CAAC,SAAS,KAAK,IAAI,EAAE,CAAC;QAC5B,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;QAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAChC,GAAG,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,MAAM,EAAE,QAAQ,EAAE,GAAG,CAAC,QAAQ,EAAE,EAAE,+BAA+B,CAAC,CAAC;IAChG,CAAC;IAED,OAAO;QACL,MAAM;QACN,KAAK,EAAE,KAAK,IAAI,EAAE;YAChB,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;QACvB,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/mcp/telemetry.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { McpContext } from "./context.js";
|
|
2
|
-
/**
|
|
3
|
-
* Writes one row per tool call to:
|
|
4
|
-
* - .harness/runs/active/<runId>/mcp-calls.jsonl when ctx.runId set
|
|
5
|
-
* - .harness/staleness/mcp-calls.jsonl otherwise
|
|
6
|
-
*/
|
|
7
|
-
export interface TelemetryRow {
|
|
8
|
-
ts: string;
|
|
9
|
-
tool: string;
|
|
10
|
-
args: unknown;
|
|
11
|
-
result_kind: "ok" | "error";
|
|
12
|
-
result_size: number;
|
|
13
|
-
duration_ms: number;
|
|
14
|
-
}
|
|
15
|
-
export declare function recordCall(ctx: McpContext, row: TelemetryRow): void;
|
package/dist/mcp/telemetry.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { appendFileSync, existsSync, mkdirSync } from "node:fs";
|
|
2
|
-
import { dirname, join } from "node:path";
|
|
3
|
-
export function recordCall(ctx, row) {
|
|
4
|
-
const path = ctx.runId !== undefined
|
|
5
|
-
? join(ctx.repoRoot, ".harness", "runs", "active", ctx.runId, "mcp-calls.jsonl")
|
|
6
|
-
: join(ctx.repoRoot, ".harness", "staleness", "mcp-calls.jsonl");
|
|
7
|
-
const dir = dirname(path);
|
|
8
|
-
if (!existsSync(dir)) {
|
|
9
|
-
mkdirSync(dir, { recursive: true });
|
|
10
|
-
}
|
|
11
|
-
appendFileSync(path, `${JSON.stringify(row)}\n`, "utf8");
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=telemetry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../src/mcp/telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAiB1C,MAAM,UAAU,UAAU,CAAC,GAAe,EAAE,GAAiB;IAC3D,MAAM,IAAI,GACR,GAAG,CAAC,KAAK,KAAK,SAAS;QACrB,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,CAAC,KAAK,EAAE,iBAAiB,CAAC;QAChF,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,iBAAiB,CAAC,CAAC;IACrE,MAAM,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1B,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACrB,SAAS,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACtC,CAAC;IACD,cAAc,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AAC3D,CAAC"}
|