clinkx 0.2.3 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/LICENSE +10 -0
- package/README.md +113 -18
- package/clinkx-workflows/dist/allowed-roots.d.ts +1 -0
- package/clinkx-workflows/dist/allowed-roots.js +5 -0
- package/clinkx-workflows/dist/allowed-roots.js.map +1 -0
- package/clinkx-workflows/dist/artifacts.d.ts +20 -1
- package/clinkx-workflows/dist/artifacts.js +38 -9
- package/clinkx-workflows/dist/artifacts.js.map +1 -1
- package/clinkx-workflows/dist/backend.d.ts +4 -0
- package/clinkx-workflows/dist/citation-check.d.ts +40 -0
- package/clinkx-workflows/dist/citation-check.js +348 -0
- package/clinkx-workflows/dist/citation-check.js.map +1 -0
- package/clinkx-workflows/dist/clink-client.d.ts +2 -1
- package/clinkx-workflows/dist/clink-client.js +17 -4
- package/clinkx-workflows/dist/clink-client.js.map +1 -1
- package/clinkx-workflows/dist/config.d.ts +145 -16
- package/clinkx-workflows/dist/config.js +384 -26
- package/clinkx-workflows/dist/config.js.map +1 -1
- package/clinkx-workflows/dist/contained-file.d.ts +172 -0
- package/clinkx-workflows/dist/contained-file.js +483 -0
- package/clinkx-workflows/dist/contained-file.js.map +1 -0
- package/clinkx-workflows/dist/context-builder-lifecycle-contract.d.ts +416 -0
- package/clinkx-workflows/dist/context-builder-lifecycle-contract.js +328 -0
- package/clinkx-workflows/dist/context-builder-lifecycle-contract.js.map +1 -0
- package/clinkx-workflows/dist/context-builder-lifecycle-router.d.ts +24 -0
- package/clinkx-workflows/dist/context-builder-lifecycle-router.js +39 -0
- package/clinkx-workflows/dist/context-builder-lifecycle-router.js.map +1 -0
- package/clinkx-workflows/dist/context-cache-key.d.ts +53 -0
- package/clinkx-workflows/dist/context-cache-key.js +91 -0
- package/clinkx-workflows/dist/context-cache-key.js.map +1 -0
- package/clinkx-workflows/dist/context-mode-resolver.d.ts +27 -0
- package/clinkx-workflows/dist/context-mode-resolver.js +126 -0
- package/clinkx-workflows/dist/context-mode-resolver.js.map +1 -0
- package/clinkx-workflows/dist/context-preflight.d.ts +184 -0
- package/clinkx-workflows/dist/context-preflight.js +91 -0
- package/clinkx-workflows/dist/context-preflight.js.map +1 -0
- package/clinkx-workflows/dist/council-expander.d.ts +1 -1
- package/clinkx-workflows/dist/council-expander.js +2 -1
- package/clinkx-workflows/dist/council-expander.js.map +1 -1
- package/clinkx-workflows/dist/dashboard/activity-contract.d.ts +165 -0
- package/clinkx-workflows/dist/dashboard/activity-contract.js +105 -0
- package/clinkx-workflows/dist/dashboard/activity-contract.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/activity-lease.d.ts +25 -0
- package/clinkx-workflows/dist/dashboard/activity-lease.js +34 -0
- package/clinkx-workflows/dist/dashboard/activity-lease.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/activity-reader.d.ts +86 -0
- package/clinkx-workflows/dist/dashboard/activity-reader.js +480 -0
- package/clinkx-workflows/dist/dashboard/activity-reader.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/api-routes.d.ts +36 -0
- package/clinkx-workflows/dist/dashboard/api-routes.js +1047 -0
- package/clinkx-workflows/dist/dashboard/api-routes.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/artifact-index.d.ts +37 -0
- package/clinkx-workflows/dist/dashboard/artifact-index.js +145 -0
- package/clinkx-workflows/dist/dashboard/artifact-index.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/auth/challenge-store.d.ts +31 -0
- package/clinkx-workflows/dist/dashboard/auth/challenge-store.js +65 -0
- package/clinkx-workflows/dist/dashboard/auth/challenge-store.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/auth/controller.d.ts +26 -0
- package/clinkx-workflows/dist/dashboard/auth/controller.js +596 -0
- package/clinkx-workflows/dist/dashboard/auth/controller.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/auth/credential-store.d.ts +60 -0
- package/clinkx-workflows/dist/dashboard/auth/credential-store.js +776 -0
- package/clinkx-workflows/dist/dashboard/auth/credential-store.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/auth/enrollment-gate.d.ts +9 -0
- package/clinkx-workflows/dist/dashboard/auth/enrollment-gate.js +44 -0
- package/clinkx-workflows/dist/dashboard/auth/enrollment-gate.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/auth/session-store.d.ts +17 -0
- package/clinkx-workflows/dist/dashboard/auth/session-store.js +77 -0
- package/clinkx-workflows/dist/dashboard/auth/session-store.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/auth/webauthn-service.d.ts +25 -0
- package/clinkx-workflows/dist/dashboard/auth/webauthn-service.js +71 -0
- package/clinkx-workflows/dist/dashboard/auth/webauthn-service.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/context-run-liveness.d.ts +37 -0
- package/clinkx-workflows/dist/dashboard/context-run-liveness.js +49 -0
- package/clinkx-workflows/dist/dashboard/context-run-liveness.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/context-run-reader.d.ts +222 -0
- package/clinkx-workflows/dist/dashboard/context-run-reader.js +1178 -0
- package/clinkx-workflows/dist/dashboard/context-run-reader.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/contracts.d.ts +8936 -0
- package/clinkx-workflows/dist/dashboard/contracts.js +1157 -0
- package/clinkx-workflows/dist/dashboard/contracts.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/generation.d.ts +14 -0
- package/clinkx-workflows/dist/dashboard/generation.js +41 -0
- package/clinkx-workflows/dist/dashboard/generation.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/index.d.ts +28 -0
- package/clinkx-workflows/dist/dashboard/index.js +16 -0
- package/clinkx-workflows/dist/dashboard/index.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/lazy-content.d.ts +101 -0
- package/clinkx-workflows/dist/dashboard/lazy-content.js +748 -0
- package/clinkx-workflows/dist/dashboard/lazy-content.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/progress-report-contract.d.ts +303 -0
- package/clinkx-workflows/dist/dashboard/progress-report-contract.js +221 -0
- package/clinkx-workflows/dist/dashboard/progress-report-contract.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/progress-report-reader.d.ts +50 -0
- package/clinkx-workflows/dist/dashboard/progress-report-reader.js +581 -0
- package/clinkx-workflows/dist/dashboard/progress-report-reader.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/progress-report-status-overlay.d.ts +89 -0
- package/clinkx-workflows/dist/dashboard/progress-report-status-overlay.js +71 -0
- package/clinkx-workflows/dist/dashboard/progress-report-status-overlay.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/progress-report-status-store.d.ts +28 -0
- package/clinkx-workflows/dist/dashboard/progress-report-status-store.js +110 -0
- package/clinkx-workflows/dist/dashboard/progress-report-status-store.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/read-model.d.ts +86 -0
- package/clinkx-workflows/dist/dashboard/read-model.js +440 -0
- package/clinkx-workflows/dist/dashboard/read-model.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/request-admission.d.ts +31 -0
- package/clinkx-workflows/dist/dashboard/request-admission.js +126 -0
- package/clinkx-workflows/dist/dashboard/request-admission.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/scanner.d.ts +75 -0
- package/clinkx-workflows/dist/dashboard/scanner.js +1110 -0
- package/clinkx-workflows/dist/dashboard/scanner.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/server-factory.d.ts +50 -0
- package/clinkx-workflows/dist/dashboard/server-factory.js +431 -0
- package/clinkx-workflows/dist/dashboard/server-factory.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/session-log-contract.d.ts +2611 -0
- package/clinkx-workflows/dist/dashboard/session-log-contract.js +480 -0
- package/clinkx-workflows/dist/dashboard/session-log-contract.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/session-log-identity.d.ts +21 -0
- package/clinkx-workflows/dist/dashboard/session-log-identity.js +101 -0
- package/clinkx-workflows/dist/dashboard/session-log-identity.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/session-log-journal.d.ts +43 -0
- package/clinkx-workflows/dist/dashboard/session-log-journal.js +522 -0
- package/clinkx-workflows/dist/dashboard/session-log-journal.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/session-log-reader.d.ts +61 -0
- package/clinkx-workflows/dist/dashboard/session-log-reader.js +378 -0
- package/clinkx-workflows/dist/dashboard/session-log-reader.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/session-log-redaction.d.ts +6 -0
- package/clinkx-workflows/dist/dashboard/session-log-redaction.js +367 -0
- package/clinkx-workflows/dist/dashboard/session-log-redaction.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/session-log-retention.d.ts +23 -0
- package/clinkx-workflows/dist/dashboard/session-log-retention.js +212 -0
- package/clinkx-workflows/dist/dashboard/session-log-retention.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/static-responses.d.ts +10 -0
- package/clinkx-workflows/dist/dashboard/static-responses.js +94 -0
- package/clinkx-workflows/dist/dashboard/static-responses.js.map +1 -0
- package/clinkx-workflows/dist/dashboard/worker-lock-observer.d.ts +28 -0
- package/clinkx-workflows/dist/dashboard/worker-lock-observer.js +241 -0
- package/clinkx-workflows/dist/dashboard/worker-lock-observer.js.map +1 -0
- package/clinkx-workflows/dist/dashboard-ui/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
- package/clinkx-workflows/dist/dashboard-ui/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
- package/clinkx-workflows/dist/dashboard-ui/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff +0 -0
- package/clinkx-workflows/dist/dashboard-ui/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 +0 -0
- package/clinkx-workflows/dist/dashboard-ui/assets/ibm-plex-sans-latin-400-normal-CDDApCn2.woff2 +0 -0
- package/clinkx-workflows/dist/dashboard-ui/assets/ibm-plex-sans-latin-400-normal-CYLoc0-x.woff +0 -0
- package/clinkx-workflows/dist/dashboard-ui/assets/ibm-plex-sans-latin-500-normal-6ng42L7E.woff2 +0 -0
- package/clinkx-workflows/dist/dashboard-ui/assets/ibm-plex-sans-latin-500-normal-BgVn5rGT.woff +0 -0
- package/clinkx-workflows/dist/dashboard-ui/assets/ibm-plex-sans-latin-600-normal-Cu4Hd6ag.woff +0 -0
- package/clinkx-workflows/dist/dashboard-ui/assets/ibm-plex-sans-latin-600-normal-CuJfVYMP.woff2 +0 -0
- package/clinkx-workflows/dist/dashboard-ui/assets/index-DOkMXTfB.js +25 -0
- package/clinkx-workflows/dist/dashboard-ui/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff +0 -0
- package/clinkx-workflows/dist/dashboard-ui/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
- package/clinkx-workflows/dist/dashboard-ui/assets/jetbrains-mono-latin-500-normal-BWZEU5yA.woff2 +0 -0
- package/clinkx-workflows/dist/dashboard-ui/assets/jetbrains-mono-latin-500-normal-CJOVTJB7.woff +0 -0
- package/clinkx-workflows/dist/dashboard-ui/assets/style-ChJsn0KD.css +1 -0
- package/clinkx-workflows/dist/dashboard-ui/contracts/council-plan-review-input-v1.json +158 -0
- package/clinkx-workflows/dist/dashboard-ui/index.html +15 -0
- package/clinkx-workflows/dist/dashboard-ui/licenses/IBM-Plex-Mono-OFL.txt +93 -0
- package/clinkx-workflows/dist/dashboard-ui/licenses/IBM-Plex-Sans-OFL.txt +93 -0
- package/clinkx-workflows/dist/dashboard-ui/licenses/JetBrains-Mono-OFL.txt +93 -0
- package/clinkx-workflows/dist/dashboard-ui/licenses/NOTICE.md +32 -0
- package/clinkx-workflows/dist/dashboard-ui/theme-init.js +8 -0
- package/clinkx-workflows/dist/definition-normalizer.d.ts +19 -0
- package/clinkx-workflows/dist/definition-normalizer.js.map +1 -1
- package/clinkx-workflows/dist/delegate-validate.d.ts +78 -0
- package/clinkx-workflows/dist/delegate-validate.js +97 -0
- package/clinkx-workflows/dist/delegate-validate.js.map +1 -0
- package/clinkx-workflows/dist/engine.d.ts +141 -0
- package/clinkx-workflows/dist/engine.js +882 -28
- package/clinkx-workflows/dist/engine.js.map +1 -1
- package/clinkx-workflows/dist/errors.d.ts +2 -0
- package/clinkx-workflows/dist/errors.js.map +1 -1
- package/clinkx-workflows/dist/fingerprint.d.ts +1 -1
- package/clinkx-workflows/dist/fingerprint.js +1 -1
- package/clinkx-workflows/dist/index.d.ts +19 -0
- package/clinkx-workflows/dist/index.js +15 -0
- package/clinkx-workflows/dist/index.js.map +1 -1
- package/clinkx-workflows/dist/loader.d.ts +9 -3
- package/clinkx-workflows/dist/loader.js +92 -21
- package/clinkx-workflows/dist/loader.js.map +1 -1
- package/clinkx-workflows/dist/plan-review/admission.d.ts +160 -0
- package/clinkx-workflows/dist/plan-review/admission.js +290 -0
- package/clinkx-workflows/dist/plan-review/admission.js.map +1 -0
- package/clinkx-workflows/dist/plan-review/context-policy.d.ts +55 -0
- package/clinkx-workflows/dist/plan-review/context-policy.js +146 -0
- package/clinkx-workflows/dist/plan-review/context-policy.js.map +1 -0
- package/clinkx-workflows/dist/plan-review/contract.d.ts +763 -0
- package/clinkx-workflows/dist/plan-review/contract.js +289 -0
- package/clinkx-workflows/dist/plan-review/contract.js.map +1 -0
- package/clinkx-workflows/dist/plan-review/digest.d.ts +68 -0
- package/clinkx-workflows/dist/plan-review/digest.js +241 -0
- package/clinkx-workflows/dist/plan-review/digest.js.map +1 -0
- package/clinkx-workflows/dist/plan-review/discovery.d.ts +45 -0
- package/clinkx-workflows/dist/plan-review/discovery.js +36 -0
- package/clinkx-workflows/dist/plan-review/discovery.js.map +1 -0
- package/clinkx-workflows/dist/plan-review/execution-contract.d.ts +298 -0
- package/clinkx-workflows/dist/plan-review/execution-contract.js +194 -0
- package/clinkx-workflows/dist/plan-review/execution-contract.js.map +1 -0
- package/clinkx-workflows/dist/plan-review/expander.d.ts +48 -0
- package/clinkx-workflows/dist/plan-review/expander.js +243 -0
- package/clinkx-workflows/dist/plan-review/expander.js.map +1 -0
- package/clinkx-workflows/dist/plan-review/projector.d.ts +126 -0
- package/clinkx-workflows/dist/plan-review/projector.js +437 -0
- package/clinkx-workflows/dist/plan-review/projector.js.map +1 -0
- package/clinkx-workflows/dist/plan-review/publication.d.ts +95 -0
- package/clinkx-workflows/dist/plan-review/publication.js +182 -0
- package/clinkx-workflows/dist/plan-review/publication.js.map +1 -0
- package/clinkx-workflows/dist/plan-review/ranking-reducer.d.ts +34 -0
- package/clinkx-workflows/dist/plan-review/ranking-reducer.js +139 -0
- package/clinkx-workflows/dist/plan-review/ranking-reducer.js.map +1 -0
- package/clinkx-workflows/dist/plan-review/resume.d.ts +38 -0
- package/clinkx-workflows/dist/plan-review/resume.js +122 -0
- package/clinkx-workflows/dist/plan-review/resume.js.map +1 -0
- package/clinkx-workflows/dist/plan-review/rubric.d.ts +7 -0
- package/clinkx-workflows/dist/plan-review/rubric.js +24 -0
- package/clinkx-workflows/dist/plan-review/rubric.js.map +1 -0
- package/clinkx-workflows/dist/plan-review/run-state.d.ts +398 -0
- package/clinkx-workflows/dist/plan-review/run-state.js +183 -0
- package/clinkx-workflows/dist/plan-review/run-state.js.map +1 -0
- package/clinkx-workflows/dist/plan-review/runtime-policy.d.ts +74 -0
- package/clinkx-workflows/dist/plan-review/runtime-policy.js +186 -0
- package/clinkx-workflows/dist/plan-review/runtime-policy.js.map +1 -0
- package/clinkx-workflows/dist/plan-review/snapshot.d.ts +81 -0
- package/clinkx-workflows/dist/plan-review/snapshot.js +170 -0
- package/clinkx-workflows/dist/plan-review/snapshot.js.map +1 -0
- package/clinkx-workflows/dist/plan-review/stage-error.d.ts +19 -0
- package/clinkx-workflows/dist/plan-review/stage-error.js +20 -0
- package/clinkx-workflows/dist/plan-review/stage-error.js.map +1 -0
- package/clinkx-workflows/dist/post-processors/index.d.ts +20 -0
- package/clinkx-workflows/dist/post-processors/index.js +21 -0
- package/clinkx-workflows/dist/post-processors/index.js.map +1 -0
- package/clinkx-workflows/dist/prompt-budget.d.ts +7 -0
- package/clinkx-workflows/dist/prompt-budget.js +7 -1
- package/clinkx-workflows/dist/prompt-budget.js.map +1 -1
- package/clinkx-workflows/dist/reducers/index.js +2 -0
- package/clinkx-workflows/dist/reducers/index.js.map +1 -1
- package/clinkx-workflows/dist/run-lock-heartbeat.d.ts +2 -0
- package/clinkx-workflows/dist/run-lock-heartbeat.js +3 -0
- package/clinkx-workflows/dist/run-lock-heartbeat.js.map +1 -0
- package/clinkx-workflows/dist/run-summary/cards/council-plan-review.d.ts +34 -0
- package/clinkx-workflows/dist/run-summary/cards/council-plan-review.js +74 -0
- package/clinkx-workflows/dist/run-summary/cards/council-plan-review.js.map +1 -0
- package/clinkx-workflows/dist/run-summary/cards/index.js +5 -0
- package/clinkx-workflows/dist/run-summary/cards/index.js.map +1 -1
- package/clinkx-workflows/dist/run-summary.d.ts +13 -0
- package/clinkx-workflows/dist/run-summary.js +29 -1
- package/clinkx-workflows/dist/run-summary.js.map +1 -1
- package/clinkx-workflows/dist/schema.d.ts +76 -21
- package/clinkx-workflows/dist/schema.js +10 -1
- package/clinkx-workflows/dist/schema.js.map +1 -1
- package/clinkx-workflows/dist/seed-terms.d.ts +30 -0
- package/clinkx-workflows/dist/seed-terms.js +176 -0
- package/clinkx-workflows/dist/seed-terms.js.map +1 -0
- package/clinkx-workflows/dist/server.d.ts +5 -2
- package/clinkx-workflows/dist/server.js +82 -52
- package/clinkx-workflows/dist/server.js.map +1 -1
- package/clinkx-workflows/dist/shutdown.d.ts +18 -20
- package/clinkx-workflows/dist/shutdown.js +43 -61
- package/clinkx-workflows/dist/shutdown.js.map +1 -1
- package/clinkx-workflows/dist/state-schema.d.ts +38 -0
- package/clinkx-workflows/dist/state.d.ts +170 -3
- package/clinkx-workflows/dist/state.js +1275 -28
- package/clinkx-workflows/dist/state.js.map +1 -1
- package/clinkx-workflows/dist/transport.d.ts +15 -0
- package/clinkx-workflows/dist/transport.js +19 -10
- package/clinkx-workflows/dist/transport.js.map +1 -1
- package/clinkx-workflows/dist/types.d.ts +14 -2
- package/clinkx-workflows/dist/validators/council.d.ts +318 -85
- package/clinkx-workflows/dist/validators/council.js +52 -13
- package/clinkx-workflows/dist/validators/council.js.map +1 -1
- package/clinkx-workflows/dist/validators/index.d.ts +1 -0
- package/clinkx-workflows/dist/validators/index.js +3 -0
- package/clinkx-workflows/dist/validators/index.js.map +1 -1
- package/clinkx-workflows/dist/validators/plan-review.d.ts +398 -0
- package/clinkx-workflows/dist/validators/plan-review.js +316 -0
- package/clinkx-workflows/dist/validators/plan-review.js.map +1 -0
- package/clinkx-workflows/dist/workflow-receipt.js +188 -4
- package/clinkx-workflows/dist/workflow-receipt.js.map +1 -1
- package/clinkx-workflows/dist/workflow-tools.d.ts +48 -3
- package/clinkx-workflows/dist/workflow-tools.js +1402 -59
- package/clinkx-workflows/dist/workflow-tools.js.map +1 -1
- package/clinkx-workflows/dist/workspace-signature.d.ts +16 -0
- package/clinkx-workflows/dist/workspace-signature.js +388 -0
- package/clinkx-workflows/dist/workspace-signature.js.map +1 -0
- package/clinkx-workflows/templates/council/answer-specialist.txt +2 -1
- package/clinkx-workflows/templates/council/code-review-chairman.txt +13 -0
- package/clinkx-workflows/templates/council/code-review-cross-reviewer.txt +4 -1
- package/clinkx-workflows/templates/council/code-review-reviewer.txt +19 -3
- package/clinkx-workflows/templates/council/debug-debugger.txt +2 -1
- package/clinkx-workflows/templates/council/discover-analyst.txt +2 -1
- package/clinkx-workflows/templates/council/member.txt +2 -1
- package/clinkx-workflows/templates/council/plan-review-chairman.txt +68 -0
- package/clinkx-workflows/templates/council/plan-review-cross-reviewer.txt +51 -0
- package/clinkx-workflows/templates/council/plan-review-reviewer.txt +60 -0
- package/clinkx-workflows/templates/plan-review/chairman.txt +48 -0
- package/clinkx-workflows/templates/plan-review/cross-review.txt +52 -0
- package/clinkx-workflows/templates/plan-review/ranking.txt +16 -0
- package/clinkx-workflows/templates/plan-review/reviewer.txt +57 -0
- package/clinkx-workflows/workflows/council-answer.yaml +97 -8
- package/clinkx-workflows/workflows/council-code-review.yaml +103 -8
- package/clinkx-workflows/workflows/council-debug.yaml +97 -8
- package/clinkx-workflows/workflows/council-default.yaml +97 -8
- package/clinkx-workflows/workflows/council-discover.yaml +97 -8
- package/clinkx-workflows/workflows/council-plan-review.yaml +250 -0
- package/clinkx-workflows/workflows/plan-review-receipts.yaml +230 -0
- package/conf/adapters/agy.json +49 -0
- package/conf/adapters/claude.json +5 -0
- package/conf/adapters/codex-app-server.json +44 -0
- package/conf/adapters/codex.json +7 -2
- package/conf/adapters/glm.json +5 -0
- package/conf/adapters/grok.json +60 -0
- package/conf/adapters/hapi/agy.json +52 -0
- package/conf/adapters/hapi/claude.json +5 -0
- package/conf/adapters/hapi/codex.json +7 -2
- package/conf/adapters/hapi/glm.json +5 -0
- package/conf/prompts/json-codereviewer.txt +1 -0
- package/conf/prompts/json.txt +1 -0
- package/dist/activity-journal.d.ts +42 -0
- package/dist/activity-journal.js +381 -0
- package/dist/activity-journal.js.map +1 -0
- package/dist/allowed-roots.d.ts +53 -0
- package/dist/allowed-roots.js +216 -0
- package/dist/allowed-roots.js.map +1 -0
- package/dist/codex/activity-session-log.d.ts +14 -0
- package/dist/codex/activity-session-log.js +206 -0
- package/dist/codex/activity-session-log.js.map +1 -0
- package/dist/codex/agent-tools.d.ts +23 -0
- package/dist/codex/agent-tools.js +1270 -0
- package/dist/codex/agent-tools.js.map +1 -0
- package/dist/codex/app-server-client.d.ts +76 -0
- package/dist/codex/app-server-client.js +582 -0
- package/dist/codex/app-server-client.js.map +1 -0
- package/dist/codex/app-server-registry.d.ts +389 -0
- package/dist/codex/app-server-registry.js +1407 -0
- package/dist/codex/app-server-registry.js.map +1 -0
- package/dist/codex/client-types.d.ts +109 -0
- package/dist/codex/client-types.js +2 -0
- package/dist/codex/client-types.js.map +1 -0
- package/dist/codex/protocol.d.ts +5375 -0
- package/dist/codex/protocol.js +614 -0
- package/dist/codex/protocol.js.map +1 -0
- package/dist/codex/session.d.ts +263 -0
- package/dist/codex/session.js +466 -0
- package/dist/codex/session.js.map +1 -0
- package/dist/config.d.ts +185 -19
- package/dist/config.js +82 -16
- package/dist/config.js.map +1 -1
- package/dist/context-builder/anchors.d.ts +12 -0
- package/dist/context-builder/anchors.js +22 -0
- package/dist/context-builder/anchors.js.map +1 -0
- package/dist/context-builder/bundle.d.ts +109 -0
- package/dist/context-builder/bundle.js +1498 -0
- package/dist/context-builder/bundle.js.map +1 -0
- package/dist/context-builder/codemap.d.ts +22 -0
- package/dist/context-builder/codemap.js +675 -0
- package/dist/context-builder/codemap.js.map +1 -0
- package/dist/context-builder/config.d.ts +61 -0
- package/dist/context-builder/config.js +216 -0
- package/dist/context-builder/config.js.map +1 -0
- package/dist/context-builder/context-run-catalog.d.ts +17 -0
- package/dist/context-builder/context-run-catalog.js +99 -0
- package/dist/context-builder/context-run-catalog.js.map +1 -0
- package/dist/context-builder/delegate-packet.d.ts +219 -0
- package/dist/context-builder/delegate-packet.js +1190 -0
- package/dist/context-builder/delegate-packet.js.map +1 -0
- package/dist/context-builder/delegate-reconstruction.d.ts +13 -0
- package/dist/context-builder/delegate-reconstruction.js +220 -0
- package/dist/context-builder/delegate-reconstruction.js.map +1 -0
- package/dist/context-builder/delegate-validation.d.ts +27 -0
- package/dist/context-builder/delegate-validation.js +479 -0
- package/dist/context-builder/delegate-validation.js.map +1 -0
- package/dist/context-builder/delegate.d.ts +26 -0
- package/dist/context-builder/delegate.js +134 -0
- package/dist/context-builder/delegate.js.map +1 -0
- package/dist/context-builder/diagnostics.d.ts +36 -0
- package/dist/context-builder/diagnostics.js +107 -0
- package/dist/context-builder/diagnostics.js.map +1 -0
- package/dist/context-builder/discovery.d.ts +146 -0
- package/dist/context-builder/discovery.js +2129 -0
- package/dist/context-builder/discovery.js.map +1 -0
- package/dist/context-builder/globs.d.ts +14 -0
- package/dist/context-builder/globs.js +175 -0
- package/dist/context-builder/globs.js.map +1 -0
- package/dist/context-builder/handler.d.ts +41 -0
- package/dist/context-builder/handler.js +2590 -0
- package/dist/context-builder/handler.js.map +1 -0
- package/dist/context-builder/lifecycle-contract.d.ts +424 -0
- package/dist/context-builder/lifecycle-contract.js +523 -0
- package/dist/context-builder/lifecycle-contract.js.map +1 -0
- package/dist/context-builder/lifecycle-journal.d.ts +62 -0
- package/dist/context-builder/lifecycle-journal.js +88 -0
- package/dist/context-builder/lifecycle-journal.js.map +1 -0
- package/dist/context-builder/lifecycle-observer.d.ts +102 -0
- package/dist/context-builder/lifecycle-observer.js +258 -0
- package/dist/context-builder/lifecycle-observer.js.map +1 -0
- package/dist/context-builder/lifecycle-reconcile.d.ts +32 -0
- package/dist/context-builder/lifecycle-reconcile.js +191 -0
- package/dist/context-builder/lifecycle-reconcile.js.map +1 -0
- package/dist/context-builder/lifecycle-recovery.d.ts +2 -0
- package/dist/context-builder/lifecycle-recovery.js +14 -0
- package/dist/context-builder/lifecycle-recovery.js.map +1 -0
- package/dist/context-builder/path-signals.d.ts +7 -0
- package/dist/context-builder/path-signals.js +70 -0
- package/dist/context-builder/path-signals.js.map +1 -0
- package/dist/context-builder/paths.d.ts +30 -0
- package/dist/context-builder/paths.js +153 -0
- package/dist/context-builder/paths.js.map +1 -0
- package/dist/context-builder/progress.d.ts +17 -0
- package/dist/context-builder/progress.js +93 -0
- package/dist/context-builder/progress.js.map +1 -0
- package/dist/context-builder/receipt.d.ts +91 -0
- package/dist/context-builder/receipt.js +180 -0
- package/dist/context-builder/receipt.js.map +1 -0
- package/dist/context-builder/refine-handler.d.ts +14 -0
- package/dist/context-builder/refine-handler.js +790 -0
- package/dist/context-builder/refine-handler.js.map +1 -0
- package/dist/context-builder/review-coverage.d.ts +84 -0
- package/dist/context-builder/review-coverage.js +437 -0
- package/dist/context-builder/review-coverage.js.map +1 -0
- package/dist/context-builder/run-id.d.ts +7 -0
- package/dist/context-builder/run-id.js +31 -0
- package/dist/context-builder/run-id.js.map +1 -0
- package/dist/context-builder/schema.d.ts +669 -0
- package/dist/context-builder/schema.js +399 -0
- package/dist/context-builder/schema.js.map +1 -0
- package/dist/context-builder/secrets.d.ts +41 -0
- package/dist/context-builder/secrets.js +1651 -0
- package/dist/context-builder/secrets.js.map +1 -0
- package/dist/context-builder/selection.d.ts +56 -0
- package/dist/context-builder/selection.js +1111 -0
- package/dist/context-builder/selection.js.map +1 -0
- package/dist/context-builder/session-log-identity.d.ts +1 -0
- package/dist/context-builder/session-log-identity.js +66 -0
- package/dist/context-builder/session-log-identity.js.map +1 -0
- package/dist/context-builder/slice-range-math.d.ts +16 -0
- package/dist/context-builder/slice-range-math.js +137 -0
- package/dist/context-builder/slice-range-math.js.map +1 -0
- package/dist/context-builder/status.d.ts +66 -0
- package/dist/context-builder/status.js +160 -0
- package/dist/context-builder/status.js.map +1 -0
- package/dist/context-builder/storage.d.ts +118 -0
- package/dist/context-builder/storage.js +1003 -0
- package/dist/context-builder/storage.js.map +1 -0
- package/dist/context-builder/token-estimate.d.ts +19 -0
- package/dist/context-builder/token-estimate.js +90 -0
- package/dist/context-builder/token-estimate.js.map +1 -0
- package/dist/context-builder/versions.d.ts +29 -0
- package/dist/context-builder/versions.js +30 -0
- package/dist/context-builder/versions.js.map +1 -0
- package/dist/context-builder/workflow-runner.d.ts +69 -0
- package/dist/context-builder/workflow-runner.js +1051 -0
- package/dist/context-builder/workflow-runner.js.map +1 -0
- package/dist/context-builder/write-watchdog.d.ts +14 -0
- package/dist/context-builder/write-watchdog.js +38 -0
- package/dist/context-builder/write-watchdog.js.map +1 -0
- package/dist/dashboard-adapter-catalog.d.ts +9 -0
- package/dist/dashboard-adapter-catalog.js +46 -0
- package/dist/dashboard-adapter-catalog.js.map +1 -0
- package/dist/dashboard-cli.d.ts +79 -0
- package/dist/dashboard-cli.js +585 -0
- package/dist/dashboard-cli.js.map +1 -0
- package/dist/dashboard-companion/client.d.ts +36 -0
- package/dist/dashboard-companion/client.js +210 -0
- package/dist/dashboard-companion/client.js.map +1 -0
- package/dist/dashboard-companion/config.d.ts +8 -0
- package/dist/dashboard-companion/config.js +52 -0
- package/dist/dashboard-companion/config.js.map +1 -0
- package/dist/dashboard-companion/http-proxy.d.ts +10 -0
- package/dist/dashboard-companion/http-proxy.js +234 -0
- package/dist/dashboard-companion/http-proxy.js.map +1 -0
- package/dist/dashboard-companion/protocol.d.ts +80 -0
- package/dist/dashboard-companion/protocol.js +455 -0
- package/dist/dashboard-companion/protocol.js.map +1 -0
- package/dist/dashboard-companion/standalone-assets.d.ts +12 -0
- package/dist/dashboard-companion/standalone-assets.js +72 -0
- package/dist/dashboard-companion/standalone-assets.js.map +1 -0
- package/dist/dashboard-companion/standalone-entry.d.ts +1 -0
- package/dist/dashboard-companion/standalone-entry.js +17 -0
- package/dist/dashboard-companion/standalone-entry.js.map +1 -0
- package/dist/dashboard-gateway/config.d.ts +9 -0
- package/dist/dashboard-gateway/config.js +44 -0
- package/dist/dashboard-gateway/config.js.map +1 -0
- package/dist/dashboard-gateway/index.d.ts +11 -0
- package/dist/dashboard-gateway/index.js +755 -0
- package/dist/dashboard-gateway/index.js.map +1 -0
- package/dist/dashboard-gateway/main.d.ts +1 -0
- package/dist/dashboard-gateway/main.js +25 -0
- package/dist/dashboard-gateway/main.js.map +1 -0
- package/dist/dashboard-pairing-token.d.ts +1 -0
- package/dist/dashboard-pairing-token.js +5 -0
- package/dist/dashboard-pairing-token.js.map +1 -0
- package/dist/elaris/client.d.ts +73 -0
- package/dist/elaris/client.js +825 -0
- package/dist/elaris/client.js.map +1 -0
- package/dist/elaris/config.d.ts +18 -0
- package/dist/elaris/config.js +75 -0
- package/dist/elaris/config.js.map +1 -0
- package/dist/elaris/errors.d.ts +41 -0
- package/dist/elaris/errors.js +205 -0
- package/dist/elaris/errors.js.map +1 -0
- package/dist/elaris/github-repo.d.ts +18 -0
- package/dist/elaris/github-repo.js +89 -0
- package/dist/elaris/github-repo.js.map +1 -0
- package/dist/elaris/index.d.ts +10 -0
- package/dist/elaris/index.js +11 -0
- package/dist/elaris/index.js.map +1 -0
- package/dist/elaris/redact.d.ts +89 -0
- package/dist/elaris/redact.js +423 -0
- package/dist/elaris/redact.js.map +1 -0
- package/dist/elaris/run-id.d.ts +5 -0
- package/dist/elaris/run-id.js +20 -0
- package/dist/elaris/run-id.js.map +1 -0
- package/dist/elaris/status.d.ts +45 -0
- package/dist/elaris/status.js +122 -0
- package/dist/elaris/status.js.map +1 -0
- package/dist/elaris/tool-schemas.d.ts +314 -0
- package/dist/elaris/tool-schemas.js +208 -0
- package/dist/elaris/tool-schemas.js.map +1 -0
- package/dist/elaris/tools.d.ts +73 -0
- package/dist/elaris/tools.js +1065 -0
- package/dist/elaris/tools.js.map +1 -0
- package/dist/elaris/types.d.ts +1541 -0
- package/dist/elaris/types.js +252 -0
- package/dist/elaris/types.js.map +1 -0
- package/dist/errors.d.ts +16 -0
- package/dist/errors.js +19 -0
- package/dist/errors.js.map +1 -1
- package/dist/handler.d.ts +4 -0
- package/dist/handler.js +10 -1
- package/dist/handler.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +13 -3
- package/dist/index.js.map +1 -1
- package/dist/local-clink-backend.d.ts +3 -0
- package/dist/local-clink-backend.js +4 -0
- package/dist/local-clink-backend.js.map +1 -1
- package/dist/package-info.d.ts +2 -0
- package/dist/package-info.js +18 -0
- package/dist/package-info.js.map +1 -0
- package/dist/parsers/codex-jsonl.js +48 -3
- package/dist/parsers/codex-jsonl.js.map +1 -1
- package/dist/parsers/extract.d.ts +10 -1
- package/dist/parsers/extract.js +11 -3
- package/dist/parsers/extract.js.map +1 -1
- package/dist/paths.d.ts +8 -0
- package/dist/paths.js +31 -43
- package/dist/paths.js.map +1 -1
- package/dist/pipeline.d.ts +51 -3
- package/dist/pipeline.js +264 -47
- package/dist/pipeline.js.map +1 -1
- package/dist/run-dir.d.ts +24 -0
- package/dist/run-dir.js +201 -2
- package/dist/run-dir.js.map +1 -1
- package/dist/runner.d.ts +13 -0
- package/dist/runner.js +184 -15
- package/dist/runner.js.map +1 -1
- package/dist/safety.d.ts +4 -4
- package/dist/safety.js +4 -4
- package/dist/schema.d.ts +7 -7
- package/dist/server.d.ts +2 -0
- package/dist/server.js +396 -24
- package/dist/server.js.map +1 -1
- package/dist/session-log-stream.d.ts +18 -0
- package/dist/session-log-stream.js +319 -0
- package/dist/session-log-stream.js.map +1 -0
- package/package.json +47 -5
- package/conf/adapters/gemini.json +0 -44
- package/conf/adapters/hapi/gemini.json +0 -47
- package/dist/artifacts.d.ts +0 -9
- package/dist/artifacts.js +0 -24
- package/dist/artifacts.js.map +0 -1
- package/dist/parsers/gemini-json.d.ts +0 -2
- package/dist/parsers/gemini-json.js +0 -72
- package/dist/parsers/gemini-json.js.map +0 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { randomBytes } from "node:crypto";
|
|
2
|
+
import { InvalidParamsError } from "../errors.js";
|
|
3
|
+
const CALLER_RUN_ID_PATTERN = /^[A-Za-z0-9_-]{1,64}$/;
|
|
4
|
+
const GENERATED_RUN_ID_PATTERN = /^ctx_\d{8}T\d{6}Z_[0-9a-f]{8,12}$/;
|
|
5
|
+
export function validateCallerRunId(runId) {
|
|
6
|
+
if (!CALLER_RUN_ID_PATTERN.test(runId)) {
|
|
7
|
+
throw new InvalidParamsError("context_builder run_id must match [A-Za-z0-9_-]{1,64}");
|
|
8
|
+
}
|
|
9
|
+
return runId;
|
|
10
|
+
}
|
|
11
|
+
export function generateContextBuilderRunId(options = {}) {
|
|
12
|
+
const now = options.now?.() ?? new Date();
|
|
13
|
+
const timestamp = now.toISOString().replace(/[-:]/g, "").slice(0, 15);
|
|
14
|
+
const suffix = normalizeGeneratedHex(options.randomHex?.() ?? randomBytes(6).toString("hex"));
|
|
15
|
+
const runId = `ctx_${timestamp}Z_${suffix}`;
|
|
16
|
+
if (!GENERATED_RUN_ID_PATTERN.test(runId)) {
|
|
17
|
+
throw new Error(`Generated context_builder run_id is invalid: ${runId}`);
|
|
18
|
+
}
|
|
19
|
+
return runId;
|
|
20
|
+
}
|
|
21
|
+
export function isGeneratedContextBuilderRunId(runId) {
|
|
22
|
+
return GENERATED_RUN_ID_PATTERN.test(runId);
|
|
23
|
+
}
|
|
24
|
+
function normalizeGeneratedHex(input) {
|
|
25
|
+
const hex = input.toLowerCase();
|
|
26
|
+
if (!/^[0-9a-f]{8,12}$/.test(hex)) {
|
|
27
|
+
throw new Error("context_builder generated run_id suffix must be 8-12 hex");
|
|
28
|
+
}
|
|
29
|
+
return hex;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=run-id.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-id.js","sourceRoot":"","sources":["../../src/context-builder/run-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AACtD,MAAM,wBAAwB,GAAG,mCAAmC,CAAC;AAOrE,MAAM,UAAU,mBAAmB,CAAC,KAAa;IAC/C,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QACvC,MAAM,IAAI,kBAAkB,CAC1B,uDAAuD,CACxD,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,2BAA2B,CACzC,UAAiC,EAAE;IAEnC,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;IAC1C,MAAM,SAAS,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACtE,MAAM,MAAM,GAAG,qBAAqB,CAClC,OAAO,CAAC,SAAS,EAAE,EAAE,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CACxD,CAAC;IACF,MAAM,KAAK,GAAG,OAAO,SAAS,KAAK,MAAM,EAAE,CAAC;IAE5C,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1C,MAAM,IAAI,KAAK,CAAC,gDAAgD,KAAK,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,KAAa;IAC1D,OAAO,wBAAwB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,SAAS,qBAAqB,CAAC,KAAa;IAC1C,MAAM,GAAG,GAAG,KAAK,CAAC,WAAW,EAAE,CAAC;IAEhC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;QAClC,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;IAC9E,CAAC;IAED,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -0,0 +1,669 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export type ContextBuilderPublicBudget = {
|
|
3
|
+
max_estimated_tokens: number;
|
|
4
|
+
target_estimated_tokens: number;
|
|
5
|
+
max_files: number;
|
|
6
|
+
max_scan_files: number;
|
|
7
|
+
max_bytes_per_file: number;
|
|
8
|
+
max_total_bytes: number;
|
|
9
|
+
max_search_results: number;
|
|
10
|
+
};
|
|
11
|
+
export type ContextBuilderPublicBudgetInput = Partial<Omit<ContextBuilderPublicBudget, "target_estimated_tokens">>;
|
|
12
|
+
export declare const CONTEXT_BUILDER_INTENT_PROFILES: readonly ["handoff_small", "implementation_medium", "review_deep"];
|
|
13
|
+
export type ContextBuilderIntentProfile = (typeof CONTEXT_BUILDER_INTENT_PROFILES)[number];
|
|
14
|
+
export declare const CONTEXT_BUILDER_PUBLIC_BUDGET_DEFAULTS: Readonly<{
|
|
15
|
+
max_estimated_tokens: number;
|
|
16
|
+
max_files: number;
|
|
17
|
+
max_scan_files: number;
|
|
18
|
+
max_bytes_per_file: number;
|
|
19
|
+
max_total_bytes: number;
|
|
20
|
+
max_search_results: number;
|
|
21
|
+
}>;
|
|
22
|
+
export declare const CONTEXT_BUILDER_PUBLIC_BUDGET_HARD_LIMITS: Readonly<{
|
|
23
|
+
max_estimated_tokens: number;
|
|
24
|
+
max_files: number;
|
|
25
|
+
max_scan_files: number;
|
|
26
|
+
max_bytes_per_file: number;
|
|
27
|
+
max_total_bytes: number;
|
|
28
|
+
max_search_results: number;
|
|
29
|
+
}>;
|
|
30
|
+
export declare const CONTEXT_BUILDER_DELEGATE_DEFAULTS: Readonly<{
|
|
31
|
+
readonly timeout_seconds: 120;
|
|
32
|
+
readonly max_response_chars: 20000;
|
|
33
|
+
readonly failure_policy: "fallback";
|
|
34
|
+
readonly finalizer_min_score: 8.5;
|
|
35
|
+
}>;
|
|
36
|
+
export declare const CONTEXT_BUILDER_DELEGATE_HARD_LIMITS: Readonly<{
|
|
37
|
+
readonly timeout_seconds: 600;
|
|
38
|
+
readonly max_response_chars: 200000;
|
|
39
|
+
}>;
|
|
40
|
+
export type ContextBuilderIntentProfileDefaults = {
|
|
41
|
+
budget: ContextBuilderPublicBudgetInput;
|
|
42
|
+
delegate: Partial<{
|
|
43
|
+
timeout_seconds: number;
|
|
44
|
+
max_response_chars: number;
|
|
45
|
+
}>;
|
|
46
|
+
finalizer_enabled: boolean;
|
|
47
|
+
};
|
|
48
|
+
export declare const CONTEXT_BUILDER_INTENT_PROFILE_DEFAULTS: Readonly<{
|
|
49
|
+
handoff_small: {
|
|
50
|
+
budget: {
|
|
51
|
+
max_estimated_tokens: number;
|
|
52
|
+
max_files: number;
|
|
53
|
+
max_scan_files: number;
|
|
54
|
+
max_bytes_per_file: number;
|
|
55
|
+
max_total_bytes: number;
|
|
56
|
+
max_search_results: number;
|
|
57
|
+
};
|
|
58
|
+
delegate: {
|
|
59
|
+
timeout_seconds: number;
|
|
60
|
+
max_response_chars: number;
|
|
61
|
+
};
|
|
62
|
+
finalizer_enabled: false;
|
|
63
|
+
};
|
|
64
|
+
implementation_medium: {
|
|
65
|
+
budget: {
|
|
66
|
+
max_estimated_tokens: number;
|
|
67
|
+
max_files: number;
|
|
68
|
+
max_scan_files: number;
|
|
69
|
+
max_bytes_per_file: number;
|
|
70
|
+
max_total_bytes: number;
|
|
71
|
+
max_search_results: number;
|
|
72
|
+
};
|
|
73
|
+
delegate: {
|
|
74
|
+
timeout_seconds: number;
|
|
75
|
+
max_response_chars: number;
|
|
76
|
+
};
|
|
77
|
+
finalizer_enabled: false;
|
|
78
|
+
};
|
|
79
|
+
review_deep: {
|
|
80
|
+
budget: {
|
|
81
|
+
max_estimated_tokens: number;
|
|
82
|
+
max_files: number;
|
|
83
|
+
max_scan_files: number;
|
|
84
|
+
max_bytes_per_file: number;
|
|
85
|
+
max_total_bytes: number;
|
|
86
|
+
max_search_results: number;
|
|
87
|
+
};
|
|
88
|
+
delegate: {
|
|
89
|
+
timeout_seconds: number;
|
|
90
|
+
max_response_chars: number;
|
|
91
|
+
};
|
|
92
|
+
finalizer_enabled: true;
|
|
93
|
+
};
|
|
94
|
+
}>;
|
|
95
|
+
export declare const ContextBuilderAdapterBudgetDefaultsSchema: z.ZodObject<{
|
|
96
|
+
max_estimated_tokens: z.ZodOptional<z.ZodNumber>;
|
|
97
|
+
max_files: z.ZodOptional<z.ZodNumber>;
|
|
98
|
+
max_scan_files: z.ZodOptional<z.ZodNumber>;
|
|
99
|
+
max_bytes_per_file: z.ZodOptional<z.ZodNumber>;
|
|
100
|
+
max_total_bytes: z.ZodOptional<z.ZodNumber>;
|
|
101
|
+
max_search_results: z.ZodOptional<z.ZodNumber>;
|
|
102
|
+
}, "strict", z.ZodTypeAny, {
|
|
103
|
+
max_estimated_tokens?: number | undefined;
|
|
104
|
+
max_files?: number | undefined;
|
|
105
|
+
max_scan_files?: number | undefined;
|
|
106
|
+
max_bytes_per_file?: number | undefined;
|
|
107
|
+
max_total_bytes?: number | undefined;
|
|
108
|
+
max_search_results?: number | undefined;
|
|
109
|
+
}, {
|
|
110
|
+
max_estimated_tokens?: number | undefined;
|
|
111
|
+
max_files?: number | undefined;
|
|
112
|
+
max_scan_files?: number | undefined;
|
|
113
|
+
max_bytes_per_file?: number | undefined;
|
|
114
|
+
max_total_bytes?: number | undefined;
|
|
115
|
+
max_search_results?: number | undefined;
|
|
116
|
+
}>;
|
|
117
|
+
declare const DelegateProviderConfigSchema: z.ZodObject<{
|
|
118
|
+
cli_name: z.ZodString;
|
|
119
|
+
role: z.ZodString;
|
|
120
|
+
}, "strict", z.ZodTypeAny, {
|
|
121
|
+
cli_name: string;
|
|
122
|
+
role: string;
|
|
123
|
+
}, {
|
|
124
|
+
cli_name: string;
|
|
125
|
+
role: string;
|
|
126
|
+
}>;
|
|
127
|
+
declare const DelegateFinalizerConfigSchema: z.ZodObject<{
|
|
128
|
+
cli_name: z.ZodString;
|
|
129
|
+
role: z.ZodString;
|
|
130
|
+
} & {
|
|
131
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
132
|
+
min_score: z.ZodDefault<z.ZodNumber>;
|
|
133
|
+
}, "strict", z.ZodTypeAny, {
|
|
134
|
+
cli_name: string;
|
|
135
|
+
role: string;
|
|
136
|
+
min_score: number;
|
|
137
|
+
enabled?: boolean | undefined;
|
|
138
|
+
}, {
|
|
139
|
+
cli_name: string;
|
|
140
|
+
role: string;
|
|
141
|
+
enabled?: boolean | undefined;
|
|
142
|
+
min_score?: number | undefined;
|
|
143
|
+
}>;
|
|
144
|
+
declare const DisabledDelegateSchema: z.ZodObject<{
|
|
145
|
+
enabled: z.ZodDefault<z.ZodLiteral<false>>;
|
|
146
|
+
}, "strict", z.ZodTypeAny, {
|
|
147
|
+
enabled: false;
|
|
148
|
+
}, {
|
|
149
|
+
enabled?: false | undefined;
|
|
150
|
+
}>;
|
|
151
|
+
declare const EnabledDelegateSchema: z.ZodObject<{
|
|
152
|
+
enabled: z.ZodLiteral<true>;
|
|
153
|
+
curator: z.ZodObject<{
|
|
154
|
+
cli_name: z.ZodString;
|
|
155
|
+
role: z.ZodString;
|
|
156
|
+
}, "strict", z.ZodTypeAny, {
|
|
157
|
+
cli_name: string;
|
|
158
|
+
role: string;
|
|
159
|
+
}, {
|
|
160
|
+
cli_name: string;
|
|
161
|
+
role: string;
|
|
162
|
+
}>;
|
|
163
|
+
finalizer: z.ZodObject<{
|
|
164
|
+
cli_name: z.ZodString;
|
|
165
|
+
role: z.ZodString;
|
|
166
|
+
} & {
|
|
167
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
168
|
+
min_score: z.ZodDefault<z.ZodNumber>;
|
|
169
|
+
}, "strict", z.ZodTypeAny, {
|
|
170
|
+
cli_name: string;
|
|
171
|
+
role: string;
|
|
172
|
+
min_score: number;
|
|
173
|
+
enabled?: boolean | undefined;
|
|
174
|
+
}, {
|
|
175
|
+
cli_name: string;
|
|
176
|
+
role: string;
|
|
177
|
+
enabled?: boolean | undefined;
|
|
178
|
+
min_score?: number | undefined;
|
|
179
|
+
}>;
|
|
180
|
+
timeout_seconds: z.ZodOptional<z.ZodNumber>;
|
|
181
|
+
max_response_chars: z.ZodOptional<z.ZodNumber>;
|
|
182
|
+
failure_policy: z.ZodOptional<z.ZodEnum<["fallback", "fail"]>>;
|
|
183
|
+
}, "strict", z.ZodTypeAny, {
|
|
184
|
+
enabled: true;
|
|
185
|
+
curator: {
|
|
186
|
+
cli_name: string;
|
|
187
|
+
role: string;
|
|
188
|
+
};
|
|
189
|
+
finalizer: {
|
|
190
|
+
cli_name: string;
|
|
191
|
+
role: string;
|
|
192
|
+
min_score: number;
|
|
193
|
+
enabled?: boolean | undefined;
|
|
194
|
+
};
|
|
195
|
+
timeout_seconds?: number | undefined;
|
|
196
|
+
max_response_chars?: number | undefined;
|
|
197
|
+
failure_policy?: "fallback" | "fail" | undefined;
|
|
198
|
+
}, {
|
|
199
|
+
enabled: true;
|
|
200
|
+
curator: {
|
|
201
|
+
cli_name: string;
|
|
202
|
+
role: string;
|
|
203
|
+
};
|
|
204
|
+
finalizer: {
|
|
205
|
+
cli_name: string;
|
|
206
|
+
role: string;
|
|
207
|
+
enabled?: boolean | undefined;
|
|
208
|
+
min_score?: number | undefined;
|
|
209
|
+
};
|
|
210
|
+
timeout_seconds?: number | undefined;
|
|
211
|
+
max_response_chars?: number | undefined;
|
|
212
|
+
failure_policy?: "fallback" | "fail" | undefined;
|
|
213
|
+
}>;
|
|
214
|
+
export type ContextBuilderDelegateProviderConfig = z.infer<typeof DelegateProviderConfigSchema>;
|
|
215
|
+
export type ContextBuilderDelegateFinalizerConfig = z.infer<typeof DelegateFinalizerConfigSchema>;
|
|
216
|
+
export type ContextBuilderEnabledDelegateConfig = Omit<z.infer<typeof EnabledDelegateSchema>, "timeout_seconds" | "max_response_chars" | "failure_policy"> & {
|
|
217
|
+
timeout_seconds: number;
|
|
218
|
+
max_response_chars: number;
|
|
219
|
+
failure_policy: "fallback" | "fail";
|
|
220
|
+
};
|
|
221
|
+
export type ContextBuilderDelegateConfig = ContextBuilderEnabledDelegateConfig | z.infer<typeof DisabledDelegateSchema>;
|
|
222
|
+
/**
|
|
223
|
+
* Strict context_builder input schema. Delegate provider names are explicit
|
|
224
|
+
* request fields; no curator or finalizer provider defaults are hardcoded.
|
|
225
|
+
*/
|
|
226
|
+
export declare const ContextBuilderInputSchema: z.ZodEffects<z.ZodObject<{
|
|
227
|
+
task: z.ZodString;
|
|
228
|
+
allow_secrets: z.ZodOptional<z.ZodBoolean>;
|
|
229
|
+
profile: z.ZodOptional<z.ZodEnum<["handoff_small", "implementation_medium", "review_deep"]>>;
|
|
230
|
+
roots: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
231
|
+
focus_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
232
|
+
include_globs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
233
|
+
exclude_globs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
234
|
+
search_terms: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
235
|
+
budget: z.ZodDefault<z.ZodObject<{
|
|
236
|
+
max_estimated_tokens: z.ZodOptional<z.ZodNumber>;
|
|
237
|
+
max_files: z.ZodOptional<z.ZodNumber>;
|
|
238
|
+
max_scan_files: z.ZodOptional<z.ZodNumber>;
|
|
239
|
+
max_bytes_per_file: z.ZodOptional<z.ZodNumber>;
|
|
240
|
+
max_total_bytes: z.ZodOptional<z.ZodNumber>;
|
|
241
|
+
max_search_results: z.ZodOptional<z.ZodNumber>;
|
|
242
|
+
}, "strict", z.ZodTypeAny, {
|
|
243
|
+
max_estimated_tokens?: number | undefined;
|
|
244
|
+
max_files?: number | undefined;
|
|
245
|
+
max_scan_files?: number | undefined;
|
|
246
|
+
max_bytes_per_file?: number | undefined;
|
|
247
|
+
max_total_bytes?: number | undefined;
|
|
248
|
+
max_search_results?: number | undefined;
|
|
249
|
+
}, {
|
|
250
|
+
max_estimated_tokens?: number | undefined;
|
|
251
|
+
max_files?: number | undefined;
|
|
252
|
+
max_scan_files?: number | undefined;
|
|
253
|
+
max_bytes_per_file?: number | undefined;
|
|
254
|
+
max_total_bytes?: number | undefined;
|
|
255
|
+
max_search_results?: number | undefined;
|
|
256
|
+
}>>;
|
|
257
|
+
delegate: z.ZodDefault<z.ZodUnion<[z.ZodObject<{
|
|
258
|
+
enabled: z.ZodLiteral<true>;
|
|
259
|
+
curator: z.ZodObject<{
|
|
260
|
+
cli_name: z.ZodString;
|
|
261
|
+
role: z.ZodString;
|
|
262
|
+
}, "strict", z.ZodTypeAny, {
|
|
263
|
+
cli_name: string;
|
|
264
|
+
role: string;
|
|
265
|
+
}, {
|
|
266
|
+
cli_name: string;
|
|
267
|
+
role: string;
|
|
268
|
+
}>;
|
|
269
|
+
finalizer: z.ZodObject<{
|
|
270
|
+
cli_name: z.ZodString;
|
|
271
|
+
role: z.ZodString;
|
|
272
|
+
} & {
|
|
273
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
274
|
+
min_score: z.ZodDefault<z.ZodNumber>;
|
|
275
|
+
}, "strict", z.ZodTypeAny, {
|
|
276
|
+
cli_name: string;
|
|
277
|
+
role: string;
|
|
278
|
+
min_score: number;
|
|
279
|
+
enabled?: boolean | undefined;
|
|
280
|
+
}, {
|
|
281
|
+
cli_name: string;
|
|
282
|
+
role: string;
|
|
283
|
+
enabled?: boolean | undefined;
|
|
284
|
+
min_score?: number | undefined;
|
|
285
|
+
}>;
|
|
286
|
+
timeout_seconds: z.ZodOptional<z.ZodNumber>;
|
|
287
|
+
max_response_chars: z.ZodOptional<z.ZodNumber>;
|
|
288
|
+
failure_policy: z.ZodOptional<z.ZodEnum<["fallback", "fail"]>>;
|
|
289
|
+
}, "strict", z.ZodTypeAny, {
|
|
290
|
+
enabled: true;
|
|
291
|
+
curator: {
|
|
292
|
+
cli_name: string;
|
|
293
|
+
role: string;
|
|
294
|
+
};
|
|
295
|
+
finalizer: {
|
|
296
|
+
cli_name: string;
|
|
297
|
+
role: string;
|
|
298
|
+
min_score: number;
|
|
299
|
+
enabled?: boolean | undefined;
|
|
300
|
+
};
|
|
301
|
+
timeout_seconds?: number | undefined;
|
|
302
|
+
max_response_chars?: number | undefined;
|
|
303
|
+
failure_policy?: "fallback" | "fail" | undefined;
|
|
304
|
+
}, {
|
|
305
|
+
enabled: true;
|
|
306
|
+
curator: {
|
|
307
|
+
cli_name: string;
|
|
308
|
+
role: string;
|
|
309
|
+
};
|
|
310
|
+
finalizer: {
|
|
311
|
+
cli_name: string;
|
|
312
|
+
role: string;
|
|
313
|
+
enabled?: boolean | undefined;
|
|
314
|
+
min_score?: number | undefined;
|
|
315
|
+
};
|
|
316
|
+
timeout_seconds?: number | undefined;
|
|
317
|
+
max_response_chars?: number | undefined;
|
|
318
|
+
failure_policy?: "fallback" | "fail" | undefined;
|
|
319
|
+
}>, z.ZodObject<{
|
|
320
|
+
enabled: z.ZodDefault<z.ZodLiteral<false>>;
|
|
321
|
+
}, "strict", z.ZodTypeAny, {
|
|
322
|
+
enabled: false;
|
|
323
|
+
}, {
|
|
324
|
+
enabled?: false | undefined;
|
|
325
|
+
}>]>>;
|
|
326
|
+
run_id: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
|
|
327
|
+
debug: z.ZodDefault<z.ZodBoolean>;
|
|
328
|
+
}, "strict", z.ZodTypeAny, {
|
|
329
|
+
debug: boolean;
|
|
330
|
+
task: string;
|
|
331
|
+
focus_paths: string[];
|
|
332
|
+
include_globs: string[];
|
|
333
|
+
exclude_globs: string[];
|
|
334
|
+
search_terms: string[];
|
|
335
|
+
budget: {
|
|
336
|
+
max_estimated_tokens?: number | undefined;
|
|
337
|
+
max_files?: number | undefined;
|
|
338
|
+
max_scan_files?: number | undefined;
|
|
339
|
+
max_bytes_per_file?: number | undefined;
|
|
340
|
+
max_total_bytes?: number | undefined;
|
|
341
|
+
max_search_results?: number | undefined;
|
|
342
|
+
};
|
|
343
|
+
delegate: {
|
|
344
|
+
enabled: false;
|
|
345
|
+
} | {
|
|
346
|
+
enabled: true;
|
|
347
|
+
curator: {
|
|
348
|
+
cli_name: string;
|
|
349
|
+
role: string;
|
|
350
|
+
};
|
|
351
|
+
finalizer: {
|
|
352
|
+
cli_name: string;
|
|
353
|
+
role: string;
|
|
354
|
+
min_score: number;
|
|
355
|
+
enabled?: boolean | undefined;
|
|
356
|
+
};
|
|
357
|
+
timeout_seconds?: number | undefined;
|
|
358
|
+
max_response_chars?: number | undefined;
|
|
359
|
+
failure_policy?: "fallback" | "fail" | undefined;
|
|
360
|
+
};
|
|
361
|
+
allow_secrets?: boolean | undefined;
|
|
362
|
+
profile?: "handoff_small" | "implementation_medium" | "review_deep" | undefined;
|
|
363
|
+
roots?: string[] | undefined;
|
|
364
|
+
run_id?: string | undefined;
|
|
365
|
+
}, {
|
|
366
|
+
task: string;
|
|
367
|
+
debug?: boolean | undefined;
|
|
368
|
+
allow_secrets?: boolean | undefined;
|
|
369
|
+
profile?: "handoff_small" | "implementation_medium" | "review_deep" | undefined;
|
|
370
|
+
roots?: string[] | undefined;
|
|
371
|
+
focus_paths?: string[] | undefined;
|
|
372
|
+
include_globs?: string[] | undefined;
|
|
373
|
+
exclude_globs?: string[] | undefined;
|
|
374
|
+
search_terms?: string[] | undefined;
|
|
375
|
+
budget?: {
|
|
376
|
+
max_estimated_tokens?: number | undefined;
|
|
377
|
+
max_files?: number | undefined;
|
|
378
|
+
max_scan_files?: number | undefined;
|
|
379
|
+
max_bytes_per_file?: number | undefined;
|
|
380
|
+
max_total_bytes?: number | undefined;
|
|
381
|
+
max_search_results?: number | undefined;
|
|
382
|
+
} | undefined;
|
|
383
|
+
delegate?: {
|
|
384
|
+
enabled?: false | undefined;
|
|
385
|
+
} | {
|
|
386
|
+
enabled: true;
|
|
387
|
+
curator: {
|
|
388
|
+
cli_name: string;
|
|
389
|
+
role: string;
|
|
390
|
+
};
|
|
391
|
+
finalizer: {
|
|
392
|
+
cli_name: string;
|
|
393
|
+
role: string;
|
|
394
|
+
enabled?: boolean | undefined;
|
|
395
|
+
min_score?: number | undefined;
|
|
396
|
+
};
|
|
397
|
+
timeout_seconds?: number | undefined;
|
|
398
|
+
max_response_chars?: number | undefined;
|
|
399
|
+
failure_policy?: "fallback" | "fail" | undefined;
|
|
400
|
+
} | undefined;
|
|
401
|
+
run_id?: string | undefined;
|
|
402
|
+
}>, {
|
|
403
|
+
roots: string[];
|
|
404
|
+
budget: ContextBuilderPublicBudget;
|
|
405
|
+
delegate: ContextBuilderDelegateConfig;
|
|
406
|
+
debug: boolean;
|
|
407
|
+
task: string;
|
|
408
|
+
focus_paths: string[];
|
|
409
|
+
include_globs: string[];
|
|
410
|
+
exclude_globs: string[];
|
|
411
|
+
search_terms: string[];
|
|
412
|
+
allow_secrets?: boolean | undefined;
|
|
413
|
+
profile?: "handoff_small" | "implementation_medium" | "review_deep" | undefined;
|
|
414
|
+
run_id?: string | undefined;
|
|
415
|
+
}, {
|
|
416
|
+
task: string;
|
|
417
|
+
debug?: boolean | undefined;
|
|
418
|
+
allow_secrets?: boolean | undefined;
|
|
419
|
+
profile?: "handoff_small" | "implementation_medium" | "review_deep" | undefined;
|
|
420
|
+
roots?: string[] | undefined;
|
|
421
|
+
focus_paths?: string[] | undefined;
|
|
422
|
+
include_globs?: string[] | undefined;
|
|
423
|
+
exclude_globs?: string[] | undefined;
|
|
424
|
+
search_terms?: string[] | undefined;
|
|
425
|
+
budget?: {
|
|
426
|
+
max_estimated_tokens?: number | undefined;
|
|
427
|
+
max_files?: number | undefined;
|
|
428
|
+
max_scan_files?: number | undefined;
|
|
429
|
+
max_bytes_per_file?: number | undefined;
|
|
430
|
+
max_total_bytes?: number | undefined;
|
|
431
|
+
max_search_results?: number | undefined;
|
|
432
|
+
} | undefined;
|
|
433
|
+
delegate?: {
|
|
434
|
+
enabled?: false | undefined;
|
|
435
|
+
} | {
|
|
436
|
+
enabled: true;
|
|
437
|
+
curator: {
|
|
438
|
+
cli_name: string;
|
|
439
|
+
role: string;
|
|
440
|
+
};
|
|
441
|
+
finalizer: {
|
|
442
|
+
cli_name: string;
|
|
443
|
+
role: string;
|
|
444
|
+
enabled?: boolean | undefined;
|
|
445
|
+
min_score?: number | undefined;
|
|
446
|
+
};
|
|
447
|
+
timeout_seconds?: number | undefined;
|
|
448
|
+
max_response_chars?: number | undefined;
|
|
449
|
+
failure_policy?: "fallback" | "fail" | undefined;
|
|
450
|
+
} | undefined;
|
|
451
|
+
run_id?: string | undefined;
|
|
452
|
+
}>;
|
|
453
|
+
export type ContextBuilderInput = z.infer<typeof ContextBuilderInputSchema>;
|
|
454
|
+
export type ResolvedContextBuilderInput = ContextBuilderInput & {
|
|
455
|
+
allow_secrets: boolean;
|
|
456
|
+
};
|
|
457
|
+
export declare const SELECTION_DISPOSITIONS: readonly ["full", "slices", "codemap_only"];
|
|
458
|
+
export type SelectionDisposition = (typeof SELECTION_DISPOSITIONS)[number];
|
|
459
|
+
export declare const SelectionDispositionSchema: z.ZodEnum<["full", "slices", "codemap_only"]>;
|
|
460
|
+
declare const RefineOpSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
|
461
|
+
op: z.ZodLiteral<"add">;
|
|
462
|
+
paths: z.ZodArray<z.ZodString, "many">;
|
|
463
|
+
mode: z.ZodDefault<z.ZodEnum<["full", "slices", "codemap_only"]>>;
|
|
464
|
+
}, "strict", z.ZodTypeAny, {
|
|
465
|
+
mode: "full" | "slices" | "codemap_only";
|
|
466
|
+
op: "add";
|
|
467
|
+
paths: string[];
|
|
468
|
+
}, {
|
|
469
|
+
op: "add";
|
|
470
|
+
paths: string[];
|
|
471
|
+
mode?: "full" | "slices" | "codemap_only" | undefined;
|
|
472
|
+
}>, z.ZodObject<{
|
|
473
|
+
op: z.ZodLiteral<"remove">;
|
|
474
|
+
paths: z.ZodArray<z.ZodString, "many">;
|
|
475
|
+
}, "strict", z.ZodTypeAny, {
|
|
476
|
+
op: "remove";
|
|
477
|
+
paths: string[];
|
|
478
|
+
}, {
|
|
479
|
+
op: "remove";
|
|
480
|
+
paths: string[];
|
|
481
|
+
}>, z.ZodObject<{
|
|
482
|
+
op: z.ZodLiteral<"set_slices">;
|
|
483
|
+
path: z.ZodString;
|
|
484
|
+
ranges: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
485
|
+
start_line: z.ZodNumber;
|
|
486
|
+
end_line: z.ZodNumber;
|
|
487
|
+
}, "strict", z.ZodTypeAny, {
|
|
488
|
+
start_line: number;
|
|
489
|
+
end_line: number;
|
|
490
|
+
}, {
|
|
491
|
+
start_line: number;
|
|
492
|
+
end_line: number;
|
|
493
|
+
}>, {
|
|
494
|
+
start_line: number;
|
|
495
|
+
end_line: number;
|
|
496
|
+
}, {
|
|
497
|
+
start_line: number;
|
|
498
|
+
end_line: number;
|
|
499
|
+
}>, "many">;
|
|
500
|
+
}, "strict", z.ZodTypeAny, {
|
|
501
|
+
path: string;
|
|
502
|
+
op: "set_slices";
|
|
503
|
+
ranges: {
|
|
504
|
+
start_line: number;
|
|
505
|
+
end_line: number;
|
|
506
|
+
}[];
|
|
507
|
+
}, {
|
|
508
|
+
path: string;
|
|
509
|
+
op: "set_slices";
|
|
510
|
+
ranges: {
|
|
511
|
+
start_line: number;
|
|
512
|
+
end_line: number;
|
|
513
|
+
}[];
|
|
514
|
+
}>, z.ZodObject<{
|
|
515
|
+
op: z.ZodLiteral<"promote">;
|
|
516
|
+
paths: z.ZodArray<z.ZodString, "many">;
|
|
517
|
+
}, "strict", z.ZodTypeAny, {
|
|
518
|
+
op: "promote";
|
|
519
|
+
paths: string[];
|
|
520
|
+
}, {
|
|
521
|
+
op: "promote";
|
|
522
|
+
paths: string[];
|
|
523
|
+
}>, z.ZodObject<{
|
|
524
|
+
op: z.ZodLiteral<"demote">;
|
|
525
|
+
paths: z.ZodArray<z.ZodString, "many">;
|
|
526
|
+
}, "strict", z.ZodTypeAny, {
|
|
527
|
+
op: "demote";
|
|
528
|
+
paths: string[];
|
|
529
|
+
}, {
|
|
530
|
+
op: "demote";
|
|
531
|
+
paths: string[];
|
|
532
|
+
}>]>;
|
|
533
|
+
export type RefineOp = z.infer<typeof RefineOpSchema>;
|
|
534
|
+
export declare const RefineContextRunInputSchema: z.ZodObject<{
|
|
535
|
+
prior_run_id: z.ZodEffects<z.ZodString, string, string>;
|
|
536
|
+
allow_secrets: z.ZodOptional<z.ZodBoolean>;
|
|
537
|
+
ops: z.ZodArray<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
|
538
|
+
op: z.ZodLiteral<"add">;
|
|
539
|
+
paths: z.ZodArray<z.ZodString, "many">;
|
|
540
|
+
mode: z.ZodDefault<z.ZodEnum<["full", "slices", "codemap_only"]>>;
|
|
541
|
+
}, "strict", z.ZodTypeAny, {
|
|
542
|
+
mode: "full" | "slices" | "codemap_only";
|
|
543
|
+
op: "add";
|
|
544
|
+
paths: string[];
|
|
545
|
+
}, {
|
|
546
|
+
op: "add";
|
|
547
|
+
paths: string[];
|
|
548
|
+
mode?: "full" | "slices" | "codemap_only" | undefined;
|
|
549
|
+
}>, z.ZodObject<{
|
|
550
|
+
op: z.ZodLiteral<"remove">;
|
|
551
|
+
paths: z.ZodArray<z.ZodString, "many">;
|
|
552
|
+
}, "strict", z.ZodTypeAny, {
|
|
553
|
+
op: "remove";
|
|
554
|
+
paths: string[];
|
|
555
|
+
}, {
|
|
556
|
+
op: "remove";
|
|
557
|
+
paths: string[];
|
|
558
|
+
}>, z.ZodObject<{
|
|
559
|
+
op: z.ZodLiteral<"set_slices">;
|
|
560
|
+
path: z.ZodString;
|
|
561
|
+
ranges: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
562
|
+
start_line: z.ZodNumber;
|
|
563
|
+
end_line: z.ZodNumber;
|
|
564
|
+
}, "strict", z.ZodTypeAny, {
|
|
565
|
+
start_line: number;
|
|
566
|
+
end_line: number;
|
|
567
|
+
}, {
|
|
568
|
+
start_line: number;
|
|
569
|
+
end_line: number;
|
|
570
|
+
}>, {
|
|
571
|
+
start_line: number;
|
|
572
|
+
end_line: number;
|
|
573
|
+
}, {
|
|
574
|
+
start_line: number;
|
|
575
|
+
end_line: number;
|
|
576
|
+
}>, "many">;
|
|
577
|
+
}, "strict", z.ZodTypeAny, {
|
|
578
|
+
path: string;
|
|
579
|
+
op: "set_slices";
|
|
580
|
+
ranges: {
|
|
581
|
+
start_line: number;
|
|
582
|
+
end_line: number;
|
|
583
|
+
}[];
|
|
584
|
+
}, {
|
|
585
|
+
path: string;
|
|
586
|
+
op: "set_slices";
|
|
587
|
+
ranges: {
|
|
588
|
+
start_line: number;
|
|
589
|
+
end_line: number;
|
|
590
|
+
}[];
|
|
591
|
+
}>, z.ZodObject<{
|
|
592
|
+
op: z.ZodLiteral<"promote">;
|
|
593
|
+
paths: z.ZodArray<z.ZodString, "many">;
|
|
594
|
+
}, "strict", z.ZodTypeAny, {
|
|
595
|
+
op: "promote";
|
|
596
|
+
paths: string[];
|
|
597
|
+
}, {
|
|
598
|
+
op: "promote";
|
|
599
|
+
paths: string[];
|
|
600
|
+
}>, z.ZodObject<{
|
|
601
|
+
op: z.ZodLiteral<"demote">;
|
|
602
|
+
paths: z.ZodArray<z.ZodString, "many">;
|
|
603
|
+
}, "strict", z.ZodTypeAny, {
|
|
604
|
+
op: "demote";
|
|
605
|
+
paths: string[];
|
|
606
|
+
}, {
|
|
607
|
+
op: "demote";
|
|
608
|
+
paths: string[];
|
|
609
|
+
}>]>, "many">;
|
|
610
|
+
}, "strict", z.ZodTypeAny, {
|
|
611
|
+
prior_run_id: string;
|
|
612
|
+
ops: ({
|
|
613
|
+
mode: "full" | "slices" | "codemap_only";
|
|
614
|
+
op: "add";
|
|
615
|
+
paths: string[];
|
|
616
|
+
} | {
|
|
617
|
+
op: "remove";
|
|
618
|
+
paths: string[];
|
|
619
|
+
} | {
|
|
620
|
+
path: string;
|
|
621
|
+
op: "set_slices";
|
|
622
|
+
ranges: {
|
|
623
|
+
start_line: number;
|
|
624
|
+
end_line: number;
|
|
625
|
+
}[];
|
|
626
|
+
} | {
|
|
627
|
+
op: "promote";
|
|
628
|
+
paths: string[];
|
|
629
|
+
} | {
|
|
630
|
+
op: "demote";
|
|
631
|
+
paths: string[];
|
|
632
|
+
})[];
|
|
633
|
+
allow_secrets?: boolean | undefined;
|
|
634
|
+
}, {
|
|
635
|
+
prior_run_id: string;
|
|
636
|
+
ops: ({
|
|
637
|
+
op: "add";
|
|
638
|
+
paths: string[];
|
|
639
|
+
mode?: "full" | "slices" | "codemap_only" | undefined;
|
|
640
|
+
} | {
|
|
641
|
+
op: "remove";
|
|
642
|
+
paths: string[];
|
|
643
|
+
} | {
|
|
644
|
+
path: string;
|
|
645
|
+
op: "set_slices";
|
|
646
|
+
ranges: {
|
|
647
|
+
start_line: number;
|
|
648
|
+
end_line: number;
|
|
649
|
+
}[];
|
|
650
|
+
} | {
|
|
651
|
+
op: "promote";
|
|
652
|
+
paths: string[];
|
|
653
|
+
} | {
|
|
654
|
+
op: "demote";
|
|
655
|
+
paths: string[];
|
|
656
|
+
})[];
|
|
657
|
+
allow_secrets?: boolean | undefined;
|
|
658
|
+
}>;
|
|
659
|
+
export type RefineContextRunInput = z.infer<typeof RefineContextRunInputSchema>;
|
|
660
|
+
export declare function parseContextBuilderInput(input: unknown): ResolvedContextBuilderInput;
|
|
661
|
+
export declare function normalizeContextBuilderPublicBudget(budget?: ContextBuilderPublicBudgetInput): ContextBuilderPublicBudget;
|
|
662
|
+
export declare function resolveContextBuilderAdapterBudgetInput(args: {
|
|
663
|
+
adapterDefaults?: ContextBuilderPublicBudgetInput;
|
|
664
|
+
profile?: ContextBuilderIntentProfile | undefined;
|
|
665
|
+
explicit?: ContextBuilderPublicBudgetInput;
|
|
666
|
+
}): ContextBuilderPublicBudgetInput;
|
|
667
|
+
export declare function resolveContextBuilderProfileBudget(profile: ContextBuilderIntentProfile | undefined, budget?: ContextBuilderPublicBudgetInput): ContextBuilderPublicBudget;
|
|
668
|
+
export declare function contextBuilderJsonSchema(): Record<string, unknown>;
|
|
669
|
+
export {};
|