@kl-c/matrixos 0.1.25 → 0.1.31
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/agents/builtin-agents/model-resolution.d.ts +1 -1
- package/dist/agents/types.d.ts +1 -1
- package/dist/cli/generate.d.ts +2 -2
- package/dist/cli/index.js +206 -49
- package/dist/cli/install-ast-grep-sg.d.ts +1 -1
- package/dist/cli/mcp-oauth/login.d.ts +1 -1
- package/dist/cli/migrate.d.ts +15 -0
- package/dist/cli/profile.d.ts +23 -0
- package/dist/cli/provider-model-id-transform.d.ts +1 -1
- package/dist/cli/skills/frontend/ATTRIBUTION.md +1 -1
- package/dist/cli/skills/ultimate-browsing/ATTRIBUTION.md +1 -1
- package/dist/cli/skills/ulw-research/ATTRIBUTION.md +1 -1
- package/dist/cli-node/index.js +206 -49
- package/dist/config/schema/gateway.d.ts +1 -1
- package/dist/config/schema/git-env-prefix.d.ts +1 -1
- package/dist/config/schema/team-mode.d.ts +1 -1
- package/dist/config/schema/tmux.d.ts +1 -1
- package/dist/features/background-agent/error-classifier.d.ts +1 -1
- package/dist/features/boulder-state/constants.d.ts +1 -1
- package/dist/features/boulder-state/format-duration.d.ts +1 -1
- package/dist/features/boulder-state/storage.d.ts +1 -1
- package/dist/features/boulder-state/top-level-task.d.ts +1 -1
- package/dist/features/boulder-state/types.d.ts +1 -1
- package/dist/features/builtin-skills/index.d.ts +1 -1
- package/dist/features/builtin-skills/skill-file-loader.d.ts +1 -1
- package/dist/features/builtin-skills/skills/agent-browser-skill.d.ts +1 -1
- package/dist/features/builtin-skills/skills/agent-browser-template.d.ts +1 -1
- package/dist/features/builtin-skills/skills/debugging.d.ts +1 -1
- package/dist/features/builtin-skills/skills/dev-browser.d.ts +1 -1
- package/dist/features/builtin-skills/skills/frontend.d.ts +1 -1
- package/dist/features/builtin-skills/skills/git-master-sections/commit-atomic-planning.d.ts +1 -1
- package/dist/features/builtin-skills/skills/git-master-sections/commit-context-analysis.d.ts +1 -1
- package/dist/features/builtin-skills/skills/git-master-sections/commit-execution-verification.d.ts +1 -1
- package/dist/features/builtin-skills/skills/git-master-sections/commit-workflow.d.ts +1 -1
- package/dist/features/builtin-skills/skills/git-master-sections/history-search-workflow.d.ts +1 -1
- package/dist/features/builtin-skills/skills/git-master-sections/overview.d.ts +1 -1
- package/dist/features/builtin-skills/skills/git-master-sections/quick-reference.d.ts +1 -1
- package/dist/features/builtin-skills/skills/git-master-sections/rebase-workflow.d.ts +1 -1
- package/dist/features/builtin-skills/skills/git-master-skill-metadata.d.ts +1 -1
- package/dist/features/builtin-skills/skills/git-master.d.ts +1 -1
- package/dist/features/builtin-skills/skills/index.d.ts +1 -1
- package/dist/features/builtin-skills/skills/init-deep.d.ts +1 -1
- package/dist/features/builtin-skills/skills/playwright-cli.d.ts +1 -1
- package/dist/features/builtin-skills/skills/playwright-mcp-skill.d.ts +1 -1
- package/dist/features/builtin-skills/skills/playwright.d.ts +1 -1
- package/dist/features/builtin-skills/skills/remove-ai-slops.d.ts +1 -1
- package/dist/features/builtin-skills/skills/review-work.d.ts +1 -1
- package/dist/features/builtin-skills/skills/security-research.d.ts +1 -1
- package/dist/features/builtin-skills/skills/security-review.d.ts +1 -1
- package/dist/features/builtin-skills/skills/team-mode.d.ts +1 -1
- package/dist/features/builtin-skills/skills/visual-qa.d.ts +1 -1
- package/dist/features/builtin-skills/skills.d.ts +1 -1
- package/dist/features/builtin-skills/types.d.ts +1 -1
- package/dist/features/claude-code-agent-loader/agent-definitions-loader.d.ts +1 -1
- package/dist/features/claude-code-agent-loader/claude-model-mapper.d.ts +1 -1
- package/dist/features/claude-code-agent-loader/index.d.ts +1 -1
- package/dist/features/claude-code-agent-loader/json-agent-loader.d.ts +1 -1
- package/dist/features/claude-code-agent-loader/loader.d.ts +1 -1
- package/dist/features/claude-code-agent-loader/opencode-config-agents-reader.d.ts +1 -1
- package/dist/features/claude-code-agent-loader/types.d.ts +1 -1
- package/dist/features/claude-code-command-loader/index.d.ts +1 -1
- package/dist/features/claude-code-command-loader/loader-cache.d.ts +1 -1
- package/dist/features/claude-code-command-loader/loader.d.ts +1 -1
- package/dist/features/claude-code-command-loader/types.d.ts +1 -1
- package/dist/features/claude-code-mcp-loader/configure-allowed-env-vars.d.ts +1 -1
- package/dist/features/claude-code-mcp-loader/index.d.ts +1 -1
- package/dist/features/claude-code-mcp-loader/loader.d.ts +1 -1
- package/dist/features/claude-code-mcp-loader/scope-filter.d.ts +1 -1
- package/dist/features/claude-code-mcp-loader/transformer.d.ts +1 -1
- package/dist/features/claude-code-mcp-loader/types.d.ts +1 -1
- package/dist/features/claude-code-plugin-loader/agent-loader.d.ts +1 -1
- package/dist/features/claude-code-plugin-loader/command-loader.d.ts +1 -1
- package/dist/features/claude-code-plugin-loader/discovery-core.d.ts +1 -1
- package/dist/features/claude-code-plugin-loader/discovery-paths.d.ts +1 -1
- package/dist/features/claude-code-plugin-loader/discovery.d.ts +1 -1
- package/dist/features/claude-code-plugin-loader/hook-loader.d.ts +1 -1
- package/dist/features/claude-code-plugin-loader/index.d.ts +1 -1
- package/dist/features/claude-code-plugin-loader/install-path-resolver.d.ts +1 -1
- package/dist/features/claude-code-plugin-loader/installed-plugin-database.d.ts +1 -1
- package/dist/features/claude-code-plugin-loader/loaded-plugin.d.ts +1 -1
- package/dist/features/claude-code-plugin-loader/loader.d.ts +1 -1
- package/dist/features/claude-code-plugin-loader/mcp-server-loader.d.ts +1 -1
- package/dist/features/claude-code-plugin-loader/plugin-key.d.ts +1 -1
- package/dist/features/claude-code-plugin-loader/plugin-manifest.d.ts +1 -1
- package/dist/features/claude-code-plugin-loader/plugin-path-resolver.d.ts +1 -1
- package/dist/features/claude-code-plugin-loader/plugin-settings.d.ts +1 -1
- package/dist/features/claude-code-plugin-loader/scope-filter.d.ts +1 -1
- package/dist/features/claude-code-plugin-loader/skill-loader.d.ts +1 -1
- package/dist/features/claude-code-plugin-loader/types.d.ts +1 -1
- package/dist/features/kanban/sqlite-store.d.ts +2 -0
- package/dist/features/mcp-oauth/callback-server.d.ts +1 -1
- package/dist/features/mcp-oauth/dcr.d.ts +1 -1
- package/dist/features/mcp-oauth/discovery.d.ts +1 -1
- package/dist/features/mcp-oauth/oauth-authorization-flow.d.ts +1 -1
- package/dist/features/mcp-oauth/provider.d.ts +1 -1
- package/dist/features/mcp-oauth/refresh-mutex.d.ts +1 -1
- package/dist/features/mcp-oauth/resource-indicator.d.ts +1 -1
- package/dist/features/mcp-oauth/schema.d.ts +1 -1
- package/dist/features/mcp-oauth/step-up.d.ts +1 -1
- package/dist/features/mcp-oauth/storage.d.ts +1 -1
- package/dist/features/opencode-runtime-skills/index.d.ts +1 -1
- package/dist/features/opencode-runtime-skills/runtime-skill-config.d.ts +1 -1
- package/dist/features/opencode-runtime-skills/skill-markdown.d.ts +1 -1
- package/dist/features/opencode-runtime-skills/source-server.d.ts +1 -1
- package/dist/features/opencode-skill-loader/allowed-tools-parser.d.ts +1 -1
- package/dist/features/opencode-skill-loader/config-source-discovery.d.ts +1 -1
- package/dist/features/opencode-skill-loader/git-master-template-injection.d.ts +1 -1
- package/dist/features/opencode-skill-loader/index.d.ts +1 -1
- package/dist/features/opencode-skill-loader/loaded-skill-from-path.d.ts +1 -1
- package/dist/features/opencode-skill-loader/loaded-skill-template-extractor.d.ts +1 -1
- package/dist/features/opencode-skill-loader/loader.d.ts +1 -1
- package/dist/features/opencode-skill-loader/merger/builtin-skill-converter.d.ts +1 -1
- package/dist/features/opencode-skill-loader/merger/config-skill-entry-loader.d.ts +1 -1
- package/dist/features/opencode-skill-loader/merger/scope-priority.d.ts +1 -1
- package/dist/features/opencode-skill-loader/merger/skill-definition-merger.d.ts +1 -1
- package/dist/features/opencode-skill-loader/merger/skills-config-normalizer.d.ts +1 -1
- package/dist/features/opencode-skill-loader/merger.d.ts +1 -1
- package/dist/features/opencode-skill-loader/opencode-config-skills-reader.d.ts +1 -1
- package/dist/features/opencode-skill-loader/skill-content.d.ts +1 -1
- package/dist/features/opencode-skill-loader/skill-deduplication.d.ts +1 -1
- package/dist/features/opencode-skill-loader/skill-definition-record.d.ts +1 -1
- package/dist/features/opencode-skill-loader/skill-directory-loader.d.ts +1 -1
- package/dist/features/opencode-skill-loader/skill-discovery.d.ts +1 -1
- package/dist/features/opencode-skill-loader/skill-mcp-config.d.ts +1 -1
- package/dist/features/opencode-skill-loader/skill-resolution-options.d.ts +1 -1
- package/dist/features/opencode-skill-loader/skill-template-resolver.d.ts +1 -1
- package/dist/features/opencode-skill-loader/types.d.ts +1 -1
- package/dist/features/skill-curator/audit.d.ts +1 -1
- package/dist/features/skill-mcp-manager/cleanup.d.ts +1 -1
- package/dist/features/skill-mcp-manager/connection-type.d.ts +1 -1
- package/dist/features/skill-mcp-manager/connection.d.ts +1 -1
- package/dist/features/skill-mcp-manager/env-cleaner.d.ts +1 -1
- package/dist/features/skill-mcp-manager/error-redaction.d.ts +1 -1
- package/dist/features/skill-mcp-manager/http-client.d.ts +1 -1
- package/dist/features/skill-mcp-manager/index.d.ts +1 -1
- package/dist/features/skill-mcp-manager/manager.d.ts +1 -1
- package/dist/features/skill-mcp-manager/oauth-handler.d.ts +1 -1
- package/dist/features/skill-mcp-manager/stdio-client.d.ts +1 -1
- package/dist/features/skill-mcp-manager/types.d.ts +1 -1
- package/dist/features/team-mode/member-parser.d.ts +1 -1
- package/dist/features/team-mode/team-layout-tmux/close-team-member-pane.d.ts +1 -1
- package/dist/features/team-mode/team-layout-tmux/index.d.ts +1 -1
- package/dist/features/team-mode/team-layout-tmux/layout.d.ts +1 -1
- package/dist/features/team-mode/team-layout-tmux/rebalance-team-window.d.ts +1 -1
- package/dist/features/team-mode/team-layout-tmux/resolve-caller-tmux-session.d.ts +1 -1
- package/dist/features/team-mode/team-layout-tmux/sweep-stale-team-sessions.d.ts +1 -1
- package/dist/features/team-mode/team-mailbox/ack.d.ts +1 -1
- package/dist/features/team-mode/team-mailbox/inbox.d.ts +1 -1
- package/dist/features/team-mode/team-mailbox/index.d.ts +1 -1
- package/dist/features/team-mode/team-mailbox/pending-delivery-recovery.d.ts +1 -1
- package/dist/features/team-mode/team-mailbox/poll.d.ts +1 -1
- package/dist/features/team-mode/team-mailbox/reservation.d.ts +1 -1
- package/dist/features/team-mode/team-mailbox/send.d.ts +1 -1
- package/dist/features/team-mode/team-registry/index.d.ts +1 -1
- package/dist/features/team-mode/team-registry/loader.d.ts +1 -1
- package/dist/features/team-mode/team-registry/paths.d.ts +1 -1
- package/dist/features/team-mode/team-registry/team-spec-input-normalizer.d.ts +1 -1
- package/dist/features/team-mode/team-registry/validator.d.ts +1 -1
- package/dist/features/team-mode/team-state-store/active-resume.d.ts +1 -1
- package/dist/features/team-mode/team-state-store/creating-resume.d.ts +1 -1
- package/dist/features/team-mode/team-state-store/deleting-resume.d.ts +1 -1
- package/dist/features/team-mode/team-state-store/error-normalization.d.ts +1 -1
- package/dist/features/team-mode/team-state-store/index.d.ts +1 -1
- package/dist/features/team-mode/team-state-store/locks.d.ts +1 -1
- package/dist/features/team-mode/team-state-store/reservation-reconciliation.d.ts +1 -1
- package/dist/features/team-mode/team-state-store/resume-report.d.ts +1 -1
- package/dist/features/team-mode/team-state-store/resume.d.ts +1 -1
- package/dist/features/team-mode/team-state-store/runtime-cleanup.d.ts +1 -1
- package/dist/features/team-mode/team-state-store/session-liveness.d.ts +1 -1
- package/dist/features/team-mode/team-state-store/store.d.ts +1 -1
- package/dist/features/team-mode/team-state-store/worker-resume-status.d.ts +1 -1
- package/dist/features/team-mode/team-tasklist/claim.d.ts +1 -1
- package/dist/features/team-mode/team-tasklist/dependencies.d.ts +1 -1
- package/dist/features/team-mode/team-tasklist/get.d.ts +1 -1
- package/dist/features/team-mode/team-tasklist/index.d.ts +1 -1
- package/dist/features/team-mode/team-tasklist/list.d.ts +1 -1
- package/dist/features/team-mode/team-tasklist/store.d.ts +1 -1
- package/dist/features/team-mode/team-tasklist/test-support.d.ts +1 -1
- package/dist/features/team-mode/team-tasklist/update.d.ts +1 -1
- package/dist/features/team-mode/team-worktree/cleanup.d.ts +1 -1
- package/dist/features/team-mode/team-worktree/index.d.ts +1 -1
- package/dist/features/team-mode/team-worktree/manager.d.ts +1 -1
- package/dist/features/team-mode/tools/lifecycle-create-tool.d.ts +2 -2
- package/dist/features/team-mode/tools/lifecycle-inline-spec.d.ts +2 -2
- package/dist/features/team-mode/tools/lifecycle-participant.d.ts +2 -2
- package/dist/features/team-mode/tools/lifecycle-test-fixture.d.ts +1 -1
- package/dist/features/team-mode/tools/messaging-live-delivery-recipient.d.ts +2 -2
- package/dist/features/team-mode/tools/messaging-live-delivery-reservation.d.ts +1 -1
- package/dist/features/team-mode/tools/messaging-live-delivery-state.d.ts +1 -1
- package/dist/features/team-mode/tools/messaging-live-delivery.d.ts +1 -1
- package/dist/features/team-mode/tools/messaging-runtime.d.ts +2 -2
- package/dist/features/team-mode/tools/query.d.ts +3 -3
- package/dist/features/team-mode/tools/tasks.d.ts +2 -2
- package/dist/features/team-mode/types.d.ts +1 -1
- package/dist/hooks/ast-grep-sg-provision/hook.d.ts +1 -1
- package/dist/hooks/auto-slash-command/constants.d.ts +1 -1
- package/dist/hooks/auto-slash-command/detector.d.ts +1 -1
- package/dist/hooks/auto-slash-command/processed-command-store.d.ts +1 -1
- package/dist/hooks/auto-slash-command/types.d.ts +1 -1
- package/dist/hooks/codegraph-bootstrap/hook.d.ts +1 -1
- package/dist/hooks/comment-checker/cli.d.ts +1 -1
- package/dist/hooks/comment-checker/types.d.ts +1 -1
- package/dist/hooks/delegate-task-retry/guidance.d.ts +1 -1
- package/dist/hooks/delegate-task-retry/patterns.d.ts +2 -2
- package/dist/hooks/directory-agents-injector/finder.d.ts +2 -2
- package/dist/hooks/directory-agents-injector/injector.d.ts +1 -1
- package/dist/hooks/dreamer-trigger/index.d.ts +2 -2
- package/dist/hooks/rules-injector/constants.d.ts +1 -1
- package/dist/hooks/rules-injector/matcher.d.ts +2 -2
- package/dist/hooks/rules-injector/parser.d.ts +2 -2
- package/dist/hooks/rules-injector/project-root-finder.d.ts +1 -1
- package/dist/hooks/rules-injector/rule-distance.d.ts +1 -1
- package/dist/hooks/rules-injector/rule-file-finder.d.ts +2 -2
- package/dist/hooks/rules-injector/rule-file-scanner.d.ts +1 -1
- package/dist/hooks/rules-injector/rule-scan-cache.d.ts +2 -2
- package/dist/hooks/rules-injector/types.d.ts +1 -1
- package/dist/hooks/runtime-fallback/auto-retry-signal.d.ts +1 -1
- package/dist/hooks/runtime-fallback/error-classifier.d.ts +1 -1
- package/dist/hooks/runtime-fallback/fallback-state.d.ts +1 -1
- package/dist/hooks/tank-agents-md-injector/hook.d.ts +1 -1
- package/dist/hooks/tool-pair-validator/tool-part-ids.d.ts +1 -1
- package/dist/index.js +215 -55
- package/dist/mcp/codegraph.d.ts +1 -1
- package/dist/plugin/event-error-utils.d.ts +1 -1
- package/dist/plugin/record-session-end-episode.d.ts +1 -1
- package/dist/plugin/session-memory-recorder.d.ts +1 -1
- package/dist/plugin/types.d.ts +1 -1
- package/dist/profile-adapters.d.ts +1 -1
- package/dist/shared/archive-entry-validator.d.ts +1 -1
- package/dist/shared/bun-file-shim.d.ts +1 -1
- package/dist/shared/bun-spawn-shim.d.ts +1 -1
- package/dist/shared/bun-which-shim.d.ts +1 -1
- package/dist/shared/classify-path-environment.d.ts +1 -1
- package/dist/shared/command-executor/embedded-commands.d.ts +1 -1
- package/dist/shared/command-executor/execute-command.d.ts +1 -1
- package/dist/shared/command-executor/execute-hook-command.d.ts +1 -1
- package/dist/shared/command-executor/home-directory.d.ts +1 -1
- package/dist/shared/command-executor/resolve-commands-in-text.d.ts +1 -1
- package/dist/shared/command-executor/shell-path.d.ts +1 -1
- package/dist/shared/command-executor.d.ts +1 -1
- package/dist/shared/contains-path.d.ts +1 -1
- package/dist/shared/context-limit-resolver.d.ts +2 -2
- package/dist/shared/deep-merge.d.ts +1 -1
- package/dist/shared/extract-semver.d.ts +1 -1
- package/dist/shared/fallback-chain-from-models.d.ts +1 -1
- package/dist/shared/file-utils.d.ts +1 -1
- package/dist/shared/frontmatter.d.ts +1 -1
- package/dist/shared/git-worktree/collect-git-diff-stats.d.ts +1 -1
- package/dist/shared/git-worktree/format-file-changes.d.ts +1 -1
- package/dist/shared/git-worktree/index.d.ts +1 -1
- package/dist/shared/git-worktree/parse-diff-numstat.d.ts +1 -1
- package/dist/shared/git-worktree/parse-status-porcelain-line.d.ts +1 -1
- package/dist/shared/git-worktree/parse-status-porcelain.d.ts +1 -1
- package/dist/shared/git-worktree/types.d.ts +1 -1
- package/dist/shared/internal-initiator-marker.d.ts +1 -1
- package/dist/shared/jsonc-parser.d.ts +1 -1
- package/dist/shared/logger.d.ts +1 -1
- package/dist/shared/migration/agent-category.d.ts +1 -1
- package/dist/shared/migration/agent-names.d.ts +1 -1
- package/dist/shared/migration/config-migration.d.ts +1 -1
- package/dist/shared/migration/hook-names.d.ts +1 -1
- package/dist/shared/migration/migrations-sidecar.d.ts +1 -1
- package/dist/shared/migration/model-versions.d.ts +1 -1
- package/dist/shared/migration.d.ts +1 -1
- package/dist/shared/model-capabilities/index.d.ts +3 -3
- package/dist/shared/model-capabilities-cache.d.ts +1 -1
- package/dist/shared/model-error-classifier.d.ts +2 -2
- package/dist/shared/model-format-normalizer.d.ts +1 -1
- package/dist/shared/model-normalization.d.ts +1 -1
- package/dist/shared/model-requirements.d.ts +2 -2
- package/dist/shared/model-resolution-pipeline.d.ts +3 -3
- package/dist/shared/model-resolution-types.d.ts +1 -1
- package/dist/shared/model-resolver.d.ts +2 -2
- package/dist/shared/model-sanitizer.d.ts +1 -1
- package/dist/shared/model-settings-compatibility.d.ts +2 -2
- package/dist/shared/model-string-parser.d.ts +1 -1
- package/dist/shared/model-suggestion-retry.d.ts +2 -2
- package/dist/shared/port-utils.d.ts +1 -1
- package/dist/shared/posthog.d.ts +1 -1
- package/dist/shared/process-stream-reader.d.ts +1 -1
- package/dist/shared/prompt-async-gate/message-inspection-error.d.ts +1 -1
- package/dist/shared/prompt-async-gate/pending-tool-turn.d.ts +1 -1
- package/dist/shared/prompt-async-gate/prompt-message-state.d.ts +1 -1
- package/dist/shared/prompt-async-gate/queue.d.ts +1 -1
- package/dist/shared/prompt-async-gate/recent-dispatches.d.ts +1 -1
- package/dist/shared/prompt-async-gate/reservations.d.ts +1 -1
- package/dist/shared/prompt-async-gate/semantic-dedupe.d.ts +1 -1
- package/dist/shared/prompt-async-gate/session-idle-dispatch.d.ts +1 -1
- package/dist/shared/prompt-async-gate/timing.d.ts +1 -1
- package/dist/shared/prompt-async-gate/types.d.ts +1 -1
- package/dist/shared/prompt-async-gate.d.ts +2 -2
- package/dist/shared/prompt-failure-classifier.d.ts +1 -1
- package/dist/shared/provider-model-id-transform.d.ts +1 -1
- package/dist/shared/record-type-guard.d.ts +1 -1
- package/dist/shared/replace-tool-args.d.ts +1 -1
- package/dist/shared/session-idle-settle.d.ts +1 -1
- package/dist/shared/shell-env.d.ts +1 -1
- package/dist/shared/skill-path-resolver.d.ts +1 -1
- package/dist/shared/snake-case.d.ts +1 -1
- package/dist/shared/telemetry-product-identity.d.ts +1 -1
- package/dist/shared/tmux/cmux-detect.d.ts +1 -1
- package/dist/shared/tmux/constants.d.ts +1 -1
- package/dist/shared/tmux/runner.d.ts +2 -2
- package/dist/shared/tmux/tmux-utils/adapter-deps.d.ts +1 -1
- package/dist/shared/tmux/tmux-utils/environment.d.ts +2 -2
- package/dist/shared/tmux/tmux-utils/layout.d.ts +2 -2
- package/dist/shared/tmux/tmux-utils/pane-close.d.ts +1 -1
- package/dist/shared/tmux/tmux-utils/pane-command.d.ts +1 -1
- package/dist/shared/tmux/tmux-utils/pane-dimensions.d.ts +1 -1
- package/dist/shared/tmux/tmux-utils/pane-replace.d.ts +1 -1
- package/dist/shared/tmux/tmux-utils/pane-spawn.d.ts +1 -1
- package/dist/shared/tmux/tmux-utils/server-health.d.ts +2 -2
- package/dist/shared/tmux/tmux-utils/session-spawn.d.ts +2 -2
- package/dist/shared/tmux/tmux-utils/spawn-process.d.ts +1 -1
- package/dist/shared/tmux/tmux-utils/stale-session-sweep.d.ts +2 -2
- package/dist/shared/tmux/tmux-utils/window-spawn.d.ts +1 -1
- package/dist/shared/tmux/types.d.ts +1 -1
- package/dist/shared/tool-name.d.ts +1 -1
- package/dist/shared/zip-entry-listing/powershell-zip-entry-listing.d.ts +1 -1
- package/dist/shared/zip-entry-listing/python-zip-entry-listing.d.ts +1 -1
- package/dist/shared/zip-entry-listing/read-zip-symlink-target.d.ts +1 -1
- package/dist/shared/zip-entry-listing/tar-zip-entry-listing.d.ts +1 -1
- package/dist/shared/zip-entry-listing/zipinfo-zip-entry-listing.d.ts +1 -1
- package/dist/shared/zip-entry-listing.d.ts +1 -1
- package/dist/skills/frontend/ATTRIBUTION.md +1 -1
- package/dist/skills/ultimate-browsing/ATTRIBUTION.md +1 -1
- package/dist/skills/ulw-research/ATTRIBUTION.md +1 -1
- package/dist/testing/create-gateway-relay.d.ts +5 -1
- package/dist/tools/delegate-task/model-selection.d.ts +1 -1
- package/dist/tools/delegate-task/model-string-parser.d.ts +1 -1
- package/dist/tools/delegate-task/sync-task-deps.d.ts +1 -1
- package/dist/tools/hashline-edit/autocorrect-replacement-lines.d.ts +1 -1
- package/dist/tools/hashline-edit/constants.d.ts +1 -1
- package/dist/tools/hashline-edit/diff-utils.d.ts +1 -1
- package/dist/tools/hashline-edit/edit-deduplication.d.ts +1 -1
- package/dist/tools/hashline-edit/edit-operation-primitives.d.ts +1 -1
- package/dist/tools/hashline-edit/edit-operations.d.ts +2 -2
- package/dist/tools/hashline-edit/edit-ordering.d.ts +1 -1
- package/dist/tools/hashline-edit/edit-text-normalization.d.ts +1 -1
- package/dist/tools/hashline-edit/file-text-canonicalization.d.ts +2 -2
- package/dist/tools/hashline-edit/hash-computation.d.ts +2 -2
- package/dist/tools/hashline-edit/hashline-chunk-formatter.d.ts +2 -2
- package/dist/tools/hashline-edit/hashline-edit-diff.d.ts +1 -1
- package/dist/tools/hashline-edit/normalize-edits.d.ts +2 -2
- package/dist/tools/hashline-edit/types.d.ts +1 -1
- package/dist/tools/hashline-edit/validation.d.ts +2 -2
- package/dist/tools/skill/scope-priority.d.ts +1 -1
- package/dist/tools/skill/skill-matcher.d.ts +1 -1
- package/dist/tui.js +4 -0
- package/package.json +27 -24
- package/packages/git-bash-mcp/package.json +3 -3
- package/packages/lsp-core/package.json +3 -3
- package/packages/lsp-core/src/mcp.ts +1 -1
- package/packages/lsp-daemon/dist/daemon-client.d.ts +2 -2
- package/packages/lsp-daemon/dist/daemon-client.js +2 -2
- package/packages/lsp-daemon/dist/daemon-server.js +1 -1
- package/packages/lsp-daemon/dist/index.d.ts +1 -1
- package/packages/lsp-daemon/dist/ipc-protocol.js +1 -1
- package/packages/lsp-daemon/dist/package.json +1 -1
- package/packages/lsp-daemon/dist/proxy.js +4 -4
- package/packages/lsp-daemon/dist/request-routing.d.ts +1 -1
- package/packages/lsp-daemon/dist/request-routing.js +3 -3
- package/packages/lsp-daemon/package.json +3 -3
- package/packages/lsp-tools-mcp/dist/lsp/cleanup-errors.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/client-wrapper.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/client.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/config-loader.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/connection.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/constants.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/directory-diagnostics.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/effective-extension.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/errors.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/formatters.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/infer-extension.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/json-rpc-connection.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/language-mappings.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/manager.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/process-signal-cleanup.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/process.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/server-definitions.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/server-install-state.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/server-installation.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/server-resolution.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/startup-failure.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/transport.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/types.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/utils.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/lsp/workspace-edit.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/mcp.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/missing-dependency-result.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/request-context.d.ts +1 -1
- package/packages/lsp-tools-mcp/dist/tools.d.ts +1 -1
- package/packages/lsp-tools-mcp/package.json +3 -3
- package/packages/shared-skills/package.json +2 -2
- package/packages/shared-skills/skills/frontend/ATTRIBUTION.md +1 -1
- package/packages/shared-skills/skills/ultimate-browsing/ATTRIBUTION.md +1 -1
- package/packages/shared-skills/skills/ulw-research/ATTRIBUTION.md +1 -1
package/dist/index.js
CHANGED
|
@@ -7017,7 +7017,16 @@ var init_execute_hook_command = __esm(() => {
|
|
|
7017
7017
|
// packages/utils/src/command-executor/execute-command.ts
|
|
7018
7018
|
import { exec } from "child_process";
|
|
7019
7019
|
import { promisify as promisify2 } from "util";
|
|
7020
|
-
async function executeCommand(command) {
|
|
7020
|
+
async function executeCommand(command, enforcer) {
|
|
7021
|
+
const eff = enforcer ?? globalEnforcer;
|
|
7022
|
+
if (eff) {
|
|
7023
|
+
const decision = eff.checkBash("matrixos-cli", command);
|
|
7024
|
+
if (!decision.allowed) {
|
|
7025
|
+
throw new Error(`Egress blocked: ${decision.reason}`);
|
|
7026
|
+
}
|
|
7027
|
+
} else {
|
|
7028
|
+
console.warn("[egress] executeCommand running WITHOUT bash denylist (no enforcer set)");
|
|
7029
|
+
}
|
|
7021
7030
|
try {
|
|
7022
7031
|
const { stdout, stderr } = await execAsync(command);
|
|
7023
7032
|
const out = stdout?.toString().trim() ?? "";
|
|
@@ -7036,7 +7045,7 @@ async function executeCommand(command) {
|
|
|
7036
7045
|
[stderr: ${errorMessage}]` : `[stderr: ${errorMessage}]`;
|
|
7037
7046
|
}
|
|
7038
7047
|
}
|
|
7039
|
-
var execAsync;
|
|
7048
|
+
var execAsync, globalEnforcer = null;
|
|
7040
7049
|
var init_execute_command = __esm(() => {
|
|
7041
7050
|
execAsync = promisify2(exec);
|
|
7042
7051
|
});
|
|
@@ -233068,7 +233077,7 @@ var init_audio_decode = __esm(() => {
|
|
|
233068
233077
|
});
|
|
233069
233078
|
|
|
233070
233079
|
// node_modules/.bun/@whiskeysockets+baileys@7.0.0-rc13+13d21a63c79191a3/node_modules/@whiskeysockets/baileys/lib/Utils/messages-media.js
|
|
233071
|
-
import { exec as
|
|
233080
|
+
import { exec as exec3 } from "child_process";
|
|
233072
233081
|
import * as Crypto from "crypto";
|
|
233073
233082
|
import { once } from "events";
|
|
233074
233083
|
import { createReadStream, createWriteStream, promises as fs26, WriteStream } from "fs";
|
|
@@ -233225,7 +233234,7 @@ var import_boom5, getTmpFilesDirectory = () => tmpdir8(), getImageProcessingLibr
|
|
|
233225
233234
|
}
|
|
233226
233235
|
}, extractVideoThumb = async (path28, destPath, time, size) => new Promise((resolve42, reject2) => {
|
|
233227
233236
|
const cmd = `ffmpeg -ss ${time} -i ${path28} -y -vf scale=${size.width}:-1 -vframes 1 -f image2 ${destPath}`;
|
|
233228
|
-
|
|
233237
|
+
exec3(cmd, (err) => {
|
|
233229
233238
|
if (err) {
|
|
233230
233239
|
reject2(err);
|
|
233231
233240
|
} else {
|
|
@@ -272659,12 +272668,12 @@ var import_boom18, import_long, ENFORCEMENT_TYPE_VALUES, makeMessagesRecvSocket
|
|
|
272659
272668
|
]);
|
|
272660
272669
|
}
|
|
272661
272670
|
};
|
|
272662
|
-
const processNodeWithBuffer = async (node, identifier,
|
|
272671
|
+
const processNodeWithBuffer = async (node, identifier, exec4) => {
|
|
272663
272672
|
ev.buffer();
|
|
272664
272673
|
await execTask();
|
|
272665
272674
|
ev.flush();
|
|
272666
272675
|
function execTask() {
|
|
272667
|
-
return
|
|
272676
|
+
return exec4(node, false).catch((err) => onUnexpectedError(err, identifier));
|
|
272668
272677
|
}
|
|
272669
272678
|
};
|
|
272670
272679
|
const offlineNodeProcessor = makeOfflineNodeProcessor(new Map([
|
|
@@ -272677,7 +272686,7 @@ var import_boom18, import_long, ENFORCEMENT_TYPE_VALUES, makeMessagesRecvSocket
|
|
|
272677
272686
|
onUnexpectedError,
|
|
272678
272687
|
yieldToEventLoop: () => new Promise((resolve42) => setImmediate(resolve42))
|
|
272679
272688
|
});
|
|
272680
|
-
const processNode = async (type2, node, identifier,
|
|
272689
|
+
const processNode = async (type2, node, identifier, exec4) => {
|
|
272681
272690
|
const from = node.attrs.from;
|
|
272682
272691
|
let ignoreJid = from;
|
|
272683
272692
|
if (type2 === "receipt" && from) {
|
|
@@ -272694,7 +272703,7 @@ var import_boom18, import_long, ENFORCEMENT_TYPE_VALUES, makeMessagesRecvSocket
|
|
|
272694
272703
|
if (isOffline) {
|
|
272695
272704
|
offlineNodeProcessor.enqueue(type2, node);
|
|
272696
272705
|
} else {
|
|
272697
|
-
await processNodeWithBuffer(node, identifier,
|
|
272706
|
+
await processNodeWithBuffer(node, identifier, exec4);
|
|
272698
272707
|
}
|
|
272699
272708
|
};
|
|
272700
272709
|
ws.on("CB:message", async (node) => {
|
|
@@ -297791,7 +297800,7 @@ var defaultFS, TPL_PACKAGE_JSON = (name, displayName, version3, description2, ex
|
|
|
297791
297800
|
"test": "bun test"
|
|
297792
297801
|
},
|
|
297793
297802
|
"dependencies": {
|
|
297794
|
-
"@
|
|
297803
|
+
"@matrixos/omo-config-core": "workspace:*"
|
|
297795
297804
|
},
|
|
297796
297805
|
"peerDependencies": {
|
|
297797
297806
|
"matrixos": ">=0.1.0"
|
|
@@ -297814,7 +297823,7 @@ var defaultFS, TPL_PACKAGE_JSON = (name, displayName, version3, description2, ex
|
|
|
297814
297823
|
* ${displayName} \u2014 ${description2}
|
|
297815
297824
|
* Generated by MaTrixOS Mini-OS Profile Generator.
|
|
297816
297825
|
*/
|
|
297817
|
-
import type { Profile } from "@
|
|
297826
|
+
import type { Profile } from "@matrixos/omo-config-core"
|
|
297818
297827
|
|
|
297819
297828
|
export const profile: Profile = {
|
|
297820
297829
|
name: ${JSON.stringify(name)},
|
|
@@ -297971,17 +297980,17 @@ var require_task = __commonJS((exports2, module) => {
|
|
|
297971
297980
|
this._execution = execution;
|
|
297972
297981
|
}
|
|
297973
297982
|
execute(now) {
|
|
297974
|
-
let
|
|
297983
|
+
let exec4;
|
|
297975
297984
|
try {
|
|
297976
|
-
|
|
297985
|
+
exec4 = this._execution(now);
|
|
297977
297986
|
} catch (error) {
|
|
297978
297987
|
return this.emit("task-failed", error);
|
|
297979
297988
|
}
|
|
297980
|
-
if (
|
|
297981
|
-
return
|
|
297989
|
+
if (exec4 instanceof Promise) {
|
|
297990
|
+
return exec4.then(() => this.emit("task-finished")).catch((error) => this.emit("task-failed", error));
|
|
297982
297991
|
} else {
|
|
297983
297992
|
this.emit("task-finished");
|
|
297984
|
-
return
|
|
297993
|
+
return exec4;
|
|
297985
297994
|
}
|
|
297986
297995
|
}
|
|
297987
297996
|
}
|
|
@@ -367997,7 +368006,7 @@ function getCachedVersion(options = {}) {
|
|
|
367997
368006
|
// package.json
|
|
367998
368007
|
var package_default = {
|
|
367999
368008
|
name: "@kl-c/matrixos",
|
|
368000
|
-
version: "0.1.
|
|
368009
|
+
version: "0.1.31",
|
|
368001
368010
|
description: "MaTrixOS \u2014 Agentic OS for OpenCode. Personalizable, communicating, self-improving, resilient.",
|
|
368002
368011
|
main: "./dist/index.js",
|
|
368003
368012
|
types: "dist/index.d.ts",
|
|
@@ -368029,6 +368038,9 @@ var package_default = {
|
|
|
368029
368038
|
"packages/daily-brief-core",
|
|
368030
368039
|
"packages/task-ledger-core",
|
|
368031
368040
|
"packages/rgpd-compliance-core",
|
|
368041
|
+
"packages/dashboard-core",
|
|
368042
|
+
"packages/http-server-core",
|
|
368043
|
+
"packages/webhook-core",
|
|
368032
368044
|
"packages/omo-opencode"
|
|
368033
368045
|
],
|
|
368034
368046
|
bin: {
|
|
@@ -368147,30 +368159,30 @@ var package_default = {
|
|
|
368147
368159
|
zod: "^4.4.3"
|
|
368148
368160
|
},
|
|
368149
368161
|
devDependencies: {
|
|
368150
|
-
"@
|
|
368151
|
-
"@
|
|
368152
|
-
"@
|
|
368153
|
-
"@
|
|
368154
|
-
"@
|
|
368162
|
+
"@matrixos/agents-md-core": "workspace:*",
|
|
368163
|
+
"@matrixos/boulder-state": "workspace:*",
|
|
368164
|
+
"@matrixos/claude-code-compat-core": "workspace:*",
|
|
368165
|
+
"@matrixos/comment-checker-core": "workspace:*",
|
|
368166
|
+
"@matrixos/delegate-core": "workspace:*",
|
|
368155
368167
|
"@matrixos/egress-core": "workspace:*",
|
|
368156
|
-
"@
|
|
368157
|
-
"@
|
|
368158
|
-
"@
|
|
368159
|
-
"@
|
|
368160
|
-
"@
|
|
368161
|
-
"@
|
|
368162
|
-
"@
|
|
368163
|
-
"@
|
|
368164
|
-
"@
|
|
368165
|
-
"@
|
|
368166
|
-
"@
|
|
368167
|
-
"@
|
|
368168
|
-
"@
|
|
368169
|
-
"@
|
|
368170
|
-
"@
|
|
368171
|
-
"@
|
|
368172
|
-
"@
|
|
368173
|
-
"@
|
|
368168
|
+
"@matrixos/git-bash-mcp": "workspace:*",
|
|
368169
|
+
"@matrixos/hashline-core": "workspace:*",
|
|
368170
|
+
"@matrixos/learning-loop": "workspace:*",
|
|
368171
|
+
"@matrixos/lsp-core": "workspace:*",
|
|
368172
|
+
"@matrixos/mcp-client-core": "workspace:*",
|
|
368173
|
+
"@matrixos/mcp-stdio-core": "workspace:*",
|
|
368174
|
+
"@matrixos/model-core": "workspace:*",
|
|
368175
|
+
"@matrixos/omo-config-core": "workspace:*",
|
|
368176
|
+
"@matrixos/matrix-gateway-core": "workspace:*",
|
|
368177
|
+
"@matrixos/prompts-core": "workspace:*",
|
|
368178
|
+
"@matrixos/rules-engine": "workspace:*",
|
|
368179
|
+
"@matrixos/rgpd-compliance-core": "workspace:*",
|
|
368180
|
+
"@matrixos/shared-skills": "workspace:*",
|
|
368181
|
+
"@matrixos/skills-loader-core": "workspace:*",
|
|
368182
|
+
"@matrixos/team-core": "workspace:*",
|
|
368183
|
+
"@matrixos/telemetry-core": "workspace:*",
|
|
368184
|
+
"@matrixos/tmux-core": "workspace:*",
|
|
368185
|
+
"@matrixos/utils": "workspace:*",
|
|
368174
368186
|
"@types/js-yaml": "^4.0.9",
|
|
368175
368187
|
"@types/picomatch": "^4.0.3",
|
|
368176
368188
|
"@typescript/native-preview": "7.0.0-dev.20260518.1",
|
|
@@ -442647,6 +442659,105 @@ function checkTool(enforcer, agentName, tool3, args, cwd) {
|
|
|
442647
442659
|
}
|
|
442648
442660
|
}
|
|
442649
442661
|
|
|
442662
|
+
// packages/egress-core/src/fetch-wrapper.ts
|
|
442663
|
+
function createFetchWrapper(enforcer, defaultAgent) {
|
|
442664
|
+
let installed2 = false;
|
|
442665
|
+
let savedFetch = null;
|
|
442666
|
+
let savedBunFetch = null;
|
|
442667
|
+
return {
|
|
442668
|
+
install() {
|
|
442669
|
+
if (installed2)
|
|
442670
|
+
return;
|
|
442671
|
+
installed2 = true;
|
|
442672
|
+
savedFetch = globalThis.fetch;
|
|
442673
|
+
globalThis.fetch = wrappedFetch;
|
|
442674
|
+
const anyBun = globalThis.Bun;
|
|
442675
|
+
if (anyBun && typeof anyBun.fetch === "function") {
|
|
442676
|
+
savedBunFetch = anyBun.fetch;
|
|
442677
|
+
anyBun.fetch = wrappedFetch;
|
|
442678
|
+
}
|
|
442679
|
+
},
|
|
442680
|
+
uninstall() {
|
|
442681
|
+
if (!installed2)
|
|
442682
|
+
return;
|
|
442683
|
+
installed2 = false;
|
|
442684
|
+
if (savedFetch) {
|
|
442685
|
+
globalThis.fetch = savedFetch;
|
|
442686
|
+
savedFetch = null;
|
|
442687
|
+
}
|
|
442688
|
+
const anyBun = globalThis.Bun;
|
|
442689
|
+
if (anyBun && savedBunFetch) {
|
|
442690
|
+
anyBun.fetch = savedBunFetch;
|
|
442691
|
+
savedBunFetch = null;
|
|
442692
|
+
}
|
|
442693
|
+
}
|
|
442694
|
+
};
|
|
442695
|
+
async function wrappedFetch(input, init) {
|
|
442696
|
+
const url2 = typeof input === "string" ? input : input instanceof URL ? input.href : input.url;
|
|
442697
|
+
const decision = enforcer.checkFetch(defaultAgent, url2);
|
|
442698
|
+
if (!decision.allowed) {
|
|
442699
|
+
throw new EgressBlockedError(decision.reason, url2);
|
|
442700
|
+
}
|
|
442701
|
+
return savedFetch(input, init);
|
|
442702
|
+
}
|
|
442703
|
+
}
|
|
442704
|
+
|
|
442705
|
+
class EgressBlockedError extends Error {
|
|
442706
|
+
url;
|
|
442707
|
+
constructor(message, url2) {
|
|
442708
|
+
super(message);
|
|
442709
|
+
this.name = "EgressBlockedError";
|
|
442710
|
+
this.url = url2;
|
|
442711
|
+
}
|
|
442712
|
+
}
|
|
442713
|
+
|
|
442714
|
+
// packages/egress-core/src/bash-wrapper.ts
|
|
442715
|
+
import { exec as exec2, spawn as spawn6 } from "child_process";
|
|
442716
|
+
function createBashWrapper(enforcer, defaultAgent) {
|
|
442717
|
+
let installed2 = false;
|
|
442718
|
+
let savedExec = null;
|
|
442719
|
+
let savedSpawn = null;
|
|
442720
|
+
return {
|
|
442721
|
+
install() {
|
|
442722
|
+
if (installed2)
|
|
442723
|
+
return;
|
|
442724
|
+
installed2 = true;
|
|
442725
|
+
savedExec = exec2;
|
|
442726
|
+
savedSpawn = spawn6;
|
|
442727
|
+
const wrappedExec = (command, ...rest) => {
|
|
442728
|
+
const decision = enforcer.checkBash(defaultAgent, command);
|
|
442729
|
+
if (!decision.allowed) {
|
|
442730
|
+
throw new EgressBlockedError(decision.reason, `bash:${command}`);
|
|
442731
|
+
}
|
|
442732
|
+
return savedExec(command, ...rest);
|
|
442733
|
+
};
|
|
442734
|
+
__require("child_process").exec = wrappedExec;
|
|
442735
|
+
const wrappedSpawn = (command, ...rest) => {
|
|
442736
|
+
const cmdStr = Array.isArray(command) ? command.join(" ") : command;
|
|
442737
|
+
const decision = enforcer.checkBash(defaultAgent, cmdStr);
|
|
442738
|
+
if (!decision.allowed) {
|
|
442739
|
+
throw new EgressBlockedError(decision.reason, `bash:${cmdStr}`);
|
|
442740
|
+
}
|
|
442741
|
+
return savedSpawn(command, ...rest);
|
|
442742
|
+
};
|
|
442743
|
+
__require("child_process").spawn = wrappedSpawn;
|
|
442744
|
+
},
|
|
442745
|
+
uninstall() {
|
|
442746
|
+
if (!installed2)
|
|
442747
|
+
return;
|
|
442748
|
+
installed2 = false;
|
|
442749
|
+
if (savedExec) {
|
|
442750
|
+
__require("child_process").exec = savedExec;
|
|
442751
|
+
savedExec = null;
|
|
442752
|
+
}
|
|
442753
|
+
if (savedSpawn) {
|
|
442754
|
+
__require("child_process").spawn = savedSpawn;
|
|
442755
|
+
savedSpawn = null;
|
|
442756
|
+
}
|
|
442757
|
+
}
|
|
442758
|
+
};
|
|
442759
|
+
}
|
|
442760
|
+
|
|
442650
442761
|
// packages/omo-opencode/src/config/schema/egress.ts
|
|
442651
442762
|
var EgressConfigSectionSchema = EgressConfigSchema.optional();
|
|
442652
442763
|
// packages/omo-opencode/src/config/schema/experimental.ts
|
|
@@ -443157,14 +443268,36 @@ class TelegramAdapter {
|
|
|
443157
443268
|
this.handleUpdate(ctx);
|
|
443158
443269
|
});
|
|
443159
443270
|
if (this.config.polling) {
|
|
443160
|
-
|
|
443161
|
-
|
|
443162
|
-
|
|
443271
|
+
const startWithRetry = (attempt) => {
|
|
443272
|
+
this.bot.start({ drop_pending_updates: false, onStart: () => {} }).catch((err) => {
|
|
443273
|
+
const detail = err instanceof Error ? err.message : String(err);
|
|
443274
|
+
const is409 = detail.includes("409") || detail.includes("Conflict");
|
|
443275
|
+
console.error("Telegram polling error:", detail);
|
|
443276
|
+
if (is409) {
|
|
443277
|
+
const backoffMs = Math.min(30000, 1000 * Math.pow(2, attempt));
|
|
443278
|
+
console.warn(`[telegram] 409 detected, retrying polling in ${backoffMs}ms (attempt ${attempt + 1})`);
|
|
443279
|
+
setTimeout(() => startWithRetry(attempt + 1), backoffMs);
|
|
443280
|
+
}
|
|
443281
|
+
});
|
|
443282
|
+
};
|
|
443283
|
+
startWithRetry(0);
|
|
443163
443284
|
}
|
|
443164
443285
|
}
|
|
443165
443286
|
async disconnect() {
|
|
443166
443287
|
if (typeof this.bot.stop === "function") {
|
|
443167
|
-
|
|
443288
|
+
try {
|
|
443289
|
+
await this.bot.stop();
|
|
443290
|
+
} catch {}
|
|
443291
|
+
if (typeof this.bot.isRunning === "function") {
|
|
443292
|
+
let tries = 0;
|
|
443293
|
+
while (this.bot.isRunning() && tries < 10) {
|
|
443294
|
+
await new Promise((r) => setTimeout(r, 150));
|
|
443295
|
+
try {
|
|
443296
|
+
await this.bot.stop();
|
|
443297
|
+
} catch {}
|
|
443298
|
+
tries++;
|
|
443299
|
+
}
|
|
443300
|
+
}
|
|
443168
443301
|
}
|
|
443169
443302
|
}
|
|
443170
443303
|
normalize(raw) {
|
|
@@ -444556,7 +444689,7 @@ function writePostHogActivityState(stateDir, nextState, diagnostics) {
|
|
|
444556
444689
|
|
|
444557
444690
|
// packages/telemetry-core/src/constants.ts
|
|
444558
444691
|
var DEFAULT_POSTHOG_HOST = "https://us.i.posthog.com";
|
|
444559
|
-
var DEFAULT_POSTHOG_API_KEY = "
|
|
444692
|
+
var DEFAULT_POSTHOG_API_KEY = "";
|
|
444560
444693
|
|
|
444561
444694
|
// packages/telemetry-core/src/env.ts
|
|
444562
444695
|
var TRUTHY_DISABLE_VALUES = ["1", "true", "yes"];
|
|
@@ -451279,7 +451412,7 @@ function recordPluginTelemetry(input2) {
|
|
|
451279
451412
|
|
|
451280
451413
|
// packages/omo-opencode/src/testing/create-gateway-relay.ts
|
|
451281
451414
|
function createGatewayRelayHandler(deps) {
|
|
451282
|
-
const { input: input2, gateway, log: log8 } = deps;
|
|
451415
|
+
const { input: input2, gateway, log: log8, relayModel } = deps;
|
|
451283
451416
|
return async (env2) => {
|
|
451284
451417
|
const inboundText = env2.content.text;
|
|
451285
451418
|
if (!inboundText) {
|
|
@@ -451305,6 +451438,7 @@ function createGatewayRelayHandler(deps) {
|
|
|
451305
451438
|
path: { id: sessionID },
|
|
451306
451439
|
body: {
|
|
451307
451440
|
agent: "morpheus",
|
|
451441
|
+
...relayModel ? { model: { providerID: relayModel.providerID, modelID: relayModel.modelID } } : {},
|
|
451308
451442
|
parts: [{ type: "text", text: inboundText }]
|
|
451309
451443
|
},
|
|
451310
451444
|
query: { directory: input2.directory }
|
|
@@ -452131,6 +452265,10 @@ function createPluginModule(overrides2 = {}) {
|
|
|
452131
452265
|
try {
|
|
452132
452266
|
const enforcer = createEgressEnforcer(pluginConfig.egress);
|
|
452133
452267
|
egressHook = createEgressHook(enforcer);
|
|
452268
|
+
const fetchWrapper = createFetchWrapper(enforcer, "matrixos-cli");
|
|
452269
|
+
const bashWrapper = createBashWrapper(enforcer, "matrixos-cli");
|
|
452270
|
+
fetchWrapper.install();
|
|
452271
|
+
bashWrapper.install();
|
|
452134
452272
|
deps.log("[egress] active", {
|
|
452135
452273
|
agents: pluginConfig.egress.agents ? Object.keys(pluginConfig.egress.agents).length : 0
|
|
452136
452274
|
});
|
|
@@ -452171,32 +452309,53 @@ function createPluginModule(overrides2 = {}) {
|
|
|
452171
452309
|
});
|
|
452172
452310
|
let gatewayWatcher;
|
|
452173
452311
|
let gatewayReloadInFlight = false;
|
|
452312
|
+
function parseRelayModel(raw) {
|
|
452313
|
+
if (typeof raw !== "string" || raw.length === 0)
|
|
452314
|
+
return;
|
|
452315
|
+
const slash = raw.indexOf("/");
|
|
452316
|
+
if (slash < 1 || slash === raw.length - 1)
|
|
452317
|
+
return;
|
|
452318
|
+
return { providerID: raw.slice(0, slash), modelID: raw.slice(slash + 1) };
|
|
452319
|
+
}
|
|
452174
452320
|
function buildGwConfig() {
|
|
452175
452321
|
const source = pluginConfig.gateway;
|
|
452176
452322
|
if (!source) {
|
|
452177
452323
|
throw new Error("[gateway] buildGwConfig called without gateway config");
|
|
452178
452324
|
}
|
|
452179
|
-
const channels3 = source.channels
|
|
452325
|
+
const channels3 = (source.channels ?? []).filter((ch) => {
|
|
452326
|
+
if ("botToken" in ch && typeof ch.botToken === "string" && ch.botToken.startsWith("env:") && !process.env[ch.botToken.slice("env:".length)]) {
|
|
452327
|
+
deps.log(`[gateway] skipping channel ${ch.type}: ${ch.botToken.slice("env:".length)} not set`);
|
|
452328
|
+
return false;
|
|
452329
|
+
}
|
|
452330
|
+
return true;
|
|
452331
|
+
}).map((ch) => {
|
|
452180
452332
|
if ("botToken" in ch && typeof ch.botToken === "string" && ch.botToken.length > 0) {
|
|
452181
452333
|
return { ...ch, botToken: resolveGatewayToken(ch.botToken) };
|
|
452182
452334
|
}
|
|
452183
452335
|
return ch;
|
|
452184
452336
|
});
|
|
452185
|
-
return { ...source, channels: channels3
|
|
452337
|
+
return { ...source, channels: channels3 };
|
|
452186
452338
|
}
|
|
452187
452339
|
async function createAndStartGateway() {
|
|
452188
452340
|
if (!pluginConfig.gateway?.enabled)
|
|
452189
452341
|
return;
|
|
452342
|
+
if (gateway) {
|
|
452343
|
+
try {
|
|
452344
|
+
await gateway.stop();
|
|
452345
|
+
} catch {}
|
|
452346
|
+
await new Promise((resolve43) => setTimeout(resolve43, 3000));
|
|
452347
|
+
}
|
|
452190
452348
|
try {
|
|
452191
452349
|
const gwConfig = buildGwConfig();
|
|
452192
|
-
|
|
452193
|
-
|
|
452194
|
-
|
|
452195
|
-
|
|
452196
|
-
|
|
452197
|
-
|
|
452198
|
-
|
|
452199
|
-
});
|
|
452350
|
+
const gwInstance = new MatrixGateway(gwConfig);
|
|
452351
|
+
const relayModel = parseRelayModel(pluginConfig.agents?.morpheus?.model);
|
|
452352
|
+
const relayHandler = createGatewayRelayHandler({
|
|
452353
|
+
input: input2,
|
|
452354
|
+
gateway: gwInstance,
|
|
452355
|
+
log: deps.log,
|
|
452356
|
+
relayModel
|
|
452357
|
+
});
|
|
452358
|
+
gwInstance.setHandler(relayHandler);
|
|
452200
452359
|
gateway = gwInstance;
|
|
452201
452360
|
for (const ch of gwConfig.channels) {
|
|
452202
452361
|
if (ch.type === "telegram") {
|
|
@@ -452227,6 +452386,7 @@ function createPluginModule(overrides2 = {}) {
|
|
|
452227
452386
|
loadGatewayEnvFile(undefined, true);
|
|
452228
452387
|
if (gateway) {
|
|
452229
452388
|
await gateway.stop();
|
|
452389
|
+
await new Promise((resolve43) => setTimeout(resolve43, 1000));
|
|
452230
452390
|
}
|
|
452231
452391
|
await createAndStartGateway();
|
|
452232
452392
|
} catch (error) {
|
package/dist/mcp/codegraph.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ResolveCodegraphCommandOptions } from "@
|
|
1
|
+
import type { ResolveCodegraphCommandOptions } from "@matrixos/utils";
|
|
2
2
|
import type { CodegraphConfig } from "../config/schema/codegraph";
|
|
3
3
|
import type { LocalMcpConfig } from "./lsp";
|
|
4
4
|
import { type RuntimeExecutableResolver } from "./runtime-executable";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isRecord } from "@
|
|
1
|
+
import { isRecord } from "@matrixos/utils";
|
|
2
2
|
export { isRecord };
|
|
3
3
|
export declare function normalizeFallbackModelID(modelID: string): string;
|
|
4
4
|
export declare function extractErrorName(error: unknown): string | undefined;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* state tracking (duration, messageCount, errorCount).
|
|
5
5
|
* Backward-compat: accepts an injected memoryStore for isolated use.
|
|
6
6
|
*/
|
|
7
|
-
import { type Episode, type MemoryStore } from "@
|
|
7
|
+
import { type Episode, type MemoryStore } from "@matrixos/learning-loop";
|
|
8
8
|
export interface RecordSessionEndOptions {
|
|
9
9
|
sessionId: string;
|
|
10
10
|
reason?: string;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* to build a continuous episodic memory instead of a single end-of-session
|
|
6
6
|
* snapshot.
|
|
7
7
|
*/
|
|
8
|
-
import { type Episode, type MemoryStore } from "@
|
|
8
|
+
import { type Episode, type MemoryStore } from "@matrixos/learning-loop";
|
|
9
9
|
export interface SessionMemoryRecorder {
|
|
10
10
|
/** The underlying store (exposed so callers can retrieve it for backward-compat return shapes). */
|
|
11
11
|
memoryStore: MemoryStore;
|
package/dist/plugin/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Plugin, ToolDefinition } from "@opencode-ai/plugin";
|
|
2
|
-
import type { TmuxConfig } from "@
|
|
2
|
+
import type { TmuxConfig } from "@matrixos/tmux-core";
|
|
3
3
|
export type PluginContext = Parameters<Plugin>[0];
|
|
4
4
|
export type PluginInstance = Awaited<ReturnType<Plugin>>;
|
|
5
5
|
type ChatHeadersHook = PluginInstance extends {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@
|
|
1
|
+
export * from "@matrixos/utils/archive-entry-validator";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { bunFile, bunWrite, type BunFileLike } from "@
|
|
1
|
+
export { bunFile, bunWrite, type BunFileLike } from "@matrixos/utils/runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { createNodeSpawnOptions, createNodeSpawnSyncOptions, spawn, spawnSync, type SpawnedProcess, type SpawnOptions, type SpawnSyncResult, } from "@
|
|
1
|
+
export { createNodeSpawnOptions, createNodeSpawnSyncOptions, spawn, spawnSync, type SpawnedProcess, type SpawnOptions, type SpawnSyncResult, } from "@matrixos/utils/runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { bunWhich } from "@
|
|
1
|
+
export { bunWhich } from "@matrixos/utils/runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@
|
|
1
|
+
export * from "@matrixos/utils/classify-path-environment";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@
|
|
1
|
+
export * from "@matrixos/utils/command-executor/embedded-commands";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@
|
|
1
|
+
export * from "@matrixos/utils/command-executor/execute-command";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@
|
|
1
|
+
export * from "@matrixos/utils/command-executor/execute-hook-command";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@
|
|
1
|
+
export * from "@matrixos/utils/command-executor/home-directory";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@
|
|
1
|
+
export * from "@matrixos/utils/command-executor/resolve-commands-in-text";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@
|
|
1
|
+
export * from "@matrixos/utils/command-executor/shell-path";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@
|
|
1
|
+
export * from "@matrixos/utils/command-executor";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { containsPath, isWithinProject } from "@
|
|
1
|
+
export { containsPath, isWithinProject } from "@matrixos/utils";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { ContextLimitModelCacheState } from "@
|
|
2
|
-
export { resolveActualContextLimit } from "@
|
|
1
|
+
export type { ContextLimitModelCacheState } from "@matrixos/model-core";
|
|
2
|
+
export { resolveActualContextLimit } from "@matrixos/model-core";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { deepMerge, isPlainObject } from "@
|
|
1
|
+
export { deepMerge, isPlainObject } from "@matrixos/utils";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { extractSemverFromOutput } from "@
|
|
1
|
+
export { extractSemverFromOutput } from "@matrixos/utils";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { parseFallbackModelEntry, parseFallbackModelObjectEntry, findMostSpecificFallbackEntry, buildFallbackChainFromModels, } from "@
|
|
1
|
+
export { parseFallbackModelEntry, parseFallbackModelObjectEntry, findMostSpecificFallbackEntry, buildFallbackChainFromModels, } from "@matrixos/model-core";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { isMarkdownFile, isSymbolicLink, resolveSymlink, resolveSymlinkAsync } from "@
|
|
1
|
+
export { isMarkdownFile, isSymbolicLink, resolveSymlink, resolveSymlinkAsync } from "@matrixos/utils";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { parseFrontmatter, type FrontmatterResult } from "@
|
|
1
|
+
export { parseFrontmatter, type FrontmatterResult } from "@matrixos/utils";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@
|
|
1
|
+
export * from "@matrixos/utils/git-worktree/collect-git-diff-stats";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@
|
|
1
|
+
export * from "@matrixos/utils/git-worktree/format-file-changes";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@
|
|
1
|
+
export * from "@matrixos/utils/git-worktree/index";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@
|
|
1
|
+
export * from "@matrixos/utils/git-worktree/parse-diff-numstat";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@
|
|
1
|
+
export * from "@matrixos/utils/git-worktree/parse-status-porcelain-line";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@
|
|
1
|
+
export * from "@matrixos/utils/git-worktree/parse-status-porcelain";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@
|
|
1
|
+
export * from "@matrixos/utils/git-worktree/types";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@
|
|
1
|
+
export * from "@matrixos/utils/internal-initiator-marker";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { clearPluginConfigFileDetectionCache, detectConfigFile, detectPluginConfigFile, parseJsonc, parseJsoncSafe, readJsoncFile, type DetectPluginConfigFileOptions, type JsoncParseResult, } from "@
|
|
1
|
+
export { clearPluginConfigFileDetectionCache, detectConfigFile, detectPluginConfigFile, parseJsonc, parseJsoncSafe, readJsoncFile, type DetectPluginConfigFileOptions, type JsoncParseResult, } from "@matrixos/utils";
|
package/dist/shared/logger.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type LoggerTestOverrides } from "@
|
|
1
|
+
import { type LoggerTestOverrides } from "@matrixos/utils";
|
|
2
2
|
export declare const log: (message: string, data?: unknown) => void;
|
|
3
3
|
export declare const getLogFilePath: () => string;
|
|
4
4
|
export declare function _setLoggerForTesting(overrides: LoggerTestOverrides): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@
|
|
1
|
+
export * from "@matrixos/utils/migration/agent-category";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@
|
|
1
|
+
export * from "@matrixos/utils/migration/agent-names";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@
|
|
1
|
+
export * from "@matrixos/utils/migration/config-migration";
|