@zhixuan92/multi-model-agent-core 4.7.4 → 4.7.6
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 +6 -6
- package/dist/bounded-execution/activity-tracker-types.d.ts +0 -2
- package/dist/bounded-execution/activity-tracker-types.d.ts.map +1 -1
- package/dist/bounded-execution/activity-tracker.d.ts +1 -5
- package/dist/bounded-execution/activity-tracker.d.ts.map +1 -1
- package/dist/bounded-execution/activity-tracker.js +1 -27
- package/dist/bounded-execution/activity-tracker.js.map +1 -1
- package/dist/bounded-execution/progress-events-subscriber.d.ts +4 -12
- package/dist/bounded-execution/progress-events-subscriber.d.ts.map +1 -1
- package/dist/bounded-execution/progress-events-subscriber.js +1 -5
- package/dist/bounded-execution/progress-events-subscriber.js.map +1 -1
- package/dist/config/model-profile-registry.d.ts.map +1 -1
- package/dist/config/model-profile-registry.js +9 -6
- package/dist/config/model-profile-registry.js.map +1 -1
- package/dist/config/schema.d.ts +1 -1
- package/dist/error-codes.d.ts +0 -3
- package/dist/error-codes.d.ts.map +1 -1
- package/dist/error-codes.js +1 -4
- package/dist/error-codes.js.map +1 -1
- package/dist/events/task-envelope.d.ts +0 -6
- package/dist/events/task-envelope.d.ts.map +1 -1
- package/dist/events/task-envelope.js +6 -13
- package/dist/events/task-envelope.js.map +1 -1
- package/dist/events/to-wire-record.d.ts.map +1 -1
- package/dist/events/to-wire-record.js +39 -5
- package/dist/events/to-wire-record.js.map +1 -1
- package/dist/events/wire-schema.d.ts +35 -99
- package/dist/events/wire-schema.d.ts.map +1 -1
- package/dist/events/wire-schema.js +2 -4
- package/dist/events/wire-schema.js.map +1 -1
- package/dist/index.d.ts +2 -19
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -14
- package/dist/index.js.map +1 -1
- package/dist/lifecycle/build-cancelled-result.d.ts.map +1 -1
- package/dist/lifecycle/build-cancelled-result.js +0 -2
- package/dist/lifecycle/build-cancelled-result.js.map +1 -1
- package/dist/lifecycle/handlers/annotate-stage.d.ts.map +1 -1
- package/dist/lifecycle/handlers/annotate-stage.js +35 -4
- package/dist/lifecycle/handlers/annotate-stage.js.map +1 -1
- package/dist/lifecycle/handlers/implement-stage.d.ts.map +1 -1
- package/dist/lifecycle/handlers/implement-stage.js +10 -1
- package/dist/lifecycle/handlers/implement-stage.js.map +1 -1
- package/dist/lifecycle/handlers/read-route-implementer.d.ts +5 -0
- package/dist/lifecycle/handlers/read-route-implementer.d.ts.map +1 -1
- package/dist/lifecycle/handlers/read-route-implementer.js +2 -2
- package/dist/lifecycle/handlers/read-route-implementer.js.map +1 -1
- package/dist/lifecycle/handlers/review-stage.d.ts.map +1 -1
- package/dist/lifecycle/handlers/review-stage.js +50 -23
- package/dist/lifecycle/handlers/review-stage.js.map +1 -1
- package/dist/lifecycle/handlers/rework-stage.d.ts.map +1 -1
- package/dist/lifecycle/handlers/rework-stage.js +0 -2
- package/dist/lifecycle/handlers/rework-stage.js.map +1 -1
- package/dist/lifecycle/handlers/terminal-handlers.d.ts.map +1 -1
- package/dist/lifecycle/handlers/terminal-handlers.js +1 -14
- package/dist/lifecycle/handlers/terminal-handlers.js.map +1 -1
- package/dist/lifecycle/lifecycle-context.d.ts +1 -1
- package/dist/lifecycle/lifecycle-driver.js +4 -4
- package/dist/lifecycle/lifecycle-driver.js.map +1 -1
- package/dist/lifecycle/merge-stage-stats.d.ts +1 -4
- package/dist/lifecycle/merge-stage-stats.d.ts.map +1 -1
- package/dist/lifecycle/merge-stage-stats.js +1 -6
- package/dist/lifecycle/merge-stage-stats.js.map +1 -1
- package/dist/lifecycle/perform-implementation.d.ts.map +1 -1
- package/dist/lifecycle/perform-implementation.js +39 -16
- package/dist/lifecycle/perform-implementation.js.map +1 -1
- package/dist/lifecycle/stage-stats.d.ts +0 -8
- package/dist/lifecycle/stage-stats.d.ts.map +1 -1
- package/dist/lifecycle/stage-stats.js +2 -12
- package/dist/lifecycle/stage-stats.js.map +1 -1
- package/dist/lifecycle/task-completion-summary.d.ts.map +1 -1
- package/dist/lifecycle/task-completion-summary.js +0 -3
- package/dist/lifecycle/task-completion-summary.js.map +1 -1
- package/dist/lifecycle/task-executor.d.ts.map +1 -1
- package/dist/lifecycle/task-executor.js +43 -5
- package/dist/lifecycle/task-executor.js.map +1 -1
- package/dist/lifecycle/task-runner.d.ts.map +1 -1
- package/dist/lifecycle/task-runner.js +7 -4
- package/dist/lifecycle/task-runner.js.map +1 -1
- package/dist/lifecycle/tool-config-types.d.ts +7 -1
- package/dist/lifecycle/tool-config-types.d.ts.map +1 -1
- package/dist/providers/assemble-run-result.d.ts.map +1 -1
- package/dist/providers/assemble-run-result.js +5 -38
- package/dist/providers/assemble-run-result.js.map +1 -1
- package/dist/providers/claude-session.d.ts +2 -0
- package/dist/providers/claude-session.d.ts.map +1 -1
- package/dist/providers/claude-session.js +12 -12
- package/dist/providers/claude-session.js.map +1 -1
- package/dist/providers/claude-tool-categories.d.ts +19 -0
- package/dist/providers/claude-tool-categories.d.ts.map +1 -0
- package/dist/providers/claude-tool-categories.js +37 -0
- package/dist/providers/claude-tool-categories.js.map +1 -0
- package/dist/providers/claude.d.ts.map +1 -1
- package/dist/providers/claude.js +8 -11
- package/dist/providers/claude.js.map +1 -1
- package/dist/providers/codex-cli-event.d.ts +6 -0
- package/dist/providers/codex-cli-event.d.ts.map +1 -1
- package/dist/providers/codex-cli-event.js.map +1 -1
- package/dist/providers/codex-cli-launch.js +2 -2
- package/dist/providers/codex-cli-launch.js.map +1 -1
- package/dist/providers/codex-cli-session.d.ts +1 -7
- package/dist/providers/codex-cli-session.d.ts.map +1 -1
- package/dist/providers/codex-cli-session.js +27 -31
- package/dist/providers/codex-cli-session.js.map +1 -1
- package/dist/providers/normalize-claude.d.ts +0 -3
- package/dist/providers/normalize-claude.d.ts.map +1 -1
- package/dist/providers/normalize-claude.js +9 -20
- package/dist/providers/normalize-claude.js.map +1 -1
- package/dist/providers/provider-factory.d.ts +23 -4
- package/dist/providers/provider-factory.d.ts.map +1 -1
- package/dist/providers/provider-factory.js +102 -24
- package/dist/providers/provider-factory.js.map +1 -1
- package/dist/providers/runner-types.d.ts +2 -4
- package/dist/providers/runner-types.d.ts.map +1 -1
- package/dist/reporting/compose-running-headline.d.ts +1 -2
- package/dist/reporting/compose-running-headline.d.ts.map +1 -1
- package/dist/reporting/compose-running-headline.js +4 -7
- package/dist/reporting/compose-running-headline.js.map +1 -1
- package/dist/review/tier-policy.d.ts +11 -0
- package/dist/review/tier-policy.d.ts.map +1 -0
- package/dist/review/tier-policy.js +12 -0
- package/dist/review/tier-policy.js.map +1 -0
- package/dist/stores/batch-registry.d.ts +0 -1
- package/dist/stores/batch-registry.d.ts.map +1 -1
- package/dist/stores/batch-registry.js.map +1 -1
- package/dist/tool-surface/discover.d.ts +1 -1
- package/dist/tool-surface/discover.d.ts.map +1 -1
- package/dist/tool-surface/discover.js +1 -0
- package/dist/tool-surface/discover.js.map +1 -1
- package/dist/tools/audit/brief-slot.d.ts +15 -0
- package/dist/tools/audit/brief-slot.d.ts.map +1 -0
- package/dist/tools/audit/brief-slot.js +69 -0
- package/dist/tools/audit/brief-slot.js.map +1 -0
- package/dist/tools/audit/tool-config.d.ts +2 -14
- package/dist/tools/audit/tool-config.d.ts.map +1 -1
- package/dist/tools/audit/tool-config.js +1 -68
- package/dist/tools/audit/tool-config.js.map +1 -1
- package/dist/{intake/brief-compiler-slots/debug.d.ts → tools/debug/brief-slot.d.ts} +1 -1
- package/dist/tools/debug/brief-slot.d.ts.map +1 -0
- package/dist/{intake/brief-compiler-slots/debug.js → tools/debug/brief-slot.js} +1 -1
- package/dist/tools/debug/brief-slot.js.map +1 -0
- package/dist/tools/debug/tool-config.d.ts +1 -1
- package/dist/tools/debug/tool-config.d.ts.map +1 -1
- package/dist/tools/debug/tool-config.js +1 -1
- package/dist/tools/debug/tool-config.js.map +1 -1
- package/dist/tools/delegate/brief-slot.d.ts +13 -0
- package/dist/tools/delegate/brief-slot.d.ts.map +1 -0
- package/dist/{intake/brief-compiler-slots/delegate.js → tools/delegate/brief-slot.js} +12 -3
- package/dist/tools/delegate/brief-slot.js.map +1 -0
- package/dist/tools/delegate/schema.d.ts +1 -1
- package/dist/tools/delegate/tool-config.d.ts +1 -10
- package/dist/tools/delegate/tool-config.d.ts.map +1 -1
- package/dist/tools/delegate/tool-config.js +2 -10
- package/dist/tools/delegate/tool-config.js.map +1 -1
- package/dist/tools/execute-plan/brief-slot.d.ts +21 -0
- package/dist/tools/execute-plan/brief-slot.d.ts.map +1 -0
- package/dist/{intake/brief-compiler-slots/execute-plan.js → tools/execute-plan/brief-slot.js} +3 -67
- package/dist/tools/execute-plan/brief-slot.js.map +1 -0
- package/dist/tools/execute-plan/draft-id.d.ts.map +1 -0
- package/dist/tools/execute-plan/draft-id.js.map +1 -0
- package/dist/tools/execute-plan/plan-extractor.d.ts.map +1 -0
- package/dist/tools/execute-plan/plan-extractor.js.map +1 -0
- package/dist/tools/execute-plan/schema.d.ts +1 -1
- package/dist/tools/execute-plan/tool-config.d.ts +3 -3
- package/dist/tools/execute-plan/tool-config.d.ts.map +1 -1
- package/dist/tools/execute-plan/tool-config.js +2 -2
- package/dist/tools/execute-plan/tool-config.js.map +1 -1
- package/dist/tools/investigate/brief-slot.d.ts +31 -0
- package/dist/tools/investigate/brief-slot.d.ts.map +1 -0
- package/dist/tools/investigate/brief-slot.js +69 -0
- package/dist/tools/investigate/brief-slot.js.map +1 -0
- package/dist/tools/investigate/tool-config.d.ts +2 -29
- package/dist/tools/investigate/tool-config.d.ts.map +1 -1
- package/dist/tools/investigate/tool-config.js +2 -62
- package/dist/tools/investigate/tool-config.js.map +1 -1
- package/dist/tools/research/brief-slot.d.ts +19 -0
- package/dist/tools/research/brief-slot.d.ts.map +1 -0
- package/dist/tools/research/brief-slot.js +37 -0
- package/dist/tools/research/brief-slot.js.map +1 -0
- package/dist/tools/research/tool-config.d.ts +2 -14
- package/dist/tools/research/tool-config.d.ts.map +1 -1
- package/dist/tools/research/tool-config.js +2 -14
- package/dist/tools/research/tool-config.js.map +1 -1
- package/dist/tools/retry/brief-slot.d.ts +7 -0
- package/dist/tools/retry/brief-slot.d.ts.map +1 -0
- package/dist/tools/retry/brief-slot.js +2 -0
- package/dist/tools/retry/brief-slot.js.map +1 -0
- package/dist/tools/retry/tool-config.d.ts +1 -5
- package/dist/tools/retry/tool-config.d.ts.map +1 -1
- package/dist/tools/retry/tool-config.js +2 -1
- package/dist/tools/retry/tool-config.js.map +1 -1
- package/dist/{intake/brief-compiler-slots/review.d.ts → tools/review/brief-slot.d.ts} +1 -1
- package/dist/tools/review/brief-slot.d.ts.map +1 -0
- package/dist/{intake/brief-compiler-slots/review.js → tools/review/brief-slot.js} +1 -1
- package/dist/tools/review/brief-slot.js.map +1 -0
- package/dist/tools/review/tool-config.d.ts +1 -1
- package/dist/tools/review/tool-config.d.ts.map +1 -1
- package/dist/tools/review/tool-config.js +1 -1
- package/dist/tools/review/tool-config.js.map +1 -1
- package/dist/types/brief-quality-policy.d.ts +3 -0
- package/dist/types/brief-quality-policy.d.ts.map +1 -0
- package/dist/types/brief-quality-policy.js +2 -0
- package/dist/types/brief-quality-policy.js.map +1 -0
- package/dist/{intake/types.d.ts → types/draft-task.d.ts} +2 -40
- package/dist/types/draft-task.d.ts.map +1 -0
- package/dist/types/draft-task.js +2 -0
- package/dist/types/draft-task.js.map +1 -0
- package/dist/types/enums.d.ts +0 -3
- package/dist/types/enums.d.ts.map +1 -1
- package/dist/types/enums.js +1 -2
- package/dist/types/enums.js.map +1 -1
- package/dist/types/review-policy.d.ts +2 -0
- package/dist/types/review-policy.d.ts.map +1 -0
- package/dist/types/review-policy.js +2 -0
- package/dist/types/review-policy.js.map +1 -0
- package/dist/types/run-result.d.ts +6 -17
- package/dist/types/run-result.d.ts.map +1 -1
- package/dist/types/stage-stats.d.ts +0 -2
- package/dist/types/stage-stats.d.ts.map +1 -1
- package/dist/types/task-spec.d.ts +1 -1
- package/dist/types/task-spec.d.ts.map +1 -1
- package/package.json +1 -49
- package/dist/bounded-execution/cost-rollup.d.ts +0 -17
- package/dist/bounded-execution/cost-rollup.d.ts.map +0 -1
- package/dist/bounded-execution/cost-rollup.js +0 -40
- package/dist/bounded-execution/cost-rollup.js.map +0 -1
- package/dist/config/tier-policy-registry.d.ts +0 -12
- package/dist/config/tier-policy-registry.d.ts.map +0 -1
- package/dist/config/tier-policy-registry.js +0 -13
- package/dist/config/tier-policy-registry.js.map +0 -1
- package/dist/intake/brief-compiler-slots/debug.d.ts.map +0 -1
- package/dist/intake/brief-compiler-slots/debug.js.map +0 -1
- package/dist/intake/brief-compiler-slots/delegate.d.ts +0 -23
- package/dist/intake/brief-compiler-slots/delegate.d.ts.map +0 -1
- package/dist/intake/brief-compiler-slots/delegate.js.map +0 -1
- package/dist/intake/brief-compiler-slots/execute-plan.d.ts +0 -49
- package/dist/intake/brief-compiler-slots/execute-plan.d.ts.map +0 -1
- package/dist/intake/brief-compiler-slots/execute-plan.js.map +0 -1
- package/dist/intake/brief-compiler-slots/register-context-block.d.ts +0 -17
- package/dist/intake/brief-compiler-slots/register-context-block.d.ts.map +0 -1
- package/dist/intake/brief-compiler-slots/register-context-block.js +0 -17
- package/dist/intake/brief-compiler-slots/register-context-block.js.map +0 -1
- package/dist/intake/brief-compiler-slots/research.d.ts +0 -18
- package/dist/intake/brief-compiler-slots/research.d.ts.map +0 -1
- package/dist/intake/brief-compiler-slots/research.js +0 -43
- package/dist/intake/brief-compiler-slots/research.js.map +0 -1
- package/dist/intake/brief-compiler-slots/retry.d.ts +0 -20
- package/dist/intake/brief-compiler-slots/retry.d.ts.map +0 -1
- package/dist/intake/brief-compiler-slots/retry.js +0 -37
- package/dist/intake/brief-compiler-slots/retry.js.map +0 -1
- package/dist/intake/brief-compiler-slots/review.d.ts.map +0 -1
- package/dist/intake/brief-compiler-slots/review.js.map +0 -1
- package/dist/intake/brief-compiler.d.ts +0 -9
- package/dist/intake/brief-compiler.d.ts.map +0 -1
- package/dist/intake/brief-compiler.js +0 -8
- package/dist/intake/brief-compiler.js.map +0 -1
- package/dist/intake/classify.d.ts +0 -3
- package/dist/intake/classify.d.ts.map +0 -1
- package/dist/intake/classify.js +0 -111
- package/dist/intake/classify.js.map +0 -1
- package/dist/intake/context-overflow-estimator.d.ts +0 -33
- package/dist/intake/context-overflow-estimator.d.ts.map +0 -1
- package/dist/intake/context-overflow-estimator.js +0 -36
- package/dist/intake/context-overflow-estimator.js.map +0 -1
- package/dist/intake/draft-id.d.ts.map +0 -1
- package/dist/intake/draft-id.js.map +0 -1
- package/dist/intake/field-inferer.d.ts +0 -10
- package/dist/intake/field-inferer.d.ts.map +0 -1
- package/dist/intake/field-inferer.js +0 -57
- package/dist/intake/field-inferer.js.map +0 -1
- package/dist/intake/host-allowlist-builder.d.ts +0 -25
- package/dist/intake/host-allowlist-builder.d.ts.map +0 -1
- package/dist/intake/host-allowlist-builder.js +0 -102
- package/dist/intake/host-allowlist-builder.js.map +0 -1
- package/dist/intake/index.d.ts +0 -5
- package/dist/intake/index.d.ts.map +0 -1
- package/dist/intake/index.js +0 -6
- package/dist/intake/index.js.map +0 -1
- package/dist/intake/pipeline.d.ts +0 -5
- package/dist/intake/pipeline.d.ts.map +0 -1
- package/dist/intake/pipeline.js +0 -110
- package/dist/intake/pipeline.js.map +0 -1
- package/dist/intake/plan-extractor.d.ts.map +0 -1
- package/dist/intake/plan-extractor.js.map +0 -1
- package/dist/intake/resolve.d.ts +0 -16
- package/dist/intake/resolve.d.ts.map +0 -1
- package/dist/intake/resolve.js +0 -37
- package/dist/intake/resolve.js.map +0 -1
- package/dist/intake/source-schema.d.ts +0 -4
- package/dist/intake/source-schema.d.ts.map +0 -1
- package/dist/intake/source-schema.js +0 -45
- package/dist/intake/source-schema.js.map +0 -1
- package/dist/intake/types.d.ts.map +0 -1
- package/dist/intake/types.js +0 -2
- package/dist/intake/types.js.map +0 -1
- package/dist/intake/verify-command-validator.d.ts +0 -6
- package/dist/intake/verify-command-validator.d.ts.map +0 -1
- package/dist/intake/verify-command-validator.js +0 -47
- package/dist/intake/verify-command-validator.js.map +0 -1
- package/dist/intake/verify-referenced-blocks.d.ts +0 -5
- package/dist/intake/verify-referenced-blocks.d.ts.map +0 -1
- package/dist/intake/verify-referenced-blocks.js +0 -9
- package/dist/intake/verify-referenced-blocks.js.map +0 -1
- package/dist/providers/brief-preamble.d.ts +0 -4
- package/dist/providers/brief-preamble.d.ts.map +0 -1
- package/dist/providers/brief-preamble.js +0 -39
- package/dist/providers/brief-preamble.js.map +0 -1
- package/dist/providers/error-classification.d.ts +0 -49
- package/dist/providers/error-classification.d.ts.map +0 -1
- package/dist/providers/error-classification.js +0 -140
- package/dist/providers/error-classification.js.map +0 -1
- package/dist/providers/index.d.ts +0 -5
- package/dist/providers/index.d.ts.map +0 -1
- package/dist/providers/index.js +0 -6
- package/dist/providers/index.js.map +0 -1
- package/dist/providers/run-annotator-turn.d.ts +0 -24
- package/dist/providers/run-annotator-turn.d.ts.map +0 -1
- package/dist/providers/run-annotator-turn.js +0 -44
- package/dist/providers/run-annotator-turn.js.map +0 -1
- package/dist/providers/run-worker-turn.d.ts +0 -26
- package/dist/providers/run-worker-turn.d.ts.map +0 -1
- package/dist/providers/run-worker-turn.js +0 -57
- package/dist/providers/run-worker-turn.js.map +0 -1
- package/dist/providers/runner-adapter.d.ts +0 -49
- package/dist/providers/runner-adapter.d.ts.map +0 -1
- package/dist/providers/runner-adapter.js +0 -8
- package/dist/providers/runner-adapter.js.map +0 -1
- package/dist/providers/stall-detector.d.ts +0 -22
- package/dist/providers/stall-detector.d.ts.map +0 -1
- package/dist/providers/stall-detector.js +0 -43
- package/dist/providers/stall-detector.js.map +0 -1
- package/dist/providers/tool-name-sets.d.ts +0 -29
- package/dist/providers/tool-name-sets.d.ts.map +0 -1
- package/dist/providers/tool-name-sets.js +0 -41
- package/dist/providers/tool-name-sets.js.map +0 -1
- package/dist/review/run-reviewer.d.ts +0 -40
- package/dist/review/run-reviewer.d.ts.map +0 -1
- package/dist/review/run-reviewer.js +0 -55
- package/dist/review/run-reviewer.js.map +0 -1
- /package/dist/{intake → tools/execute-plan}/draft-id.d.ts +0 -0
- /package/dist/{intake → tools/execute-plan}/draft-id.js +0 -0
- /package/dist/{intake → tools/execute-plan}/plan-extractor.d.ts +0 -0
- /package/dist/{intake → tools/execute-plan}/plan-extractor.js +0 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { INVESTIGATE_PURPOSE_ORIENTATION, EVIDENCE_RULE_INVESTIGATE, SCOPE_RULE_INVESTIGATE, ANNOTATOR_AWARENESS_INVESTIGATE, INVESTIGATE_FAILURE_MODES, CONFIDENCE_REMINDER_INVESTIGATE, } from './implementer-criteria.js';
|
|
2
|
+
function compilePrompt(input) {
|
|
3
|
+
const promptParts = [];
|
|
4
|
+
// Orientation goes FIRST — the worker needs to know why this
|
|
5
|
+
// investigation exists (caller will act on this answer; wrong file
|
|
6
|
+
// path becomes a bug) before reading the format spec / taxonomy.
|
|
7
|
+
// Without it, workers default to plausible-sounding answers with
|
|
8
|
+
// shaky citations.
|
|
9
|
+
promptParts.push(INVESTIGATE_PURPOSE_ORIENTATION);
|
|
10
|
+
promptParts.push([
|
|
11
|
+
'Produce an investigation report in this EXACT structured format. The deterministic',
|
|
12
|
+
'parser extracts findings, summary, and confidence by section — do NOT emit JSON, and',
|
|
13
|
+
'do NOT use a numbered-list narrative. Sections MUST use h2 headers (`##`).',
|
|
14
|
+
'',
|
|
15
|
+
'## Summary',
|
|
16
|
+
'One paragraph stating the answer to the question, in plain prose. This is the synthesis',
|
|
17
|
+
'a human reads first; do not omit it.',
|
|
18
|
+
'',
|
|
19
|
+
'## Finding 1: <one-line title — the candidate answer or sub-answer in one line>',
|
|
20
|
+
'- Severity: critical | high | medium | low (your confidence in this answer: critical=direct verbatim citation; high=clearly inferable from cited source; medium=single interpretation step required; low=weak inference)',
|
|
21
|
+
'- Category: <category — e.g. "control-flow", "data-shape", "dependency", "side-effect", or any short label that classifies this answer>',
|
|
22
|
+
'- Evidence: <one-paragraph explanation that MUST include at least one `<file>:<line>` or `<file>:<line>-<line>` citation. The parser drops findings whose Evidence contains no file:line reference. Quote the relevant code or doc when helpful. If the question is genuinely project-level with no code evidence, emit Severity: low and write "no code citation — project-level inference based on …" with named files referenced inline.>',
|
|
23
|
+
'- Suggestion: <one-line follow-up — a fix, how to verify, or where to look next; optional but encouraged>',
|
|
24
|
+
'',
|
|
25
|
+
'## Finding 2: ... (one block per candidate answer)',
|
|
26
|
+
'',
|
|
27
|
+
'Number findings sequentially starting at 1. Severity/Category/Evidence/Suggestion bullets are on their own lines with the labels exactly as shown. Emit AT LEAST ONE Finding — empty/narrative-only responses are workflow errors and will be discarded.',
|
|
28
|
+
'',
|
|
29
|
+
'## Confidence',
|
|
30
|
+
'One of high, medium, or low, optionally followed by ` — <one-line rationale>`. This is the OVERALL confidence in your synthesis; per-finding confidence lives in each Finding\'s Severity. Do NOT wrap the level in backticks; emit it as plain text.',
|
|
31
|
+
'',
|
|
32
|
+
'## Outcome',
|
|
33
|
+
'One of: found | not_applicable. Emit `found` whenever you produced at least one Finding (the normal case). Emit `not_applicable` only when the question itself does not apply to this codebase.',
|
|
34
|
+
'',
|
|
35
|
+
'## Unresolved',
|
|
36
|
+
'Optional bullets describing follow-up questions; write `(none)` if there are none.',
|
|
37
|
+
'Prefix a bullet with `[needs_context]` if it requires the caller to supply more',
|
|
38
|
+
'information before the question can be answered.',
|
|
39
|
+
].join('\n'));
|
|
40
|
+
for (const block of input.resolvedContextBlocks) {
|
|
41
|
+
promptParts.push(block.content);
|
|
42
|
+
}
|
|
43
|
+
if (input.relativeFilePathsForPrompt.length > 0) {
|
|
44
|
+
promptParts.push('Anchor paths to start from (you may also read beyond these):\n' +
|
|
45
|
+
input.relativeFilePathsForPrompt.map(p => `- ${p}`).join('\n'));
|
|
46
|
+
}
|
|
47
|
+
promptParts.push(`Question: ${input.question}`);
|
|
48
|
+
if (input.resolvedContextBlocks.length > 0) {
|
|
49
|
+
promptParts.push('A prior investigation report is provided as context above. Refine or extend that investigation. In your output, mark which prior unresolved questions you resolved this round and which remain open.');
|
|
50
|
+
}
|
|
51
|
+
// Tool sweep #12: shared rubric. Investigate doesn't use the
|
|
52
|
+
// SEVERITY_LADDER (its findings are citations, not severity-rated)
|
|
53
|
+
// but evidence-grounding + scope-discipline + annotator-awareness
|
|
54
|
+
// apply just as much. Workers that cite hallucinated lines or
|
|
55
|
+
// speculate about unread files now have the rubric inline.
|
|
56
|
+
promptParts.push(INVESTIGATE_FAILURE_MODES, CONFIDENCE_REMINDER_INVESTIGATE, EVIDENCE_RULE_INVESTIGATE, SCOPE_RULE_INVESTIGATE, ANNOTATOR_AWARENESS_INVESTIGATE);
|
|
57
|
+
return promptParts.join('\n\n');
|
|
58
|
+
}
|
|
59
|
+
export const investigateBriefSlot = (input) => {
|
|
60
|
+
const compiledPrompt = compilePrompt(input);
|
|
61
|
+
return [{
|
|
62
|
+
question: input.question,
|
|
63
|
+
compiledPrompt,
|
|
64
|
+
filePaths: input.canonicalizedFilePaths,
|
|
65
|
+
contextBlockIds: input.contextBlockIds ?? [],
|
|
66
|
+
tools: input.tools,
|
|
67
|
+
}];
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=brief-slot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brief-slot.js","sourceRoot":"","sources":["../../../src/tools/investigate/brief-slot.ts"],"names":[],"mappings":"AACA,OAAO,EACL,+BAA+B,EAC/B,yBAAyB,EACzB,sBAAsB,EACtB,+BAA+B,EAC/B,yBAAyB,EACzB,+BAA+B,GAChC,MAAM,2BAA2B,CAAC;AAoCnC,SAAS,aAAa,CAAC,KAA+B;IACpD,MAAM,WAAW,GAAa,EAAE,CAAC;IACjC,6DAA6D;IAC7D,mEAAmE;IACnE,iEAAiE;IACjE,iEAAiE;IACjE,mBAAmB;IACnB,WAAW,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAC;IAClD,WAAW,C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AI,CAAC,MAAM,CAAC,CAAC;AAClC,CAAC;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAA+B,EAAsB,EAAE;IAC1F,MAAM,cAAc,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IAC5C,OAAO,CAAC;YACN,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,cAAc;YACd,SAAS,EAAE,KAAK,CAAC,sBAAsB;YACvC,eAAe,EAAE,KAAK,CAAC,eAAe,IAAI,EAAE;YAC5C,KAAK,EAAE,KAAK,CAAC,KAAK;SACnB,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1,35 +1,8 @@
|
|
|
1
1
|
import { ToolSurfaceRegistry } from '../../tool-surface/tool-surface-registry.js';
|
|
2
|
-
import type { Input } from './schema.js';
|
|
3
2
|
import type { ToolConfig } from '../../lifecycle/tool-config-types.js';
|
|
4
3
|
import type { InvestigateReportOutput } from '../../reporting/report-parser-slots/investigate-report.js';
|
|
4
|
+
import { type EnrichedInvestigateInput, type InvestigateBrief } from './brief-slot.js';
|
|
5
|
+
export type { EnrichedInvestigateInput, InvestigateBrief } from './brief-slot.js';
|
|
5
6
|
export declare function registerInvestigate(registry: ToolSurfaceRegistry): void;
|
|
6
|
-
export interface ResolvedContextBlock {
|
|
7
|
-
id: string;
|
|
8
|
-
content: string;
|
|
9
|
-
}
|
|
10
|
-
export interface EnrichedInvestigateInput extends Input {
|
|
11
|
-
resolvedContextBlocks: ResolvedContextBlock[];
|
|
12
|
-
canonicalizedFilePaths: string[];
|
|
13
|
-
relativeFilePathsForPrompt: string[];
|
|
14
|
-
}
|
|
15
|
-
export interface InvestigateBrief {
|
|
16
|
-
/** The user's original question — drives the headline text. */
|
|
17
|
-
question: string;
|
|
18
|
-
/**
|
|
19
|
-
* The fully compiled implementer prompt (template + question + anchors +
|
|
20
|
-
* context blocks). Stored here for buildTaskSpec to forward as
|
|
21
|
-
* TaskSpec.prompt, but deliberately NOT named `prompt`/`brief`. The
|
|
22
|
-
* task-executor's `taskBrief` resolution chain reads
|
|
23
|
-
* `briefs[0].prompt ?? .brief ?? .question`; a `prompt` field here would
|
|
24
|
-
* cause the headline to be the prompt-template instructions (the tool
|
|
25
|
-
* sweep #5 bug — headline read 'Investigation: "Produce a narrative
|
|
26
|
-
* investigation report. Number each findin…"'). Falling through to
|
|
27
|
-
* `question` is the desired behavior.
|
|
28
|
-
*/
|
|
29
|
-
compiledPrompt: string;
|
|
30
|
-
filePaths: string[];
|
|
31
|
-
contextBlockIds: string[];
|
|
32
|
-
tools?: 'none' | 'readonly';
|
|
33
|
-
}
|
|
34
7
|
export declare const toolConfig: ToolConfig<EnrichedInvestigateInput, InvestigateBrief, InvestigateReportOutput>;
|
|
35
8
|
//# sourceMappingURL=tool-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-config.d.ts","sourceRoot":"","sources":["../../../src/tools/investigate/tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;
|
|
1
|
+
{"version":3,"file":"tool-config.d.ts","sourceRoot":"","sources":["../../../src/tools/investigate/tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAIlF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAGvE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2DAA2D,CAAC;AAIzG,OAAO,EAAwB,KAAK,wBAAwB,EAAE,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAI7G,YAAY,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAElF,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,mBAAmB,GAAG,IAAI,CAYvE;AAGD,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,wBAAwB,EAAE,gBAAgB,EAAE,uBAAuB,CAsDtG,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { investigateReportSchema } from '../../reporting/report-parser-slots/inv
|
|
|
4
4
|
import { investigateHeadlineTemplate } from '../../reporting/headline-templates/investigate.js';
|
|
5
5
|
import { deriveInvestigateWorkerStatus } from '../../reporting/derive-investigate-status.js';
|
|
6
6
|
import { DEFAULT_TASK_TIMEOUT_MS } from '../../config/schema.js';
|
|
7
|
-
import {
|
|
7
|
+
import { investigateBriefSlot } from './brief-slot.js';
|
|
8
8
|
export function registerInvestigate(registry) {
|
|
9
9
|
registry.register({
|
|
10
10
|
routeName: 'investigate',
|
|
@@ -18,71 +18,11 @@ export function registerInvestigate(registry) {
|
|
|
18
18
|
responseShapeName: 'BatchResponse',
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
-
function compilePrompt(input) {
|
|
22
|
-
const promptParts = [];
|
|
23
|
-
// Orientation goes FIRST — the worker needs to know why this
|
|
24
|
-
// investigation exists (caller will act on this answer; wrong file
|
|
25
|
-
// path becomes a bug) before reading the format spec / taxonomy.
|
|
26
|
-
// Without it, workers default to plausible-sounding answers with
|
|
27
|
-
// shaky citations.
|
|
28
|
-
promptParts.push(INVESTIGATE_PURPOSE_ORIENTATION);
|
|
29
|
-
promptParts.push([
|
|
30
|
-
'Produce an investigation report in this EXACT structured format. The deterministic',
|
|
31
|
-
'parser extracts citations, confidence, and unresolved items by section — do NOT emit',
|
|
32
|
-
'JSON, and do NOT use a numbered-list narrative. Sections MUST use h2 headers (`##`).',
|
|
33
|
-
'',
|
|
34
|
-
'## Summary',
|
|
35
|
-
'One paragraph stating the answer to the question, in plain prose.',
|
|
36
|
-
'',
|
|
37
|
-
'## Citations',
|
|
38
|
-
'One bullet per evidence item. Each bullet must start with `-` and contain `<file>:<LINE> — <claim>` (em-dash, OR `--` is also accepted). The parser tolerates an optional pair of backticks wrapping the path:line portion (e.g. `` `src/foo.ts:42` — claim ``) but the canonical form is without backticks.',
|
|
39
|
-
'Examples (use either form):',
|
|
40
|
-
' - src/foo.ts:42 — claim about line 42',
|
|
41
|
-
' - src/foo.ts:42-58 — claim about a span',
|
|
42
|
-
'Use a LINE-LINE range when an evidence span covers multiple lines.',
|
|
43
|
-
'If the question is fully project-level (no code evidence applies), write `(none)` on its own line — but only when Confidence is `low`.',
|
|
44
|
-
'',
|
|
45
|
-
'## Confidence',
|
|
46
|
-
'One of high, medium, or low, optionally followed by ` — <one-line rationale>`. Do NOT wrap the level in backticks; emit it as plain text.',
|
|
47
|
-
'',
|
|
48
|
-
'## Unresolved',
|
|
49
|
-
'Optional bullets describing follow-up questions; write `(none)` if there are none.',
|
|
50
|
-
'Prefix a bullet with `[needs_context]` if it requires the caller to supply more',
|
|
51
|
-
'information before the question can be answered.',
|
|
52
|
-
].join('\n'));
|
|
53
|
-
for (const block of input.resolvedContextBlocks) {
|
|
54
|
-
promptParts.push(block.content);
|
|
55
|
-
}
|
|
56
|
-
if (input.relativeFilePathsForPrompt.length > 0) {
|
|
57
|
-
promptParts.push('Anchor paths to start from (you may also read beyond these):\n' +
|
|
58
|
-
input.relativeFilePathsForPrompt.map(p => `- ${p}`).join('\n'));
|
|
59
|
-
}
|
|
60
|
-
promptParts.push(`Question: ${input.question}`);
|
|
61
|
-
if (input.resolvedContextBlocks.length > 0) {
|
|
62
|
-
promptParts.push('A prior investigation report is provided as context above. Refine or extend that investigation. In your output, mark which prior unresolved questions you resolved this round and which remain open.');
|
|
63
|
-
}
|
|
64
|
-
// Tool sweep #12: shared rubric. Investigate doesn't use the
|
|
65
|
-
// SEVERITY_LADDER (its findings are citations, not severity-rated)
|
|
66
|
-
// but evidence-grounding + scope-discipline + annotator-awareness
|
|
67
|
-
// apply just as much. Workers that cite hallucinated lines or
|
|
68
|
-
// speculate about unread files now have the rubric inline.
|
|
69
|
-
promptParts.push(INVESTIGATE_FAILURE_MODES, CONFIDENCE_REMINDER_INVESTIGATE, EVIDENCE_RULE_INVESTIGATE, SCOPE_RULE_INVESTIGATE, ANNOTATOR_AWARENESS_INVESTIGATE);
|
|
70
|
-
return promptParts.join('\n\n');
|
|
71
|
-
}
|
|
72
21
|
export const toolConfig = {
|
|
73
22
|
name: 'investigate',
|
|
74
23
|
category: 'read_only',
|
|
75
24
|
agentType: 'complex',
|
|
76
|
-
briefSlot:
|
|
77
|
-
const compiledPrompt = compilePrompt(input);
|
|
78
|
-
return [{
|
|
79
|
-
question: input.question,
|
|
80
|
-
compiledPrompt,
|
|
81
|
-
filePaths: input.canonicalizedFilePaths,
|
|
82
|
-
contextBlockIds: input.contextBlockIds ?? [],
|
|
83
|
-
tools: input.tools,
|
|
84
|
-
}];
|
|
85
|
-
},
|
|
25
|
+
briefSlot: investigateBriefSlot,
|
|
86
26
|
buildTaskSpec: (brief, ctx) => ({
|
|
87
27
|
prompt: brief.compiledPrompt,
|
|
88
28
|
// Pure user question for the parallel-criteria dispatcher's cached
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-config.js","sourceRoot":"","sources":["../../../src/tools/investigate/tool-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sDAAsD,CAAC;AAGlG,OAAO,EAAE,uBAAuB,EAAE,MAAM,2DAA2D,CAAC;AAEpG,OAAO,EAAE,2BAA2B,EAAE,MAAM,mDAAmD,CAAC;AAChG,OAAO,EAAE,6BAA6B,EAAE,MAAM,8CAA8C,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,
|
|
1
|
+
{"version":3,"file":"tool-config.js","sourceRoot":"","sources":["../../../src/tools/investigate/tool-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sDAAsD,CAAC;AAGlG,OAAO,EAAE,uBAAuB,EAAE,MAAM,2DAA2D,CAAC;AAEpG,OAAO,EAAE,2BAA2B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ACA,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAS,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;YACjE,IAAI,OAAO,CAAC,gBAAgB,KAAK,SAAS,EAAE,CAAC;gBAC1C,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAS,CAAC,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;YAC3E,CAAC;QACH,CAAC;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Input } from './schema.js';
|
|
2
|
+
export interface ResolvedContextBlock {
|
|
3
|
+
id: string;
|
|
4
|
+
content: string;
|
|
5
|
+
}
|
|
6
|
+
export interface EnrichedResearchInput extends Input {
|
|
7
|
+
resolvedContextBlocks: ResolvedContextBlock[];
|
|
8
|
+
/** Operator-configured source descriptors (research.userSources). */
|
|
9
|
+
userSources: readonly string[];
|
|
10
|
+
/** True iff research.brave.apiKeys is non-empty (drives the prompt branch
|
|
11
|
+
* that says "escalate to web_search"). */
|
|
12
|
+
hasBrave: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface ResearchBrief {
|
|
15
|
+
compiledPrompt: string;
|
|
16
|
+
contextBlockIds: string[];
|
|
17
|
+
}
|
|
18
|
+
export declare const researchBriefSlot: (input: EnrichedResearchInput) => ResearchBrief[];
|
|
19
|
+
//# sourceMappingURL=brief-slot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brief-slot.d.ts","sourceRoot":"","sources":["../../../src/tools/research/brief-slot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAYzC,MAAM,WAAW,oBAAoB;IAAG,EAAE,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;CAAE;AAEtE,MAAM,WAAW,qBAAsB,SAAQ,KAAK;IAClD,qBAAqB,EAAE,oBAAoB,EAAE,CAAC;IAC9C,qEAAqE;IACrE,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B;+CAC2C;IAC3C,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B;AAuCD,eAAO,MAAM,iBAAiB,GAAI,OAAO,qBAAqB,KAAG,aAAa,EAS7E,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EVIDENCE_RULE_RESEARCH, TRUST_BOUNDARY_USER_SOURCES_RESEARCH, TRUST_BOUNDARY_EXTERNAL_DATA_RESEARCH, QUERY_PHRASING_RESEARCH, strategyRuleResearch, } from './implementer-criteria.js';
|
|
2
|
+
function compileResearchPrompt(input, resolvedContextBlocks, extras) {
|
|
3
|
+
const priorContext = resolvedContextBlocks.length
|
|
4
|
+
? `## Prior context (read-only)\n\n${resolvedContextBlocks.map(b => b.content).join('\n\n---\n\n')}\n\n`
|
|
5
|
+
: '';
|
|
6
|
+
const userSourcesBlock = extras.userSources.length
|
|
7
|
+
? extras.userSources.map((s, i) => `${i}. ${s}`).join('\n')
|
|
8
|
+
: '(none configured)';
|
|
9
|
+
return `${priorContext}You are an external researcher. The caller wants to discover external ideas, sources, and practices relevant to their question; your job is to bring back substantive external material with citations.
|
|
10
|
+
|
|
11
|
+
**Background:** ${input.background}
|
|
12
|
+
**Research question:** ${input.researchQuestion}
|
|
13
|
+
|
|
14
|
+
**User-described sources (free text — interpret each one):**
|
|
15
|
+
${userSourcesBlock}
|
|
16
|
+
|
|
17
|
+
${TRUST_BOUNDARY_USER_SOURCES_RESEARCH}
|
|
18
|
+
|
|
19
|
+
${strategyRuleResearch(extras.hasBrave)}
|
|
20
|
+
|
|
21
|
+
${TRUST_BOUNDARY_EXTERNAL_DATA_RESEARCH}
|
|
22
|
+
|
|
23
|
+
${QUERY_PHRASING_RESEARCH}
|
|
24
|
+
|
|
25
|
+
${EVIDENCE_RULE_RESEARCH}`;
|
|
26
|
+
}
|
|
27
|
+
export const researchBriefSlot = (input) => {
|
|
28
|
+
const compiledPrompt = compileResearchPrompt(input, input.resolvedContextBlocks, {
|
|
29
|
+
userSources: input.userSources,
|
|
30
|
+
hasBrave: input.hasBrave,
|
|
31
|
+
});
|
|
32
|
+
return [{
|
|
33
|
+
compiledPrompt,
|
|
34
|
+
contextBlockIds: input.contextBlockIds ?? [],
|
|
35
|
+
}];
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=brief-slot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brief-slot.js","sourceRoot":"","sources":["../../../src/tools/research/brief-slot.ts"],"names":[],"mappings":"AACA,OAAO,EACL,sBAAsB,EACtB,oCAAoC,EACpC,qCAAqC,EACrC,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,2BAA2B,CAAC;AA0BnC,SAAS,qBAAqB,CAC5B,KAAY,EACZ,qBAA6C,EAC7C,MAAqB;IAErB,MAAM,YAAY,GAAG,qBAAqB,CAAC,MAAM;QAC/C,CAAC,CAAC,mCAAmC,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM;QACxG,CAAC,CAAC,EAAE,CAAC;IAEP,MAAM,gBAAgB,GAAG,MAAM,CAAC,WAAW,CAAC,MAAM;QAChD,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QAC3D,CAAC,CAAC,mBAAmB,CAAC;IAExB,OAAO,GAAG,YAAY;;kBAEN,KAAK,CAAC,UAAU;yBACT,KAAK,CAAC,gBAAgB;;;EAG7C,gBAAgB;;EAEhB,oCAAoC;;EAEpC,oBAAoB,CAAC,MAAM,CAAC,QAAQ,CAAC;;EAErC,qCAAqC;;EAErC,uBAAuB;;EAEvB,sBAAsB,EAAE,CAAC;AAC3B,CAAC;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAA4B,EAAmB,EAAE;IACjF,MAAM,cAAc,GAAG,qBAAqB,CAAC,KAAK,EAAE,KAAK,CAAC,qBAAqB,EAAE;QAC/E,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,QAAQ,EAAE,KAAK,CAAC,QAAQ;KACzB,CAAC,CAAC;IACH,OAAO,CAAC;YACN,cAAc;YACd,eAAe,EAAE,KAAK,CAAC,eAAe,IAAI,EAAE;SAC7C,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1,20 +1,8 @@
|
|
|
1
1
|
import { ToolSurfaceRegistry } from '../../tool-surface/tool-surface-registry.js';
|
|
2
|
-
import type { Input } from './schema.js';
|
|
3
2
|
import type { ToolConfig } from '../../lifecycle/tool-config-types.js';
|
|
4
3
|
import { type ResearchReport } from '../../reporting/report-parser-slots/research-report.js';
|
|
5
|
-
import { type
|
|
4
|
+
import { type EnrichedResearchInput, type ResearchBrief } from './brief-slot.js';
|
|
5
|
+
export type { EnrichedResearchInput, ResearchBrief, ResolvedContextBlock } from './brief-slot.js';
|
|
6
6
|
export declare function registerResearch(registry: ToolSurfaceRegistry): void;
|
|
7
|
-
export interface EnrichedResearchInput extends Input {
|
|
8
|
-
resolvedContextBlocks: ResolvedContextBlock[];
|
|
9
|
-
/** Operator-configured source descriptors (research.userSources). */
|
|
10
|
-
userSources: readonly string[];
|
|
11
|
-
/** True iff research.brave.apiKeys is non-empty (drives the prompt branch
|
|
12
|
-
* that says "escalate to web_search"). */
|
|
13
|
-
hasBrave: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface ResearchBrief {
|
|
16
|
-
compiledPrompt: string;
|
|
17
|
-
contextBlockIds: string[];
|
|
18
|
-
}
|
|
19
7
|
export declare const toolConfig: ToolConfig<EnrichedResearchInput, ResearchBrief, ResearchReport>;
|
|
20
8
|
//# sourceMappingURL=tool-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-config.d.ts","sourceRoot":"","sources":["../../../src/tools/research/tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAElF,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"tool-config.d.ts","sourceRoot":"","sources":["../../../src/tools/research/tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAElF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAEvE,OAAO,EAAwB,KAAK,cAAc,EAAE,MAAM,wDAAwD,CAAC;AAEnH,OAAO,EAAqB,KAAK,qBAAqB,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAKpG,YAAY,EAAE,qBAAqB,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAElG,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,mBAAmB,GAAG,IAAI,CAYpE;AAED,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,qBAAqB,EAAE,aAAa,EAAE,cAAc,CAmBvF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { inputSchema } from './schema.js';
|
|
2
2
|
import { researchReportSchema } from '../../reporting/report-parser-slots/research-report.js';
|
|
3
3
|
import { researchHeadlineTemplate } from '../../reporting/headline-templates/research.js';
|
|
4
|
-
import {
|
|
4
|
+
import { researchBriefSlot } from './brief-slot.js';
|
|
5
5
|
import { DEFAULT_TASK_TIMEOUT_MS } from '../../config/schema.js';
|
|
6
6
|
export function registerResearch(registry) {
|
|
7
7
|
registry.register({
|
|
@@ -20,19 +20,7 @@ export const toolConfig = {
|
|
|
20
20
|
name: 'research',
|
|
21
21
|
category: 'read_only',
|
|
22
22
|
agentType: 'complex',
|
|
23
|
-
briefSlot:
|
|
24
|
-
// cwd is irrelevant to prompt compilation (research is external-only); the
|
|
25
|
-
// generic executor's buildTaskSpec sets the cwd on the TaskSpec from
|
|
26
|
-
// ExecutionContext.
|
|
27
|
-
const { task } = compileResearch(input, input.resolvedContextBlocks, '', {
|
|
28
|
-
userSources: input.userSources,
|
|
29
|
-
hasBrave: input.hasBrave,
|
|
30
|
-
});
|
|
31
|
-
return [{
|
|
32
|
-
compiledPrompt: task.prompt,
|
|
33
|
-
contextBlockIds: input.contextBlockIds ?? [],
|
|
34
|
-
}];
|
|
35
|
-
},
|
|
23
|
+
briefSlot: researchBriefSlot,
|
|
36
24
|
buildTaskSpec: (brief, ctx) => ({
|
|
37
25
|
prompt: brief.compiledPrompt,
|
|
38
26
|
parallelTarget: brief.compiledPrompt,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-config.js","sourceRoot":"","sources":["../../../src/tools/research/tool-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"tool-config.js","sourceRoot":"","sources":["../../../src/tools/research/tool-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAuB,MAAM,wDAAwD,CAAC;AACnH,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAAE,iBAAiB,EAAkD,MAAM,iBAAiB,CAAC;AACpG,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAMjE,MAAM,UAAU,gBAAgB,CAAC,QAA6B;IAC5D,QAAQ,CAAC,QAAQ,CAAC;QAChB,SAAS,EAAE,UAAU;QACrB,UAAU,EAAE,MAAM;QAClB,QAAQ,EAAE,WAAW;QACrB,OAAO,EAAE,MAAM;QACf,MAAM,EAAE,WAAW;QACnB,Y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
1
|
+
{"version":3,"file":"brief-slot.js","sourceRoot":"","sources":["../../../src/tools/retry/brief-slot.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAY,EAAgB,EAAE,CAC3D,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { ToolSurfaceRegistry } from '../../tool-surface/tool-surface-registry.js';
|
|
2
2
|
import type { Input } from './schema.js';
|
|
3
|
+
import { type RetryBrief } from './brief-slot.js';
|
|
3
4
|
import type { ToolConfig } from '../../lifecycle/tool-config-types.js';
|
|
4
5
|
export declare function registerRetry(registry: ToolSurfaceRegistry): void;
|
|
5
|
-
interface RetryBrief {
|
|
6
|
-
batchId: string;
|
|
7
|
-
taskIndex: number;
|
|
8
|
-
}
|
|
9
6
|
export declare const toolConfig: ToolConfig<Input, RetryBrief, unknown>;
|
|
10
|
-
export {};
|
|
11
7
|
//# sourceMappingURL=tool-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-config.d.ts","sourceRoot":"","sources":["../../../src/tools/retry/tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAElF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAMvE,wBAAgB,aAAa,CAAC,QAAQ,EAAE,mBAAmB,GAAG,IAAI,CAYjE;AAED,
|
|
1
|
+
{"version":3,"file":"tool-config.d.ts","sourceRoot":"","sources":["../../../src/tools/retry/tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAElF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAMvE,wBAAgB,aAAa,CAAC,QAAQ,EAAE,mBAAmB,GAAG,IAAI,CAYjE;AAED,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,CA2D7D,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { inputSchema } from './schema.js';
|
|
2
|
+
import { retryBriefSlot } from './brief-slot.js';
|
|
2
3
|
import { retryReportSchema } from '../../reporting/report-parser-slots/retry-report.js';
|
|
3
4
|
import { retryHeadlineTemplate } from '../../reporting/headline-templates/retry.js';
|
|
4
5
|
import { notApplicable } from '../../reporting/not-applicable.js';
|
|
@@ -19,7 +20,7 @@ export const toolConfig = {
|
|
|
19
20
|
name: 'retry',
|
|
20
21
|
category: 'assist',
|
|
21
22
|
agentType: 'standard',
|
|
22
|
-
briefSlot:
|
|
23
|
+
briefSlot: retryBriefSlot,
|
|
23
24
|
buildTaskSpec: (brief, ctx) => {
|
|
24
25
|
const batchCache = ctx.projectContext?.batchCache;
|
|
25
26
|
const batch = batchCache?.get(brief.batchId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-config.js","sourceRoot":"","sources":["../../../src/tools/retry/tool-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"tool-config.js","sourceRoot":"","sources":["../../../src/tools/retry/tool-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAmB,MAAM,iBAAiB,CAAC;AAGlE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,C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
1
|
+
{"version":3,"file":"brief-slot.js","sourceRoot":"","sources":["../../../src/tools/review/brief-slot.ts"],"names":[],"mappings":"AAWA,SAAS,UAAU,CAAC,KAAyB;IAC3C,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAY;IAC1C,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,IAAI,KAAK,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC;IAClG,MAAM,UAAU,GAAG,CAAC,KAAK,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAE5E,IAAI,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC;QACrD,OAAO,CAAC;gBACN,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,SAAS,EAAE,KAAK,CAAC,SAAS;gBAC1B,KAAK,EAAE,KAAK,CAAC,KAAK;gBAClB,gBAAgB;gBAChB,eAAe,EAAE,KAAK,CAAC,eAAe,IAAI,EAAE;aAC7C,CAAC,CAAC;IACL,CAAC;IAED,OAAO,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QAC3B,QAAQ,EAAE,EAAE;QACZ,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,gBAAgB;QAChB,eAAe,EAAE,KAAK,CAAC,eAAe,IAAI,EAAE;KAC7C,CAAC,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ToolSurfaceRegistry } from '../../tool-surface/tool-surface-registry.js';
|
|
2
2
|
import type { Input } from './schema.js';
|
|
3
3
|
import type { ToolConfig } from '../../lifecycle/tool-config-types.js';
|
|
4
|
-
import { type ReviewBrief } from '
|
|
4
|
+
import { type ReviewBrief } from './brief-slot.js';
|
|
5
5
|
export declare function registerReview(registry: ToolSurfaceRegistry): void;
|
|
6
6
|
export declare const toolConfig: ToolConfig<Input, ReviewBrief, unknown>;
|
|
7
7
|
//# sourceMappingURL=tool-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-config.d.ts","sourceRoot":"","sources":["../../../src/tools/review/tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAElF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAEvE,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"tool-config.d.ts","sourceRoot":"","sources":["../../../src/tools/review/tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAElF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAEvE,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAcpE,wBAAgB,cAAc,CAAC,QAAQ,EAAE,mBAAmB,GAAG,IAAI,CAYlE;AA2GD,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,KAAK,EAAE,WAAW,EAAE,OAAO,CA8C9D,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { inputSchema } from './schema.js';
|
|
2
2
|
import { qualityReviewTemplate } from '../../review/templates/quality-review-review.js';
|
|
3
|
-
import { reviewBriefSlot } from '
|
|
3
|
+
import { reviewBriefSlot } from './brief-slot.js';
|
|
4
4
|
import { reviewReportSchema } from '../../reporting/report-parser-slots/review-report.js';
|
|
5
5
|
import { reviewHeadlineTemplate } from '../../reporting/headline-templates/review.js';
|
|
6
6
|
import { DEFAULT_TASK_TIMEOUT_MS } from '../../config/schema.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-config.js","sourceRoot":"","sources":["../../../src/tools/review/tool-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iDAAiD,CAAC;AAGxF,OAAO,EAAE,eAAe,EAAoB,MAAM,
|
|
1
|
+
{"version":3,"file":"tool-config.js","sourceRoot":"","sources":["../../../src/tools/review/tool-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iDAAiD,CAAC;AAGxF,OAAO,EAAE,eAAe,EAAoB,MAAM,iBAAiB,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACpB,iBAAiB,EACjB,0BAA0B,EAC1B,yBAAyB,EACzB,4BAA4B,GAC7B,MAAM,2BAA2B,CAAC;AAEnC,MAAM,UAAU,cAAc,CAAC,QAA6B;IAC1D,QAAQ,CAAC,QAAQ,CAAC;QAChB,SAAS,EAAE,QAAQ;QACnB,UAAU,EAAE,MAAM;QAClB,QAAQ,EAAE,SAAS;QACnB,OAAO,EAAE,MAAM;QACf,MAAM,EAAE,WAAW;QACnB,YAAY,EAAE,WAAW;QACzB,gBAAgB,EAAE,SAAS;QAC3B,oBAAoB,EAAE,KAAK;QA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,CAAC,MAAM,CAAC;YACxC,SAAS,EAAE,SAAS;YACpB,YAAY,EAAE,MAAM;YACpB,kBAAkB,EAAE,KAAK;YACzB,IAAI,EAAE,0BAA0B,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC;YACrE,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,IAAI,MAAM;YAC3C,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,SAAS,IAAI,uBAAuB;YACpE,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,aAAa,IAAI,UAAU;YAC/D,GAAG,EAAE,GAAG,CAAC,cAAc,EAAE,GAAG,IAAI,GAAG,CAAC,GAAG;YACvC,eAAe,EAAE,KAAK,CAAC,eAAe;YACtC,SAAS;YACT,SAAS,EAAE,GAAG,CAAC,SAAS,IAAI,SAAS;YACrC,UAAU,EAAE,KAAK;SAClB,CAAC;IACJ,CAAC;IACD,YAAY,EAAE,kBAAkB;IAChC,gBAAgB,EAAE,sBAAsB;IACxC,eAAe,EAAE;QACf,SAAS,EAAE,qBAAqB;KACjC;CACF,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type BriefQualityPolicy = 'strict' | 'warn' | 'off' | undefined;
|
|
2
|
+
export type BriefQualityWarning = 'outsourced_discovery' | 'brittle_line_anchors' | 'mixed_environment_actions' | 'bare_topic_noun' | 'no_done_condition' | 'no_output_contract' | 'tiny_brief' | 'huge_brief';
|
|
3
|
+
//# sourceMappingURL=brief-quality-policy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brief-quality-policy.d.ts","sourceRoot":"","sources":["../../src/types/brief-quality-policy.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,CAAC;AAEvE,MAAM,MAAM,mBAAmB,GAC3B,sBAAsB,GACtB,sBAAsB,GACtB,2BAA2B,GAC3B,iBAAiB,GACjB,mBAAmB,GACnB,oBAAoB,GACpB,YAAY,GACZ,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brief-quality-policy.js","sourceRoot":"","sources":["../../src/types/brief-quality-policy.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type { AgentType
|
|
2
|
-
export type BriefQualityWarning = 'outsourced_discovery' | 'brittle_line_anchors' | 'mixed_environment_actions' | 'bare_topic_noun' | 'no_done_condition' | 'no_output_contract' | 'tiny_brief' | 'huge_brief';
|
|
3
|
-
export type BriefQualityPolicy = 'strict' | 'warn' | 'off' | undefined;
|
|
1
|
+
import type { AgentType } from '../types.js';
|
|
4
2
|
export type SourceRoute = 'delegate_tasks' | 'review_code' | 'debug_task' | 'verify_work' | 'audit_document' | 'execute_plan' | 'investigate_codebase';
|
|
5
3
|
export type DelegateSource = {
|
|
6
4
|
route: 'delegate_tasks';
|
|
@@ -60,40 +58,4 @@ export interface DraftTask {
|
|
|
60
58
|
verifyCommand?: string[];
|
|
61
59
|
skipCompletionHeuristic?: boolean;
|
|
62
60
|
}
|
|
63
|
-
|
|
64
|
-
draft: DraftTask;
|
|
65
|
-
classification: 'ready';
|
|
66
|
-
reasons: [];
|
|
67
|
-
} | {
|
|
68
|
-
draft: DraftTask;
|
|
69
|
-
classification: 'needs_confirmation';
|
|
70
|
-
reasons: string[];
|
|
71
|
-
} | {
|
|
72
|
-
draft: DraftTask;
|
|
73
|
-
classification: 'unrecoverable';
|
|
74
|
-
reasons: string[];
|
|
75
|
-
};
|
|
76
|
-
export interface HardError {
|
|
77
|
-
draftId: string;
|
|
78
|
-
taskIndex: number;
|
|
79
|
-
error: string;
|
|
80
|
-
errorCode: string;
|
|
81
|
-
details?: Record<string, unknown>;
|
|
82
|
-
}
|
|
83
|
-
export interface IntakeProgress {
|
|
84
|
-
totalDrafts: number;
|
|
85
|
-
readyDrafts: number;
|
|
86
|
-
hardErrorDrafts: number;
|
|
87
|
-
executedDrafts: number;
|
|
88
|
-
}
|
|
89
|
-
export interface ReadyDraft {
|
|
90
|
-
task: TaskSpec;
|
|
91
|
-
draftId: string;
|
|
92
|
-
taskIndex: number;
|
|
93
|
-
}
|
|
94
|
-
export interface IntakeResult {
|
|
95
|
-
ready: ReadyDraft[];
|
|
96
|
-
hardErrors: HardError[];
|
|
97
|
-
intakeProgress: IntakeProgress;
|
|
98
|
-
}
|
|
99
|
-
//# sourceMappingURL=types.d.ts.map
|
|
61
|
+
//# sourceMappingURL=draft-task.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draft-task.d.ts","sourceRoot":"","sources":["../../src/types/draft-task.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAI7C,MAAM,MAAM,WAAW,GAAG,gBAAgB,GAAG,aAAa,GAAG,YAAY,GAAG,aAAa,GAAG,gBAAgB,GAAG,cAAc,GAAG,sBAAsB,CAAC;AAEvJ,MAAM,MAAM,cAAc,GAAG;IAAE,KAAK,EAAE,gBAAgB,CAAC;IAAC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,CAAC;AACjG,MAAM,MAAM,YAAY,GAAG;IAAE,KAAK,EAAE,aAAa,CAAC;IAAC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AACrJ,MAAM,MAAM,WAAW,GAAG;IAAE,KAAK,EAAE,YAAY,CAAC;IAAC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC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C;IACtB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,GAAG,cAAc,GAAG,WAAW,GAAG,MAAM,CAAC;IAC9D,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draft-task.js","sourceRoot":"","sources":["../../src/types/draft-task.ts"],"names":[],"mappings":""}
|
package/dist/types/enums.d.ts
CHANGED
|
@@ -19,12 +19,9 @@ export declare const ProviderTypeEnum: z.ZodEnum<{
|
|
|
19
19
|
codex: "codex";
|
|
20
20
|
}>;
|
|
21
21
|
export declare const InternalRunStatusEnum: z.ZodEnum<{
|
|
22
|
-
provider_transport_failure: "provider_transport_failure";
|
|
23
22
|
error: "error";
|
|
24
23
|
timeout: "timeout";
|
|
25
24
|
incomplete: "incomplete";
|
|
26
|
-
api_error: "api_error";
|
|
27
|
-
api_aborted: "api_aborted";
|
|
28
25
|
brief_too_vague: "brief_too_vague";
|
|
29
26
|
ok: "ok";
|
|
30
27
|
unavailable: "unavailable";
|