typeclaw 0.49.0 → 0.51.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/bash-sandbox-env.d.ts +15 -0
- package/dist/types/agent/bash-sandbox-proc.d.ts +8 -0
- package/dist/types/agent/bash-sandbox.d.ts +94 -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 +8 -0
- package/dist/types/agent/index.d.ts +151 -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/output-allowance.d.ts +4 -0
- package/dist/types/agent/plugin-tools.d.ts +58 -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-composition.d.ts +17 -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 +27 -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 +760 -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 +827 -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 +1458 -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 +145 -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/eval/cell.d.ts +26 -0
- package/dist/types/eval/config.d.ts +19 -0
- package/dist/types/eval/dispatch.d.ts +7 -0
- package/dist/types/eval/kernel.d.ts +28 -0
- package/dist/types/eval/process.d.ts +23 -0
- package/dist/types/eval/protocol.d.ts +34 -0
- package/dist/types/eval/sandbox.d.ts +10 -0
- package/dist/types/eval/tool.d.ts +17 -0
- package/dist/types/eval/wire.d.ts +33 -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 +3 -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 +13 -6
- 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/bash-sandbox-env.ts +104 -0
- package/src/agent/bash-sandbox-proc.ts +70 -0
- package/src/agent/bash-sandbox.ts +225 -0
- package/src/agent/compaction.ts +22 -10
- package/src/agent/guard-types.ts +3 -0
- package/src/agent/guards.ts +4 -0
- package/src/agent/idle-compaction.ts +178 -0
- package/src/agent/index.ts +139 -172
- package/src/agent/live-subagents.ts +19 -0
- package/src/agent/multimodal/look-at.ts +22 -9
- package/src/agent/output-allowance.ts +7 -0
- package/src/agent/plugin-tools.ts +39 -377
- package/src/agent/reviewer-bash-policy.ts +41 -1
- package/src/agent/session-origin.ts +28 -11
- package/src/agent/subagent-cache-keepalive.ts +198 -0
- package/src/agent/subagent-completion-reminder.ts +2 -2
- package/src/agent/subagent-session.ts +6 -0
- package/src/agent/subagents.ts +46 -8
- package/src/agent/system-prompt-composition.ts +141 -0
- package/src/agent/system-prompt.ts +5 -5
- package/src/agent/todo/scope.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 +84 -16
- 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/agent/tools-without-local-file-operands.ts +4 -0
- 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/fill-secret.ts +307 -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/explorer/explorer.ts +1 -1
- package/src/bundled-plugins/github-cli-auth/gh-command.ts +4 -0
- package/src/bundled-plugins/github-cli-auth/gh-review-detect.ts +40 -16
- package/src/bundled-plugins/github-cli-auth/git-auth-diagnostic.ts +95 -0
- package/src/bundled-plugins/github-cli-auth/graphql-auth-nudge.ts +12 -7
- package/src/bundled-plugins/github-cli-auth/index.ts +85 -60
- package/src/bundled-plugins/managed-browser/index.ts +179 -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/memory/dreaming.ts +4 -1
- package/src/bundled-plugins/memory/load-memory.ts +2 -4
- package/src/bundled-plugins/memory/memory-logger.ts +74 -2
- package/src/bundled-plugins/memory/transcript-preload.ts +103 -0
- package/src/bundled-plugins/memory/vector/hybrid.ts +25 -14
- 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/bundled-plugins/security/policies/private-surface-read.ts +166 -201
- package/src/channels/adapter-namespace.ts +13 -0
- package/src/channels/adapters/discord-bot-reference.ts +5 -4
- package/src/channels/adapters/discord-bot.ts +98 -5
- package/src/channels/adapters/discord-classify.ts +8 -3
- package/src/channels/adapters/discord.ts +29 -0
- 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-review-check.ts +5 -1
- package/src/channels/github-review-verdict-coordinator.ts +68 -2
- 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 +515 -243
- 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/subagent-completion-bridge.ts +3 -2
- package/src/channels/types.ts +12 -2
- package/src/cli/channel.ts +2 -3
- package/src/cli/hostd.ts +3 -0
- 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 +126 -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 +69 -4
- package/src/container/start.ts +132 -5
- package/src/doctor/checks.ts +33 -22
- package/src/doctor/index.ts +48 -12
- package/src/doctor/operational-incidents.ts +16 -1
- package/src/doctor/plugin-bridge.ts +14 -1
- package/src/doctor/stage.ts +14 -0
- package/src/doctor/types.ts +6 -0
- package/src/eval/cell.ts +93 -0
- package/src/eval/config.ts +32 -0
- package/src/eval/dispatch.ts +67 -0
- package/src/eval/entry.ts +261 -0
- package/src/eval/kernel.ts +154 -0
- package/src/eval/process.ts +113 -0
- package/src/eval/protocol.ts +26 -0
- package/src/eval/redeclare.ts +174 -0
- package/src/eval/sandbox.ts +114 -0
- package/src/eval/tool.ts +98 -0
- package/src/eval/wire.ts +93 -0
- 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/operations/classify-tool-outcome.ts +1 -1
- 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/core-tool-names.ts +6 -1
- 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/env-exposure.ts +20 -0
- package/src/sandbox/hidden-paths.ts +16 -2
- package/src/secrets/storage.ts +13 -0
- package/src/server/index.ts +46 -11
- package/src/skills/typeclaw-channel-github/SKILL.md +8 -8
- package/src/skills/typeclaw-config/SKILL.md +57 -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 +488 -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,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { WrapSystemToolOptions } from "../agent/plugin-tools.js";
|
|
3
|
+
import type { SessionOrigin } from "../agent/session-origin.js";
|
|
4
|
+
export declare const evalConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
5
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
6
|
+
origins: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
7
|
+
channel: "channel";
|
|
8
|
+
tui: "tui";
|
|
9
|
+
cron: "cron";
|
|
10
|
+
subagent: "subagent";
|
|
11
|
+
system: "system";
|
|
12
|
+
}>>>;
|
|
13
|
+
}, z.core.$strict>>;
|
|
14
|
+
export declare function evalEnabledForSession(options: {
|
|
15
|
+
readonly settings: z.infer<typeof evalConfigSchema>;
|
|
16
|
+
readonly origin: SessionOrigin | undefined;
|
|
17
|
+
readonly tools: readonly string[];
|
|
18
|
+
readonly bashPolicy?: WrapSystemToolOptions['bashPolicy'];
|
|
19
|
+
}): boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ToolDefinition } from '@earendil-works/pi-coding-agent';
|
|
2
|
+
import type { EvalDispatch } from "./cell.js";
|
|
3
|
+
export declare function createEvalDispatch(options: {
|
|
4
|
+
readonly tools: readonly ToolDefinition[];
|
|
5
|
+
readonly getActiveNames: () => readonly string[];
|
|
6
|
+
readonly context: Parameters<ToolDefinition['execute']>[4];
|
|
7
|
+
}): EvalDispatch;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type EvalDispatch } from "./cell.js";
|
|
2
|
+
import { type KernelLaunch } from "./process.js";
|
|
3
|
+
export type EvalResult = {
|
|
4
|
+
readonly text: string;
|
|
5
|
+
readonly isError: boolean;
|
|
6
|
+
readonly truncated: boolean;
|
|
7
|
+
readonly restarted: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare class EvalKernel {
|
|
10
|
+
private readonly prepare;
|
|
11
|
+
private readonly idleMs;
|
|
12
|
+
private worker;
|
|
13
|
+
private active;
|
|
14
|
+
private controller;
|
|
15
|
+
private idle;
|
|
16
|
+
private closed;
|
|
17
|
+
private used;
|
|
18
|
+
private stopping;
|
|
19
|
+
private disposal;
|
|
20
|
+
constructor(prepare: () => Promise<KernelLaunch>, idleMs?: number);
|
|
21
|
+
run(code: string, options: {
|
|
22
|
+
readonly dispatch: EvalDispatch;
|
|
23
|
+
readonly signal?: AbortSignal;
|
|
24
|
+
readonly timeoutMs?: number;
|
|
25
|
+
}): Promise<EvalResult>;
|
|
26
|
+
dispose(): Promise<void>;
|
|
27
|
+
private stopWorker;
|
|
28
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type HostFrame, type KernelFrame } from "./protocol.js";
|
|
2
|
+
export type KernelLaunch = {
|
|
3
|
+
readonly command: string;
|
|
4
|
+
readonly cwd: string;
|
|
5
|
+
readonly env: Record<string, string>;
|
|
6
|
+
readonly fingerprint: string;
|
|
7
|
+
readonly cleanup: () => Promise<void>;
|
|
8
|
+
};
|
|
9
|
+
export declare class KernelProcess {
|
|
10
|
+
readonly ready: Promise<void>;
|
|
11
|
+
readonly exited: Promise<void>;
|
|
12
|
+
onFrame: (frame: KernelFrame) => void;
|
|
13
|
+
onOutput: (text: string) => void;
|
|
14
|
+
alive: boolean;
|
|
15
|
+
private readonly child;
|
|
16
|
+
constructor(launch: KernelLaunch, callbacks: {
|
|
17
|
+
readonly frame: (frame: KernelFrame) => void;
|
|
18
|
+
readonly output: (text: string) => void;
|
|
19
|
+
readonly failure: (error: Error) => void;
|
|
20
|
+
});
|
|
21
|
+
send(frame: HostFrame): void;
|
|
22
|
+
stop(): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export { EVAL_LIMITS, FRAME_PREFIX, EvalError, encodeFrame, FrameLines, CellOutput } from "./wire.js";
|
|
3
|
+
export declare const kernelFrameSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4
|
+
type: z.ZodLiteral<"ready">;
|
|
5
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6
|
+
type: z.ZodLiteral<"output">;
|
|
7
|
+
cellId: z.ZodString;
|
|
8
|
+
text: z.ZodString;
|
|
9
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
10
|
+
type: z.ZodLiteral<"tool-call">;
|
|
11
|
+
cellId: z.ZodString;
|
|
12
|
+
id: z.ZodString;
|
|
13
|
+
name: z.ZodString;
|
|
14
|
+
args: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
15
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16
|
+
type: z.ZodLiteral<"done">;
|
|
17
|
+
cellId: z.ZodString;
|
|
18
|
+
error: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strict>], "type">;
|
|
20
|
+
export type KernelFrame = z.infer<typeof kernelFrameSchema>;
|
|
21
|
+
export declare const hostFrameSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22
|
+
type: z.ZodLiteral<"run">;
|
|
23
|
+
cellId: z.ZodString;
|
|
24
|
+
code: z.ZodString;
|
|
25
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
26
|
+
type: z.ZodLiteral<"tool-result">;
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
value: z.ZodUnknown;
|
|
29
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
30
|
+
type: z.ZodLiteral<"tool-error">;
|
|
31
|
+
id: z.ZodString;
|
|
32
|
+
error: z.ZodString;
|
|
33
|
+
}, z.core.$strict>], "type">;
|
|
34
|
+
export type HostFrame = z.infer<typeof hostFrameSchema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SessionOrigin } from "../agent/session-origin.js";
|
|
2
|
+
import type { PermissionService } from "../permissions/permissions.js";
|
|
3
|
+
import { EvalKernel } from "./kernel.js";
|
|
4
|
+
export declare function authorityOrigin(origin: SessionOrigin | undefined): unknown;
|
|
5
|
+
export declare function createSandboxedEvalKernel(options: {
|
|
6
|
+
readonly agentDir: string;
|
|
7
|
+
readonly sessionId: string;
|
|
8
|
+
readonly permissions: PermissionService;
|
|
9
|
+
readonly getOrigin: () => SessionOrigin | undefined;
|
|
10
|
+
}): EvalKernel;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ToolDefinition } from '@earendil-works/pi-coding-agent';
|
|
2
|
+
import type { z } from 'zod';
|
|
3
|
+
import type { WrapSystemToolOptions } from "../agent/plugin-tools.js";
|
|
4
|
+
import { type BudgetState, type ToolResultBudget } from "../agent/tool-result-budget.js";
|
|
5
|
+
import { type evalConfigSchema } from "./config.js";
|
|
6
|
+
export declare const EVAL_PROMPT_HINT: string;
|
|
7
|
+
export declare function registerEvalTool(options: {
|
|
8
|
+
readonly settings: z.infer<typeof evalConfigSchema>;
|
|
9
|
+
readonly tools: ToolDefinition[];
|
|
10
|
+
readonly activeNames: string[];
|
|
11
|
+
readonly getActiveNames: () => readonly string[];
|
|
12
|
+
readonly wrappers: WrapSystemToolOptions;
|
|
13
|
+
readonly budget?: ToolResultBudget;
|
|
14
|
+
readonly budgetState?: BudgetState;
|
|
15
|
+
}): {
|
|
16
|
+
dispose(): Promise<void>;
|
|
17
|
+
} | undefined;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { HostFrame, KernelFrame } from "./protocol.js";
|
|
2
|
+
export declare const EVAL_LIMITS: {
|
|
3
|
+
readonly codeBytes: number;
|
|
4
|
+
readonly frameBytes: number;
|
|
5
|
+
readonly outputBytes: number;
|
|
6
|
+
readonly outputLines: 1000;
|
|
7
|
+
readonly outputWarnBytes: number;
|
|
8
|
+
readonly timeoutMs: 30000;
|
|
9
|
+
readonly maxTimeoutMs: 60000;
|
|
10
|
+
readonly idleMs: number;
|
|
11
|
+
readonly calls: 128;
|
|
12
|
+
readonly concurrency: 8;
|
|
13
|
+
};
|
|
14
|
+
export declare const FRAME_PREFIX = "@typeclaw-eval ";
|
|
15
|
+
export declare class EvalError extends Error {
|
|
16
|
+
readonly kind: 'protocol' | 'closed' | 'timeout' | 'busy' | 'refused' | 'cell';
|
|
17
|
+
readonly name = "EvalError";
|
|
18
|
+
constructor(kind: 'protocol' | 'closed' | 'timeout' | 'busy' | 'refused' | 'cell', message: string);
|
|
19
|
+
}
|
|
20
|
+
export declare function assertNever(value: never): never;
|
|
21
|
+
export declare function encodeFrame(frame: HostFrame | KernelFrame): string;
|
|
22
|
+
export declare class FrameLines {
|
|
23
|
+
private pending;
|
|
24
|
+
push(chunk: Uint8Array): string[];
|
|
25
|
+
}
|
|
26
|
+
export declare class CellOutput {
|
|
27
|
+
private text;
|
|
28
|
+
private bytes;
|
|
29
|
+
private lines;
|
|
30
|
+
truncated: boolean;
|
|
31
|
+
append(text: string): void;
|
|
32
|
+
render(): string;
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function hooklessGitArgs(args: readonly string[]): string[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type AgentGit } from "./resolve-agent-git.js";
|
|
2
|
+
export type UntrackResult = {
|
|
3
|
+
untracked: string[];
|
|
4
|
+
};
|
|
5
|
+
export declare function untrackTrulyIgnoredFiles(cwd: string, customAppend?: readonly string[]): Promise<UntrackResult>;
|
|
6
|
+
export type CommitGitignoreDeps = {
|
|
7
|
+
commitAtomic?: (bun: BunLike, cwd: string, repo: AgentGit, gitignoreFile: string, untracked: readonly string[], message: string) => Promise<boolean>;
|
|
8
|
+
};
|
|
9
|
+
export declare function commitGitignoreWithUntracks(cwd: string, gitignoreFile: string, untracked: readonly string[], message: string, deps?: CommitGitignoreDeps): Promise<boolean>;
|
|
10
|
+
type BunLike = {
|
|
11
|
+
spawn: typeof Bun.spawn;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -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>;
|