@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
|
@@ -10,7 +10,7 @@ export declare function applyModelResolution(input: {
|
|
|
10
10
|
};
|
|
11
11
|
availableModels: Set<string>;
|
|
12
12
|
systemDefaultModel?: string;
|
|
13
|
-
}): import("@
|
|
13
|
+
}): import("@matrixos/model-core").PipelineModelResolutionResult | undefined;
|
|
14
14
|
export declare function getFirstFallbackModel(requirement?: {
|
|
15
15
|
fallbackChain?: {
|
|
16
16
|
providers: string[];
|
package/dist/agents/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
2
|
-
import { isClaudeFable5Model, isClaudeFableOrMythosModel, isClaudeOpus46Model, isClaudeOpus47Model, isClaudeOpus47OrLaterModel, isClaudeOpus48Model, isGeminiModel, isGlmModel, isGptModel, isKimiK2Model, isKimiK27Model, isMiniMaxModel } from "@
|
|
2
|
+
import { isClaudeFable5Model, isClaudeFableOrMythosModel, isClaudeOpus46Model, isClaudeOpus47Model, isClaudeOpus47OrLaterModel, isClaudeOpus48Model, isGeminiModel, isGlmModel, isGptModel, isKimiK2Model, isKimiK27Model, isMiniMaxModel } from "@matrixos/model-core";
|
|
3
3
|
export { isClaudeFable5Model, isClaudeFableOrMythosModel, isClaudeOpus46Model, isClaudeOpus47Model, isClaudeOpus47OrLaterModel, isClaudeOpus48Model, isGeminiModel, isGlmModel, isGptModel, isKimiK2Model, isKimiK27Model, isMiniMaxModel, };
|
|
4
4
|
/**
|
|
5
5
|
* Anthropic Opus 4.7+, Fable, and Mythos models reject thinking.type "enabled";
|
package/dist/cli/generate.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type GenerateMiniOSResult } from "@
|
|
2
|
-
import { type Profile } from "@
|
|
1
|
+
import { type GenerateMiniOSResult } from "@matrixos/omo-config-core";
|
|
2
|
+
import { type Profile } from "@matrixos/omo-config-core";
|
|
3
3
|
export interface LoadProfileOptions {
|
|
4
4
|
/** Directory containing `assets/profiles/{name}.json` (default: repo root) */
|
|
5
5
|
readonly profilesDir?: string;
|
package/dist/cli/index.js
CHANGED
|
@@ -2145,7 +2145,7 @@ var package_default;
|
|
|
2145
2145
|
var init_package = __esm(() => {
|
|
2146
2146
|
package_default = {
|
|
2147
2147
|
name: "@kl-c/matrixos",
|
|
2148
|
-
version: "0.1.
|
|
2148
|
+
version: "0.1.31",
|
|
2149
2149
|
description: "MaTrixOS \u2014 Agentic OS for OpenCode. Personalizable, communicating, self-improving, resilient.",
|
|
2150
2150
|
main: "./dist/index.js",
|
|
2151
2151
|
types: "dist/index.d.ts",
|
|
@@ -2177,6 +2177,9 @@ var init_package = __esm(() => {
|
|
|
2177
2177
|
"packages/daily-brief-core",
|
|
2178
2178
|
"packages/task-ledger-core",
|
|
2179
2179
|
"packages/rgpd-compliance-core",
|
|
2180
|
+
"packages/dashboard-core",
|
|
2181
|
+
"packages/http-server-core",
|
|
2182
|
+
"packages/webhook-core",
|
|
2180
2183
|
"packages/omo-opencode"
|
|
2181
2184
|
],
|
|
2182
2185
|
bin: {
|
|
@@ -2295,30 +2298,30 @@ var init_package = __esm(() => {
|
|
|
2295
2298
|
zod: "^4.4.3"
|
|
2296
2299
|
},
|
|
2297
2300
|
devDependencies: {
|
|
2298
|
-
"@
|
|
2299
|
-
"@
|
|
2300
|
-
"@
|
|
2301
|
-
"@
|
|
2302
|
-
"@
|
|
2301
|
+
"@matrixos/agents-md-core": "workspace:*",
|
|
2302
|
+
"@matrixos/boulder-state": "workspace:*",
|
|
2303
|
+
"@matrixos/claude-code-compat-core": "workspace:*",
|
|
2304
|
+
"@matrixos/comment-checker-core": "workspace:*",
|
|
2305
|
+
"@matrixos/delegate-core": "workspace:*",
|
|
2303
2306
|
"@matrixos/egress-core": "workspace:*",
|
|
2304
|
-
"@
|
|
2305
|
-
"@
|
|
2306
|
-
"@
|
|
2307
|
-
"@
|
|
2308
|
-
"@
|
|
2309
|
-
"@
|
|
2310
|
-
"@
|
|
2311
|
-
"@
|
|
2312
|
-
"@
|
|
2313
|
-
"@
|
|
2314
|
-
"@
|
|
2315
|
-
"@
|
|
2316
|
-
"@
|
|
2317
|
-
"@
|
|
2318
|
-
"@
|
|
2319
|
-
"@
|
|
2320
|
-
"@
|
|
2321
|
-
"@
|
|
2307
|
+
"@matrixos/git-bash-mcp": "workspace:*",
|
|
2308
|
+
"@matrixos/hashline-core": "workspace:*",
|
|
2309
|
+
"@matrixos/learning-loop": "workspace:*",
|
|
2310
|
+
"@matrixos/lsp-core": "workspace:*",
|
|
2311
|
+
"@matrixos/mcp-client-core": "workspace:*",
|
|
2312
|
+
"@matrixos/mcp-stdio-core": "workspace:*",
|
|
2313
|
+
"@matrixos/model-core": "workspace:*",
|
|
2314
|
+
"@matrixos/omo-config-core": "workspace:*",
|
|
2315
|
+
"@matrixos/matrix-gateway-core": "workspace:*",
|
|
2316
|
+
"@matrixos/prompts-core": "workspace:*",
|
|
2317
|
+
"@matrixos/rules-engine": "workspace:*",
|
|
2318
|
+
"@matrixos/rgpd-compliance-core": "workspace:*",
|
|
2319
|
+
"@matrixos/shared-skills": "workspace:*",
|
|
2320
|
+
"@matrixos/skills-loader-core": "workspace:*",
|
|
2321
|
+
"@matrixos/team-core": "workspace:*",
|
|
2322
|
+
"@matrixos/telemetry-core": "workspace:*",
|
|
2323
|
+
"@matrixos/tmux-core": "workspace:*",
|
|
2324
|
+
"@matrixos/utils": "workspace:*",
|
|
2322
2325
|
"@types/js-yaml": "^4.0.9",
|
|
2323
2326
|
"@types/picomatch": "^4.0.3",
|
|
2324
2327
|
"@typescript/native-preview": "7.0.0-dev.20260518.1",
|
|
@@ -6827,6 +6830,21 @@ function parseJsonc(content) {
|
|
|
6827
6830
|
}
|
|
6828
6831
|
return result;
|
|
6829
6832
|
}
|
|
6833
|
+
function parseJsoncSafe(content) {
|
|
6834
|
+
const errors = [];
|
|
6835
|
+
const data = parse2(stripBom2(content), errors, {
|
|
6836
|
+
allowTrailingComma: true,
|
|
6837
|
+
disallowComments: false
|
|
6838
|
+
});
|
|
6839
|
+
return {
|
|
6840
|
+
data: errors.length > 0 ? null : data,
|
|
6841
|
+
errors: errors.map((e) => ({
|
|
6842
|
+
message: printParseErrorCode(e.error),
|
|
6843
|
+
offset: e.offset,
|
|
6844
|
+
length: e.length
|
|
6845
|
+
}))
|
|
6846
|
+
};
|
|
6847
|
+
}
|
|
6830
6848
|
function detectConfigFile(basePath) {
|
|
6831
6849
|
const jsoncPath = `${basePath}.jsonc`;
|
|
6832
6850
|
const jsonPath = `${basePath}.json`;
|
|
@@ -82157,7 +82175,7 @@ var defaultFS, TPL_PACKAGE_JSON = (name2, displayName, version2, description, ex
|
|
|
82157
82175
|
"test": "bun test"
|
|
82158
82176
|
},
|
|
82159
82177
|
"dependencies": {
|
|
82160
|
-
"@
|
|
82178
|
+
"@matrixos/omo-config-core": "workspace:*"
|
|
82161
82179
|
},
|
|
82162
82180
|
"peerDependencies": {
|
|
82163
82181
|
"matrixos": ">=0.1.0"
|
|
@@ -82180,7 +82198,7 @@ var defaultFS, TPL_PACKAGE_JSON = (name2, displayName, version2, description, ex
|
|
|
82180
82198
|
* ${displayName} \u2014 ${description}
|
|
82181
82199
|
* Generated by MaTrixOS Mini-OS Profile Generator.
|
|
82182
82200
|
*/
|
|
82183
|
-
import type { Profile } from "@
|
|
82201
|
+
import type { Profile } from "@matrixos/omo-config-core"
|
|
82184
82202
|
|
|
82185
82203
|
export const profile: Profile = {
|
|
82186
82204
|
name: ${JSON.stringify(name2)},
|
|
@@ -117730,6 +117748,108 @@ var init_generate = __esm(() => {
|
|
|
117730
117748
|
};
|
|
117731
117749
|
});
|
|
117732
117750
|
|
|
117751
|
+
// packages/omo-opencode/src/cli/migrate.ts
|
|
117752
|
+
var exports_migrate = {};
|
|
117753
|
+
__export(exports_migrate, {
|
|
117754
|
+
executeMigrateCommand: () => executeMigrateCommand
|
|
117755
|
+
});
|
|
117756
|
+
import * as fs21 from "fs";
|
|
117757
|
+
function executeMigrateCommand(opts, targetPath = "matrixos.jsonc") {
|
|
117758
|
+
const fsys = opts.fs ?? fs21;
|
|
117759
|
+
if (!fsys.existsSync(opts.sourcePath)) {
|
|
117760
|
+
throw new Error(`Source config not found: ${opts.sourcePath}`);
|
|
117761
|
+
}
|
|
117762
|
+
const raw = fsys.readFileSync(opts.sourcePath, "utf-8");
|
|
117763
|
+
const parsed = parseJsoncSafe(raw);
|
|
117764
|
+
const source = parsed?.data ?? parsed;
|
|
117765
|
+
if (typeof source !== "object" || source === null) {
|
|
117766
|
+
throw new Error("Source config is not a valid JSONC object");
|
|
117767
|
+
}
|
|
117768
|
+
const target = {};
|
|
117769
|
+
const ignored = [];
|
|
117770
|
+
for (const [k, v] of Object.entries(source)) {
|
|
117771
|
+
if (KNOWN_KEYS.includes(k))
|
|
117772
|
+
target[k] = v;
|
|
117773
|
+
else
|
|
117774
|
+
ignored.push(k);
|
|
117775
|
+
}
|
|
117776
|
+
target.migratedFrom = "omo";
|
|
117777
|
+
target.migratedAt = new Date().toISOString();
|
|
117778
|
+
const serialized = JSON.stringify(target, null, 2) + `
|
|
117779
|
+
`;
|
|
117780
|
+
fsys.writeFileSync(targetPath, serialized);
|
|
117781
|
+
return {
|
|
117782
|
+
stdout: `Migrated OMO config '${opts.sourcePath}' \u2192 '${targetPath}'
|
|
117783
|
+
` + `Carried: ${KNOWN_KEYS.filter((k) => (k in target)).join(", ") || "(none)"}
|
|
117784
|
+
` + (ignored.length ? `Ignored (review manually): ${ignored.join(", ")}
|
|
117785
|
+
` : `No ignored keys.
|
|
117786
|
+
`),
|
|
117787
|
+
targetPath,
|
|
117788
|
+
config: target,
|
|
117789
|
+
ignoredKeys: ignored
|
|
117790
|
+
};
|
|
117791
|
+
}
|
|
117792
|
+
var KNOWN_KEYS;
|
|
117793
|
+
var init_migrate = __esm(() => {
|
|
117794
|
+
init_src();
|
|
117795
|
+
KNOWN_KEYS = [
|
|
117796
|
+
"model",
|
|
117797
|
+
"agents",
|
|
117798
|
+
"hooks",
|
|
117799
|
+
"egress",
|
|
117800
|
+
"permissions",
|
|
117801
|
+
"learning",
|
|
117802
|
+
"telemetry",
|
|
117803
|
+
"cost",
|
|
117804
|
+
"dashboard",
|
|
117805
|
+
"gateway",
|
|
117806
|
+
"mcpServers",
|
|
117807
|
+
"skills"
|
|
117808
|
+
];
|
|
117809
|
+
});
|
|
117810
|
+
|
|
117811
|
+
// packages/omo-opencode/src/cli/profile.ts
|
|
117812
|
+
var exports_profile = {};
|
|
117813
|
+
__export(exports_profile, {
|
|
117814
|
+
executeCreateProfileCommand: () => executeCreateProfileCommand,
|
|
117815
|
+
DEFAULT_USER_PROFILES_DIR: () => DEFAULT_USER_PROFILES_DIR
|
|
117816
|
+
});
|
|
117817
|
+
import * as fs22 from "fs";
|
|
117818
|
+
import * as path27 from "path";
|
|
117819
|
+
import * as os13 from "os";
|
|
117820
|
+
function executeCreateProfileCommand(opts) {
|
|
117821
|
+
if (!/^[a-z0-9][a-z0-9-]{1,30}$/.test(opts.name)) {
|
|
117822
|
+
throw new Error("Profile name must match [a-z0-9][a-z0-9-]{1,30} (lowercase, digits, hyphens).");
|
|
117823
|
+
}
|
|
117824
|
+
const fsys = opts.fs ?? fs22;
|
|
117825
|
+
const dir = opts.profilesDir ?? DEFAULT_USER_PROFILES_DIR;
|
|
117826
|
+
if (!fsys.existsSync(dir))
|
|
117827
|
+
fsys.mkdirSync(dir, { recursive: true });
|
|
117828
|
+
const profilePath = path27.join(dir, `${opts.name}.json`);
|
|
117829
|
+
const profile2 = ProfileSchema.parse({
|
|
117830
|
+
name: opts.name,
|
|
117831
|
+
displayName: opts.displayName ?? opts.name.charAt(0).toUpperCase() + opts.name.slice(1),
|
|
117832
|
+
description: opts.description ?? `Mini-OS profile for ${opts.name}.`,
|
|
117833
|
+
version: "0.1.0",
|
|
117834
|
+
baseAgent: opts.baseAgent ?? "morpheus",
|
|
117835
|
+
extends: opts.extends ?? [],
|
|
117836
|
+
agents: {}
|
|
117837
|
+
});
|
|
117838
|
+
fsys.writeFileSync(profilePath, JSON.stringify(profile2, null, 2) + `
|
|
117839
|
+
`);
|
|
117840
|
+
return {
|
|
117841
|
+
stdout: `Profile '${opts.name}' created at ${profilePath}
|
|
117842
|
+
Edit it, then run: matrixos generate ${opts.name}`,
|
|
117843
|
+
profilePath,
|
|
117844
|
+
profile: profile2
|
|
117845
|
+
};
|
|
117846
|
+
}
|
|
117847
|
+
var DEFAULT_USER_PROFILES_DIR;
|
|
117848
|
+
var init_profile2 = __esm(() => {
|
|
117849
|
+
init_src4();
|
|
117850
|
+
DEFAULT_USER_PROFILES_DIR = path27.join(os13.homedir(), ".matrixos", "profiles");
|
|
117851
|
+
});
|
|
117852
|
+
|
|
117733
117853
|
// packages/omo-opencode/src/cli/cost-report.ts
|
|
117734
117854
|
var exports_cost_report = {};
|
|
117735
117855
|
__export(exports_cost_report, {
|
|
@@ -117737,10 +117857,10 @@ __export(exports_cost_report, {
|
|
|
117737
117857
|
});
|
|
117738
117858
|
import { Database as Database6 } from "bun:sqlite";
|
|
117739
117859
|
import { existsSync as existsSync71 } from "fs";
|
|
117740
|
-
import * as
|
|
117741
|
-
import * as
|
|
117860
|
+
import * as path28 from "path";
|
|
117861
|
+
import * as os14 from "os";
|
|
117742
117862
|
function executeCostReportCommand(args) {
|
|
117743
|
-
const dbPath =
|
|
117863
|
+
const dbPath = path28.join(os14.homedir(), ".matrixos", "cost.db");
|
|
117744
117864
|
if (!existsSync71(dbPath)) {
|
|
117745
117865
|
return { exitCode: 1, stdout: `No cost data available
|
|
117746
117866
|
` };
|
|
@@ -117872,7 +117992,7 @@ __export(exports_profile_resolve, {
|
|
|
117872
117992
|
executeProfileResolveCommand: () => executeProfileResolveCommand
|
|
117873
117993
|
});
|
|
117874
117994
|
import { existsSync as existsSync72, readdirSync as readdirSync15, readFileSync as readFileSync57 } from "fs";
|
|
117875
|
-
import { join as
|
|
117995
|
+
import { join as join79, resolve as resolve17, dirname as dirname29 } from "path";
|
|
117876
117996
|
function executeProfileResolveCommand(args) {
|
|
117877
117997
|
if (args.options.help) {
|
|
117878
117998
|
return {
|
|
@@ -117897,7 +118017,7 @@ function executeProfileResolveCommand(args) {
|
|
|
117897
118017
|
` };
|
|
117898
118018
|
}
|
|
117899
118019
|
const name2 = nameRaw.endsWith(".json") ? nameRaw.slice(0, -5) : nameRaw;
|
|
117900
|
-
const profilesDir =
|
|
118020
|
+
const profilesDir = join79(REPO_ROOT2, PROFILES_RELATIVE2);
|
|
117901
118021
|
if (!existsSync72(profilesDir)) {
|
|
117902
118022
|
return { exitCode: 1, stdout: `error: profiles directory not found at ${profilesDir}
|
|
117903
118023
|
` };
|
|
@@ -117917,7 +118037,7 @@ function executeProfileResolveCommand(args) {
|
|
|
117917
118037
|
const registry2 = {};
|
|
117918
118038
|
for (const file3 of profileFiles) {
|
|
117919
118039
|
try {
|
|
117920
|
-
const filePath =
|
|
118040
|
+
const filePath = join79(profilesDir, file3);
|
|
117921
118041
|
const raw = JSON.parse(readFileSync57(filePath, "utf-8"));
|
|
117922
118042
|
const profile2 = ProfileSchema.parse(raw);
|
|
117923
118043
|
registry2[profile2.name] = profile2;
|
|
@@ -117981,7 +118101,7 @@ __export(exports_export, {
|
|
|
117981
118101
|
executeExportCommand: () => executeExportCommand
|
|
117982
118102
|
});
|
|
117983
118103
|
import { existsSync as existsSync73, readFileSync as readFileSync58, writeFileSync as writeFileSync25, copyFileSync as copyFileSync7, realpathSync as realpathSync11, mkdirSync as mkdirSync26 } from "fs";
|
|
117984
|
-
import { isAbsolute as isAbsolute7, join as
|
|
118104
|
+
import { isAbsolute as isAbsolute7, join as join80, resolve as resolve18, dirname as dirname30 } from "path";
|
|
117985
118105
|
import { spawnSync as spawnSync3 } from "child_process";
|
|
117986
118106
|
function setShell(shell) {
|
|
117987
118107
|
activeShell = shell;
|
|
@@ -117990,7 +118110,7 @@ function getShell() {
|
|
|
117990
118110
|
return activeShell;
|
|
117991
118111
|
}
|
|
117992
118112
|
function executeExportCommand(args) {
|
|
117993
|
-
const
|
|
118113
|
+
const fs23 = args.options.fs ?? defaultExportFS;
|
|
117994
118114
|
const shell = args.options.shell ?? activeShell;
|
|
117995
118115
|
const name2 = args.positional[0] ?? args.options.profile;
|
|
117996
118116
|
if (!name2) {
|
|
@@ -118001,7 +118121,7 @@ function executeExportCommand(args) {
|
|
|
118001
118121
|
};
|
|
118002
118122
|
}
|
|
118003
118123
|
try {
|
|
118004
|
-
loadProfile(name2, { profilesDir: args.options.profilesDir, fs:
|
|
118124
|
+
loadProfile(name2, { profilesDir: args.options.profilesDir, fs: fs23 });
|
|
118005
118125
|
} catch (err) {
|
|
118006
118126
|
const message = err instanceof Error ? err.message : String(err);
|
|
118007
118127
|
return { exitCode: 1, stdout: `error: ${message}
|
|
@@ -118015,23 +118135,23 @@ function executeExportCommand(args) {
|
|
|
118015
118135
|
name: name2,
|
|
118016
118136
|
targetDir: absoluteTargetDir,
|
|
118017
118137
|
profilesDir: args.options.profilesDir,
|
|
118018
|
-
fs:
|
|
118138
|
+
fs: fs23
|
|
118019
118139
|
});
|
|
118020
118140
|
} catch (err) {
|
|
118021
118141
|
const message = err instanceof Error ? err.message : String(err);
|
|
118022
118142
|
return { exitCode: 1, stdout: `error: generate failed: ${message}
|
|
118023
118143
|
` };
|
|
118024
118144
|
}
|
|
118025
|
-
const pkgPath =
|
|
118145
|
+
const pkgPath = join80(absoluteTargetDir, "package.json");
|
|
118026
118146
|
let pkg;
|
|
118027
118147
|
try {
|
|
118028
|
-
pkg = JSON.parse(
|
|
118148
|
+
pkg = JSON.parse(fs23.readFileSync(pkgPath, "utf-8"));
|
|
118029
118149
|
} catch (err) {
|
|
118030
118150
|
return { exitCode: 1, stdout: `error: failed to read package.json: ${err}
|
|
118031
118151
|
` };
|
|
118032
118152
|
}
|
|
118033
118153
|
delete pkg.private;
|
|
118034
|
-
|
|
118154
|
+
fs23.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + `
|
|
118035
118155
|
`);
|
|
118036
118156
|
const hasDeps = typeof pkg.dependencies === "object" && pkg.dependencies !== null && Object.keys(pkg.dependencies).length > 0;
|
|
118037
118157
|
const hasPeerDeps = typeof pkg.peerDependencies === "object" && pkg.peerDependencies !== null && Object.keys(pkg.peerDependencies).length > 0;
|
|
@@ -118062,15 +118182,15 @@ ${packResult.stdout}
|
|
|
118062
118182
|
return { exitCode: 1, stdout: `error: npm pack produced no tarball name in output
|
|
118063
118183
|
` };
|
|
118064
118184
|
}
|
|
118065
|
-
let tgzPath =
|
|
118185
|
+
let tgzPath = join80(absoluteTargetDir, tgzName);
|
|
118066
118186
|
if (args.options.output) {
|
|
118067
118187
|
const outputPath = args.options.output;
|
|
118068
118188
|
const absoluteOutput = isAbsolute7(outputPath) ? outputPath : resolve18(process.cwd(), outputPath);
|
|
118069
118189
|
const outputDir = dirname30(absoluteOutput);
|
|
118070
|
-
if (!
|
|
118071
|
-
|
|
118190
|
+
if (!fs23.existsSync(outputDir)) {
|
|
118191
|
+
fs23.mkdirSync(outputDir, { recursive: true });
|
|
118072
118192
|
}
|
|
118073
|
-
|
|
118193
|
+
fs23.copyFileSync(tgzPath, absoluteOutput);
|
|
118074
118194
|
tgzPath = absoluteOutput;
|
|
118075
118195
|
}
|
|
118076
118196
|
return {
|
|
@@ -118221,7 +118341,7 @@ __export(exports_rgpd_command, {
|
|
|
118221
118341
|
executeRgpdConsentCommand: () => executeRgpdConsentCommand
|
|
118222
118342
|
});
|
|
118223
118343
|
function executeRgpdForgetCommand(args) {
|
|
118224
|
-
const { forget } = __require("@
|
|
118344
|
+
const { forget } = __require("@matrixos/rgpd-compliance-core");
|
|
118225
118345
|
const forgetOptions = {
|
|
118226
118346
|
dryRun: args.options.dryRun ?? false
|
|
118227
118347
|
};
|
|
@@ -118273,7 +118393,7 @@ function executeRgpdForgetCommand(args) {
|
|
|
118273
118393
|
}
|
|
118274
118394
|
}
|
|
118275
118395
|
function executeRgpdExportCommand(args) {
|
|
118276
|
-
const { exportData } = __require("@
|
|
118396
|
+
const { exportData } = __require("@matrixos/rgpd-compliance-core");
|
|
118277
118397
|
try {
|
|
118278
118398
|
const exportOptions = {
|
|
118279
118399
|
redactSecrets: args.options.redactSecrets ?? false
|
|
@@ -118307,7 +118427,7 @@ function executeRgpdExportCommand(args) {
|
|
|
118307
118427
|
}
|
|
118308
118428
|
}
|
|
118309
118429
|
function executeRgpdConsentCommand(args) {
|
|
118310
|
-
const { loadConsent, saveConsent, getDefaultConsent } = __require("@
|
|
118430
|
+
const { loadConsent, saveConsent, getDefaultConsent } = __require("@matrixos/rgpd-compliance-core");
|
|
118311
118431
|
try {
|
|
118312
118432
|
const hasFlags = args.options.enableMemory !== undefined || args.options.enableGateway !== undefined || args.options.enableTelemetry !== undefined;
|
|
118313
118433
|
if (!hasFlags) {
|
|
@@ -124741,7 +124861,7 @@ function writePostHogActivityState(stateDir, nextState, diagnostics) {
|
|
|
124741
124861
|
|
|
124742
124862
|
// packages/telemetry-core/src/constants.ts
|
|
124743
124863
|
var DEFAULT_POSTHOG_HOST = "https://us.i.posthog.com";
|
|
124744
|
-
var DEFAULT_POSTHOG_API_KEY = "
|
|
124864
|
+
var DEFAULT_POSTHOG_API_KEY = "";
|
|
124745
124865
|
|
|
124746
124866
|
// packages/telemetry-core/src/env.ts
|
|
124747
124867
|
var TRUTHY_DISABLE_VALUES = ["1", "true", "yes"];
|
|
@@ -141799,6 +141919,13 @@ function createDashboardServer(dataProvider, config4) {
|
|
|
141799
141919
|
return Response.json(dataProvider.getLogs(), { headers: jsonHeaders });
|
|
141800
141920
|
case "/api/config": {
|
|
141801
141921
|
if (req.method === "PUT") {
|
|
141922
|
+
const xPassphrase = req.headers.get("x-passphrase");
|
|
141923
|
+
if (!config4.gatewayPassphrase) {
|
|
141924
|
+
return Response.json({ error: "Passphrase not configured" }, { status: 400, headers: jsonHeaders });
|
|
141925
|
+
}
|
|
141926
|
+
if (!xPassphrase || xPassphrase !== config4.gatewayPassphrase) {
|
|
141927
|
+
return Response.json({ error: "Invalid passphrase" }, { status: 401, headers: jsonHeaders });
|
|
141928
|
+
}
|
|
141802
141929
|
const body = await req.json();
|
|
141803
141930
|
const result = dataProvider.updateConfig(body);
|
|
141804
141931
|
return Response.json(result, { headers: jsonHeaders });
|
|
@@ -141890,7 +142017,7 @@ function loadGatewayPassphrase() {
|
|
|
141890
142017
|
}
|
|
141891
142018
|
async function dashboardCli(options) {
|
|
141892
142019
|
const port = options.port ?? 9123;
|
|
141893
|
-
const host = options.host ?? "
|
|
142020
|
+
const host = options.host ?? "127.0.0.1";
|
|
141894
142021
|
const frontendDir = path25.resolve(import.meta.dir, "../features/dashboard/frontend");
|
|
141895
142022
|
const gatewayPassphrase = loadGatewayPassphrase();
|
|
141896
142023
|
console.log(`[dashboard] starting MaTrixOS dashboard on http://${host}:${port}`);
|
|
@@ -142213,7 +142340,7 @@ function configureRuntimeCommands(program2) {
|
|
|
142213
142340
|
const exitCode = await architectRollback({ ...options, id });
|
|
142214
142341
|
process.exit(exitCode);
|
|
142215
142342
|
});
|
|
142216
|
-
program2.command("dashboard").description("Start the MaTrixOS web dashboard (port 9123)").option("-p, --port <number>", "HTTP port", "9123").option("--host <addr>", "Bind address", "
|
|
142343
|
+
program2.command("dashboard").description("Start the MaTrixOS web dashboard (port 9123)").option("-p, --port <number>", "HTTP port", "9123").option("--host <addr>", "Bind address", "127.0.0.1").option("--daemon", "Run in background (no Ctrl+C)").action(async (options) => {
|
|
142217
142344
|
const exitCode = await dashboardCli({
|
|
142218
142345
|
port: parseInt(options.port ?? "9123", 10),
|
|
142219
142346
|
host: options.host,
|
|
@@ -142373,6 +142500,8 @@ Examples:
|
|
|
142373
142500
|
Available profiles: trader, plumber (see assets/profiles/)
|
|
142374
142501
|
`).action(async (name2, options) => {
|
|
142375
142502
|
const { executeGenerateCommand: executeGenerateCommand2 } = await Promise.resolve().then(() => (init_generate(), exports_generate));
|
|
142503
|
+
const { executeMigrateCommand: executeMigrateCommand2 } = await Promise.resolve().then(() => (init_migrate(), exports_migrate));
|
|
142504
|
+
const { executeCreateProfileCommand: executeCreateProfileCommand2 } = await Promise.resolve().then(() => (init_profile2(), exports_profile));
|
|
142376
142505
|
const result = executeGenerateCommand2({
|
|
142377
142506
|
positional: name2 ? [name2] : [],
|
|
142378
142507
|
options: { targetDir: options.targetDir, packageName: options.packageName, list: options.list }
|
|
@@ -142380,6 +142509,34 @@ Available profiles: trader, plumber (see assets/profiles/)
|
|
|
142380
142509
|
process.stdout.write(result.stdout);
|
|
142381
142510
|
process.exit(result.exitCode);
|
|
142382
142511
|
});
|
|
142512
|
+
program2.command("profile <action> [name]").description("Manage business profiles: `matrixos profile create <metier>`").option("-d, --display-name <name>", "Human-friendly name").option("--description <text>", "Profile description").option("-b, --base-agent <agent>", "Base agent (default: morpheus)").option("-e, --extends <list>", "Comma-separated base profiles to extend").action(async (action, name2, options) => {
|
|
142513
|
+
if (action !== "create") {
|
|
142514
|
+
process.stdout.write(`Unknown profile action: ${action}. Only 'create' is supported.
|
|
142515
|
+
`);
|
|
142516
|
+
return;
|
|
142517
|
+
}
|
|
142518
|
+
if (!name2) {
|
|
142519
|
+
process.stdout.write(`Usage: matrixos profile create <metier>
|
|
142520
|
+
`);
|
|
142521
|
+
return;
|
|
142522
|
+
}
|
|
142523
|
+
const { executeCreateProfileCommand: executeCreateProfileCommand2 } = await Promise.resolve().then(() => (init_profile2(), exports_profile));
|
|
142524
|
+
const result = executeCreateProfileCommand2({
|
|
142525
|
+
name: name2,
|
|
142526
|
+
displayName: options.displayName,
|
|
142527
|
+
description: options.description,
|
|
142528
|
+
baseAgent: options.baseAgent,
|
|
142529
|
+
extends: options.extends ? options.extends.split(",").map((x) => x.trim()).filter(Boolean) : undefined
|
|
142530
|
+
});
|
|
142531
|
+
process.stdout.write(result.stdout + `
|
|
142532
|
+
`);
|
|
142533
|
+
});
|
|
142534
|
+
program2.command("migrate").description("Import an OMO config into MaTrixOS (scope minimal: known keys)").requiredOption("--from-omo <path>", "Path to the source omo.jsonc").option("--out <path>", "Target config path", "matrixos.jsonc").action(async (options) => {
|
|
142535
|
+
const { executeMigrateCommand: executeMigrateCommand2 } = await Promise.resolve().then(() => (init_migrate(), exports_migrate));
|
|
142536
|
+
const result = executeMigrateCommand2({ sourcePath: options.fromOmo }, options.out ?? "matrixos.jsonc");
|
|
142537
|
+
process.stdout.write(result.stdout + `
|
|
142538
|
+
`);
|
|
142539
|
+
});
|
|
142383
142540
|
program2.command("cost report").description("Display cost usage and budget reports").option("--period <period>", "Report period: daily, weekly, monthly", "daily").option("--json", "Output as JSON").action(async (options) => {
|
|
142384
142541
|
const { executeCostReportCommand: executeCostReportCommand2 } = await Promise.resolve().then(() => (init_cost_report(), exports_cost_report));
|
|
142385
142542
|
const result = executeCostReportCommand2({ positional: [], options: { period: options.period, json: options.json } });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface MigrateOptions {
|
|
2
|
+
sourcePath: string;
|
|
3
|
+
fs?: {
|
|
4
|
+
readFileSync(p: string, e: "utf-8"): string;
|
|
5
|
+
writeFileSync(p: string, c: string): void;
|
|
6
|
+
existsSync(p: string): boolean;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export interface MigrateResult {
|
|
10
|
+
stdout: string;
|
|
11
|
+
targetPath: string;
|
|
12
|
+
config: Record<string, unknown>;
|
|
13
|
+
ignoredKeys: string[];
|
|
14
|
+
}
|
|
15
|
+
export declare function executeMigrateCommand(opts: MigrateOptions, targetPath?: string): MigrateResult;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type Profile } from "@matrixos/omo-config-core";
|
|
2
|
+
export interface CreateProfileOptions {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
baseAgent?: string;
|
|
7
|
+
extends?: string[];
|
|
8
|
+
profilesDir?: string;
|
|
9
|
+
fs?: {
|
|
10
|
+
writeFileSync(p: string, c: string): void;
|
|
11
|
+
mkdirSync(p: string, o?: {
|
|
12
|
+
recursive?: boolean;
|
|
13
|
+
}): void;
|
|
14
|
+
existsSync(p: string): boolean;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export declare const DEFAULT_USER_PROFILES_DIR: string;
|
|
18
|
+
export interface CreateProfileResult {
|
|
19
|
+
stdout: string;
|
|
20
|
+
profilePath: string;
|
|
21
|
+
profile: Profile;
|
|
22
|
+
}
|
|
23
|
+
export declare function executeCreateProfileCommand(opts: CreateProfileOptions): CreateProfileResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { transformModelForProviderDisplay as transformModelForProvider } from "@
|
|
1
|
+
export { transformModelForProviderDisplay as transformModelForProvider } from "@matrixos/model-core";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ATTRIBUTION / NOTICE
|
|
2
2
|
|
|
3
|
-
This package (`@
|
|
3
|
+
This package (`@matrixos/shared-skills`) includes third-party content that is
|
|
4
4
|
redistributed under its original license, consistent with the project's distribution
|
|
5
5
|
license (see `LICENSE.md`: "All third party components incorporated into the
|
|
6
6
|
oh-my-opencode Software are licensed under the original license provided by the owner of
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ATTRIBUTION / NOTICE
|
|
2
2
|
|
|
3
|
-
This skill (`ultimate-browsing`, part of `@
|
|
3
|
+
This skill (`ultimate-browsing`, part of `@matrixos/shared-skills`) ships
|
|
4
4
|
project-original content plus two third-party tools that it installs at runtime
|
|
5
5
|
(it does NOT vendor their source). Each runtime tool's license and required
|
|
6
6
|
notices are reproduced below.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ATTRIBUTION / NOTICE
|
|
2
2
|
|
|
3
|
-
This skill (`ulw-research`, part of `@
|
|
3
|
+
This skill (`ulw-research`, part of `@matrixos/shared-skills`) is authored by
|
|
4
4
|
the oh-my-openagent project. One design idea is adapted from a third-party project,
|
|
5
5
|
credited below. No third-party source is vendored here — only the verification idea
|
|
6
6
|
is adapted into this skill's prompt contract.
|