newtype-profile 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +82 -0
- package/README.md +235 -0
- package/README.zh-cn.md +235 -0
- package/dist/agents/archivist.d.ts +5 -0
- package/dist/agents/chief.d.ts +5 -0
- package/dist/agents/deputy.d.ts +3 -0
- package/dist/agents/editor.d.ts +5 -0
- package/dist/agents/extractor.d.ts +5 -0
- package/dist/agents/fact-checker.d.ts +5 -0
- package/dist/agents/index.d.ts +4 -0
- package/dist/agents/researcher.d.ts +5 -0
- package/dist/agents/types.d.ts +49 -0
- package/dist/agents/utils.d.ts +13 -0
- package/dist/agents/utils.test.d.ts +1 -0
- package/dist/agents/writer.d.ts +5 -0
- package/dist/auth/antigravity/accounts.d.ts +40 -0
- package/dist/auth/antigravity/accounts.test.d.ts +1 -0
- package/dist/auth/antigravity/browser.d.ts +27 -0
- package/dist/auth/antigravity/browser.test.d.ts +1 -0
- package/dist/auth/antigravity/cli.d.ts +2 -0
- package/dist/auth/antigravity/cli.test.d.ts +1 -0
- package/dist/auth/antigravity/constants.d.ts +98 -0
- package/dist/auth/antigravity/constants.test.d.ts +1 -0
- package/dist/auth/antigravity/fetch.d.ts +69 -0
- package/dist/auth/antigravity/index.d.ts +13 -0
- package/dist/auth/antigravity/integration.test.d.ts +10 -0
- package/dist/auth/antigravity/message-converter.d.ts +54 -0
- package/dist/auth/antigravity/oauth.d.ts +51 -0
- package/dist/auth/antigravity/oauth.test.d.ts +1 -0
- package/dist/auth/antigravity/plugin.d.ts +54 -0
- package/dist/auth/antigravity/project.d.ts +10 -0
- package/dist/auth/antigravity/request.d.ts +116 -0
- package/dist/auth/antigravity/request.test.d.ts +1 -0
- package/dist/auth/antigravity/response.d.ts +137 -0
- package/dist/auth/antigravity/storage.d.ts +5 -0
- package/dist/auth/antigravity/storage.test.d.ts +1 -0
- package/dist/auth/antigravity/thinking.d.ts +278 -0
- package/dist/auth/antigravity/thinking.test.d.ts +10 -0
- package/dist/auth/antigravity/thought-signature-store.d.ts +52 -0
- package/dist/auth/antigravity/token.d.ts +38 -0
- package/dist/auth/antigravity/token.test.d.ts +1 -0
- package/dist/auth/antigravity/tools.d.ts +119 -0
- package/dist/auth/antigravity/types.d.ts +229 -0
- package/dist/cli/commands/auth.d.ts +2 -0
- package/dist/cli/config-manager.d.ts +91 -0
- package/dist/cli/config-manager.test.d.ts +1 -0
- package/dist/cli/doctor/checks/auth.d.ts +7 -0
- package/dist/cli/doctor/checks/auth.test.d.ts +1 -0
- package/dist/cli/doctor/checks/config.d.ts +8 -0
- package/dist/cli/doctor/checks/config.test.d.ts +1 -0
- package/dist/cli/doctor/checks/dependencies.d.ts +8 -0
- package/dist/cli/doctor/checks/dependencies.test.d.ts +1 -0
- package/dist/cli/doctor/checks/gh.d.ts +13 -0
- package/dist/cli/doctor/checks/gh.test.d.ts +1 -0
- package/dist/cli/doctor/checks/index.d.ts +11 -0
- package/dist/cli/doctor/checks/lsp.d.ts +8 -0
- package/dist/cli/doctor/checks/lsp.test.d.ts +1 -0
- package/dist/cli/doctor/checks/mcp.d.ts +6 -0
- package/dist/cli/doctor/checks/mcp.test.d.ts +1 -0
- package/dist/cli/doctor/checks/opencode.d.ts +10 -0
- package/dist/cli/doctor/checks/opencode.test.d.ts +1 -0
- package/dist/cli/doctor/checks/plugin.d.ts +4 -0
- package/dist/cli/doctor/checks/plugin.test.d.ts +1 -0
- package/dist/cli/doctor/checks/version.d.ts +4 -0
- package/dist/cli/doctor/checks/version.test.d.ts +1 -0
- package/dist/cli/doctor/constants.d.ts +40 -0
- package/dist/cli/doctor/formatter.d.ts +12 -0
- package/dist/cli/doctor/formatter.test.d.ts +1 -0
- package/dist/cli/doctor/index.d.ts +5 -0
- package/dist/cli/doctor/runner.d.ts +7 -0
- package/dist/cli/doctor/runner.test.d.ts +1 -0
- package/dist/cli/doctor/types.d.ts +91 -0
- package/dist/cli/get-local-version/formatter.d.ts +3 -0
- package/dist/cli/get-local-version/index.d.ts +3 -0
- package/dist/cli/get-local-version/types.d.ts +13 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +23589 -0
- package/dist/cli/install.d.ts +2 -0
- package/dist/cli/run/completion.d.ts +2 -0
- package/dist/cli/run/completion.test.d.ts +1 -0
- package/dist/cli/run/events.d.ts +11 -0
- package/dist/cli/run/events.test.d.ts +1 -0
- package/dist/cli/run/index.d.ts +2 -0
- package/dist/cli/run/runner.d.ts +2 -0
- package/dist/cli/run/types.d.ts +71 -0
- package/dist/cli/types.d.ts +27 -0
- package/dist/config/index.d.ts +2 -0
- package/dist/config/schema.d.ts +1404 -0
- package/dist/config/schema.test.d.ts +1 -0
- package/dist/features/background-agent/concurrency.d.ts +10 -0
- package/dist/features/background-agent/concurrency.test.d.ts +1 -0
- package/dist/features/background-agent/index.d.ts +3 -0
- package/dist/features/background-agent/manager.d.ts +56 -0
- package/dist/features/background-agent/manager.test.d.ts +1 -0
- package/dist/features/background-agent/types.d.ts +64 -0
- package/dist/features/boulder-state/constants.d.ts +10 -0
- package/dist/features/boulder-state/index.d.ts +3 -0
- package/dist/features/boulder-state/storage.d.ts +28 -0
- package/dist/features/boulder-state/storage.test.d.ts +1 -0
- package/dist/features/boulder-state/types.d.ts +24 -0
- package/dist/features/builtin-commands/commands.d.ts +2 -0
- package/dist/features/builtin-commands/index.d.ts +2 -0
- package/dist/features/builtin-commands/templates/init-deep.d.ts +1 -0
- package/dist/features/builtin-commands/templates/ralph-loop.d.ts +2 -0
- package/dist/features/builtin-commands/templates/refactor.d.ts +1 -0
- package/dist/features/builtin-commands/templates/start-work.d.ts +1 -0
- package/dist/features/builtin-commands/types.d.ts +6 -0
- package/dist/features/builtin-skills/index.d.ts +2 -0
- package/dist/features/builtin-skills/skills.d.ts +2 -0
- package/dist/features/builtin-skills/types.d.ts +15 -0
- package/dist/features/claude-code-agent-loader/index.d.ts +2 -0
- package/dist/features/claude-code-agent-loader/loader.d.ts +3 -0
- package/dist/features/claude-code-agent-loader/types.d.ts +14 -0
- package/dist/features/claude-code-command-loader/index.d.ts +2 -0
- package/dist/features/claude-code-command-loader/loader.d.ts +6 -0
- package/dist/features/claude-code-command-loader/types.d.ts +42 -0
- package/dist/features/claude-code-mcp-loader/env-expander.d.ts +2 -0
- package/dist/features/claude-code-mcp-loader/index.d.ts +10 -0
- package/dist/features/claude-code-mcp-loader/loader.d.ts +4 -0
- package/dist/features/claude-code-mcp-loader/loader.test.d.ts +1 -0
- package/dist/features/claude-code-mcp-loader/transformer.d.ts +2 -0
- package/dist/features/claude-code-mcp-loader/types.d.ts +35 -0
- package/dist/features/claude-code-plugin-loader/index.d.ts +3 -0
- package/dist/features/claude-code-plugin-loader/loader.d.ts +20 -0
- package/dist/features/claude-code-plugin-loader/types.d.ts +186 -0
- package/dist/features/claude-code-session-state/index.d.ts +1 -0
- package/dist/features/claude-code-session-state/state.d.ts +4 -0
- package/dist/features/context-injector/collector.d.ts +11 -0
- package/dist/features/context-injector/collector.test.d.ts +1 -0
- package/dist/features/context-injector/index.d.ts +3 -0
- package/dist/features/context-injector/injector.d.ts +39 -0
- package/dist/features/context-injector/injector.test.d.ts +1 -0
- package/dist/features/context-injector/types.d.ts +83 -0
- package/dist/features/hook-message-injector/constants.d.ts +3 -0
- package/dist/features/hook-message-injector/index.d.ts +4 -0
- package/dist/features/hook-message-injector/injector.d.ts +11 -0
- package/dist/features/hook-message-injector/types.d.ts +44 -0
- package/dist/features/opencode-skill-loader/async-loader.d.ts +6 -0
- package/dist/features/opencode-skill-loader/async-loader.test.d.ts +1 -0
- package/dist/features/opencode-skill-loader/blocking.d.ts +2 -0
- package/dist/features/opencode-skill-loader/blocking.test.d.ts +1 -0
- package/dist/features/opencode-skill-loader/discover-worker.d.ts +1 -0
- package/dist/features/opencode-skill-loader/index.d.ts +4 -0
- package/dist/features/opencode-skill-loader/loader.d.ts +16 -0
- package/dist/features/opencode-skill-loader/loader.test.d.ts +1 -0
- package/dist/features/opencode-skill-loader/merger.d.ts +7 -0
- package/dist/features/opencode-skill-loader/skill-content.d.ts +5 -0
- package/dist/features/opencode-skill-loader/skill-content.test.d.ts +1 -0
- package/dist/features/opencode-skill-loader/types.d.ts +34 -0
- package/dist/features/skill-mcp-manager/env-cleaner.d.ts +2 -0
- package/dist/features/skill-mcp-manager/env-cleaner.test.d.ts +1 -0
- package/dist/features/skill-mcp-manager/index.d.ts +2 -0
- package/dist/features/skill-mcp-manager/manager.d.ts +29 -0
- package/dist/features/skill-mcp-manager/manager.test.d.ts +1 -0
- package/dist/features/skill-mcp-manager/types.d.ts +11 -0
- package/dist/features/task-toast-manager/index.d.ts +2 -0
- package/dist/features/task-toast-manager/manager.d.ts +56 -0
- package/dist/features/task-toast-manager/manager.test.d.ts +1 -0
- package/dist/features/task-toast-manager/types.d.ts +16 -0
- package/dist/google-auth.d.ts +3 -0
- package/dist/google-auth.js +3871 -0
- package/dist/hooks/agent-usage-reminder/constants.d.ts +5 -0
- package/dist/hooks/agent-usage-reminder/index.d.ts +22 -0
- package/dist/hooks/agent-usage-reminder/storage.d.ts +4 -0
- package/dist/hooks/agent-usage-reminder/types.d.ts +6 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/executor.d.ts +4 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/executor.test.d.ts +1 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/index.d.ts +17 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/parser.d.ts +2 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-deduplication.d.ts +7 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-deduplication.test.d.ts +1 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-executor.d.ts +3 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-purge-errors.d.ts +7 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-storage.d.ts +2 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-supersede.d.ts +6 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-types.d.ts +36 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/storage.d.ts +28 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/storage.test.d.ts +1 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/types.d.ts +42 -0
- package/dist/hooks/auto-slash-command/constants.d.ts +5 -0
- package/dist/hooks/auto-slash-command/detector.d.ts +9 -0
- package/dist/hooks/auto-slash-command/detector.test.d.ts +1 -0
- package/dist/hooks/auto-slash-command/executor.d.ts +11 -0
- package/dist/hooks/auto-slash-command/index.d.ts +12 -0
- package/dist/hooks/auto-slash-command/index.test.d.ts +1 -0
- package/dist/hooks/auto-slash-command/types.d.ts +27 -0
- package/dist/hooks/auto-update-checker/cache.d.ts +3 -0
- package/dist/hooks/auto-update-checker/checker.d.ts +20 -0
- package/dist/hooks/auto-update-checker/constants.d.ts +13 -0
- package/dist/hooks/auto-update-checker/index.d.ts +16 -0
- package/dist/hooks/auto-update-checker/index.test.d.ts +1 -0
- package/dist/hooks/auto-update-checker/types.d.ts +25 -0
- package/dist/hooks/background-notification/index.d.ts +12 -0
- package/dist/hooks/background-notification/types.d.ts +4 -0
- package/dist/hooks/chief-orchestrator/index.d.ts +35 -0
- package/dist/hooks/chief-orchestrator/index.test.d.ts +1 -0
- package/dist/hooks/claude-code-hooks/config-loader.d.ts +13 -0
- package/dist/hooks/claude-code-hooks/config.d.ts +3 -0
- package/dist/hooks/claude-code-hooks/index.d.ts +48 -0
- package/dist/hooks/claude-code-hooks/plugin-config.d.ts +8 -0
- package/dist/hooks/claude-code-hooks/post-tool-use.d.ts +40 -0
- package/dist/hooks/claude-code-hooks/pre-compact.d.ts +16 -0
- package/dist/hooks/claude-code-hooks/pre-tool-use.d.ts +25 -0
- package/dist/hooks/claude-code-hooks/stop.d.ts +20 -0
- package/dist/hooks/claude-code-hooks/todo.d.ts +12 -0
- package/dist/hooks/claude-code-hooks/tool-input-cache.d.ts +5 -0
- package/dist/hooks/claude-code-hooks/transcript.d.ts +38 -0
- package/dist/hooks/claude-code-hooks/types.d.ts +183 -0
- package/dist/hooks/claude-code-hooks/user-prompt-submit.d.ts +22 -0
- package/dist/hooks/comment-checker/cli.d.ts +53 -0
- package/dist/hooks/comment-checker/constants.d.ts +3 -0
- package/dist/hooks/comment-checker/downloader.d.ts +25 -0
- package/dist/hooks/comment-checker/filters/bdd.d.ts +2 -0
- package/dist/hooks/comment-checker/filters/directive.d.ts +2 -0
- package/dist/hooks/comment-checker/filters/docstring.d.ts +2 -0
- package/dist/hooks/comment-checker/filters/index.d.ts +7 -0
- package/dist/hooks/comment-checker/filters/shebang.d.ts +2 -0
- package/dist/hooks/comment-checker/index.d.ts +19 -0
- package/dist/hooks/comment-checker/output/formatter.d.ts +2 -0
- package/dist/hooks/comment-checker/output/index.d.ts +2 -0
- package/dist/hooks/comment-checker/output/xml-builder.d.ts +2 -0
- package/dist/hooks/comment-checker/types.d.ts +31 -0
- package/dist/hooks/compaction-context-injector/index.d.ts +2 -0
- package/dist/hooks/context-window-monitor.d.ts +18 -0
- package/dist/hooks/directory-agents-injector/constants.d.ts +3 -0
- package/dist/hooks/directory-agents-injector/index.d.ts +26 -0
- package/dist/hooks/directory-agents-injector/storage.d.ts +3 -0
- package/dist/hooks/directory-agents-injector/types.d.ts +5 -0
- package/dist/hooks/directory-readme-injector/constants.d.ts +3 -0
- package/dist/hooks/directory-readme-injector/index.d.ts +26 -0
- package/dist/hooks/directory-readme-injector/storage.d.ts +3 -0
- package/dist/hooks/directory-readme-injector/types.d.ts +5 -0
- package/dist/hooks/edit-error-recovery/index.d.ts +31 -0
- package/dist/hooks/edit-error-recovery/index.test.d.ts +1 -0
- package/dist/hooks/empty-message-sanitizer/index.d.ts +12 -0
- package/dist/hooks/empty-task-response-detector.d.ts +12 -0
- package/dist/hooks/index.d.ts +30 -0
- package/dist/hooks/interactive-bash-session/constants.d.ts +4 -0
- package/dist/hooks/interactive-bash-session/index.d.ts +23 -0
- package/dist/hooks/interactive-bash-session/storage.d.ts +4 -0
- package/dist/hooks/interactive-bash-session/types.d.ts +10 -0
- package/dist/hooks/keyword-detector/constants.d.ts +12 -0
- package/dist/hooks/keyword-detector/detector.d.ts +11 -0
- package/dist/hooks/keyword-detector/index.d.ts +22 -0
- package/dist/hooks/keyword-detector/index.test.d.ts +1 -0
- package/dist/hooks/keyword-detector/types.d.ts +4 -0
- package/dist/hooks/non-interactive-env/constants.d.ts +34 -0
- package/dist/hooks/non-interactive-env/detector.d.ts +1 -0
- package/dist/hooks/non-interactive-env/index.d.ts +14 -0
- package/dist/hooks/non-interactive-env/index.test.d.ts +1 -0
- package/dist/hooks/non-interactive-env/types.d.ts +3 -0
- package/dist/hooks/preemptive-compaction/constants.d.ts +3 -0
- package/dist/hooks/preemptive-compaction/index.d.ts +24 -0
- package/dist/hooks/preemptive-compaction/types.d.ts +17 -0
- package/dist/hooks/prometheus-md-only/constants.d.ts +6 -0
- package/dist/hooks/prometheus-md-only/index.d.ts +12 -0
- package/dist/hooks/prometheus-md-only/index.test.d.ts +1 -0
- package/dist/hooks/ralph-loop/constants.d.ts +5 -0
- package/dist/hooks/ralph-loop/index.d.ts +20 -0
- package/dist/hooks/ralph-loop/index.test.d.ts +1 -0
- package/dist/hooks/ralph-loop/storage.d.ts +6 -0
- package/dist/hooks/ralph-loop/types.d.ts +16 -0
- package/dist/hooks/rules-injector/constants.d.ts +8 -0
- package/dist/hooks/rules-injector/finder.d.ts +33 -0
- package/dist/hooks/rules-injector/finder.test.d.ts +1 -0
- package/dist/hooks/rules-injector/index.d.ts +26 -0
- package/dist/hooks/rules-injector/matcher.d.ts +21 -0
- package/dist/hooks/rules-injector/parser.d.ts +18 -0
- package/dist/hooks/rules-injector/parser.test.d.ts +1 -0
- package/dist/hooks/rules-injector/storage.d.ts +9 -0
- package/dist/hooks/rules-injector/types.d.ts +54 -0
- package/dist/hooks/session-notification-utils.d.ts +9 -0
- package/dist/hooks/session-notification.d.ts +20 -0
- package/dist/hooks/session-notification.test.d.ts +1 -0
- package/dist/hooks/session-recovery/constants.d.ts +6 -0
- package/dist/hooks/session-recovery/index.d.ts +22 -0
- package/dist/hooks/session-recovery/index.test.d.ts +1 -0
- package/dist/hooks/session-recovery/storage.d.ts +19 -0
- package/dist/hooks/session-recovery/types.d.ts +90 -0
- package/dist/hooks/start-work/index.d.ts +16 -0
- package/dist/hooks/start-work/index.test.d.ts +1 -0
- package/dist/hooks/task-resume-info/index.d.ts +11 -0
- package/dist/hooks/think-mode/detector.d.ts +5 -0
- package/dist/hooks/think-mode/index.d.ts +14 -0
- package/dist/hooks/think-mode/index.test.d.ts +1 -0
- package/dist/hooks/think-mode/switcher.d.ts +57 -0
- package/dist/hooks/think-mode/switcher.test.d.ts +1 -0
- package/dist/hooks/think-mode/types.d.ts +21 -0
- package/dist/hooks/thinking-block-validator/index.d.ts +30 -0
- package/dist/hooks/todo-continuation-enforcer.d.ts +17 -0
- package/dist/hooks/todo-continuation-enforcer.test.d.ts +1 -0
- package/dist/hooks/tool-output-truncator.d.ts +17 -0
- package/dist/hooks/tool-output-truncator.test.d.ts +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +51627 -0
- package/dist/mcp/context7.d.ts +5 -0
- package/dist/mcp/grep-app.d.ts +5 -0
- package/dist/mcp/index.d.ts +8 -0
- package/dist/mcp/index.test.d.ts +1 -0
- package/dist/mcp/types.d.ts +7 -0
- package/dist/mcp/websearch.d.ts +8 -0
- package/dist/plugin-config.d.ts +4 -0
- package/dist/plugin-handlers/config-handler.d.ts +10 -0
- package/dist/plugin-handlers/index.d.ts +1 -0
- package/dist/plugin-state.d.ts +6 -0
- package/dist/shared/claude-config-dir.d.ts +1 -0
- package/dist/shared/claude-config-dir.test.d.ts +1 -0
- package/dist/shared/command-executor.d.ts +21 -0
- package/dist/shared/config-errors.d.ts +7 -0
- package/dist/shared/config-path.d.ts +17 -0
- package/dist/shared/data-path.d.ts +14 -0
- package/dist/shared/deep-merge.d.ts +13 -0
- package/dist/shared/dynamic-truncator.d.ts +27 -0
- package/dist/shared/external-plugin-detector.d.ts +18 -0
- package/dist/shared/external-plugin-detector.test.d.ts +1 -0
- package/dist/shared/file-reference-resolver.d.ts +1 -0
- package/dist/shared/file-utils.d.ts +7 -0
- package/dist/shared/frontmatter.d.ts +7 -0
- package/dist/shared/frontmatter.test.d.ts +1 -0
- package/dist/shared/hook-disabled.d.ts +2 -0
- package/dist/shared/index.d.ts +22 -0
- package/dist/shared/jsonc-parser.d.ts +15 -0
- package/dist/shared/jsonc-parser.test.d.ts +1 -0
- package/dist/shared/logger.d.ts +2 -0
- package/dist/shared/migration.d.ts +17 -0
- package/dist/shared/migration.test.d.ts +1 -0
- package/dist/shared/model-sanitizer.d.ts +3 -0
- package/dist/shared/opencode-config-dir.d.ts +19 -0
- package/dist/shared/opencode-config-dir.test.d.ts +1 -0
- package/dist/shared/opencode-version.d.ts +10 -0
- package/dist/shared/opencode-version.test.d.ts +1 -0
- package/dist/shared/pattern-matcher.d.ts +3 -0
- package/dist/shared/permission-compat.d.ts +12 -0
- package/dist/shared/permission-compat.test.d.ts +1 -0
- package/dist/shared/snake-case.d.ts +4 -0
- package/dist/shared/tool-name.d.ts +1 -0
- package/dist/tools/ast-grep/cli.d.ts +15 -0
- package/dist/tools/ast-grep/constants.d.ts +29 -0
- package/dist/tools/ast-grep/downloader.d.ts +5 -0
- package/dist/tools/ast-grep/index.d.ts +8 -0
- package/dist/tools/ast-grep/napi.d.ts +13 -0
- package/dist/tools/ast-grep/tools.d.ts +3 -0
- package/dist/tools/ast-grep/types.d.ts +58 -0
- package/dist/tools/ast-grep/utils.d.ts +5 -0
- package/dist/tools/background-task/constants.d.ts +3 -0
- package/dist/tools/background-task/index.d.ts +3 -0
- package/dist/tools/background-task/tools.d.ts +7 -0
- package/dist/tools/background-task/types.d.ts +14 -0
- package/dist/tools/call-omo-agent/constants.d.ts +2 -0
- package/dist/tools/call-omo-agent/index.d.ts +3 -0
- package/dist/tools/call-omo-agent/tools.d.ts +3 -0
- package/dist/tools/call-omo-agent/types.d.ts +24 -0
- package/dist/tools/chief-task/constants.d.ts +12 -0
- package/dist/tools/chief-task/index.d.ts +3 -0
- package/dist/tools/chief-task/tools.d.ts +16 -0
- package/dist/tools/chief-task/tools.test.d.ts +1 -0
- package/dist/tools/chief-task/types.d.ts +9 -0
- package/dist/tools/glob/cli.d.ts +7 -0
- package/dist/tools/glob/constants.d.ts +6 -0
- package/dist/tools/glob/index.d.ts +2 -0
- package/dist/tools/glob/tools.d.ts +2 -0
- package/dist/tools/glob/types.d.ts +19 -0
- package/dist/tools/glob/utils.d.ts +2 -0
- package/dist/tools/grep/cli.d.ts +3 -0
- package/dist/tools/grep/constants.d.ts +17 -0
- package/dist/tools/grep/downloader.d.ts +3 -0
- package/dist/tools/grep/downloader.test.d.ts +1 -0
- package/dist/tools/grep/index.d.ts +2 -0
- package/dist/tools/grep/tools.d.ts +2 -0
- package/dist/tools/grep/types.d.ts +36 -0
- package/dist/tools/grep/utils.d.ts +3 -0
- package/dist/tools/index.d.ts +14 -0
- package/dist/tools/interactive-bash/constants.d.ts +3 -0
- package/dist/tools/interactive-bash/index.d.ts +3 -0
- package/dist/tools/interactive-bash/tools.d.ts +7 -0
- package/dist/tools/interactive-bash/types.d.ts +3 -0
- package/dist/tools/interactive-bash/utils.d.ts +3 -0
- package/dist/tools/look-at/constants.d.ts +2 -0
- package/dist/tools/look-at/index.d.ts +3 -0
- package/dist/tools/look-at/tools.d.ts +2 -0
- package/dist/tools/look-at/types.d.ts +4 -0
- package/dist/tools/lsp/client.d.ts +59 -0
- package/dist/tools/lsp/config.d.ts +17 -0
- package/dist/tools/lsp/constants.d.ts +9 -0
- package/dist/tools/lsp/index.d.ts +6 -0
- package/dist/tools/lsp/tools.d.ts +12 -0
- package/dist/tools/lsp/types.d.ts +156 -0
- package/dist/tools/lsp/utils.d.ts +29 -0
- package/dist/tools/session-manager/constants.d.ts +12 -0
- package/dist/tools/session-manager/index.d.ts +3 -0
- package/dist/tools/session-manager/storage.d.ts +12 -0
- package/dist/tools/session-manager/storage.test.d.ts +1 -0
- package/dist/tools/session-manager/tools.d.ts +5 -0
- package/dist/tools/session-manager/tools.test.d.ts +1 -0
- package/dist/tools/session-manager/types.d.ts +89 -0
- package/dist/tools/session-manager/utils.d.ts +11 -0
- package/dist/tools/session-manager/utils.test.d.ts +1 -0
- package/dist/tools/skill/constants.d.ts +3 -0
- package/dist/tools/skill/index.d.ts +3 -0
- package/dist/tools/skill/tools.d.ts +10 -0
- package/dist/tools/skill/tools.test.d.ts +1 -0
- package/dist/tools/skill/types.d.ts +25 -0
- package/dist/tools/skill-mcp/constants.d.ts +2 -0
- package/dist/tools/skill-mcp/index.d.ts +3 -0
- package/dist/tools/skill-mcp/tools.d.ts +11 -0
- package/dist/tools/skill-mcp/tools.test.d.ts +1 -0
- package/dist/tools/skill-mcp/types.d.ts +8 -0
- package/dist/tools/slashcommand/index.d.ts +2 -0
- package/dist/tools/slashcommand/tools.d.ts +11 -0
- package/dist/tools/slashcommand/types.d.ts +24 -0
- package/package.json +84 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# License
|
|
2
|
+
|
|
3
|
+
Portions of this software are licensed as follows:
|
|
4
|
+
|
|
5
|
+
- All third party components incorporated into the oh-my-opencode Software are licensed under the original license
|
|
6
|
+
provided by the owner of the applicable component.
|
|
7
|
+
- Content outside of the above mentioned files or restrictions is available under the "Sustainable Use
|
|
8
|
+
License" as defined below.
|
|
9
|
+
|
|
10
|
+
## Sustainable Use License
|
|
11
|
+
|
|
12
|
+
Version 1.0
|
|
13
|
+
|
|
14
|
+
### Acceptance
|
|
15
|
+
|
|
16
|
+
By using the software, you agree to all of the terms and conditions below.
|
|
17
|
+
|
|
18
|
+
### Copyright License
|
|
19
|
+
|
|
20
|
+
The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license
|
|
21
|
+
to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject
|
|
22
|
+
to the limitations below.
|
|
23
|
+
|
|
24
|
+
### Limitations
|
|
25
|
+
|
|
26
|
+
You may use or modify the software only for your own internal business purposes or for non-commercial or
|
|
27
|
+
personal use. You may distribute the software or provide it to others only if you do so free of charge for
|
|
28
|
+
non-commercial purposes. You may not alter, remove, or obscure any licensing, copyright, or other notices of
|
|
29
|
+
the licensor in the software. Any use of the licensor's trademarks is subject to applicable law.
|
|
30
|
+
|
|
31
|
+
### Patents
|
|
32
|
+
|
|
33
|
+
The licensor grants you a license, under any patent claims the licensor can license, or becomes able to
|
|
34
|
+
license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case
|
|
35
|
+
subject to the limitations and conditions in this license. This license does not cover any patent claims that
|
|
36
|
+
you cause to be infringed by modifications or additions to the software. If you or your company make any
|
|
37
|
+
written claim that the software infringes or contributes to infringement of any patent, your patent license
|
|
38
|
+
for the software granted under these terms ends immediately. If your company makes such a claim, your patent
|
|
39
|
+
license ends immediately for work on behalf of your company.
|
|
40
|
+
|
|
41
|
+
### Notices
|
|
42
|
+
|
|
43
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these
|
|
44
|
+
terms. If you modify the software, you must include in any modified copies of the software a prominent notice
|
|
45
|
+
stating that you have modified the software.
|
|
46
|
+
|
|
47
|
+
### No Other Rights
|
|
48
|
+
|
|
49
|
+
These terms do not imply any licenses other than those expressly granted in these terms.
|
|
50
|
+
|
|
51
|
+
### Termination
|
|
52
|
+
|
|
53
|
+
If you use the software in violation of these terms, such use is not licensed, and your license will
|
|
54
|
+
automatically terminate. If the licensor provides you with a notice of your violation, and you cease all
|
|
55
|
+
violation of this license no later than 30 days after you receive that notice, your license will be reinstated
|
|
56
|
+
retroactively. However, if you violate these terms after such reinstatement, any additional violation of these
|
|
57
|
+
terms will cause your license to terminate automatically and permanently.
|
|
58
|
+
|
|
59
|
+
### No Liability
|
|
60
|
+
|
|
61
|
+
As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will
|
|
62
|
+
not be liable to you for any damages arising out of these terms or the use or nature of the software, under
|
|
63
|
+
any kind of legal claim.
|
|
64
|
+
|
|
65
|
+
### Definitions
|
|
66
|
+
|
|
67
|
+
The "licensor" is the entity offering these terms.
|
|
68
|
+
|
|
69
|
+
The "software" is the software the licensor makes available under these terms, including any portion of it.
|
|
70
|
+
|
|
71
|
+
"You" refers to the individual or entity agreeing to these terms.
|
|
72
|
+
|
|
73
|
+
"Your company" is any legal entity, sole proprietorship, or other kind of organization that you work for, plus
|
|
74
|
+
all organizations that have control over, are under the control of, or are under common control with that
|
|
75
|
+
organization. Control means ownership of substantially all the assets of an entity, or the power to direct its
|
|
76
|
+
management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
77
|
+
|
|
78
|
+
"Your license" is the license granted to you for the software under these terms.
|
|
79
|
+
|
|
80
|
+
"Use" means anything you do with the software requiring your license.
|
|
81
|
+
|
|
82
|
+
"Trademark" means trademarks, service marks, and similar rights.
|
package/README.md
ADDED
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
<p align="right">
|
|
2
|
+
<strong>English</strong> | <a href="./README.zh-cn.md">简体中文</a>
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
# newtype-profile
|
|
6
|
+
|
|
7
|
+
**AI Agent Collaboration System for Content Creation**
|
|
8
|
+
|
|
9
|
+
Based on [oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode), redesigned for content creation scenarios.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Created by huangyihe (黄益贺)
|
|
14
|
+
|
|
15
|
+
- **YouTube**: [https://www.youtube.com/@huanyihe777](https://www.youtube.com/@huanyihe777)
|
|
16
|
+
- **Twitter**: [https://x.com/huangyihe](https://x.com/huangyihe)
|
|
17
|
+
- **Substack**: [https://newtype.pro/](https://newtype.pro/)
|
|
18
|
+
- **知识星球**: [https://t.zsxq.com/19IaNz5wK](https://t.zsxq.com/19IaNz5wK)
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Overview
|
|
23
|
+
|
|
24
|
+
newtype-profile is an AI Agent collaboration framework designed for **content creation**. Unlike oh-my-opencode which focuses on code programming, this project redefines the Agent system as an editorial team model, suitable for:
|
|
25
|
+
|
|
26
|
+
- 📚 Knowledge base management
|
|
27
|
+
- ✍️ Article writing and editing
|
|
28
|
+
- 🔍 Information research and fact-checking
|
|
29
|
+
- 📄 Document extraction and organization
|
|
30
|
+
|
|
31
|
+
## Agent Team
|
|
32
|
+
|
|
33
|
+
| Agent | Role | Default Model | Description |
|
|
34
|
+
|-------|------|---------------|-------------|
|
|
35
|
+
| **chief** | Editor-in-Chief | Claude Opus 4.5 Thinking High | Dual-mode: exploration partner + task coordinator |
|
|
36
|
+
| **deputy** | Deputy Editor | Claude Sonnet 4.5 | Executes specific delegated tasks |
|
|
37
|
+
| **researcher** | Intelligence Officer | Gemini 3 Pro High | Broad search, discover new information |
|
|
38
|
+
| **fact-checker** | Verifier | Gemini 3 Pro High | Validate sources, assess credibility |
|
|
39
|
+
| **archivist** | Librarian | Claude Sonnet 4.5 | Knowledge base retrieval, find connections |
|
|
40
|
+
| **extractor** | Formatter | Gemini 3 Flash | PDF/image/document extraction |
|
|
41
|
+
| **writer** | Writer | Gemini 3 Pro High | Content production, article drafting |
|
|
42
|
+
| **editor** | Editor | Claude Sonnet 4.5 | Content refinement, structure optimization |
|
|
43
|
+
|
|
44
|
+
## Quick Start
|
|
45
|
+
|
|
46
|
+
### Prerequisites
|
|
47
|
+
|
|
48
|
+
1. Install [OpenCode](https://opencode.ai/docs)
|
|
49
|
+
2. Install [Bun](https://bun.sh/) (only needed for local development)
|
|
50
|
+
|
|
51
|
+
### Installation Methods
|
|
52
|
+
|
|
53
|
+
#### Method 1: GitHub Repository URL (Recommended)
|
|
54
|
+
|
|
55
|
+
The simplest way - directly reference the GitHub repository in your OpenCode config:
|
|
56
|
+
|
|
57
|
+
Edit `~/.config/opencode/opencode.json`:
|
|
58
|
+
|
|
59
|
+
```json
|
|
60
|
+
{
|
|
61
|
+
"plugin": [
|
|
62
|
+
"github:newtype-01/newtype-profile"
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
#### Method 2: Clone to Local
|
|
68
|
+
|
|
69
|
+
For development or customization:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
git clone https://github.com/newtype-01/newtype-profile.git
|
|
73
|
+
cd newtype-profile
|
|
74
|
+
bun install
|
|
75
|
+
bun run build
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Edit `~/.config/opencode/opencode.json`:
|
|
79
|
+
|
|
80
|
+
```json
|
|
81
|
+
{
|
|
82
|
+
"plugin": [
|
|
83
|
+
"/path/to/newtype-profile"
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Configure Agent Models
|
|
89
|
+
|
|
90
|
+
Create or edit `~/.config/opencode/oh-my-opencode.json`:
|
|
91
|
+
|
|
92
|
+
```json
|
|
93
|
+
{
|
|
94
|
+
"google_auth": true,
|
|
95
|
+
"agents": {
|
|
96
|
+
"chief": { "model": "google/antigravity-claude-opus-4-5-thinking-high" },
|
|
97
|
+
"researcher": { "model": "google/antigravity-gemini-3-pro-high" },
|
|
98
|
+
"fact-checker": { "model": "google/antigravity-gemini-3-pro-high" },
|
|
99
|
+
"archivist": { "model": "google/antigravity-claude-sonnet-4-5" },
|
|
100
|
+
"extractor": { "model": "google/antigravity-gemini-3-flash" },
|
|
101
|
+
"writer": { "model": "google/antigravity-gemini-3-pro-high" },
|
|
102
|
+
"editor": { "model": "google/antigravity-claude-sonnet-4-5" }
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### Authenticate Google Antigravity
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
opencode auth login
|
|
111
|
+
# Select Provider: Google
|
|
112
|
+
# Select Login method: OAuth with Google (Antigravity)
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## Usage
|
|
116
|
+
|
|
117
|
+
### Start OpenCode
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
opencode
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### Invoke Agents
|
|
124
|
+
|
|
125
|
+
The Chief (editor-in-chief) will automatically coordinate team work. You can also specify agents directly:
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
# Have the researcher investigate a topic
|
|
129
|
+
@researcher Research the trends in AI development for 2024
|
|
130
|
+
|
|
131
|
+
# Have the fact-checker verify information
|
|
132
|
+
@fact-checker Verify the source of this claim
|
|
133
|
+
|
|
134
|
+
# Have the writer draft an article
|
|
135
|
+
@writer Write an overview based on these materials
|
|
136
|
+
|
|
137
|
+
# Have the editor polish the content
|
|
138
|
+
@editor Help me refine this paragraph
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### Task Categories
|
|
142
|
+
|
|
143
|
+
Use `chief_task` tool to delegate tasks by category:
|
|
144
|
+
|
|
145
|
+
| Category | Purpose | Model Configuration |
|
|
146
|
+
|----------|---------|---------------------|
|
|
147
|
+
| `research` | Information research, trend discovery | Gemini 3 Pro High, temp 0.5 |
|
|
148
|
+
| `fact-check` | Source verification, credibility assessment | Gemini 3 Pro High, temp 0.2 |
|
|
149
|
+
| `archive` | Knowledge base retrieval, document linking | Claude Sonnet 4.5, temp 0.3 |
|
|
150
|
+
| `writing` | Content creation, article drafting | Gemini 3 Pro High, temp 0.7 |
|
|
151
|
+
| `editing` | Content refinement, structure optimization | Claude Sonnet 4.5, temp 0.3 |
|
|
152
|
+
| `extraction` | PDF/image content extraction | Gemini 3 Flash, temp 0.2 |
|
|
153
|
+
| `quick` | Simple quick tasks | Gemini 3 Flash, temp 0.3 |
|
|
154
|
+
|
|
155
|
+
## Configuration
|
|
156
|
+
|
|
157
|
+
### Model Selection
|
|
158
|
+
|
|
159
|
+
All models are accessed via Google Antigravity. Available models:
|
|
160
|
+
|
|
161
|
+
**Gemini Series**
|
|
162
|
+
- `google/antigravity-gemini-3-pro-high` - High quota Pro version
|
|
163
|
+
- `google/antigravity-gemini-3-pro-low` - Low quota Pro version
|
|
164
|
+
- `google/antigravity-gemini-3-flash` - Fast response version
|
|
165
|
+
|
|
166
|
+
**Claude Series (via Antigravity)**
|
|
167
|
+
- `google/antigravity-claude-opus-4-5-thinking-high` - High thinking budget Opus
|
|
168
|
+
- `google/antigravity-claude-opus-4-5-thinking-medium` - Medium thinking budget Opus
|
|
169
|
+
- `google/antigravity-claude-opus-4-5-thinking-low` - Low thinking budget Opus
|
|
170
|
+
- `google/antigravity-claude-sonnet-4-5` - Sonnet 4.5
|
|
171
|
+
- `google/antigravity-claude-sonnet-4-5-thinking-high` - High thinking budget Sonnet
|
|
172
|
+
|
|
173
|
+
### Custom Agent Settings
|
|
174
|
+
|
|
175
|
+
Override default settings in your config file:
|
|
176
|
+
|
|
177
|
+
```json
|
|
178
|
+
{
|
|
179
|
+
"agents": {
|
|
180
|
+
"writer": {
|
|
181
|
+
"model": "google/antigravity-claude-sonnet-4-5",
|
|
182
|
+
"temperature": 0.8,
|
|
183
|
+
"prompt_append": "Please use a concise and lively writing style"
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
### Disable Specific Agents
|
|
190
|
+
|
|
191
|
+
```json
|
|
192
|
+
{
|
|
193
|
+
"disabled_agents": ["fact-checker", "extractor"]
|
|
194
|
+
}
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
### Disable Specific Hooks
|
|
198
|
+
|
|
199
|
+
```json
|
|
200
|
+
{
|
|
201
|
+
"disabled_hooks": ["comment-checker", "agent-usage-reminder"]
|
|
202
|
+
}
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
## Features Inherited from oh-my-opencode
|
|
206
|
+
|
|
207
|
+
This project retains core capabilities from oh-my-opencode:
|
|
208
|
+
|
|
209
|
+
- ✅ **Background Tasks**: Run multiple agents in parallel
|
|
210
|
+
- ✅ **Todo Enforcement**: Ensure task completion
|
|
211
|
+
- ✅ **Session Recovery**: Automatic error recovery
|
|
212
|
+
- ✅ **Claude Code Compatibility Layer**: Support for hooks, skills, commands
|
|
213
|
+
- ✅ **LSP Tools**: Code navigation and refactoring
|
|
214
|
+
- ✅ **AST-Grep**: Code pattern search
|
|
215
|
+
- ✅ **MCP Support**: Extended capabilities
|
|
216
|
+
|
|
217
|
+
## Differences from oh-my-opencode
|
|
218
|
+
|
|
219
|
+
| Aspect | oh-my-opencode | newtype-profile |
|
|
220
|
+
|--------|----------------|-----------------|
|
|
221
|
+
| Scenario | Code programming | Content creation |
|
|
222
|
+
| Main Agent | Sisyphus | Chief (Editor-in-Chief) |
|
|
223
|
+
| Sub Agents | oracle, librarian, explore... | researcher, writer, editor... |
|
|
224
|
+
| Categories | visual-engineering, ultrabrain... | research, writing, editing... |
|
|
225
|
+
| Tool | sisyphus_task | chief_task |
|
|
226
|
+
|
|
227
|
+
## License
|
|
228
|
+
|
|
229
|
+
This project is based on [oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode) and follows its [SUL-1.0 License](https://github.com/code-yeongyu/oh-my-opencode/blob/master/LICENSE.md).
|
|
230
|
+
|
|
231
|
+
## Acknowledgments
|
|
232
|
+
|
|
233
|
+
- [oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode) - Original project
|
|
234
|
+
- [OpenCode](https://opencode.ai) - AI programming platform
|
|
235
|
+
- [Google Antigravity](https://github.com/NoeFabris/opencode-antigravity-auth) - Model authentication
|
package/README.zh-cn.md
ADDED
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
<p align="right">
|
|
2
|
+
<a href="./README.md">English</a> | <strong>简体中文</strong>
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
# newtype-profile
|
|
6
|
+
|
|
7
|
+
**专为内容创作设计的 AI Agent 协作系统**
|
|
8
|
+
|
|
9
|
+
基于 [oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode) 修改,专注于内容创作场景。
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## 作者:黄益贺 (huangyihe)
|
|
14
|
+
|
|
15
|
+
- **YouTube**: [https://www.youtube.com/@huanyihe777](https://www.youtube.com/@huanyihe777)
|
|
16
|
+
- **Twitter**: [https://x.com/huangyihe](https://x.com/huangyihe)
|
|
17
|
+
- **Substack**: [https://newtype.pro/](https://newtype.pro/)
|
|
18
|
+
- **知识星球**: [https://t.zsxq.com/19IaNz5wK](https://t.zsxq.com/19IaNz5wK)
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## 项目介绍
|
|
23
|
+
|
|
24
|
+
newtype-profile 是一套专为**内容创作**设计的 AI Agent 协作框架。不同于 oh-my-opencode 专注于代码编程场景,本项目将 Agent 体系重新定义为编辑部团队模式,适用于:
|
|
25
|
+
|
|
26
|
+
- 📚 知识库管理与维护
|
|
27
|
+
- ✍️ 文章写作与编辑
|
|
28
|
+
- 🔍 信息调研与核查
|
|
29
|
+
- 📄 文档提取与整理
|
|
30
|
+
|
|
31
|
+
## Agent 团队
|
|
32
|
+
|
|
33
|
+
| Agent | 角色 | 默认模型 | 职责描述 |
|
|
34
|
+
|-------|------|---------|---------|
|
|
35
|
+
| **chief** | 主编 | Claude Opus 4.5 Thinking High | 双模式运作:探讨伙伴(与用户对话)+ 执行协调(委派任务给团队) |
|
|
36
|
+
| **deputy** | 副主编 | Claude Sonnet 4.5 | 执行主编委派的具体任务 |
|
|
37
|
+
| **researcher** | 情报员 | Gemini 3 Pro High | 广度搜索、发现新信息、多源三角验证 |
|
|
38
|
+
| **fact-checker** | 核查员 | Gemini 3 Pro High | 验证来源、评估可信度、标记不可验证的声明 |
|
|
39
|
+
| **archivist** | 资料员 | Claude Sonnet 4.5 | 知识库检索、发现文档关联、维护组织一致性 |
|
|
40
|
+
| **extractor** | 格式员 | Gemini 3 Flash | PDF/图片/文档内容提取、格式转换 |
|
|
41
|
+
| **writer** | 写手 | Gemini 3 Pro High | 内容生产、文章起草、散文写作 |
|
|
42
|
+
| **editor** | 编辑 | Claude Sonnet 4.5 | 内容精炼、结构优化、语言打磨 |
|
|
43
|
+
|
|
44
|
+
## 快速开始
|
|
45
|
+
|
|
46
|
+
### 前置要求
|
|
47
|
+
|
|
48
|
+
1. 安装 [OpenCode](https://opencode.ai/docs)
|
|
49
|
+
2. 安装 [Bun](https://bun.sh/)(仅本地开发需要)
|
|
50
|
+
|
|
51
|
+
### 部署方式
|
|
52
|
+
|
|
53
|
+
#### 方式一:GitHub 仓库地址(推荐)
|
|
54
|
+
|
|
55
|
+
最简单的方式 - 直接在 OpenCode 配置中引用 GitHub 仓库:
|
|
56
|
+
|
|
57
|
+
编辑 `~/.config/opencode/opencode.json`:
|
|
58
|
+
|
|
59
|
+
```json
|
|
60
|
+
{
|
|
61
|
+
"plugin": [
|
|
62
|
+
"github:newtype-01/newtype-profile"
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
#### 方式二:克隆到本地
|
|
68
|
+
|
|
69
|
+
用于开发或自定义:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
git clone https://github.com/newtype-01/newtype-profile.git
|
|
73
|
+
cd newtype-profile
|
|
74
|
+
bun install
|
|
75
|
+
bun run build
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
编辑 `~/.config/opencode/opencode.json`:
|
|
79
|
+
|
|
80
|
+
```json
|
|
81
|
+
{
|
|
82
|
+
"plugin": [
|
|
83
|
+
"/path/to/newtype-profile"
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### 配置 Agent 模型
|
|
89
|
+
|
|
90
|
+
创建或编辑 `~/.config/opencode/oh-my-opencode.json`:
|
|
91
|
+
|
|
92
|
+
```json
|
|
93
|
+
{
|
|
94
|
+
"google_auth": true,
|
|
95
|
+
"agents": {
|
|
96
|
+
"chief": { "model": "google/antigravity-claude-opus-4-5-thinking-high" },
|
|
97
|
+
"researcher": { "model": "google/antigravity-gemini-3-pro-high" },
|
|
98
|
+
"fact-checker": { "model": "google/antigravity-gemini-3-pro-high" },
|
|
99
|
+
"archivist": { "model": "google/antigravity-claude-sonnet-4-5" },
|
|
100
|
+
"extractor": { "model": "google/antigravity-gemini-3-flash" },
|
|
101
|
+
"writer": { "model": "google/antigravity-gemini-3-pro-high" },
|
|
102
|
+
"editor": { "model": "google/antigravity-claude-sonnet-4-5" }
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### 认证 Google Antigravity
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
opencode auth login
|
|
111
|
+
# 选择 Provider: Google
|
|
112
|
+
# 选择 Login method: OAuth with Google (Antigravity)
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## 使用方式
|
|
116
|
+
|
|
117
|
+
### 启动 OpenCode
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
opencode
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### 调用 Agent
|
|
124
|
+
|
|
125
|
+
主编 (chief) 会自动协调团队工作。你也可以直接指定 Agent:
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
# 让情报员调研一个话题
|
|
129
|
+
@researcher 调研一下2024年AI发展趋势
|
|
130
|
+
|
|
131
|
+
# 让核查员验证信息
|
|
132
|
+
@fact-checker 核实这个说法的来源
|
|
133
|
+
|
|
134
|
+
# 让写手起草文章
|
|
135
|
+
@writer 基于这些资料写一篇概述
|
|
136
|
+
|
|
137
|
+
# 让编辑润色
|
|
138
|
+
@editor 帮我精炼这段文字
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### 使用任务分类
|
|
142
|
+
|
|
143
|
+
通过 `chief_task` 工具可以按分类委派任务:
|
|
144
|
+
|
|
145
|
+
| 分类 | 用途 | 模型配置 |
|
|
146
|
+
|------|------|---------|
|
|
147
|
+
| `research` | 信息调研、趋势发现 | Gemini 3 Pro High, temp 0.5 |
|
|
148
|
+
| `fact-check` | 来源验证、可信度评估 | Gemini 3 Pro High, temp 0.2 |
|
|
149
|
+
| `archive` | 知识库检索、文档关联 | Claude Sonnet 4.5, temp 0.3 |
|
|
150
|
+
| `writing` | 内容创作、文章起草 | Gemini 3 Pro High, temp 0.7 |
|
|
151
|
+
| `editing` | 内容精炼、结构优化 | Claude Sonnet 4.5, temp 0.3 |
|
|
152
|
+
| `extraction` | PDF/图片内容提取 | Gemini 3 Flash, temp 0.2 |
|
|
153
|
+
| `quick` | 简单快速任务 | Gemini 3 Flash, temp 0.3 |
|
|
154
|
+
|
|
155
|
+
## 配置详解
|
|
156
|
+
|
|
157
|
+
### 模型选择
|
|
158
|
+
|
|
159
|
+
所有模型通过 Google Antigravity 调用。可用模型:
|
|
160
|
+
|
|
161
|
+
**Gemini 系列**
|
|
162
|
+
- `google/antigravity-gemini-3-pro-high` - 高配额 Pro 版
|
|
163
|
+
- `google/antigravity-gemini-3-pro-low` - 低配额 Pro 版
|
|
164
|
+
- `google/antigravity-gemini-3-flash` - 快速响应版
|
|
165
|
+
|
|
166
|
+
**Claude 系列 (via Antigravity)**
|
|
167
|
+
- `google/antigravity-claude-opus-4-5-thinking-high` - 高思考预算 Opus
|
|
168
|
+
- `google/antigravity-claude-opus-4-5-thinking-medium` - 中思考预算 Opus
|
|
169
|
+
- `google/antigravity-claude-opus-4-5-thinking-low` - 低思考预算 Opus
|
|
170
|
+
- `google/antigravity-claude-sonnet-4-5` - Sonnet 4.5
|
|
171
|
+
- `google/antigravity-claude-sonnet-4-5-thinking-high` - 高思考预算 Sonnet
|
|
172
|
+
|
|
173
|
+
### 自定义 Agent
|
|
174
|
+
|
|
175
|
+
在配置文件中覆盖默认设置:
|
|
176
|
+
|
|
177
|
+
```json
|
|
178
|
+
{
|
|
179
|
+
"agents": {
|
|
180
|
+
"writer": {
|
|
181
|
+
"model": "google/antigravity-claude-sonnet-4-5",
|
|
182
|
+
"temperature": 0.8,
|
|
183
|
+
"prompt_append": "请使用简洁明快的写作风格"
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
### 禁用特定 Agent
|
|
190
|
+
|
|
191
|
+
```json
|
|
192
|
+
{
|
|
193
|
+
"disabled_agents": ["fact-checker", "extractor"]
|
|
194
|
+
}
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
### 禁用特定 Hook
|
|
198
|
+
|
|
199
|
+
```json
|
|
200
|
+
{
|
|
201
|
+
"disabled_hooks": ["comment-checker", "agent-usage-reminder"]
|
|
202
|
+
}
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
## 继承自 oh-my-opencode 的功能
|
|
206
|
+
|
|
207
|
+
本项目保留了 oh-my-opencode 的核心能力:
|
|
208
|
+
|
|
209
|
+
- ✅ **后台任务**: 并行运行多个 Agent
|
|
210
|
+
- ✅ **Todo 强制执行**: 确保任务完成
|
|
211
|
+
- ✅ **会话恢复**: 自动从错误中恢复
|
|
212
|
+
- ✅ **Claude Code 兼容层**: 支持 hooks, skills, commands
|
|
213
|
+
- ✅ **LSP 工具**: 代码导航与重构
|
|
214
|
+
- ✅ **AST-Grep**: 代码模式搜索
|
|
215
|
+
- ✅ **MCP 支持**: 扩展能力
|
|
216
|
+
|
|
217
|
+
## 与 oh-my-opencode 的区别
|
|
218
|
+
|
|
219
|
+
| 方面 | oh-my-opencode | newtype-profile |
|
|
220
|
+
|------|----------------|-----------------|
|
|
221
|
+
| 场景 | 代码编程 | 内容创作 |
|
|
222
|
+
| 主 Agent | Sisyphus | Chief (主编) |
|
|
223
|
+
| 子 Agent | oracle, librarian, explore... | researcher, writer, editor... |
|
|
224
|
+
| 分类 | visual-engineering, ultrabrain... | research, writing, editing... |
|
|
225
|
+
| 工具 | sisyphus_task | chief_task |
|
|
226
|
+
|
|
227
|
+
## 许可证
|
|
228
|
+
|
|
229
|
+
本项目基于 [oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode) 修改,遵循其 [SUL-1.0 许可证](https://github.com/code-yeongyu/oh-my-opencode/blob/master/LICENSE.md)。
|
|
230
|
+
|
|
231
|
+
## 致谢
|
|
232
|
+
|
|
233
|
+
- [oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode) - 原始项目
|
|
234
|
+
- [OpenCode](https://opencode.ai) - AI 编程平台
|
|
235
|
+
- [Google Antigravity](https://github.com/NoeFabris/opencode-antigravity-auth) - 模型认证
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
2
|
+
import type { AgentPromptMetadata } from "./types";
|
|
3
|
+
export declare const ARCHIVIST_PROMPT_METADATA: AgentPromptMetadata;
|
|
4
|
+
export declare function createArchivistAgent(model?: string): AgentConfig;
|
|
5
|
+
export declare const archivistAgent: AgentConfig;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
2
|
+
import type { AgentPromptMetadata } from "./types";
|
|
3
|
+
export declare const CHIEF_PROMPT_METADATA: AgentPromptMetadata;
|
|
4
|
+
export declare function createChiefAgent(model?: string): AgentConfig;
|
|
5
|
+
export declare const chiefAgent: AgentConfig;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
2
|
+
import type { AgentPromptMetadata } from "./types";
|
|
3
|
+
export declare const EDITOR_PROMPT_METADATA: AgentPromptMetadata;
|
|
4
|
+
export declare function createEditorAgent(model?: string): AgentConfig;
|
|
5
|
+
export declare const editorAgent: AgentConfig;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
2
|
+
import type { AgentPromptMetadata } from "./types";
|
|
3
|
+
export declare const EXTRACTOR_PROMPT_METADATA: AgentPromptMetadata;
|
|
4
|
+
export declare function createExtractorAgent(model?: string): AgentConfig;
|
|
5
|
+
export declare const extractorAgent: AgentConfig;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
2
|
+
import type { AgentPromptMetadata } from "./types";
|
|
3
|
+
export declare const FACT_CHECKER_PROMPT_METADATA: AgentPromptMetadata;
|
|
4
|
+
export declare function createFactCheckerAgent(model?: string): AgentConfig;
|
|
5
|
+
export declare const factCheckerAgent: AgentConfig;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
2
|
+
import type { AgentPromptMetadata } from "./types";
|
|
3
|
+
export declare const RESEARCHER_PROMPT_METADATA: AgentPromptMetadata;
|
|
4
|
+
export declare function createResearcherAgent(model?: string): AgentConfig;
|
|
5
|
+
export declare const researcherAgent: AgentConfig;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
2
|
+
export type AgentFactory = (model?: string) => AgentConfig;
|
|
3
|
+
/**
|
|
4
|
+
* Agent category for grouping in Sisyphus prompt sections
|
|
5
|
+
*/
|
|
6
|
+
export type AgentCategory = "exploration" | "specialist" | "advisor" | "utility";
|
|
7
|
+
/**
|
|
8
|
+
* Cost classification for Tool Selection table
|
|
9
|
+
*/
|
|
10
|
+
export type AgentCost = "FREE" | "CHEAP" | "EXPENSIVE";
|
|
11
|
+
/**
|
|
12
|
+
* Delegation trigger for Sisyphus prompt's Delegation Table
|
|
13
|
+
*/
|
|
14
|
+
export interface DelegationTrigger {
|
|
15
|
+
/** Domain of work (e.g., "Frontend UI/UX") */
|
|
16
|
+
domain: string;
|
|
17
|
+
/** When to delegate (e.g., "Visual changes only...") */
|
|
18
|
+
trigger: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Metadata for generating Sisyphus prompt sections dynamically
|
|
22
|
+
* This allows adding/removing agents without manually updating the Sisyphus prompt
|
|
23
|
+
*/
|
|
24
|
+
export interface AgentPromptMetadata {
|
|
25
|
+
/** Category for grouping in prompt sections */
|
|
26
|
+
category: AgentCategory;
|
|
27
|
+
/** Cost classification for Tool Selection table */
|
|
28
|
+
cost: AgentCost;
|
|
29
|
+
/** Domain triggers for Delegation Table */
|
|
30
|
+
triggers: DelegationTrigger[];
|
|
31
|
+
/** When to use this agent (for detailed sections) */
|
|
32
|
+
useWhen?: string[];
|
|
33
|
+
/** When NOT to use this agent */
|
|
34
|
+
avoidWhen?: string[];
|
|
35
|
+
/** Optional dedicated prompt section (markdown) - for agents like Oracle that have special sections */
|
|
36
|
+
dedicatedSection?: string;
|
|
37
|
+
/** Nickname/alias used in prompt (e.g., "Oracle" instead of "oracle") */
|
|
38
|
+
promptAlias?: string;
|
|
39
|
+
/** Key triggers that should appear in Phase 0 (e.g., "External library mentioned → fire librarian") */
|
|
40
|
+
keyTrigger?: string;
|
|
41
|
+
}
|
|
42
|
+
export declare function isGptModel(model: string): boolean;
|
|
43
|
+
export type BuiltinAgentName = "chief" | "researcher" | "fact-checker" | "archivist" | "extractor" | "writer" | "editor";
|
|
44
|
+
export type OverridableAgentName = "build" | BuiltinAgentName;
|
|
45
|
+
export type AgentName = BuiltinAgentName;
|
|
46
|
+
export type AgentOverrideConfig = Partial<AgentConfig> & {
|
|
47
|
+
prompt_append?: string;
|
|
48
|
+
};
|
|
49
|
+
export type AgentOverrides = Partial<Record<OverridableAgentName, AgentOverrideConfig>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
2
|
+
import type { BuiltinAgentName, AgentOverrides, AgentFactory } from "./types";
|
|
3
|
+
type AgentSource = AgentFactory | AgentConfig;
|
|
4
|
+
export declare function buildAgent(source: AgentSource, model?: string): AgentConfig;
|
|
5
|
+
/**
|
|
6
|
+
* Creates OmO-specific environment context (time, timezone, locale).
|
|
7
|
+
* Note: Working directory, platform, and date are already provided by OpenCode's system.ts,
|
|
8
|
+
* so we only include fields that OpenCode doesn't provide to avoid duplication.
|
|
9
|
+
* See: https://github.com/code-yeongyu/oh-my-opencode/issues/379
|
|
10
|
+
*/
|
|
11
|
+
export declare function createEnvContext(): string;
|
|
12
|
+
export declare function createBuiltinAgents(disabledAgents?: BuiltinAgentName[], agentOverrides?: AgentOverrides, directory?: string, systemDefaultModel?: string): Record<string, AgentConfig>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
2
|
+
import type { AgentPromptMetadata } from "./types";
|
|
3
|
+
export declare const WRITER_PROMPT_METADATA: AgentPromptMetadata;
|
|
4
|
+
export declare function createWriterAgent(model?: string): AgentConfig;
|
|
5
|
+
export declare const writerAgent: AgentConfig;
|