@agents-ensemble/core 0.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/LICENSE +21 -0
- package/dist/acp/acp-bridge.d.ts +42 -0
- package/dist/acp/acp-bridge.d.ts.map +1 -0
- package/dist/acp/acp-bridge.js +73 -0
- package/dist/acp/acp-bridge.js.map +1 -0
- package/dist/acp/acp-client.d.ts +45 -0
- package/dist/acp/acp-client.d.ts.map +1 -0
- package/dist/acp/acp-client.js +171 -0
- package/dist/acp/acp-client.js.map +1 -0
- package/dist/acp/acp-process.d.ts +33 -0
- package/dist/acp/acp-process.d.ts.map +1 -0
- package/dist/acp/acp-process.js +49 -0
- package/dist/acp/acp-process.js.map +1 -0
- package/dist/acp/json-rpc-peer.d.ts +31 -0
- package/dist/acp/json-rpc-peer.d.ts.map +1 -0
- package/dist/acp/json-rpc-peer.js +78 -0
- package/dist/acp/json-rpc-peer.js.map +1 -0
- package/dist/acp/json-rpc.d.ts +36 -0
- package/dist/acp/json-rpc.d.ts.map +1 -0
- package/dist/acp/json-rpc.js +46 -0
- package/dist/acp/json-rpc.js.map +1 -0
- package/dist/acp/process-stream-capture.d.ts +18 -0
- package/dist/acp/process-stream-capture.d.ts.map +1 -0
- package/dist/acp/process-stream-capture.js +48 -0
- package/dist/acp/process-stream-capture.js.map +1 -0
- package/dist/acp/testing/fake-acp-server.d.ts +45 -0
- package/dist/acp/testing/fake-acp-server.d.ts.map +1 -0
- package/dist/acp/testing/fake-acp-server.js +156 -0
- package/dist/acp/testing/fake-acp-server.js.map +1 -0
- package/dist/acp/testing/stream-pair.d.ts +10 -0
- package/dist/acp/testing/stream-pair.d.ts.map +1 -0
- package/dist/acp/testing/stream-pair.js +13 -0
- package/dist/acp/testing/stream-pair.js.map +1 -0
- package/dist/acp/types.d.ts +40 -0
- package/dist/acp/types.d.ts.map +1 -0
- package/dist/acp/types.js +5 -0
- package/dist/acp/types.js.map +1 -0
- package/dist/conductor/build-conductor-follow-up-prompt.d.ts +20 -0
- package/dist/conductor/build-conductor-follow-up-prompt.d.ts.map +1 -0
- package/dist/conductor/build-conductor-follow-up-prompt.js +17 -0
- package/dist/conductor/build-conductor-follow-up-prompt.js.map +1 -0
- package/dist/conductor/build-conductor-prompt.d.ts +22 -0
- package/dist/conductor/build-conductor-prompt.d.ts.map +1 -0
- package/dist/conductor/build-conductor-prompt.js +18 -0
- package/dist/conductor/build-conductor-prompt.js.map +1 -0
- package/dist/conductor/conductor-agent.d.ts +35 -0
- package/dist/conductor/conductor-agent.d.ts.map +1 -0
- package/dist/conductor/conductor-agent.js +90 -0
- package/dist/conductor/conductor-agent.js.map +1 -0
- package/dist/conductor/conductor-auth.d.ts +29 -0
- package/dist/conductor/conductor-auth.d.ts.map +1 -0
- package/dist/conductor/conductor-auth.js +80 -0
- package/dist/conductor/conductor-auth.js.map +1 -0
- package/dist/conductor/conductor-send-reconnect.d.ts +17 -0
- package/dist/conductor/conductor-send-reconnect.d.ts.map +1 -0
- package/dist/conductor/conductor-send-reconnect.js +21 -0
- package/dist/conductor/conductor-send-reconnect.js.map +1 -0
- package/dist/conductor/conductor-session-driver.d.ts +75 -0
- package/dist/conductor/conductor-session-driver.d.ts.map +1 -0
- package/dist/conductor/conductor-session-driver.js +230 -0
- package/dist/conductor/conductor-session-driver.js.map +1 -0
- package/dist/conductor/conductor-session-loop.d.ts +6 -0
- package/dist/conductor/conductor-session-loop.d.ts.map +1 -0
- package/dist/conductor/conductor-session-loop.js +6 -0
- package/dist/conductor/conductor-session-loop.js.map +1 -0
- package/dist/conductor/conductor-session.d.ts +109 -0
- package/dist/conductor/conductor-session.d.ts.map +1 -0
- package/dist/conductor/conductor-session.js +579 -0
- package/dist/conductor/conductor-session.js.map +1 -0
- package/dist/conductor/conductor-tool-name.d.ts +4 -0
- package/dist/conductor/conductor-tool-name.d.ts.map +1 -0
- package/dist/conductor/conductor-tool-name.js +10 -0
- package/dist/conductor/conductor-tool-name.js.map +1 -0
- package/dist/conductor/configure-cursor-sdk-env.d.ts +12 -0
- package/dist/conductor/configure-cursor-sdk-env.d.ts.map +1 -0
- package/dist/conductor/configure-cursor-sdk-env.js +64 -0
- package/dist/conductor/configure-cursor-sdk-env.js.map +1 -0
- package/dist/conductor/dispatch-tools.d.ts +19 -0
- package/dist/conductor/dispatch-tools.d.ts.map +1 -0
- package/dist/conductor/dispatch-tools.js +209 -0
- package/dist/conductor/dispatch-tools.js.map +1 -0
- package/dist/conductor/issue-loop.d.ts +7 -0
- package/dist/conductor/issue-loop.d.ts.map +1 -0
- package/dist/conductor/issue-loop.js +6 -0
- package/dist/conductor/issue-loop.js.map +1 -0
- package/dist/conductor/issue-session.d.ts +5 -0
- package/dist/conductor/issue-session.d.ts.map +1 -0
- package/dist/conductor/issue-session.js +5 -0
- package/dist/conductor/issue-session.js.map +1 -0
- package/dist/conductor/list-conductor-models.d.ts +7 -0
- package/dist/conductor/list-conductor-models.d.ts.map +1 -0
- package/dist/conductor/list-conductor-models.js +16 -0
- package/dist/conductor/list-conductor-models.js.map +1 -0
- package/dist/conductor/operator-exit.d.ts +3 -0
- package/dist/conductor/operator-exit.d.ts.map +1 -0
- package/dist/conductor/operator-exit.js +6 -0
- package/dist/conductor/operator-exit.js.map +1 -0
- package/dist/conductor/operator-input-binding.d.ts +20 -0
- package/dist/conductor/operator-input-binding.d.ts.map +1 -0
- package/dist/conductor/operator-input-binding.js +2 -0
- package/dist/conductor/operator-input-binding.js.map +1 -0
- package/dist/conductor/operator-post-loop-gate.d.ts +10 -0
- package/dist/conductor/operator-post-loop-gate.d.ts.map +1 -0
- package/dist/conductor/operator-post-loop-gate.js +28 -0
- package/dist/conductor/operator-post-loop-gate.js.map +1 -0
- package/dist/conductor/prompt/compile-conductor-prompt.d.ts +6 -0
- package/dist/conductor/prompt/compile-conductor-prompt.d.ts.map +1 -0
- package/dist/conductor/prompt/compile-conductor-prompt.js +14 -0
- package/dist/conductor/prompt/compile-conductor-prompt.js.map +1 -0
- package/dist/conductor/prompt/format-session-summaries.d.ts +7 -0
- package/dist/conductor/prompt/format-session-summaries.d.ts.map +1 -0
- package/dist/conductor/prompt/format-session-summaries.js +31 -0
- package/dist/conductor/prompt/format-session-summaries.js.map +1 -0
- package/dist/conductor/prompt/materials.d.ts +8 -0
- package/dist/conductor/prompt/materials.d.ts.map +1 -0
- package/dist/conductor/prompt/materials.js +23 -0
- package/dist/conductor/prompt/materials.js.map +1 -0
- package/dist/conductor/prompt/modules/conductor-base-module.d.ts +5 -0
- package/dist/conductor/prompt/modules/conductor-base-module.d.ts.map +1 -0
- package/dist/conductor/prompt/modules/conductor-base-module.js +45 -0
- package/dist/conductor/prompt/modules/conductor-base-module.js.map +1 -0
- package/dist/conductor/prompt/modules/conductor-follow-up-module.d.ts +6 -0
- package/dist/conductor/prompt/modules/conductor-follow-up-module.d.ts.map +1 -0
- package/dist/conductor/prompt/modules/conductor-follow-up-module.js +15 -0
- package/dist/conductor/prompt/modules/conductor-follow-up-module.js.map +1 -0
- package/dist/conductor/prompt/modules/conductor-human-guidance-module.d.ts +4 -0
- package/dist/conductor/prompt/modules/conductor-human-guidance-module.d.ts.map +1 -0
- package/dist/conductor/prompt/modules/conductor-human-guidance-module.js +22 -0
- package/dist/conductor/prompt/modules/conductor-human-guidance-module.js.map +1 -0
- package/dist/conductor/prompt/modules/conductor-initial-module.d.ts +4 -0
- package/dist/conductor/prompt/modules/conductor-initial-module.d.ts.map +1 -0
- package/dist/conductor/prompt/modules/conductor-initial-module.js +12 -0
- package/dist/conductor/prompt/modules/conductor-initial-module.js.map +1 -0
- package/dist/conductor/prompt/modules/conductor-system-module.d.ts +4 -0
- package/dist/conductor/prompt/modules/conductor-system-module.d.ts.map +1 -0
- package/dist/conductor/prompt/modules/conductor-system-module.js +28 -0
- package/dist/conductor/prompt/modules/conductor-system-module.js.map +1 -0
- package/dist/conductor/prompt/modules/conductor-turn-module.d.ts +5 -0
- package/dist/conductor/prompt/modules/conductor-turn-module.d.ts.map +1 -0
- package/dist/conductor/prompt/modules/conductor-turn-module.js +71 -0
- package/dist/conductor/prompt/modules/conductor-turn-module.js.map +1 -0
- package/dist/conductor/prompt/types.d.ts +31 -0
- package/dist/conductor/prompt/types.d.ts.map +1 -0
- package/dist/conductor/prompt/types.js +9 -0
- package/dist/conductor/prompt/types.js.map +1 -0
- package/dist/conductor/resolve-conductor-model-id.d.ts +12 -0
- package/dist/conductor/resolve-conductor-model-id.d.ts.map +1 -0
- package/dist/conductor/resolve-conductor-model-id.js +23 -0
- package/dist/conductor/resolve-conductor-model-id.js.map +1 -0
- package/dist/conductor/session/format-session-event.d.ts +6 -0
- package/dist/conductor/session/format-session-event.d.ts.map +1 -0
- package/dist/conductor/session/format-session-event.js +99 -0
- package/dist/conductor/session/format-session-event.js.map +1 -0
- package/dist/conductor/session/select-dispatch-batch.d.ts +41 -0
- package/dist/conductor/session/select-dispatch-batch.d.ts.map +1 -0
- package/dist/conductor/session/select-dispatch-batch.js +143 -0
- package/dist/conductor/session/select-dispatch-batch.js.map +1 -0
- package/dist/conductor/session/session-event-queue.d.ts +35 -0
- package/dist/conductor/session/session-event-queue.d.ts.map +1 -0
- package/dist/conductor/session/session-event-queue.js +99 -0
- package/dist/conductor/session/session-event-queue.js.map +1 -0
- package/dist/conductor/session/session-event.d.ts +28 -0
- package/dist/conductor/session/session-event.d.ts.map +1 -0
- package/dist/conductor/session/session-event.js +8 -0
- package/dist/conductor/session/session-event.js.map +1 -0
- package/dist/conductor/session/session-logger.d.ts +151 -0
- package/dist/conductor/session/session-logger.d.ts.map +1 -0
- package/dist/conductor/session/session-logger.js +86 -0
- package/dist/conductor/session/session-logger.js.map +1 -0
- package/dist/conductor/session-policy.d.ts +45 -0
- package/dist/conductor/session-policy.d.ts.map +1 -0
- package/dist/conductor/session-policy.js +78 -0
- package/dist/conductor/session-policy.js.map +1 -0
- package/dist/conductor/submit-operator-input.d.ts +17 -0
- package/dist/conductor/submit-operator-input.d.ts.map +1 -0
- package/dist/conductor/submit-operator-input.js +38 -0
- package/dist/conductor/submit-operator-input.js.map +1 -0
- package/dist/conductor/testing/test-operator-input-binding.d.ts +16 -0
- package/dist/conductor/testing/test-operator-input-binding.d.ts.map +1 -0
- package/dist/conductor/testing/test-operator-input-binding.js +29 -0
- package/dist/conductor/testing/test-operator-input-binding.js.map +1 -0
- package/dist/dispatch/attach-worker.d.ts +31 -0
- package/dist/dispatch/attach-worker.d.ts.map +1 -0
- package/dist/dispatch/attach-worker.js +49 -0
- package/dist/dispatch/attach-worker.js.map +1 -0
- package/dist/dispatch/librarian-dispatch.d.ts +22 -0
- package/dist/dispatch/librarian-dispatch.d.ts.map +1 -0
- package/dist/dispatch/librarian-dispatch.js +35 -0
- package/dist/dispatch/librarian-dispatch.js.map +1 -0
- package/dist/dispatch/prompt-worker-tool.d.ts +8 -0
- package/dist/dispatch/prompt-worker-tool.d.ts.map +1 -0
- package/dist/dispatch/prompt-worker-tool.js +60 -0
- package/dist/dispatch/prompt-worker-tool.js.map +1 -0
- package/dist/dispatch/reviewer-dispatch.d.ts +23 -0
- package/dist/dispatch/reviewer-dispatch.d.ts.map +1 -0
- package/dist/dispatch/reviewer-dispatch.js +43 -0
- package/dist/dispatch/reviewer-dispatch.js.map +1 -0
- package/dist/dispatch/session-usage-tool.d.ts +8 -0
- package/dist/dispatch/session-usage-tool.d.ts.map +1 -0
- package/dist/dispatch/session-usage-tool.js +67 -0
- package/dist/dispatch/session-usage-tool.js.map +1 -0
- package/dist/dispatch/worker-acp-session.d.ts +43 -0
- package/dist/dispatch/worker-acp-session.d.ts.map +1 -0
- package/dist/dispatch/worker-acp-session.js +64 -0
- package/dist/dispatch/worker-acp-session.js.map +1 -0
- package/dist/dispatch/worker-dispatch.d.ts +23 -0
- package/dist/dispatch/worker-dispatch.d.ts.map +1 -0
- package/dist/dispatch/worker-dispatch.js +15 -0
- package/dist/dispatch/worker-dispatch.js.map +1 -0
- package/dist/dispatch/worker-status-tool.d.ts +10 -0
- package/dist/dispatch/worker-status-tool.d.ts.map +1 -0
- package/dist/dispatch/worker-status-tool.js +74 -0
- package/dist/dispatch/worker-status-tool.js.map +1 -0
- package/dist/escalation/answer-open-question-tool.d.ts +8 -0
- package/dist/escalation/answer-open-question-tool.d.ts.map +1 -0
- package/dist/escalation/answer-open-question-tool.js +84 -0
- package/dist/escalation/answer-open-question-tool.js.map +1 -0
- package/dist/escalation/apply-operator-message.d.ts +13 -0
- package/dist/escalation/apply-operator-message.d.ts.map +1 -0
- package/dist/escalation/apply-operator-message.js +32 -0
- package/dist/escalation/apply-operator-message.js.map +1 -0
- package/dist/escalation/ask-human-tool.d.ts +8 -0
- package/dist/escalation/ask-human-tool.d.ts.map +1 -0
- package/dist/escalation/ask-human-tool.js +79 -0
- package/dist/escalation/ask-human-tool.js.map +1 -0
- package/dist/escalation/build-human-guidance-prompt.d.ts +8 -0
- package/dist/escalation/build-human-guidance-prompt.d.ts.map +1 -0
- package/dist/escalation/build-human-guidance-prompt.js +26 -0
- package/dist/escalation/build-human-guidance-prompt.js.map +1 -0
- package/dist/escalation/build-max-turns-escalation.d.ts +4 -0
- package/dist/escalation/build-max-turns-escalation.d.ts.map +1 -0
- package/dist/escalation/build-max-turns-escalation.js +22 -0
- package/dist/escalation/build-max-turns-escalation.js.map +1 -0
- package/dist/escalation/create-permission-ask-handler.d.ts +4 -0
- package/dist/escalation/create-permission-ask-handler.d.ts.map +1 -0
- package/dist/escalation/create-permission-ask-handler.js +10 -0
- package/dist/escalation/create-permission-ask-handler.js.map +1 -0
- package/dist/escalation/dialogue-log.d.ts +15 -0
- package/dist/escalation/dialogue-log.d.ts.map +1 -0
- package/dist/escalation/dialogue-log.js +29 -0
- package/dist/escalation/dialogue-log.js.map +1 -0
- package/dist/escalation/enqueue-max-turns-question.d.ts +14 -0
- package/dist/escalation/enqueue-max-turns-question.d.ts.map +1 -0
- package/dist/escalation/enqueue-max-turns-question.js +29 -0
- package/dist/escalation/enqueue-max-turns-question.js.map +1 -0
- package/dist/escalation/escalation-unavailable-error.d.ts +5 -0
- package/dist/escalation/escalation-unavailable-error.d.ts.map +1 -0
- package/dist/escalation/escalation-unavailable-error.js +8 -0
- package/dist/escalation/escalation-unavailable-error.js.map +1 -0
- package/dist/escalation/format-open-questions.d.ts +4 -0
- package/dist/escalation/format-open-questions.d.ts.map +1 -0
- package/dist/escalation/format-open-questions.js +23 -0
- package/dist/escalation/format-open-questions.js.map +1 -0
- package/dist/escalation/format-registry-update.d.ts +5 -0
- package/dist/escalation/format-registry-update.d.ts.map +1 -0
- package/dist/escalation/format-registry-update.js +16 -0
- package/dist/escalation/format-registry-update.js.map +1 -0
- package/dist/escalation/human-inquiry.d.ts +23 -0
- package/dist/escalation/human-inquiry.d.ts.map +1 -0
- package/dist/escalation/human-inquiry.js +2 -0
- package/dist/escalation/human-inquiry.js.map +1 -0
- package/dist/escalation/open-question-list-tools.d.ts +7 -0
- package/dist/escalation/open-question-list-tools.d.ts.map +1 -0
- package/dist/escalation/open-question-list-tools.js +100 -0
- package/dist/escalation/open-question-list-tools.js.map +1 -0
- package/dist/escalation/open-question-to-escalation.d.ts +4 -0
- package/dist/escalation/open-question-to-escalation.d.ts.map +1 -0
- package/dist/escalation/open-question-to-escalation.js +13 -0
- package/dist/escalation/open-question-to-escalation.js.map +1 -0
- package/dist/escalation/open-question.d.ts +53 -0
- package/dist/escalation/open-question.d.ts.map +1 -0
- package/dist/escalation/open-question.js +66 -0
- package/dist/escalation/open-question.js.map +1 -0
- package/dist/escalation/permission-inquiry.d.ts +4 -0
- package/dist/escalation/permission-inquiry.d.ts.map +1 -0
- package/dist/escalation/permission-inquiry.js +11 -0
- package/dist/escalation/permission-inquiry.js.map +1 -0
- package/dist/escalation/record-open-question-answer.d.ts +11 -0
- package/dist/escalation/record-open-question-answer.d.ts.map +1 -0
- package/dist/escalation/record-open-question-answer.js +17 -0
- package/dist/escalation/record-open-question-answer.js.map +1 -0
- package/dist/escalation/resolve-human-inquiry.d.ts +8 -0
- package/dist/escalation/resolve-human-inquiry.d.ts.map +1 -0
- package/dist/escalation/resolve-human-inquiry.js +37 -0
- package/dist/escalation/resolve-human-inquiry.js.map +1 -0
- package/dist/git/run-git.d.ts +5 -0
- package/dist/git/run-git.d.ts.map +1 -0
- package/dist/git/run-git.js +19 -0
- package/dist/git/run-git.js.map +1 -0
- package/dist/github/debounce-buffer.d.ts +22 -0
- package/dist/github/debounce-buffer.d.ts.map +1 -0
- package/dist/github/debounce-buffer.js +61 -0
- package/dist/github/debounce-buffer.js.map +1 -0
- package/dist/github/fetch-github-updates.d.ts +19 -0
- package/dist/github/fetch-github-updates.d.ts.map +1 -0
- package/dist/github/fetch-github-updates.js +274 -0
- package/dist/github/fetch-github-updates.js.map +1 -0
- package/dist/github/format-issue-context-prompt.d.ts +9 -0
- package/dist/github/format-issue-context-prompt.d.ts.map +1 -0
- package/dist/github/format-issue-context-prompt.js +53 -0
- package/dist/github/format-issue-context-prompt.js.map +1 -0
- package/dist/github/github-monitor-cursor.d.ts +21 -0
- package/dist/github/github-monitor-cursor.d.ts.map +1 -0
- package/dist/github/github-monitor-cursor.js +25 -0
- package/dist/github/github-monitor-cursor.js.map +1 -0
- package/dist/github/github-monitor.d.ts +27 -0
- package/dist/github/github-monitor.d.ts.map +1 -0
- package/dist/github/github-monitor.js +98 -0
- package/dist/github/github-monitor.js.map +1 -0
- package/dist/github/github-test-fixtures.d.ts +17 -0
- package/dist/github/github-test-fixtures.d.ts.map +1 -0
- package/dist/github/github-test-fixtures.js +23 -0
- package/dist/github/github-test-fixtures.js.map +1 -0
- package/dist/github/github-update-types.d.ts +22 -0
- package/dist/github/github-update-types.d.ts.map +1 -0
- package/dist/github/github-update-types.js +2 -0
- package/dist/github/github-update-types.js.map +1 -0
- package/dist/github/issue-context.d.ts +16 -0
- package/dist/github/issue-context.d.ts.map +1 -0
- package/dist/github/issue-context.js +26 -0
- package/dist/github/issue-context.js.map +1 -0
- package/dist/github/run-gh.d.ts +4 -0
- package/dist/github/run-gh.d.ts.map +1 -0
- package/dist/github/run-gh.js +19 -0
- package/dist/github/run-gh.js.map +1 -0
- package/dist/index.d.ts +128 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +72 -0
- package/dist/index.js.map +1 -0
- package/dist/issue/issue-ref.d.ts +9 -0
- package/dist/issue/issue-ref.d.ts.map +1 -0
- package/dist/issue/issue-ref.js +18 -0
- package/dist/issue/issue-ref.js.map +1 -0
- package/dist/issue/resolve-issue-url.d.ts +6 -0
- package/dist/issue/resolve-issue-url.d.ts.map +1 -0
- package/dist/issue/resolve-issue-url.js +46 -0
- package/dist/issue/resolve-issue-url.js.map +1 -0
- package/dist/permission/format-pending-permissions.d.ts +3 -0
- package/dist/permission/format-pending-permissions.d.ts.map +1 -0
- package/dist/permission/format-pending-permissions.js +12 -0
- package/dist/permission/format-pending-permissions.js.map +1 -0
- package/dist/permission/format-permission-summary-for-operator.d.ts +15 -0
- package/dist/permission/format-permission-summary-for-operator.d.ts.map +1 -0
- package/dist/permission/format-permission-summary-for-operator.js +89 -0
- package/dist/permission/format-permission-summary-for-operator.js.map +1 -0
- package/dist/permission/pending-permission.d.ts +17 -0
- package/dist/permission/pending-permission.d.ts.map +1 -0
- package/dist/permission/pending-permission.js +23 -0
- package/dist/permission/pending-permission.js.map +1 -0
- package/dist/permission/permission-broker.d.ts +29 -0
- package/dist/permission/permission-broker.d.ts.map +1 -0
- package/dist/permission/permission-broker.js +53 -0
- package/dist/permission/permission-broker.js.map +1 -0
- package/dist/permission/permission-pipeline.d.ts +28 -0
- package/dist/permission/permission-pipeline.d.ts.map +1 -0
- package/dist/permission/permission-pipeline.js +41 -0
- package/dist/permission/permission-pipeline.js.map +1 -0
- package/dist/permission/permission-policy.d.ts +15 -0
- package/dist/permission/permission-policy.d.ts.map +1 -0
- package/dist/permission/permission-policy.js +32 -0
- package/dist/permission/permission-policy.js.map +1 -0
- package/dist/permission/permission-request.d.ts +8 -0
- package/dist/permission/permission-request.d.ts.map +1 -0
- package/dist/permission/permission-request.js +16 -0
- package/dist/permission/permission-request.js.map +1 -0
- package/dist/permission/resolve-permission-tool.d.ts +15 -0
- package/dist/permission/resolve-permission-tool.d.ts.map +1 -0
- package/dist/permission/resolve-permission-tool.js +62 -0
- package/dist/permission/resolve-permission-tool.js.map +1 -0
- package/dist/profile/load-profile.d.ts +35 -0
- package/dist/profile/load-profile.d.ts.map +1 -0
- package/dist/profile/load-profile.js +139 -0
- package/dist/profile/load-profile.js.map +1 -0
- package/dist/profile/types.d.ts +70 -0
- package/dist/profile/types.d.ts.map +1 -0
- package/dist/profile/types.js +61 -0
- package/dist/profile/types.js.map +1 -0
- package/dist/profiles/default/conductor.md +35 -0
- package/dist/profiles/default/implementer.md +17 -0
- package/dist/profiles/default/profile.yaml +22 -0
- package/dist/profiles/default/reviewer.md +18 -0
- package/dist/profiles/default/team.md +345 -0
- package/dist/prompt/build-prompt.d.ts +14 -0
- package/dist/prompt/build-prompt.d.ts.map +1 -0
- package/dist/prompt/build-prompt.js +16 -0
- package/dist/prompt/build-prompt.js.map +1 -0
- package/dist/prompt/build-worker-attach-prompt.d.ts +12 -0
- package/dist/prompt/build-worker-attach-prompt.d.ts.map +1 -0
- package/dist/prompt/build-worker-attach-prompt.js +32 -0
- package/dist/prompt/build-worker-attach-prompt.js.map +1 -0
- package/dist/prompt/build-worker-prompt.d.ts +11 -0
- package/dist/prompt/build-worker-prompt.d.ts.map +1 -0
- package/dist/prompt/build-worker-prompt.js +22 -0
- package/dist/prompt/build-worker-prompt.js.map +1 -0
- package/dist/prompt/compile-system-prompt.d.ts +12 -0
- package/dist/prompt/compile-system-prompt.d.ts.map +1 -0
- package/dist/prompt/compile-system-prompt.js +21 -0
- package/dist/prompt/compile-system-prompt.js.map +1 -0
- package/dist/prompt/contexts/kind.d.ts +14 -0
- package/dist/prompt/contexts/kind.d.ts.map +1 -0
- package/dist/prompt/contexts/kind.js +12 -0
- package/dist/prompt/contexts/kind.js.map +1 -0
- package/dist/prompt/issue-context-material.d.ts +5 -0
- package/dist/prompt/issue-context-material.d.ts.map +1 -0
- package/dist/prompt/issue-context-material.js +10 -0
- package/dist/prompt/issue-context-material.js.map +1 -0
- package/dist/prompt/modules/bootstrap.d.ts +5 -0
- package/dist/prompt/modules/bootstrap.d.ts.map +1 -0
- package/dist/prompt/modules/bootstrap.js +6 -0
- package/dist/prompt/modules/bootstrap.js.map +1 -0
- package/dist/prompt/modules/default-agent-module.d.ts +10 -0
- package/dist/prompt/modules/default-agent-module.d.ts.map +1 -0
- package/dist/prompt/modules/default-agent-module.js +19 -0
- package/dist/prompt/modules/default-agent-module.js.map +1 -0
- package/dist/prompt/modules/ensemble/base-module.d.ts +9 -0
- package/dist/prompt/modules/ensemble/base-module.d.ts.map +1 -0
- package/dist/prompt/modules/ensemble/base-module.js +70 -0
- package/dist/prompt/modules/ensemble/base-module.js.map +1 -0
- package/dist/prompt/modules/ensemble/conductor-base-module.d.ts +8 -0
- package/dist/prompt/modules/ensemble/conductor-base-module.d.ts.map +1 -0
- package/dist/prompt/modules/ensemble/conductor-base-module.js +96 -0
- package/dist/prompt/modules/ensemble/conductor-base-module.js.map +1 -0
- package/dist/prompt/modules/ensemble/index.d.ts +12 -0
- package/dist/prompt/modules/ensemble/index.d.ts.map +1 -0
- package/dist/prompt/modules/ensemble/index.js +23 -0
- package/dist/prompt/modules/ensemble/index.js.map +1 -0
- package/dist/prompt/modules/ensemble/worker-base-module.d.ts +8 -0
- package/dist/prompt/modules/ensemble/worker-base-module.d.ts.map +1 -0
- package/dist/prompt/modules/ensemble/worker-base-module.js +17 -0
- package/dist/prompt/modules/ensemble/worker-base-module.js.map +1 -0
- package/dist/prompt/modules/librarian-module.d.ts +10 -0
- package/dist/prompt/modules/librarian-module.d.ts.map +1 -0
- package/dist/prompt/modules/librarian-module.js +16 -0
- package/dist/prompt/modules/librarian-module.js.map +1 -0
- package/dist/prompt/modules/reviewer-module.d.ts +9 -0
- package/dist/prompt/modules/reviewer-module.d.ts.map +1 -0
- package/dist/prompt/modules/reviewer-module.js +14 -0
- package/dist/prompt/modules/reviewer-module.js.map +1 -0
- package/dist/prompt/modules/shared/profile-prompt-module.d.ts +11 -0
- package/dist/prompt/modules/shared/profile-prompt-module.d.ts.map +1 -0
- package/dist/prompt/modules/shared/profile-prompt-module.js +28 -0
- package/dist/prompt/modules/shared/profile-prompt-module.js.map +1 -0
- package/dist/prompt/modules/worker-module.d.ts +12 -0
- package/dist/prompt/modules/worker-module.d.ts.map +1 -0
- package/dist/prompt/modules/worker-module.js +20 -0
- package/dist/prompt/modules/worker-module.js.map +1 -0
- package/dist/prompt/render-compiled-prompt.d.ts +4 -0
- package/dist/prompt/render-compiled-prompt.d.ts.map +1 -0
- package/dist/prompt/render-compiled-prompt.js +48 -0
- package/dist/prompt/render-compiled-prompt.js.map +1 -0
- package/dist/prompt/testing/test-profile.d.ts +5 -0
- package/dist/prompt/testing/test-profile.d.ts.map +1 -0
- package/dist/prompt/testing/test-profile.js +15 -0
- package/dist/prompt/testing/test-profile.js.map +1 -0
- package/dist/runtime/conductor-inbox.d.ts +19 -0
- package/dist/runtime/conductor-inbox.d.ts.map +1 -0
- package/dist/runtime/conductor-inbox.js +64 -0
- package/dist/runtime/conductor-inbox.js.map +1 -0
- package/dist/runtime/inbox-processor.d.ts +17 -0
- package/dist/runtime/inbox-processor.d.ts.map +1 -0
- package/dist/runtime/inbox-processor.js +37 -0
- package/dist/runtime/inbox-processor.js.map +1 -0
- package/dist/runtime/send-worker-message.d.ts +14 -0
- package/dist/runtime/send-worker-message.d.ts.map +1 -0
- package/dist/runtime/send-worker-message.js +2 -0
- package/dist/runtime/send-worker-message.js.map +1 -0
- package/dist/runtime/types.d.ts +51 -0
- package/dist/runtime/types.d.ts.map +1 -0
- package/dist/runtime/types.js +2 -0
- package/dist/runtime/types.js.map +1 -0
- package/dist/runtime/worker-outbound-queue.d.ts +9 -0
- package/dist/runtime/worker-outbound-queue.d.ts.map +1 -0
- package/dist/runtime/worker-outbound-queue.js +11 -0
- package/dist/runtime/worker-outbound-queue.js.map +1 -0
- package/dist/runtime/worker-runtime.d.ts +53 -0
- package/dist/runtime/worker-runtime.d.ts.map +1 -0
- package/dist/runtime/worker-runtime.js +349 -0
- package/dist/runtime/worker-runtime.js.map +1 -0
- package/dist/runtime/worker-session.d.ts +49 -0
- package/dist/runtime/worker-session.d.ts.map +1 -0
- package/dist/runtime/worker-session.js +69 -0
- package/dist/runtime/worker-session.js.map +1 -0
- package/dist/runtime/worker-status.d.ts +27 -0
- package/dist/runtime/worker-status.d.ts.map +1 -0
- package/dist/runtime/worker-status.js +3 -0
- package/dist/runtime/worker-status.js.map +1 -0
- package/dist/session/session-sidecar.d.ts +54 -0
- package/dist/session/session-sidecar.d.ts.map +1 -0
- package/dist/session/session-sidecar.js +158 -0
- package/dist/session/session-sidecar.js.map +1 -0
- package/dist/usage/estimate-token-usage.d.ts +7 -0
- package/dist/usage/estimate-token-usage.d.ts.map +1 -0
- package/dist/usage/estimate-token-usage.js +18 -0
- package/dist/usage/estimate-token-usage.js.map +1 -0
- package/dist/usage/session-usage-tracker.d.ts +33 -0
- package/dist/usage/session-usage-tracker.d.ts.map +1 -0
- package/dist/usage/session-usage-tracker.js +184 -0
- package/dist/usage/session-usage-tracker.js.map +1 -0
- package/dist/usage/types.d.ts +53 -0
- package/dist/usage/types.d.ts.map +1 -0
- package/dist/usage/types.js +2 -0
- package/dist/usage/types.js.map +1 -0
- package/dist/worktree/worktree.d.ts +46 -0
- package/dist/worktree/worktree.d.ts.map +1 -0
- package/dist/worktree/worktree.js +212 -0
- package/dist/worktree/worktree.js.map +1 -0
- package/package.json +46 -0
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { mkdir } from 'node:fs/promises';
|
|
2
|
+
import { realpath } from 'node:fs/promises';
|
|
3
|
+
import { join, resolve } from 'node:path';
|
|
4
|
+
import { runGit } from '../git/run-git.js';
|
|
5
|
+
export function workerBranchName(issue) {
|
|
6
|
+
return `ensemble/issue-${issue.number}`;
|
|
7
|
+
}
|
|
8
|
+
export function workerWorktreePath(repoRoot, issue) {
|
|
9
|
+
return join(repoRoot, '.ensemble', 'worktrees', `issue-${issue.number}`);
|
|
10
|
+
}
|
|
11
|
+
export async function resolveWorkerWorktree(repoRoot, issue) {
|
|
12
|
+
const path = resolve(workerWorktreePath(repoRoot, issue));
|
|
13
|
+
const listed = await listWorktrees(repoRoot);
|
|
14
|
+
for (const entry of listed) {
|
|
15
|
+
if (await pathsEqual(entry.path, path)) {
|
|
16
|
+
return { path, branch: entry.branch, issue };
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
/** Conductor / one-shot dispatch が Issue 向け作業ディレクトリを 1 回だけ決める。 */
|
|
22
|
+
export async function resolveWorkerWorkspace(repoRoot, issue, mode = 'isolated') {
|
|
23
|
+
if (mode === 'in_repo') {
|
|
24
|
+
return resolveInRepoWorkspace(repoRoot, issue);
|
|
25
|
+
}
|
|
26
|
+
return createWorkerWorktree(repoRoot, issue);
|
|
27
|
+
}
|
|
28
|
+
/** メイン worktree(repo root)で直接作業する。通常の isolated worktree は作らない。 */
|
|
29
|
+
export async function resolveInRepoWorkspace(repoRoot, issue) {
|
|
30
|
+
const path = resolve(await realpathSafe(repoRoot));
|
|
31
|
+
const branch = await currentBranch(repoRoot);
|
|
32
|
+
return { path, branch, issue, inRepo: true };
|
|
33
|
+
}
|
|
34
|
+
export async function createWorkerWorktree(repoRoot, issue) {
|
|
35
|
+
const existing = await resolveWorkerWorktree(repoRoot, issue);
|
|
36
|
+
if (existing)
|
|
37
|
+
return existing;
|
|
38
|
+
const branch = workerBranchName(issue);
|
|
39
|
+
const path = resolve(workerWorktreePath(repoRoot, issue));
|
|
40
|
+
await mkdir(join(repoRoot, '.ensemble', 'worktrees'), { recursive: true });
|
|
41
|
+
const branchExists = await gitBranchExists(repoRoot, branch);
|
|
42
|
+
const startPoint = branchExists
|
|
43
|
+
? undefined
|
|
44
|
+
: await resolveNewBranchStartPoint(repoRoot);
|
|
45
|
+
try {
|
|
46
|
+
if (branchExists) {
|
|
47
|
+
await runGit(['worktree', 'add', path, branch], repoRoot);
|
|
48
|
+
}
|
|
49
|
+
else if (startPoint) {
|
|
50
|
+
await runGit(['worktree', 'add', '-b', branch, path, startPoint], repoRoot);
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
await runGit(['worktree', 'add', '-b', branch, path], repoRoot);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
catch (error) {
|
|
57
|
+
const recovered = await resolveWorkerWorktree(repoRoot, issue);
|
|
58
|
+
if (recovered)
|
|
59
|
+
return recovered;
|
|
60
|
+
const branchNowExists = await gitBranchExists(repoRoot, branch);
|
|
61
|
+
if (!branchExists && branchNowExists) {
|
|
62
|
+
try {
|
|
63
|
+
await runGit(['worktree', 'add', path, branch], repoRoot);
|
|
64
|
+
return { path, branch, issue };
|
|
65
|
+
}
|
|
66
|
+
catch (retryError) {
|
|
67
|
+
const recoveredAfterRetry = await resolveWorkerWorktree(repoRoot, issue);
|
|
68
|
+
if (recoveredAfterRetry)
|
|
69
|
+
return recoveredAfterRetry;
|
|
70
|
+
throw retryError;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
throw error;
|
|
74
|
+
}
|
|
75
|
+
return { path, branch, issue };
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* isolated worktree を削除する。存在しない場合は no-op。
|
|
79
|
+
* 未コミット変更がある場合は削除せず `skipped_dirty` を返す(`--force` は使わない)。
|
|
80
|
+
*/
|
|
81
|
+
export async function removeWorkerWorktree(repoRoot, issue) {
|
|
82
|
+
const existing = await resolveWorkerWorktree(repoRoot, issue);
|
|
83
|
+
if (!existing) {
|
|
84
|
+
return { status: 'not_found' };
|
|
85
|
+
}
|
|
86
|
+
const dirty = await isWorktreeDirty(existing.path);
|
|
87
|
+
if (dirty) {
|
|
88
|
+
return {
|
|
89
|
+
status: 'skipped_dirty',
|
|
90
|
+
path: existing.path,
|
|
91
|
+
branch: existing.branch,
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
try {
|
|
95
|
+
await runGit(['worktree', 'remove', existing.path], repoRoot);
|
|
96
|
+
return {
|
|
97
|
+
status: 'removed',
|
|
98
|
+
path: existing.path,
|
|
99
|
+
branch: existing.branch,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
catch (error) {
|
|
103
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
104
|
+
return {
|
|
105
|
+
status: 'failed',
|
|
106
|
+
path: existing.path,
|
|
107
|
+
branch: existing.branch,
|
|
108
|
+
error: message,
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
export async function listWorktrees(repoRoot) {
|
|
113
|
+
const { stdout } = await runGit(['worktree', 'list', '--porcelain'], repoRoot);
|
|
114
|
+
const entries = [];
|
|
115
|
+
let currentPath;
|
|
116
|
+
let currentBranch;
|
|
117
|
+
const flush = () => {
|
|
118
|
+
if (!currentPath)
|
|
119
|
+
return;
|
|
120
|
+
entries.push({
|
|
121
|
+
path: currentPath,
|
|
122
|
+
branch: currentBranch ?? 'detached',
|
|
123
|
+
});
|
|
124
|
+
currentPath = undefined;
|
|
125
|
+
currentBranch = undefined;
|
|
126
|
+
};
|
|
127
|
+
for (const line of stdout.split('\n')) {
|
|
128
|
+
if (line.startsWith('worktree ')) {
|
|
129
|
+
flush();
|
|
130
|
+
currentPath = line.slice('worktree '.length);
|
|
131
|
+
continue;
|
|
132
|
+
}
|
|
133
|
+
if (line.startsWith('branch ')) {
|
|
134
|
+
currentBranch = line.slice('branch '.length).replace(/^refs\/heads\//, '');
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
flush();
|
|
138
|
+
return entries;
|
|
139
|
+
}
|
|
140
|
+
async function currentBranch(repoRoot) {
|
|
141
|
+
const { stdout } = await runGit(['rev-parse', '--abbrev-ref', 'HEAD'], repoRoot);
|
|
142
|
+
return stdout.trim();
|
|
143
|
+
}
|
|
144
|
+
/** 新規ブランチ用の start-point。取得できなければ undefined(ローカル HEAD にフォールバック)。 */
|
|
145
|
+
async function resolveNewBranchStartPoint(repoRoot) {
|
|
146
|
+
const defaultBranch = await resolveOriginDefaultBranch(repoRoot);
|
|
147
|
+
if (!defaultBranch)
|
|
148
|
+
return undefined;
|
|
149
|
+
try {
|
|
150
|
+
await runGit(['fetch', 'origin', defaultBranch], repoRoot);
|
|
151
|
+
await runGit(['rev-parse', '--verify', `refs/remotes/origin/${defaultBranch}`], repoRoot);
|
|
152
|
+
return `origin/${defaultBranch}`;
|
|
153
|
+
}
|
|
154
|
+
catch (error) {
|
|
155
|
+
const detail = error instanceof Error ? error.message : String(error);
|
|
156
|
+
console.warn(`[worktree] origin/${defaultBranch} の同期に失敗しました。ローカル HEAD からブランチを切ります: ${detail}`);
|
|
157
|
+
return undefined;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
async function resolveOriginDefaultBranch(repoRoot) {
|
|
161
|
+
try {
|
|
162
|
+
await runGit(['remote', 'get-url', 'origin'], repoRoot);
|
|
163
|
+
}
|
|
164
|
+
catch {
|
|
165
|
+
return undefined;
|
|
166
|
+
}
|
|
167
|
+
try {
|
|
168
|
+
const { stdout } = await runGit(['symbolic-ref', 'refs/remotes/origin/HEAD'], repoRoot);
|
|
169
|
+
const match = stdout.trim().match(/^refs\/remotes\/origin\/(.+)$/);
|
|
170
|
+
if (match?.[1])
|
|
171
|
+
return match[1];
|
|
172
|
+
}
|
|
173
|
+
catch {
|
|
174
|
+
// fall through
|
|
175
|
+
}
|
|
176
|
+
try {
|
|
177
|
+
const { stdout } = await runGit(['config', '--get', 'init.defaultBranch'], repoRoot);
|
|
178
|
+
const configured = stdout.trim();
|
|
179
|
+
if (configured)
|
|
180
|
+
return configured;
|
|
181
|
+
}
|
|
182
|
+
catch {
|
|
183
|
+
// fall through
|
|
184
|
+
}
|
|
185
|
+
return 'main';
|
|
186
|
+
}
|
|
187
|
+
async function isWorktreeDirty(worktreePath) {
|
|
188
|
+
const { stdout } = await runGit(['status', '--porcelain'], worktreePath);
|
|
189
|
+
return stdout.trim().length > 0;
|
|
190
|
+
}
|
|
191
|
+
async function gitBranchExists(repoRoot, branch) {
|
|
192
|
+
try {
|
|
193
|
+
await runGit(['show-ref', '--verify', `refs/heads/${branch}`], repoRoot);
|
|
194
|
+
return true;
|
|
195
|
+
}
|
|
196
|
+
catch {
|
|
197
|
+
return false;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
async function pathsEqual(a, b) {
|
|
201
|
+
const [left, right] = await Promise.all([realpathSafe(a), realpathSafe(b)]);
|
|
202
|
+
return left === right;
|
|
203
|
+
}
|
|
204
|
+
async function realpathSafe(path) {
|
|
205
|
+
try {
|
|
206
|
+
return await realpath(path);
|
|
207
|
+
}
|
|
208
|
+
catch {
|
|
209
|
+
return resolve(path);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
//# sourceMappingURL=worktree.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worktree.js","sourceRoot":"","sources":["../../src/worktree/worktree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAa3C,MAAM,UAAU,gBAAgB,CAAC,KAA+B;IAC9D,OAAO,kBAAkB,KAAK,CAAC,MAAM,EAAE,CAAC;AAC1C,CAAC;AAED,MAAM,UAAU,kBAAkB,CAChC,QAAgB,EAChB,KAA+B;IAE/B,OAAO,IAAI,CAAC,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;AAC3E,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,qB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E,CAAS;IAC5C,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5E,OAAO,IAAI,KAAK,KAAK,CAAC;AACxB,CAAC;AAED,KAAK,UAAU,YAAY,CAAC,IAAY;IACtC,IAAI,CAAC;QACH,OAAO,MAAM,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;AACH,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@agents-ensemble/core",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Core types and orchestration logic for agents-ensemble",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/otolab/agents-ensemble.git",
|
|
18
|
+
"directory": "packages/core"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@types/js-yaml": "4.0.9",
|
|
22
|
+
"js-yaml": "4.1.0",
|
|
23
|
+
"vitest": "3.2.4"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@cursor/sdk": "1.0.27",
|
|
27
|
+
"@modular-prompt/core": "0.3.0"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist"
|
|
31
|
+
],
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public",
|
|
34
|
+
"registry": "https://registry.npmjs.org/"
|
|
35
|
+
},
|
|
36
|
+
"engines": {
|
|
37
|
+
"node": ">=22.0.0"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "tsc --build && node scripts/copy-profiles.mjs",
|
|
41
|
+
"test": "vitest",
|
|
42
|
+
"test:run": "vitest run",
|
|
43
|
+
"test:integration": "vitest run --config vitest.config.integration.ts",
|
|
44
|
+
"test:e2e": "vitest run --config vitest.config.e2e.ts"
|
|
45
|
+
}
|
|
46
|
+
}
|