typeclaw 0.49.0 → 0.50.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/dist/types/agent/attention-escalation.d.ts +18 -0
- package/dist/types/agent/auth.d.ts +7 -0
- package/dist/types/agent/compaction.d.ts +8 -0
- package/dist/types/agent/git-nudge.d.ts +6 -0
- package/dist/types/agent/guard-types.d.ts +25 -0
- package/dist/types/agent/guards.d.ts +7 -0
- package/dist/types/agent/idle-compaction.d.ts +7 -0
- package/dist/types/agent/index.d.ts +163 -0
- package/dist/types/agent/live-subagents.d.ts +113 -0
- package/dist/types/agent/llm-replay-sanitizer.d.ts +11 -0
- package/dist/types/agent/loop-guard.d.ts +67 -0
- package/dist/types/agent/model-fallback.d.ts +29 -0
- package/dist/types/agent/model-overrides.d.ts +8 -0
- package/dist/types/agent/multimodal/index.d.ts +2 -0
- package/dist/types/agent/multimodal/look-at.d.ts +60 -0
- package/dist/types/agent/multimodal/looker.d.ts +61 -0
- package/dist/types/agent/multimodal/read-redirect.d.ts +6 -0
- package/dist/types/agent/network/response-body.d.ts +1 -0
- package/dist/types/agent/network/safe-http.d.ts +46 -0
- package/dist/types/agent/plugin-tools.d.ts +129 -0
- package/dist/types/agent/proactive-next-step-nudge.d.ts +2 -0
- package/dist/types/agent/prompt-cache-key.d.ts +3 -0
- package/dist/types/agent/provider-error.d.ts +23 -0
- package/dist/types/agent/reload-tool.d.ts +10 -0
- package/dist/types/agent/restart/index.d.ts +31 -0
- package/dist/types/agent/restart-handoff/index.d.ts +32 -0
- package/dist/types/agent/restart-handoff/paths.d.ts +1 -0
- package/dist/types/agent/retry-same-ref.d.ts +41 -0
- package/dist/types/agent/reviewer-activity.d.ts +3 -0
- package/dist/types/agent/reviewer-bash-policy.d.ts +8 -0
- package/dist/types/agent/self.d.ts +1 -0
- package/dist/types/agent/session-meta.d.ts +28 -0
- package/dist/types/agent/session-origin.d.ts +65 -0
- package/dist/types/agent/subagent-cache-keepalive.d.ts +38 -0
- package/dist/types/agent/subagent-completion-reminder.d.ts +29 -0
- package/dist/types/agent/subagent-drain.d.ts +25 -0
- package/dist/types/agent/subagent-session.d.ts +3 -0
- package/dist/types/agent/subagents.d.ts +153 -0
- package/dist/types/agent/system-prompt.d.ts +7 -0
- package/dist/types/agent/throttle-circuit.d.ts +25 -0
- package/dist/types/agent/todo/continuation-policy.d.ts +54 -0
- package/dist/types/agent/todo/continuation-state.d.ts +11 -0
- package/dist/types/agent/todo/continuation-wiring.d.ts +32 -0
- package/dist/types/agent/todo/continuation.d.ts +21 -0
- package/dist/types/agent/todo/scope.d.ts +6 -0
- package/dist/types/agent/todo/store.d.ts +16 -0
- package/dist/types/agent/tool-error-remediation.d.ts +1 -0
- package/dist/types/agent/tool-file-safety.d.ts +78 -0
- package/dist/types/agent/tool-not-found-nudge.d.ts +9 -0
- package/dist/types/agent/tool-result-budget.d.ts +15 -0
- package/dist/types/agent/tools/channel-disengage.d.ts +18 -0
- package/dist/types/agent/tools/channel-edit.d.ts +19 -0
- package/dist/types/agent/tools/channel-fetch-attachment.d.ts +36 -0
- package/dist/types/agent/tools/channel-handoff.d.ts +13 -0
- package/dist/types/agent/tools/channel-history-render.d.ts +3 -0
- package/dist/types/agent/tools/channel-history.d.ts +25 -0
- package/dist/types/agent/tools/channel-log.d.ts +5 -0
- package/dist/types/agent/tools/channel-react.d.ts +23 -0
- package/dist/types/agent/tools/channel-read.d.ts +27 -0
- package/dist/types/agent/tools/channel-reply.d.ts +47 -0
- package/dist/types/agent/tools/channel-send.d.ts +42 -0
- package/dist/types/agent/tools/channel-session-search.d.ts +10 -0
- package/dist/types/agent/tools/curl-impersonate.d.ts +37 -0
- package/dist/types/agent/tools/ddg.d.ts +18 -0
- package/dist/types/agent/tools/grant-role.d.ts +25 -0
- package/dist/types/agent/tools/keyed-semaphore.d.ts +10 -0
- package/dist/types/agent/tools/post-github-review.d.ts +38 -0
- package/dist/types/agent/tools/restart.d.ts +25 -0
- package/dist/types/agent/tools/runtime-notice.d.ts +3 -0
- package/dist/types/agent/tools/search-retry.d.ts +16 -0
- package/dist/types/agent/tools/skip-response.d.ts +17 -0
- package/dist/types/agent/tools/spawn-subagent.d.ts +77 -0
- package/dist/types/agent/tools/stream-snapshot.d.ts +23 -0
- package/dist/types/agent/tools/subagent-access.d.ts +20 -0
- package/dist/types/agent/tools/subagent-cancel.d.ts +23 -0
- package/dist/types/agent/tools/subagent-output.d.ts +50 -0
- package/dist/types/agent/tools/todo/index.d.ts +14 -0
- package/dist/types/agent/tools/webfetch/adaptive-html.d.ts +29 -0
- package/dist/types/agent/tools/webfetch/fetch.d.ts +26 -0
- package/dist/types/agent/tools/webfetch/html-lexical.d.ts +27 -0
- package/dist/types/agent/tools/webfetch/index.d.ts +1 -0
- package/dist/types/agent/tools/webfetch/inline-style-visibility.d.ts +3 -0
- package/dist/types/agent/tools/webfetch/strategies/grep.d.ts +11 -0
- package/dist/types/agent/tools/webfetch/strategies/jq.d.ts +4 -0
- package/dist/types/agent/tools/webfetch/strategies/raw.d.ts +1 -0
- package/dist/types/agent/tools/webfetch/strategies/readability.d.ts +16 -0
- package/dist/types/agent/tools/webfetch/strategies/selector.d.ts +4 -0
- package/dist/types/agent/tools/webfetch/strategies/snapshot.d.ts +1 -0
- package/dist/types/agent/tools/webfetch/tool.d.ts +15 -0
- package/dist/types/agent/tools/webfetch/types.d.ts +32 -0
- package/dist/types/agent/tools/websearch.d.ts +17 -0
- package/dist/types/agent/tools/wikipedia.d.ts +7 -0
- package/dist/types/agent/tools-without-local-file-operands.d.ts +1 -0
- package/dist/types/agent/turn-runner.d.ts +36 -0
- package/dist/types/agent-messenger/config-dir.d.ts +19 -0
- package/dist/types/browser/dockerfile.d.ts +2 -0
- package/dist/types/browser/registry.d.ts +49 -0
- package/dist/types/bundled-plugins/bun-hygiene/policy.d.ts +18 -0
- package/dist/types/bundled-plugins/github-cli-auth/git-askpass.d.ts +5 -0
- package/dist/types/bundled-plugins/guard/keys.d.ts +6 -0
- package/dist/types/bundled-plugins/guard/policies/managed-config.d.ts +7 -0
- package/dist/types/bundled-plugins/guard/policies/memory-topics-delete.d.ts +11 -0
- package/dist/types/bundled-plugins/guard/policies/memory-topics-write.d.ts +7 -0
- package/dist/types/bundled-plugins/guard/policies/non-workspace-write.d.ts +9 -0
- package/dist/types/bundled-plugins/guard/policies/skill-authoring.d.ts +20 -0
- package/dist/types/bundled-plugins/guard/policies/uncommitted-changes.d.ts +12 -0
- package/dist/types/bundled-plugins/guard/policy.d.ts +11 -0
- package/dist/types/bundled-plugins/memory/secret-detector.d.ts +11 -0
- package/dist/types/bundled-plugins/memory/slug.d.ts +4 -0
- package/dist/types/bundled-plugins/security/permissions.d.ts +20 -0
- package/dist/types/bundled-plugins/security/policies/private-surface-read.d.ts +34 -0
- package/dist/types/bundled-plugins/security/policies/ssrf.d.ts +18 -0
- package/dist/types/bundled-plugins/security/policy.d.ts +4 -0
- package/dist/types/channels/adapter-namespace.d.ts +2 -0
- package/dist/types/channels/adapters/mention-hints.d.ts +12 -0
- package/dist/types/channels/adapters/webex-id-ref.d.ts +5 -0
- package/dist/types/channels/background-handoff.d.ts +56 -0
- package/dist/types/channels/background-obligations.d.ts +135 -0
- package/dist/types/channels/catch-up.d.ts +26 -0
- package/dist/types/channels/commands.d.ts +2 -0
- package/dist/types/channels/completion-claim.d.ts +20 -0
- package/dist/types/channels/continuation-willingness.d.ts +1 -0
- package/dist/types/channels/continuity-types.d.ts +75 -0
- package/dist/types/channels/describe-error.d.ts +1 -0
- package/dist/types/channels/engagement.d.ts +34 -0
- package/dist/types/channels/github-false-receipt.d.ts +20 -0
- package/dist/types/channels/github-repo.d.ts +2 -0
- package/dist/types/channels/github-rereview-guard.d.ts +24 -0
- package/dist/types/channels/github-review-check.d.ts +135 -0
- package/dist/types/channels/github-review-claim.d.ts +3 -0
- package/dist/types/channels/github-review-turn-ledger.d.ts +71 -0
- package/dist/types/channels/github-review-verdict-coordinator.d.ts +117 -0
- package/dist/types/channels/github-token-bridge.d.ts +20 -0
- package/dist/types/channels/github-verdict-activity.d.ts +12 -0
- package/dist/types/channels/inbound-journal.d.ts +272 -0
- package/dist/types/channels/last-alive.d.ts +3 -0
- package/dist/types/channels/membership-cache.d.ts +27 -0
- package/dist/types/channels/membership.d.ts +21 -0
- package/dist/types/channels/outbound-flood-filter.d.ts +7 -0
- package/dist/types/channels/participants.d.ts +4 -0
- package/dist/types/channels/persistence.d.ts +32 -0
- package/dist/types/channels/recovery-notice.d.ts +26 -0
- package/dist/types/channels/recovery-outbox.d.ts +58 -0
- package/dist/types/channels/router.d.ts +798 -0
- package/dist/types/channels/schema.d.ts +501 -0
- package/dist/types/channels/session-handoff.d.ts +58 -0
- package/dist/types/channels/session-search.d.ts +29 -0
- package/dist/types/channels/types.d.ts +414 -0
- package/dist/types/channels/waiting-reactions.d.ts +25 -0
- package/dist/types/cli/builtins.d.ts +2 -0
- package/dist/types/cli/command-meta.d.ts +9 -0
- package/dist/types/coding-agent/broker-body.d.ts +7 -0
- package/dist/types/coding-agent/broker.d.ts +22 -0
- package/dist/types/coding-agent/claude.d.ts +22 -0
- package/dist/types/coding-agent/codex.d.ts +19 -0
- package/dist/types/coding-agent/index.d.ts +71 -0
- package/dist/types/coding-agent/omo-state.d.ts +2 -0
- package/dist/types/coding-agent/omo-stream.d.ts +22 -0
- package/dist/types/coding-agent/omo.d.ts +133 -0
- package/dist/types/coding-agent/runner.d.ts +35 -0
- package/dist/types/coding-agent/tool.d.ts +27 -0
- package/dist/types/coding-agent/worktree.d.ts +22 -0
- package/dist/types/commands/index.d.ts +45 -0
- package/dist/types/config/config.d.ts +814 -0
- package/dist/types/config/index.d.ts +3 -0
- package/dist/types/config/model-overrides.d.ts +3 -0
- package/dist/types/config/providers.d.ts +1456 -0
- package/dist/types/config/reloadable.d.ts +9 -0
- package/dist/types/container/agent-operation-lock.d.ts +31 -0
- package/dist/types/container/build-cache.d.ts +39 -0
- package/dist/types/container/compose-project.d.ts +1 -0
- package/dist/types/container/controller.d.ts +25 -0
- package/dist/types/container/docker-app.d.ts +23 -0
- package/dist/types/container/exit-reason.d.ts +10 -0
- package/dist/types/container/index.d.ts +14 -0
- package/dist/types/container/log-archive.d.ts +68 -0
- package/dist/types/container/log-colors.d.ts +3 -0
- package/dist/types/container/log-timestamps.d.ts +9 -0
- package/dist/types/container/logs.d.ts +37 -0
- package/dist/types/container/memory-limit.d.ts +13 -0
- package/dist/types/container/memory-oversubscription.d.ts +20 -0
- package/dist/types/container/oom-events.d.ts +18 -0
- package/dist/types/container/port.d.ts +18 -0
- package/dist/types/container/require-running.d.ts +16 -0
- package/dist/types/container/restart.d.ts +32 -0
- package/dist/types/container/shared.d.ts +93 -0
- package/dist/types/container/shell.d.ts +35 -0
- package/dist/types/container/start.d.ts +144 -0
- package/dist/types/container/stats.d.ts +31 -0
- package/dist/types/container/status.d.ts +25 -0
- package/dist/types/container/stop.d.ts +24 -0
- package/dist/types/container/tool-oom-priority.d.ts +4 -0
- package/dist/types/container/verify-running.d.ts +49 -0
- package/dist/types/cron/consumer.d.ts +42 -0
- package/dist/types/cron/count-state.d.ts +24 -0
- package/dist/types/cron/index.d.ts +21 -0
- package/dist/types/cron/list.d.ts +33 -0
- package/dist/types/cron/reloadable.d.ts +11 -0
- package/dist/types/cron/scheduler.d.ts +51 -0
- package/dist/types/cron/schema.d.ts +108 -0
- package/dist/types/dependencies/bin-resolver.d.ts +28 -0
- package/dist/types/dependencies/bins.d.ts +22 -0
- package/dist/types/dependencies/index.d.ts +2 -0
- package/dist/types/git/bound-gc-config.d.ts +4 -0
- package/dist/types/git/hookless.d.ts +1 -0
- package/dist/types/git/reconcile-ignored.d.ts +13 -0
- package/dist/types/git/resolve-agent-git.d.ts +8 -0
- package/dist/types/git/resolve-identity.d.ts +10 -0
- package/dist/types/git/run.d.ts +24 -0
- package/dist/types/git/system-commit.d.ts +2 -0
- package/dist/types/hostd/client.d.ts +13 -0
- package/dist/types/hostd/models.d.ts +1 -0
- package/dist/types/hostd/paths.d.ts +17 -0
- package/dist/types/hostd/protocol.d.ts +93 -0
- package/dist/types/hostd/spawn.d.ts +17 -0
- package/dist/types/hostd/version.d.ts +18 -0
- package/dist/types/init/auto-upgrade.d.ts +41 -0
- package/dist/types/init/cli-version.d.ts +7 -0
- package/dist/types/init/dockerfile.d.ts +34 -0
- package/dist/types/init/ensure-deps.d.ts +17 -0
- package/dist/types/init/env-file.d.ts +3 -0
- package/dist/types/init/gitignore.d.ts +5 -0
- package/dist/types/init/local-source-stamp.d.ts +3 -0
- package/dist/types/init/packagejson.d.ts +7 -0
- package/dist/types/init/paths.d.ts +3 -0
- package/dist/types/init/reconcile-plugin-deps.d.ts +13 -0
- package/dist/types/init/run-bun-install.d.ts +16 -0
- package/dist/types/init/windows-dev-link.d.ts +8 -0
- package/dist/types/mcp/catalog.d.ts +7 -0
- package/dist/types/mcp/client.d.ts +58 -0
- package/dist/types/mcp/manager.d.ts +56 -0
- package/dist/types/mcp/tools.d.ts +23 -0
- package/dist/types/models/embedding-model.d.ts +20 -0
- package/dist/types/models/transformers-version.d.ts +1 -0
- package/dist/types/network/internal-destinations.d.ts +29 -0
- package/dist/types/operations/classify-tool-outcome.d.ts +35 -0
- package/dist/types/operations/incidents.d.ts +47 -0
- package/dist/types/operations/index.d.ts +3 -0
- package/dist/types/operations/remediations.d.ts +25 -0
- package/dist/types/path-safety/real-intended-path.d.ts +9 -0
- package/dist/types/permissions/builtins.d.ts +25 -0
- package/dist/types/permissions/grant.d.ts +19 -0
- package/dist/types/permissions/index.d.ts +6 -0
- package/dist/types/permissions/match-rule.d.ts +28 -0
- package/dist/types/permissions/permissions.d.ts +42 -0
- package/dist/types/permissions/resolve.d.ts +25 -0
- package/dist/types/permissions/schema.d.ts +14 -0
- package/dist/types/plugin/context.d.ts +20 -0
- package/dist/types/plugin/core-tool-names.d.ts +4 -0
- package/dist/types/plugin/define.d.ts +46 -0
- package/dist/types/plugin/hooks.d.ts +52 -0
- package/dist/types/plugin/index.d.ts +11 -0
- package/dist/types/plugin/load-skill.d.ts +14 -0
- package/dist/types/plugin/loader.d.ts +25 -0
- package/dist/types/plugin/manager.d.ts +42 -0
- package/dist/types/plugin/registry.d.ts +73 -0
- package/dist/types/plugin/skills.d.ts +11 -0
- package/dist/types/plugin/types.d.ts +336 -0
- package/dist/types/plugin/zod-introspect.d.ts +11 -0
- package/dist/types/reload/client.d.ts +11 -0
- package/dist/types/reload/docker-exec-client.d.ts +11 -0
- package/dist/types/reload/format.d.ts +2 -0
- package/dist/types/reload/index.d.ts +6 -0
- package/dist/types/reload/recover.d.ts +22 -0
- package/dist/types/reload/registry.d.ts +10 -0
- package/dist/types/reload/types.d.ts +25 -0
- package/dist/types/role-claim/client.d.ts +20 -0
- package/dist/types/role-claim/code.d.ts +4 -0
- package/dist/types/role-claim/controller.d.ts +59 -0
- package/dist/types/role-claim/index.d.ts +6 -0
- package/dist/types/role-claim/match-rule.d.ts +9 -0
- package/dist/types/role-claim/pending.d.ts +35 -0
- package/dist/types/role-claim/reload-after-claim.d.ts +16 -0
- package/dist/types/run/llm-fetch-observer.d.ts +50 -0
- package/dist/types/sandbox/availability.d.ts +21 -0
- package/dist/types/sandbox/build.d.ts +7 -0
- package/dist/types/sandbox/canonical-secrets.d.ts +8 -0
- package/dist/types/sandbox/coding-agent.d.ts +20 -0
- package/dist/types/sandbox/dependency-bins.d.ts +19 -0
- package/dist/types/sandbox/dev-source.d.ts +4 -0
- package/dist/types/sandbox/env-exposure.d.ts +1 -0
- package/dist/types/sandbox/errors.d.ts +20 -0
- package/dist/types/sandbox/hidden-paths.d.ts +11 -0
- package/dist/types/sandbox/index.d.ts +14 -0
- package/dist/types/sandbox/package-install.d.ts +1 -0
- package/dist/types/sandbox/policy.d.ts +71 -0
- package/dist/types/sandbox/privileged-runtime.d.ts +13 -0
- package/dist/types/sandbox/quote.d.ts +2 -0
- package/dist/types/sandbox/runtime-private.d.ts +1 -0
- package/dist/types/sandbox/session-tmp.d.ts +6 -0
- package/dist/types/sandbox/symlinks.d.ts +6 -0
- package/dist/types/sandbox/writable-zones.d.ts +15 -0
- package/dist/types/secrets/coding-agent-auth.d.ts +25 -0
- package/dist/types/secrets/defaults.d.ts +21 -0
- package/dist/types/secrets/export-github-cli-store.d.ts +22 -0
- package/dist/types/secrets/hydrate.d.ts +7 -0
- package/dist/types/secrets/index.d.ts +7 -0
- package/dist/types/secrets/provision-github-cli-store.d.ts +45 -0
- package/dist/types/secrets/refresh-provider-oauth.d.ts +22 -0
- package/dist/types/secrets/resolve.d.ts +14 -0
- package/dist/types/secrets/schema.d.ts +840 -0
- package/dist/types/secrets/storage.d.ts +56 -0
- package/dist/types/shared/host-locale.d.ts +1 -0
- package/dist/types/shared/index.d.ts +5 -0
- package/dist/types/shared/local-time.d.ts +4 -0
- package/dist/types/shared/platform.d.ts +2 -0
- package/dist/types/shared/protocol.d.ts +424 -0
- package/dist/types/shared/style-text.d.ts +3 -0
- package/dist/types/shared/wsl.d.ts +17 -0
- package/dist/types/stream/broker.d.ts +2 -0
- package/dist/types/stream/index.d.ts +2 -0
- package/dist/types/stream/types.d.ts +71 -0
- package/package.json +9 -2
- package/scripts/build-plugin-types.ts +105 -0
- package/scripts/check-plugin-sdk.ts +111 -0
- package/scripts/require-parallel.ts +5 -32
- package/src/agent/guard-types.ts +3 -0
- package/src/agent/guards.ts +4 -0
- package/src/agent/idle-compaction.ts +174 -0
- package/src/agent/index.ts +74 -16
- package/src/agent/live-subagents.ts +19 -0
- package/src/agent/multimodal/look-at.ts +22 -9
- package/src/agent/plugin-tools.ts +13 -1
- package/src/agent/reviewer-bash-policy.ts +41 -1
- package/src/agent/session-origin.ts +26 -10
- package/src/agent/subagent-cache-keepalive.ts +198 -0
- package/src/agent/subagent-session.ts +6 -0
- package/src/agent/subagents.ts +46 -8
- package/src/agent/system-prompt.ts +1 -1
- package/src/agent/tool-file-safety.ts +6 -1
- package/src/agent/tools/channel-edit.ts +20 -10
- package/src/agent/tools/channel-fetch-attachment.ts +12 -5
- package/src/agent/tools/channel-handoff.ts +72 -0
- package/src/agent/tools/channel-read.ts +57 -10
- package/src/agent/tools/channel-reply.ts +33 -26
- package/src/agent/tools/channel-send.ts +21 -13
- package/src/agent/tools/channel-session-search.ts +35 -0
- package/src/agent/tools/curl-impersonate.ts +11 -4
- package/src/agent/tools/ddg.ts +13 -5
- package/src/agent/tools/spawn-subagent.ts +27 -11
- package/src/agent/tools/stream-snapshot.ts +15 -2
- package/src/agent/tools/subagent-access.ts +11 -4
- package/src/browser/bsk-shim.mjs +74 -0
- package/src/browser/dockerfile.ts +84 -0
- package/src/browser/egress.ts +104 -0
- package/src/browser/managed-browser.ts +205 -0
- package/src/browser/registry.ts +110 -0
- package/src/browser/relay.ts +231 -0
- package/src/browser/sandbox-entry.ts +167 -0
- package/src/bundled-plugins/agent-browser/index.ts +2 -0
- package/src/bundled-plugins/browser-agent/browser-agent.ts +89 -0
- package/src/bundled-plugins/browser-agent/index.ts +12 -0
- package/src/bundled-plugins/doc-render/index.ts +0 -10
- package/src/bundled-plugins/doc-render/render.ts +83 -111
- package/src/bundled-plugins/doc-render/skills/typeclaw-render-pdf/SKILL.md +152 -257
- package/src/bundled-plugins/github-cli-auth/gh-command.ts +4 -0
- package/src/bundled-plugins/github-cli-auth/git-auth-diagnostic.ts +95 -0
- package/src/bundled-plugins/github-cli-auth/index.ts +75 -59
- package/src/bundled-plugins/managed-browser/index.ts +74 -0
- package/src/bundled-plugins/managed-browser/skills/browser-use/browser-use/SKILL.md +27 -0
- package/src/bundled-plugins/managed-browser/skills/browserskill/browserskill/SKILL.md +28 -0
- package/src/bundled-plugins/managed-browser/skills/omowright/omowright/SKILL.md +40 -0
- package/src/bundled-plugins/operator/operator.ts +1 -1
- package/src/bundled-plugins/qa/index.ts +11 -0
- package/src/bundled-plugins/qa/qa.ts +160 -0
- package/src/bundled-plugins/qa/skills/qa-cli.ts +50 -0
- package/src/bundled-plugins/qa/skills/qa-general.ts +30 -0
- package/src/bundled-plugins/qa/skills/qa-http.ts +39 -0
- package/src/bundled-plugins/qa/skills/qa-pr.ts +51 -0
- package/src/bundled-plugins/qa/skills/qa-web.ts +49 -0
- package/src/bundled-plugins/security/index.ts +53 -34
- package/src/bundled-plugins/security/policies/outbound-secret-scan.ts +1 -0
- package/src/channels/adapter-namespace.ts +13 -0
- package/src/channels/adapters/discord-bot.ts +97 -5
- package/src/channels/adapters/github/index.ts +16 -0
- package/src/channels/adapters/github/last-alive.ts +4 -16
- package/src/channels/adapters/slack-attachment-download.ts +14 -3
- package/src/channels/adapters/slack-bot-author-resolver.ts +4 -3
- package/src/channels/adapters/slack-bot-channel-resolver.ts +9 -6
- package/src/channels/adapters/slack-bot-classify.ts +1 -0
- package/src/channels/adapters/slack-bot-slash-commands.ts +3 -1
- package/src/channels/adapters/slack-bot.ts +299 -67
- package/src/channels/adapters/slack-classify.ts +1 -0
- package/src/channels/catch-up.ts +137 -0
- package/src/channels/continuation-willingness.ts +2 -2
- package/src/channels/continuity-types.ts +1 -0
- package/src/channels/engagement.ts +17 -1
- package/src/channels/github-false-receipt.ts +3 -3
- package/src/channels/github-rereview-guard.ts +9 -5
- package/src/channels/github-token-bridge.ts +24 -0
- package/src/channels/last-alive.ts +34 -0
- package/src/channels/manager.ts +8 -1
- package/src/channels/router.ts +427 -136
- package/src/channels/session-handoff.fixture.ts +144 -0
- package/src/channels/session-handoff.ts +175 -0
- package/src/channels/session-search.ts +71 -0
- package/src/channels/types.ts +12 -2
- package/src/cli/channel.ts +2 -3
- package/src/cli/init.ts +2 -3
- package/src/cli/model.ts +132 -3
- package/src/coding-agent/index.ts +7 -1
- package/src/coding-agent/omo-stream.ts +40 -0
- package/src/coding-agent/runner.ts +30 -8
- package/src/config/config.ts +111 -22
- package/src/config/model-overrides.ts +59 -0
- package/src/config/models-mutation.ts +185 -2
- package/src/config/providers-mutation.ts +12 -4
- package/src/config/providers.ts +59 -0
- package/src/container/start.ts +95 -4
- package/src/doctor/checks.ts +8 -6
- package/src/hostd/daemon.ts +13 -1
- package/src/init/auto-upgrade.ts +7 -1
- package/src/init/dockerfile.ts +57 -12
- package/src/init/index.ts +4 -3
- package/src/init/local-source-stamp.ts +68 -0
- package/src/init/models-dev.ts +4 -0
- package/src/init/validate-api-key.ts +3 -0
- package/src/permissions/builtins.ts +7 -0
- package/src/permissions/permissions.ts +18 -9
- package/src/permissions/resolve.ts +7 -1
- package/src/plugin/context.ts +2 -0
- package/src/plugin/hooks.ts +137 -0
- package/src/plugin/index.ts +6 -0
- package/src/plugin/manager.ts +4 -0
- package/src/plugin/types.ts +60 -0
- package/src/run/bundled-plugins.ts +6 -0
- package/src/run/index.ts +24 -14
- package/src/run/llm-fetch-observer.ts +12 -15
- package/src/sandbox/canonical-secrets.ts +4 -0
- package/src/sandbox/dev-source.ts +26 -0
- package/src/sandbox/hidden-paths.ts +16 -2
- package/src/secrets/storage.ts +13 -0
- package/src/skills/typeclaw-channel-github/SKILL.md +8 -8
- package/src/skills/typeclaw-config/SKILL.md +39 -5
- package/src/skills/typeclaw-config/references/dockerfile.md +2 -2
- package/src/skills/typeclaw-github-contributing/SKILL.md +1 -1
- package/src/skills/typeclaw-monorepo/SKILL.md +1 -1
- package/src/skills/typeclaw-permissions/SKILL.md +7 -7
- package/src/skills/typeclaw-troubleshooting/SKILL.md +12 -1
- package/typeclaw.schema.json +436 -5
- package/src/bundled-plugins/doc-render/templates/lib.typ +0 -339
- package/src/bundled-plugins/github-cli-auth/gh-store.ts +0 -733
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type GitIdentity = {
|
|
2
|
+
name: string;
|
|
3
|
+
email: string;
|
|
4
|
+
};
|
|
5
|
+
export declare function resolveGitIdentity(cwd: string): Promise<GitIdentity | null>;
|
|
6
|
+
declare function withoutGitOverrides(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
|
|
7
|
+
export declare const _internal: {
|
|
8
|
+
withoutGitOverrides: typeof withoutGitOverrides;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type RunGitResult = {
|
|
2
|
+
exitCode: number;
|
|
3
|
+
stdout: string;
|
|
4
|
+
stderr: string;
|
|
5
|
+
};
|
|
6
|
+
type DrainableProcess = {
|
|
7
|
+
stdout: {
|
|
8
|
+
text: () => Promise<string>;
|
|
9
|
+
};
|
|
10
|
+
stderr: {
|
|
11
|
+
text: () => Promise<string>;
|
|
12
|
+
};
|
|
13
|
+
exited: Promise<number>;
|
|
14
|
+
};
|
|
15
|
+
declare function collectProcessOutput(proc: DrainableProcess): Promise<RunGitResult>;
|
|
16
|
+
export declare function runGit(bun: {
|
|
17
|
+
spawn: typeof Bun.spawn;
|
|
18
|
+
}, cwd: string, args: readonly string[], options?: {
|
|
19
|
+
env?: NodeJS.ProcessEnv;
|
|
20
|
+
}): Promise<RunGitResult>;
|
|
21
|
+
export declare const _internal: {
|
|
22
|
+
collectProcessOutput: typeof collectProcessOutput;
|
|
23
|
+
};
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Request, Response } from "./protocol.js";
|
|
2
|
+
export declare function isDaemonReachable(timeoutMs?: number, opts?: Pick<SendOptions, 'socket'>): Promise<boolean>;
|
|
3
|
+
export type SendOptions = {
|
|
4
|
+
timeoutMs?: number;
|
|
5
|
+
socket?: string;
|
|
6
|
+
};
|
|
7
|
+
export type SendHttpOptions = {
|
|
8
|
+
timeoutMs?: number;
|
|
9
|
+
url: string;
|
|
10
|
+
token: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function sendHttp(req: Request, opts: SendHttpOptions): Promise<Response>;
|
|
13
|
+
export declare function send(req: Request, opts?: SendOptions): Promise<Response>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ensureModels(): Promise<void>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare function homeRoot(): string;
|
|
2
|
+
export declare function runDir(): string;
|
|
3
|
+
export declare function logDir(): string;
|
|
4
|
+
export declare function socketPath(): string;
|
|
5
|
+
export declare function pidfilePath(): string;
|
|
6
|
+
export declare function lockfilePath(): string;
|
|
7
|
+
export declare function logfilePath(): string;
|
|
8
|
+
export declare function registrationsDir(): string;
|
|
9
|
+
export declare function agentOperationLocksDir(): string;
|
|
10
|
+
export declare function agentOperationLockPath(containerName: string): string;
|
|
11
|
+
export declare function keysDir(): string;
|
|
12
|
+
export declare function modelsDir(): string;
|
|
13
|
+
export declare function buildCacheDir(): string;
|
|
14
|
+
export declare function versionCachePath(): string;
|
|
15
|
+
export declare function registrationFilePath(containerName: string): string;
|
|
16
|
+
export declare function ensureDirs(): Promise<void>;
|
|
17
|
+
export declare function ensureAgentOperationLocksDir(): Promise<void>;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { PortForward } from "../config/index.js";
|
|
2
|
+
import type { DiscordChannelBlock, InstagramChannelBlock, KakaoChannelBlock, LineChannelBlock, McpCredential, SlackChannelBlock, TeamsChannelBlock, WebexChannelBlock } from "../secrets/schema.js";
|
|
3
|
+
export type SecretsPatchChannels = {
|
|
4
|
+
kakaotalk: KakaoChannelBlock;
|
|
5
|
+
} | {
|
|
6
|
+
discord: DiscordChannelBlock;
|
|
7
|
+
} | {
|
|
8
|
+
instagram: InstagramChannelBlock;
|
|
9
|
+
} | {
|
|
10
|
+
line: LineChannelBlock;
|
|
11
|
+
} | {
|
|
12
|
+
webex: WebexChannelBlock;
|
|
13
|
+
} | {
|
|
14
|
+
teams: TeamsChannelBlock;
|
|
15
|
+
} | {
|
|
16
|
+
slack: SlackChannelBlock;
|
|
17
|
+
};
|
|
18
|
+
export type SecretsPatchMcp = {
|
|
19
|
+
server: string;
|
|
20
|
+
credential: McpCredential;
|
|
21
|
+
};
|
|
22
|
+
export type Request = {
|
|
23
|
+
kind: 'register';
|
|
24
|
+
containerName: string;
|
|
25
|
+
cwd: string;
|
|
26
|
+
restartToken?: string;
|
|
27
|
+
wsHostPort?: number;
|
|
28
|
+
portForward?: PortForward;
|
|
29
|
+
brokerToken?: string;
|
|
30
|
+
} | {
|
|
31
|
+
kind: 'deregister';
|
|
32
|
+
containerName: string;
|
|
33
|
+
} | {
|
|
34
|
+
kind: 'list';
|
|
35
|
+
} | {
|
|
36
|
+
kind: 'status';
|
|
37
|
+
containerName: string;
|
|
38
|
+
} | {
|
|
39
|
+
kind: 'restart';
|
|
40
|
+
containerName: string;
|
|
41
|
+
build?: boolean;
|
|
42
|
+
} | {
|
|
43
|
+
kind: 'secrets-patch';
|
|
44
|
+
containerName: string;
|
|
45
|
+
patch: {
|
|
46
|
+
channels: SecretsPatchChannels;
|
|
47
|
+
mcp?: never;
|
|
48
|
+
} | {
|
|
49
|
+
mcp: SecretsPatchMcp;
|
|
50
|
+
channels?: never;
|
|
51
|
+
};
|
|
52
|
+
} | {
|
|
53
|
+
kind: 'http-info';
|
|
54
|
+
} | {
|
|
55
|
+
kind: 'version';
|
|
56
|
+
} | {
|
|
57
|
+
kind: 'shutdown';
|
|
58
|
+
};
|
|
59
|
+
export type Response = {
|
|
60
|
+
ok: true;
|
|
61
|
+
result?: unknown;
|
|
62
|
+
} | {
|
|
63
|
+
ok: false;
|
|
64
|
+
reason: string;
|
|
65
|
+
};
|
|
66
|
+
export type ListResult = {
|
|
67
|
+
registrations: Array<{
|
|
68
|
+
containerName: string;
|
|
69
|
+
cwd: string;
|
|
70
|
+
}>;
|
|
71
|
+
};
|
|
72
|
+
export type StatusResult = {
|
|
73
|
+
containerName: string;
|
|
74
|
+
cwd: string;
|
|
75
|
+
forwardedPorts: number[];
|
|
76
|
+
};
|
|
77
|
+
export type RestartResult = {
|
|
78
|
+
containerName: string;
|
|
79
|
+
scheduled: true;
|
|
80
|
+
};
|
|
81
|
+
export type SecretsPatchResult = {
|
|
82
|
+
containerName: string;
|
|
83
|
+
patched: true;
|
|
84
|
+
};
|
|
85
|
+
export type HttpInfoResult = {
|
|
86
|
+
port: number;
|
|
87
|
+
};
|
|
88
|
+
export type VersionResult = {
|
|
89
|
+
version: string;
|
|
90
|
+
};
|
|
91
|
+
export type ShutdownResult = {
|
|
92
|
+
scheduled: true;
|
|
93
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type EnsureDaemonOptions = {
|
|
2
|
+
cliEntry: string;
|
|
3
|
+
spawnTimeoutMs?: number;
|
|
4
|
+
expectedVersion?: string;
|
|
5
|
+
onSpawnEnter?: () => Promise<void>;
|
|
6
|
+
};
|
|
7
|
+
export type EnsureDaemonResult = {
|
|
8
|
+
ok: true;
|
|
9
|
+
pid: number;
|
|
10
|
+
spawned: boolean;
|
|
11
|
+
respawned: boolean;
|
|
12
|
+
httpPort: number;
|
|
13
|
+
} | {
|
|
14
|
+
ok: false;
|
|
15
|
+
reason: string;
|
|
16
|
+
};
|
|
17
|
+
export declare function ensureDaemon(opts: EnsureDaemonOptions): Promise<EnsureDaemonResult>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type SourceVersion = string;
|
|
2
|
+
export type ComputeOptions = {
|
|
3
|
+
srcRoot: string;
|
|
4
|
+
fs?: VersionFs;
|
|
5
|
+
runtimeVersion?: string;
|
|
6
|
+
};
|
|
7
|
+
export type VersionFs = {
|
|
8
|
+
readdir: (path: string) => Promise<Array<{
|
|
9
|
+
name: string;
|
|
10
|
+
isDirectory: boolean;
|
|
11
|
+
}>>;
|
|
12
|
+
readFile: (path: string) => Promise<Buffer>;
|
|
13
|
+
};
|
|
14
|
+
export declare function computeSourceVersion(opts: ComputeOptions): Promise<SourceVersion>;
|
|
15
|
+
export declare function resolveSrcRoot(cliEntry: string): string | null;
|
|
16
|
+
export declare const UNVERSIONED_SENTINEL: SourceVersion;
|
|
17
|
+
export declare const TESTED_BUN_VERSION = "1.4.0";
|
|
18
|
+
export declare function hostBunVersionWarning(hostBunVersion: string | undefined): string | null;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export type AutoUpgradeOutcome = {
|
|
2
|
+
kind: 'skipped-dev-mode';
|
|
3
|
+
} | {
|
|
4
|
+
kind: 'skipped-no-dep';
|
|
5
|
+
} | {
|
|
6
|
+
kind: 'skipped-non-release-spec';
|
|
7
|
+
declared: string;
|
|
8
|
+
} | {
|
|
9
|
+
kind: 'skipped-already-running';
|
|
10
|
+
} | {
|
|
11
|
+
kind: 'up-to-date';
|
|
12
|
+
installedVersion: string;
|
|
13
|
+
} | {
|
|
14
|
+
kind: 'exact-pin-respected';
|
|
15
|
+
declared: string;
|
|
16
|
+
cliVersion: string;
|
|
17
|
+
} | {
|
|
18
|
+
kind: 'spec-rewritten';
|
|
19
|
+
from: string;
|
|
20
|
+
to: string;
|
|
21
|
+
cliVersion: string;
|
|
22
|
+
} | {
|
|
23
|
+
kind: 'reinstall-needed';
|
|
24
|
+
from: string;
|
|
25
|
+
to: string;
|
|
26
|
+
} | {
|
|
27
|
+
kind: 'relinked-to-local';
|
|
28
|
+
from: string;
|
|
29
|
+
to: string;
|
|
30
|
+
};
|
|
31
|
+
export type AutoUpgradeOptions = {
|
|
32
|
+
cwd: string;
|
|
33
|
+
scaffoldVersion?: string | null;
|
|
34
|
+
localSpec?: string;
|
|
35
|
+
};
|
|
36
|
+
export declare function autoUpgradeTypeclawDep(options: AutoUpgradeOptions): Promise<AutoUpgradeOutcome>;
|
|
37
|
+
export declare function outcomeForcesInstall(outcome: AutoUpgradeOutcome): boolean;
|
|
38
|
+
export declare function outcomeRequiresForceInstall(outcome: AutoUpgradeOutcome): boolean;
|
|
39
|
+
export declare function expectedInstalledAfterUpgrade(outcome: AutoUpgradeOutcome): string | null;
|
|
40
|
+
export declare function describeAutoUpgrade(outcome: AutoUpgradeOutcome): string;
|
|
41
|
+
export declare function readInstalledTypeclawVersionFromAgent(cwd: string): string | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const GHCR_BASE_IMAGE_REPO = "ghcr.io/typeclaw/typeclaw-base";
|
|
2
|
+
export declare const CLI_VERSION: string;
|
|
3
|
+
export declare function isInstalledCli(): boolean;
|
|
4
|
+
export declare function resolveScaffoldVersion(): string | null;
|
|
5
|
+
export declare function typeclawCheckoutRoot(): string | null;
|
|
6
|
+
export declare function resolveTypeclawSpec(agentRoot: string, platform?: NodeJS.Platform): string;
|
|
7
|
+
export declare function resolveBaseImageVersion(agentDir: string): string | null;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { BrowserConfig } from "../browser/registry.js";
|
|
2
|
+
import type { DockerfileConfig } from "../config/config.js";
|
|
3
|
+
export declare const DOCKERFILE = "Dockerfile";
|
|
4
|
+
export type BuildDockerfileOptions = {
|
|
5
|
+
browser?: BrowserConfig;
|
|
6
|
+
baseImageVersion?: string | null;
|
|
7
|
+
cjkFontsAuto?: boolean;
|
|
8
|
+
buildKit?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const CURL_IMPERSONATE_VERSION = "v1.5.6";
|
|
11
|
+
export declare const CURL_IMPERSONATE_SHA256_AMD64 = "b60344f63b9ed8806f0e9f7fd357d9f6c9a82aca279ed1e9e257d544885dcbde";
|
|
12
|
+
export declare const CURL_IMPERSONATE_SHA256_ARM64 = "6766bc67fd3e8e2313875f32b36b5a3fab02beffe77e5f1cf7fc5da99731d403";
|
|
13
|
+
export declare const CURL_IMPERSONATE_PROFILE = "chrome136";
|
|
14
|
+
export declare const CLOUDFLARED_VERSION = "2025.5.0";
|
|
15
|
+
export declare const CLOUDFLARED_SHA256_AMD64 = "a62266fd02041374f1fca0d85694aafdf7e26e171a314467356b471d4ebb2393";
|
|
16
|
+
export declare const CLOUDFLARED_SHA256_ARM64 = "47e55e6eba2755239f641c2c4f89878643ac0d9eaa127a6c84a2cb43fa2e0f03";
|
|
17
|
+
export declare const CLOUDFLARED_RELEASE_URL_BASE = "https://github.com/cloudflare/cloudflared/releases/download";
|
|
18
|
+
export declare const TYPECLAW_ENTRYPOINT_PATH = "/usr/local/bin/typeclaw-entrypoint";
|
|
19
|
+
export declare const TYPECLAW_CLI_ENTRY = "/agent/node_modules/typeclaw/src/cli/index.ts";
|
|
20
|
+
export declare const NETWORK_BLOCK_IPV4_NETS: readonly ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16", "169.254.0.0/16", "100.64.0.0/10", "224.0.0.0/4", "240.0.0.0/4"];
|
|
21
|
+
export declare const NETWORK_BLOCK_IPV6_NETS: readonly ["fc00::/7", "fe80::/10", "ff00::/8", "::ffff:0:0/96"];
|
|
22
|
+
export declare function buildEntrypointShim(): string;
|
|
23
|
+
export declare const TRANSFORMERS_VERSION = "4.2.0";
|
|
24
|
+
export declare const CHROME_RUNTIME_APT_PACKAGES_AMD64: readonly ["libasound2t64", "libatk-bridge2.0-0t64", "libatk1.0-0t64", "libatspi2.0-0t64", "libcairo2", "libcups2t64", "libdbus-1-3", "libdrm2", "libgbm1", "libglib2.0-0t64", "libnspr4", "libnss3", "libpango-1.0-0", "libx11-6", "libxcb1", "libxcomposite1", "libxdamage1", "libxext6", "libxfixes3", "libxkbcommon0", "libxrandr2"];
|
|
25
|
+
export declare const CJK_FONTS_PACKAGE = "fonts-noto-cjk";
|
|
26
|
+
export declare function buildDockerfile(config?: DockerfileConfig, options?: BuildDockerfileOptions): string;
|
|
27
|
+
export declare function buildBaseDockerfile(): string;
|
|
28
|
+
export declare const BUN_BASE_IMAGE = "oven/bun:1.4.0-slim";
|
|
29
|
+
export type DockerfileAppendClassification = {
|
|
30
|
+
kept: string[];
|
|
31
|
+
warnings: string[];
|
|
32
|
+
strippedCount: number;
|
|
33
|
+
};
|
|
34
|
+
export declare function classifyDockerfileAppend(lines: string[]): DockerfileAppendClassification;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type InstallRunner } from "./run-bun-install.js";
|
|
2
|
+
export type EnsureDepsResult = {
|
|
3
|
+
ok: true;
|
|
4
|
+
installed: boolean;
|
|
5
|
+
} | {
|
|
6
|
+
ok: false;
|
|
7
|
+
reason: string;
|
|
8
|
+
missing?: readonly string[];
|
|
9
|
+
};
|
|
10
|
+
export type EnsureDepsOptions = {
|
|
11
|
+
cwd: string;
|
|
12
|
+
install?: InstallRunner;
|
|
13
|
+
detect?: (cwd: string) => Promise<readonly string[]>;
|
|
14
|
+
force?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare function ensureDepsInstalled(options: EnsureDepsOptions): Promise<EnsureDepsResult>;
|
|
17
|
+
export declare function detectMissingDeps(cwd: string): Promise<readonly string[]>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { GitignoreConfig } from "../config/config.js";
|
|
2
|
+
export declare const GITIGNORE_FILE = ".gitignore";
|
|
3
|
+
export declare const TRULY_IGNORED_PATTERNS: readonly [".gitstore/", ".env", ".env.local", "secrets.json", "auth.json", ".typeclaw/", "node_modules/", "packages/*/node_modules/", "workspace/", "public/", "mounts/", "Dockerfile", ".DS_Store"];
|
|
4
|
+
export declare const SYSTEM_MANAGED_ROOTS: readonly ["sessions/", "memory/", "channels/", "todo/", "cron/"];
|
|
5
|
+
export declare function buildGitignore(config?: GitignoreConfig): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const PACKAGE_FILE = "package.json";
|
|
2
|
+
export declare const WORKSPACES_GLOB = "packages/*";
|
|
3
|
+
export type PackageJsonRefreshResult = {
|
|
4
|
+
changed: boolean;
|
|
5
|
+
files: string[];
|
|
6
|
+
};
|
|
7
|
+
export declare function refreshPackageJson(cwd: string): Promise<PackageJsonRefreshResult>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type ReconcilePluginDepsResult = {
|
|
2
|
+
changed: boolean;
|
|
3
|
+
files: string[];
|
|
4
|
+
skipped: string[];
|
|
5
|
+
};
|
|
6
|
+
export type ResolveLatestVersion = (packageName: string) => Promise<string | null>;
|
|
7
|
+
export type ReconcilePluginDepsOptions = {
|
|
8
|
+
cwd: string;
|
|
9
|
+
plugins: readonly string[];
|
|
10
|
+
resolveLatest?: ResolveLatestVersion;
|
|
11
|
+
};
|
|
12
|
+
export declare function reconcilePluginDeps(options: ReconcilePluginDepsOptions): Promise<ReconcilePluginDepsResult>;
|
|
13
|
+
export declare function isPackageNotFound(stderr: string): boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type InstallResult = {
|
|
2
|
+
ok: true;
|
|
3
|
+
} | {
|
|
4
|
+
ok: false;
|
|
5
|
+
reason: string;
|
|
6
|
+
};
|
|
7
|
+
export type InstallRunnerOptions = {
|
|
8
|
+
force?: boolean;
|
|
9
|
+
timeoutMs?: number;
|
|
10
|
+
spawn?: typeof Bun.spawn;
|
|
11
|
+
};
|
|
12
|
+
export type InstallRunner = (cwd: string, opts?: InstallRunnerOptions) => Promise<InstallResult>;
|
|
13
|
+
export declare function runBunInstall(cwd: string, opts?: InstallRunnerOptions): Promise<InstallResult>;
|
|
14
|
+
export type UpdateRunnerOptions = Pick<InstallRunnerOptions, 'timeoutMs' | 'spawn'>;
|
|
15
|
+
export type UpdateRunner = (cwd: string, pkg: string, opts?: UpdateRunnerOptions) => Promise<InstallResult>;
|
|
16
|
+
export declare function runBunUpdate(cwd: string, pkg: string, opts?: UpdateRunnerOptions): Promise<InstallResult>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type RunBunLink = (cwd: string) => Promise<void>;
|
|
2
|
+
export type LinkWindowsDevTypeclawOptions = {
|
|
3
|
+
platform?: NodeJS.Platform;
|
|
4
|
+
runBunLink?: RunBunLink;
|
|
5
|
+
env?: NodeJS.ProcessEnv;
|
|
6
|
+
};
|
|
7
|
+
export declare function resolveBunLinkedPackage(packageName: string, env?: NodeJS.ProcessEnv): string | null;
|
|
8
|
+
export declare function linkWindowsDevTypeclaw(typeclawRoot: string, options?: LinkWindowsDevTypeclawOptions): Promise<string | null>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { OAuthClientProvider } from '@modelcontextprotocol/sdk/client/auth.js';
|
|
2
|
+
import type { RequestOptions } from '@modelcontextprotocol/sdk/shared/protocol.js';
|
|
3
|
+
import type { Transport } from '@modelcontextprotocol/sdk/shared/transport.js';
|
|
4
|
+
import { CallToolResultSchema, type CallToolResult, type ListToolsRequest } from '@modelcontextprotocol/sdk/types.js';
|
|
5
|
+
import type { McpServer } from "../config/config.js";
|
|
6
|
+
import type { ToolFileOperands } from "../plugin/index.js";
|
|
7
|
+
export type McpToolInfo = {
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
inputSchema: unknown;
|
|
11
|
+
fileOperands?: ToolFileOperands;
|
|
12
|
+
};
|
|
13
|
+
export declare const MCP_FILE_OPERANDS_META_KEY = "x-file-operands";
|
|
14
|
+
export declare const DEFAULT_MCP_REQUEST_TIMEOUT_MS = 30000;
|
|
15
|
+
export declare const DEFAULT_MCP_CONNECT_TIMEOUT_MS = 15000;
|
|
16
|
+
export type McpConnection = {
|
|
17
|
+
name: string;
|
|
18
|
+
listTools(): Promise<McpToolInfo[]>;
|
|
19
|
+
peekTools(): McpToolInfo[] | undefined;
|
|
20
|
+
refresh(): Promise<McpToolInfo[]>;
|
|
21
|
+
callTool(toolName: string, args?: Record<string, unknown>): Promise<CallToolResult>;
|
|
22
|
+
close(): Promise<void>;
|
|
23
|
+
};
|
|
24
|
+
export declare function parseDeclaredFileOperands(meta: Record<string, unknown> | undefined): ToolFileOperands | undefined;
|
|
25
|
+
export type McpSdkClient = {
|
|
26
|
+
listTools(params?: ListToolsRequest['params'], options?: RequestOptions): Promise<{
|
|
27
|
+
tools: {
|
|
28
|
+
name: string;
|
|
29
|
+
description?: string;
|
|
30
|
+
inputSchema: unknown;
|
|
31
|
+
_meta?: Record<string, unknown>;
|
|
32
|
+
}[];
|
|
33
|
+
nextCursor?: string;
|
|
34
|
+
}>;
|
|
35
|
+
callTool(params: {
|
|
36
|
+
name: string;
|
|
37
|
+
arguments?: Record<string, unknown>;
|
|
38
|
+
}, resultSchema?: typeof CallToolResultSchema, options?: RequestOptions): Promise<CallToolResult>;
|
|
39
|
+
close(): Promise<void>;
|
|
40
|
+
};
|
|
41
|
+
type McpConnectClient = McpSdkClient & {
|
|
42
|
+
connect(transport: Transport, options?: RequestOptions): Promise<void>;
|
|
43
|
+
};
|
|
44
|
+
export declare function connectMcpServer(server: McpServer, opts: {
|
|
45
|
+
env: NodeJS.ProcessEnv;
|
|
46
|
+
signal?: AbortSignal;
|
|
47
|
+
connectTimeoutMs?: number;
|
|
48
|
+
client?: McpConnectClient;
|
|
49
|
+
transport?: Transport;
|
|
50
|
+
authProvider?: OAuthClientProvider;
|
|
51
|
+
}): Promise<McpConnection>;
|
|
52
|
+
export declare function createMcpConnection(name: string, client: McpSdkClient, opts?: {
|
|
53
|
+
timeoutMs?: number;
|
|
54
|
+
signal?: AbortSignal;
|
|
55
|
+
}): McpConnection;
|
|
56
|
+
export declare function createTransport(server: McpServer, env: NodeJS.ProcessEnv, authProvider?: OAuthClientProvider): Transport;
|
|
57
|
+
export declare function resolveServerEnv(server: Pick<McpServer, 'env'>, env: NodeJS.ProcessEnv): Record<string, string>;
|
|
58
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { OAuthClientProvider } from '@modelcontextprotocol/sdk/client/auth.js';
|
|
2
|
+
import type { McpServer } from "../config/config.js";
|
|
3
|
+
import { type McpConnection } from "./client.js";
|
|
4
|
+
export type McpConnectResult = {
|
|
5
|
+
ok: true;
|
|
6
|
+
name: string;
|
|
7
|
+
connection: McpConnection;
|
|
8
|
+
toolCount: number;
|
|
9
|
+
} | {
|
|
10
|
+
ok: false;
|
|
11
|
+
name: string;
|
|
12
|
+
error: Error;
|
|
13
|
+
};
|
|
14
|
+
export type McpRefreshResult = {
|
|
15
|
+
ok: true;
|
|
16
|
+
name: string;
|
|
17
|
+
toolCount: number;
|
|
18
|
+
} | {
|
|
19
|
+
ok: false;
|
|
20
|
+
name: string;
|
|
21
|
+
error: Error;
|
|
22
|
+
};
|
|
23
|
+
export type McpManager = {
|
|
24
|
+
connectAll(opts?: {
|
|
25
|
+
signal?: AbortSignal;
|
|
26
|
+
}): Promise<McpConnectResult[]>;
|
|
27
|
+
ensureConnected(name: string): Promise<McpConnection | undefined>;
|
|
28
|
+
whenInitialConnectSettled(opts?: {
|
|
29
|
+
timeoutMs?: number;
|
|
30
|
+
}): Promise<void>;
|
|
31
|
+
getConnection(name: string): McpConnection | undefined;
|
|
32
|
+
listServers(): {
|
|
33
|
+
name: string;
|
|
34
|
+
description?: string;
|
|
35
|
+
connected: boolean;
|
|
36
|
+
toolCount?: number;
|
|
37
|
+
}[];
|
|
38
|
+
refresh(): Promise<McpRefreshResult[]>;
|
|
39
|
+
closeAll(): Promise<void>;
|
|
40
|
+
};
|
|
41
|
+
export type ConnectMcpServerFn = (server: McpServer, opts: {
|
|
42
|
+
env: NodeJS.ProcessEnv;
|
|
43
|
+
signal?: AbortSignal;
|
|
44
|
+
authProvider?: OAuthClientProvider;
|
|
45
|
+
}) => Promise<McpConnection>;
|
|
46
|
+
export type McpAuthProviderFactory = (server: McpServer) => OAuthClientProvider | undefined;
|
|
47
|
+
export declare function createMcpManager(servers: McpServer[], opts: {
|
|
48
|
+
env: NodeJS.ProcessEnv;
|
|
49
|
+
connect?: ConnectMcpServerFn;
|
|
50
|
+
authProvider?: McpAuthProviderFactory;
|
|
51
|
+
}): McpManager;
|
|
52
|
+
export declare function namespaceToolName(server: string, tool: string): string;
|
|
53
|
+
export declare function parseNamespacedTool(namespaced: string): {
|
|
54
|
+
server: string;
|
|
55
|
+
tool: string;
|
|
56
|
+
} | undefined;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Tool, ToolFileOperands } from "../plugin/types.js";
|
|
2
|
+
import type { HiddenPaths } from "../sandbox/index.js";
|
|
3
|
+
import type { McpManager } from "./manager.js";
|
|
4
|
+
export declare const MCP_DISPATCHER_TOOL_NAMES: readonly ["mcp_list_tools", "mcp_describe", "mcp_call"];
|
|
5
|
+
export type McpListToolsArgs = {
|
|
6
|
+
server: string;
|
|
7
|
+
};
|
|
8
|
+
export type McpDescribeArgs = {
|
|
9
|
+
server: string;
|
|
10
|
+
tool: string;
|
|
11
|
+
};
|
|
12
|
+
export type McpCallArgs = {
|
|
13
|
+
server: string;
|
|
14
|
+
tool: string;
|
|
15
|
+
args?: Record<string, unknown>;
|
|
16
|
+
};
|
|
17
|
+
export type McpDispatcherTool = Tool<McpListToolsArgs> | Tool<McpDescribeArgs> | Tool<McpCallArgs>;
|
|
18
|
+
export type McpDispatcherTools = [Tool<McpListToolsArgs>, Tool<McpDescribeArgs>, Tool<McpCallArgs>];
|
|
19
|
+
export declare function createMcpDispatcherTools(manager: McpManager, opts: {
|
|
20
|
+
resolveHidden: () => HiddenPaths;
|
|
21
|
+
}): McpDispatcherTools;
|
|
22
|
+
export declare function resolveMcpCallPreflightFileOperands(manager: McpManager, args: Record<string, unknown>): ToolFileOperands | undefined;
|
|
23
|
+
export declare function sanitizeMcpError(raw: string): string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const EMBEDDING_MODEL_NAME = "Xenova/multilingual-e5-base";
|
|
2
|
+
export declare const EMBEDDING_MODEL_DTYPE = "q8";
|
|
3
|
+
export declare const EMBEDDING_DIMS = 768;
|
|
4
|
+
export declare const EMBEDDING_RECIPE = "e5-prefix:mean-pool:l2-normalize";
|
|
5
|
+
export declare const EMBEDDING_MODEL_ID = "Xenova/multilingual-e5-base@q8";
|
|
6
|
+
export type ModelSentinel = {
|
|
7
|
+
schemaVersion: 1;
|
|
8
|
+
model: string;
|
|
9
|
+
dtype: string;
|
|
10
|
+
dims: number;
|
|
11
|
+
recipe: string;
|
|
12
|
+
transformers: string;
|
|
13
|
+
};
|
|
14
|
+
export declare function writeModelSentinel(dir: string, input: {
|
|
15
|
+
transformers: string;
|
|
16
|
+
}): Promise<void>;
|
|
17
|
+
export declare function readModelSentinel(dir: string): Promise<ModelSentinel | null>;
|
|
18
|
+
export declare function assertModelCacheCompatible(dir: string, expected: {
|
|
19
|
+
transformers: string;
|
|
20
|
+
}): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getResolvedTransformersVersion(): string;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const MODEL_HTTP_ALLOW_INTERNAL_HOSTS_ENV = "TYPECLAW_MODEL_HTTP_ALLOW_INTERNAL_HOSTS";
|
|
2
|
+
export declare const MODEL_HTTP_ALLOW_INTERNAL_CIDRS_ENV = "TYPECLAW_MODEL_HTTP_ALLOW_INTERNAL_CIDRS";
|
|
3
|
+
export declare const MAX_MODEL_HTTP_POLICY_ENTRIES = 64;
|
|
4
|
+
type ParsedAddress = {
|
|
5
|
+
readonly family: 4 | 6;
|
|
6
|
+
readonly value: bigint;
|
|
7
|
+
readonly bits: 32 | 128;
|
|
8
|
+
};
|
|
9
|
+
type ParsedCidr = ParsedAddress & {
|
|
10
|
+
readonly prefix: number;
|
|
11
|
+
};
|
|
12
|
+
export type InternalDestinationPolicy = {
|
|
13
|
+
readonly hostnames: readonly string[];
|
|
14
|
+
readonly cidrs: readonly ParsedCidr[];
|
|
15
|
+
};
|
|
16
|
+
export type InternalDestinationPolicyInput = {
|
|
17
|
+
allowInternalHosts?: readonly string[];
|
|
18
|
+
allowInternalCidrs?: readonly string[];
|
|
19
|
+
};
|
|
20
|
+
export declare function createInternalDestinationPolicy(input: InternalDestinationPolicyInput): InternalDestinationPolicy;
|
|
21
|
+
export declare function buildInternalDestinationPolicyFromEnv(env: Readonly<Record<string, string | undefined>>): InternalDestinationPolicy;
|
|
22
|
+
export declare function getBootInternalDestinationPolicy(): InternalDestinationPolicy;
|
|
23
|
+
export declare function normalizeExactHostname(value: string): string | undefined;
|
|
24
|
+
export declare function normalizeIpCidr(value: string): string | undefined;
|
|
25
|
+
export declare function hostnameMatchesPolicy(hostname: string, policy: InternalDestinationPolicy): boolean;
|
|
26
|
+
export declare function addressMatchesPolicy(address: string, policy: InternalDestinationPolicy): boolean;
|
|
27
|
+
export declare function extractEmbeddedIpv4Address(address: string): string | undefined;
|
|
28
|
+
export declare function extractRfc6052Ipv4Addresses(address: string): readonly string[];
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export type BuiltinSearchBin = 'rg' | 'fd';
|
|
2
|
+
export type OperationalIncidentFact = {
|
|
3
|
+
kind: 'bash-command-not-found';
|
|
4
|
+
bin: string;
|
|
5
|
+
} | {
|
|
6
|
+
kind: 'declared-skill-bin-unresolved';
|
|
7
|
+
bin: string;
|
|
8
|
+
} | {
|
|
9
|
+
kind: 'sandbox-proc-unavailable';
|
|
10
|
+
} | {
|
|
11
|
+
kind: 'builtin-search-bin-unavailable';
|
|
12
|
+
bin: BuiltinSearchBin;
|
|
13
|
+
};
|
|
14
|
+
export type OperationalIncidentResolutionSignal = 'successful-bin' | 'successful-sandbox-real-proc' | 'successful-builtin-search-tool';
|
|
15
|
+
export type OperationalIncidentSuccessInput = {
|
|
16
|
+
tool: string;
|
|
17
|
+
args: Record<string, unknown>;
|
|
18
|
+
sandboxedRealProcSucceeded: boolean;
|
|
19
|
+
};
|
|
20
|
+
export declare const OPERATIONAL_INCIDENT_RESOLUTION_SIGNAL_BY_KIND: {
|
|
21
|
+
readonly 'bash-command-not-found': "successful-bin";
|
|
22
|
+
readonly 'declared-skill-bin-unresolved': "successful-bin";
|
|
23
|
+
readonly 'sandbox-proc-unavailable': "successful-sandbox-real-proc";
|
|
24
|
+
readonly 'builtin-search-bin-unavailable': "successful-builtin-search-tool";
|
|
25
|
+
};
|
|
26
|
+
export declare class DeclaredSkillBinUnresolvedError extends Error {
|
|
27
|
+
readonly bin: string;
|
|
28
|
+
readonly name = "DeclaredSkillBinUnresolvedError";
|
|
29
|
+
constructor(bin: string);
|
|
30
|
+
}
|
|
31
|
+
export declare function classifyToolOutcome(input: {
|
|
32
|
+
tool: string;
|
|
33
|
+
error: unknown;
|
|
34
|
+
}): OperationalIncidentFact | null;
|
|
35
|
+
export declare function deriveOperationalIncidentFactsForSuccess(input: OperationalIncidentSuccessInput): OperationalIncidentFact[];
|