oh-my-opencode 4.12.0 → 4.13.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/README.md +1 -1
- package/THIRD-PARTY-NOTICES.md +1 -1
- package/dist/agents/sisyphus-agent-factory.d.ts +9 -0
- package/dist/agents/sisyphus-runtime-prompt-reconciler.d.ts +31 -0
- package/dist/cli/index.js +916 -670
- package/dist/cli-node/index.js +916 -670
- package/dist/config/schema/codegraph.d.ts +1 -0
- package/dist/config/schema/oh-my-opencode-config.d.ts +2 -0
- package/dist/config/schema/runtime-fallback.d.ts +1 -0
- package/dist/features/background-agent/background-task-marker.d.ts +8 -0
- package/dist/features/background-agent/fallback-retry-handler.d.ts +1 -0
- package/dist/features/background-agent/manager.d.ts +1 -0
- package/dist/features/background-agent/parent-wake-dedupe.d.ts +1 -0
- package/dist/features/background-agent/parent-wake-notifier-types.d.ts +2 -0
- package/dist/features/background-agent/parent-wake-notifier.d.ts +1 -0
- package/dist/features/background-agent/parent-wake-window-recovery.d.ts +2 -0
- package/dist/hooks/runtime-fallback/auto-retry-dispatch.d.ts +2 -2
- package/dist/hooks/runtime-fallback/auto-retry-timeout.d.ts +2 -2
- package/dist/hooks/runtime-fallback/auto-retry.d.ts +1 -1
- package/dist/hooks/runtime-fallback/fallback-state-snapshot.d.ts +13 -0
- package/dist/hooks/runtime-fallback/types.d.ts +8 -0
- package/dist/index.js +1042 -640
- package/dist/oh-my-opencode.schema.json +8 -0
- package/dist/plugin/runtime-skill-resolver.d.ts +35 -0
- package/dist/plugin/skill-context.d.ts +9 -0
- package/dist/skills/frontend/ATTRIBUTION.md +32 -8
- package/dist/skills/frontend/references/design/airbnb.md +3 -0
- package/dist/skills/frontend/references/design/airtable.md +3 -0
- package/dist/skills/frontend/references/design/apple.md +3 -0
- package/dist/skills/frontend/references/design/binance.md +3 -0
- package/dist/skills/frontend/references/design/bmw.md +3 -0
- package/dist/skills/frontend/references/design/bugatti.md +3 -0
- package/dist/skills/frontend/references/design/cal.md +3 -0
- package/dist/skills/frontend/references/design/claude.md +3 -0
- package/dist/skills/frontend/references/design/clay.md +3 -0
- package/dist/skills/frontend/references/design/clickhouse.md +3 -0
- package/dist/skills/frontend/references/design/cohere.md +3 -0
- package/dist/skills/frontend/references/design/coinbase.md +3 -0
- package/dist/skills/frontend/references/design/composio.md +3 -0
- package/dist/skills/frontend/references/design/cursor.md +3 -0
- package/dist/skills/frontend/references/design/elevenlabs.md +3 -0
- package/dist/skills/frontend/references/design/expo.md +3 -0
- package/dist/skills/frontend/references/design/ferrari.md +3 -0
- package/dist/skills/frontend/references/design/figma.md +3 -0
- package/dist/skills/frontend/references/design/framer.md +3 -0
- package/dist/skills/frontend/references/design/hashicorp.md +3 -0
- package/dist/skills/frontend/references/design/ibm.md +3 -0
- package/dist/skills/frontend/references/design/imagegen-frontend-web.md +380 -79
- package/dist/skills/frontend/references/design/intercom.md +3 -0
- package/dist/skills/frontend/references/design/kraken.md +3 -0
- package/dist/skills/frontend/references/design/lamborghini.md +3 -0
- package/dist/skills/frontend/references/design/linear.app.md +3 -0
- package/dist/skills/frontend/references/design/lovable.md +3 -0
- package/dist/skills/frontend/references/design/mastercard.md +3 -0
- package/dist/skills/frontend/references/design/meta.md +3 -0
- package/dist/skills/frontend/references/design/minimax.md +3 -0
- package/dist/skills/frontend/references/design/mintlify.md +3 -0
- package/dist/skills/frontend/references/design/miro.md +3 -0
- package/dist/skills/frontend/references/design/mistral.ai.md +3 -0
- package/dist/skills/frontend/references/design/mongodb.md +3 -0
- package/dist/skills/frontend/references/design/nike.md +3 -0
- package/dist/skills/frontend/references/design/notion.md +3 -0
- package/dist/skills/frontend/references/design/nvidia.md +3 -0
- package/dist/skills/frontend/references/design/ollama.md +3 -0
- package/dist/skills/frontend/references/design/opencode.ai.md +3 -0
- package/dist/skills/frontend/references/design/pinterest.md +3 -0
- package/dist/skills/frontend/references/design/playstation.md +3 -0
- package/dist/skills/frontend/references/design/posthog.md +3 -0
- package/dist/skills/frontend/references/design/raycast.md +3 -0
- package/dist/skills/frontend/references/design/renault.md +3 -0
- package/dist/skills/frontend/references/design/replicate.md +3 -0
- package/dist/skills/frontend/references/design/resend.md +3 -0
- package/dist/skills/frontend/references/design/revolut.md +3 -0
- package/dist/skills/frontend/references/design/runwayml.md +3 -0
- package/dist/skills/frontend/references/design/sanity.md +3 -0
- package/dist/skills/frontend/references/design/sentry.md +3 -0
- package/dist/skills/frontend/references/design/shopify.md +3 -0
- package/dist/skills/frontend/references/design/spacex.md +3 -0
- package/dist/skills/frontend/references/design/spotify.md +3 -0
- package/dist/skills/frontend/references/design/starbucks.md +3 -0
- package/dist/skills/frontend/references/design/stitch-skill.md +1 -1
- package/dist/skills/frontend/references/design/stripe.md +3 -0
- package/dist/skills/frontend/references/design/supabase.md +3 -0
- package/dist/skills/frontend/references/design/superhuman.md +3 -0
- package/dist/skills/frontend/references/design/taste-skill.md +1188 -208
- package/dist/skills/frontend/references/design/tesla.md +3 -0
- package/dist/skills/frontend/references/design/theverge.md +3 -0
- package/dist/skills/frontend/references/design/together.ai.md +3 -0
- package/dist/skills/frontend/references/design/uber.md +3 -0
- package/dist/skills/frontend/references/design/vercel.md +3 -0
- package/dist/skills/frontend/references/design/vodafone.md +3 -0
- package/dist/skills/frontend/references/design/voltagent.md +3 -0
- package/dist/skills/frontend/references/design/warp.md +3 -0
- package/dist/skills/frontend/references/design/webflow.md +3 -0
- package/dist/skills/frontend/references/design/wired.md +3 -0
- package/dist/skills/frontend/references/design/wise.md +3 -0
- package/dist/skills/frontend/references/design/x.ai.md +3 -0
- package/dist/skills/frontend/references/design/zapier.md +3 -0
- package/dist/skills/frontend/references/ui-ux-db/README.md +501 -115
- package/dist/skills/frontend/references/ui-ux-db/data/charts.csv +26 -26
- package/dist/skills/frontend/references/ui-ux-db/data/colors.csv +162 -97
- package/dist/skills/frontend/references/ui-ux-db/data/icons.csv +105 -100
- package/dist/skills/frontend/references/ui-ux-db/data/landing.csv +22 -18
- package/dist/skills/frontend/references/ui-ux-db/data/products.csv +162 -97
- package/dist/skills/frontend/references/ui-ux-db/data/stacks/flutter.csv +53 -53
- package/dist/skills/frontend/references/ui-ux-db/data/stacks/html-tailwind.csv +56 -56
- package/dist/skills/frontend/references/ui-ux-db/data/stacks/nextjs.csv +53 -53
- package/dist/skills/frontend/references/ui-ux-db/data/stacks/react.csv +54 -54
- package/dist/skills/frontend/references/ui-ux-db/data/stacks/svelte.csv +54 -54
- package/dist/skills/frontend/references/ui-ux-db/data/stacks/swiftui.csv +51 -51
- package/dist/skills/frontend/references/ui-ux-db/data/stacks/vue.csv +50 -50
- package/dist/skills/frontend/references/ui-ux-db/data/styles.csv +17 -0
- package/dist/skills/frontend/references/ui-ux-db/data/typography.csv +17 -1
- package/dist/skills/frontend/references/ui-ux-db/data/ui-reasoning.csv +162 -101
- package/dist/skills/frontend/references/ui-ux-db/data/web-interface.csv +30 -30
- package/dist/skills/frontend/references/ui-ux-db/scripts/core.py +31 -22
- package/dist/skills/frontend/references/ui-ux-db/scripts/design_system.py +150 -69
- package/dist/skills/frontend/references/ui-ux-db/scripts/search.py +3 -3
- package/dist/skills/lcx-doctor/SKILL.md +1 -1
- package/dist/skills/ultimate-browsing/ATTRIBUTION.md +105 -0
- package/dist/skills/ultimate-browsing/SKILL.md +140 -0
- package/dist/skills/ultimate-browsing/engine/__init__.py +24 -0
- package/dist/skills/ultimate-browsing/engine/__main__.py +106 -0
- package/dist/skills/ultimate-browsing/engine/bias_check.py +174 -0
- package/dist/skills/ultimate-browsing/engine/curl_probe.py +91 -0
- package/dist/skills/ultimate-browsing/engine/executor.py +192 -0
- package/dist/skills/ultimate-browsing/engine/fetch_chain.py +268 -0
- package/dist/skills/ultimate-browsing/engine/referers.py +15 -0
- package/dist/skills/ultimate-browsing/engine/result_schema.py +45 -0
- package/dist/skills/ultimate-browsing/engine/summary.py +37 -0
- package/dist/skills/ultimate-browsing/engine/templates/package.json +11 -0
- package/dist/skills/ultimate-browsing/engine/templates/playwright_mobile_chrome.js +129 -0
- package/dist/skills/ultimate-browsing/engine/templates/playwright_real_chrome.js +167 -0
- package/dist/skills/ultimate-browsing/engine/tests/test_fetch_chain.py +77 -0
- package/dist/skills/ultimate-browsing/engine/tests/test_playwright_templates.py +282 -0
- package/dist/skills/ultimate-browsing/engine/url_transforms.py +98 -0
- package/dist/skills/ultimate-browsing/engine/validators.py +216 -0
- package/dist/skills/ultimate-browsing/engine/waf_detector.py +214 -0
- package/dist/skills/ultimate-browsing/engine/waf_profiles.yaml +162 -0
- package/dist/skills/ultimate-browsing/references/agent-reach/README.md +79 -0
- package/dist/skills/ultimate-browsing/references/agent-reach/career.md +29 -0
- package/dist/skills/ultimate-browsing/references/agent-reach/dev.md +62 -0
- package/dist/skills/ultimate-browsing/references/agent-reach/search.md +33 -0
- package/dist/skills/ultimate-browsing/references/agent-reach/social.md +207 -0
- package/dist/skills/ultimate-browsing/references/agent-reach/video.md +115 -0
- package/dist/skills/ultimate-browsing/references/agent-reach/web.md +76 -0
- package/dist/skills/ultimate-browsing/references/chrome-stealth.md +120 -0
- package/dist/skills/ultimate-browsing/references/insane-search/README.md +319 -0
- package/dist/skills/ultimate-browsing/references/insane-search/cache-archive.md +83 -0
- package/dist/skills/ultimate-browsing/references/insane-search/fallback.md +159 -0
- package/dist/skills/ultimate-browsing/references/insane-search/jina.md +130 -0
- package/dist/skills/ultimate-browsing/references/insane-search/json-api.md +133 -0
- package/dist/skills/ultimate-browsing/references/insane-search/media.md +123 -0
- package/dist/skills/ultimate-browsing/references/insane-search/metadata.md +116 -0
- package/dist/skills/ultimate-browsing/references/insane-search/naver.md +107 -0
- package/dist/skills/ultimate-browsing/references/insane-search/playwright.md +142 -0
- package/dist/skills/ultimate-browsing/references/insane-search/public-api.md +119 -0
- package/dist/skills/ultimate-browsing/references/insane-search/rss.md +123 -0
- package/dist/skills/ultimate-browsing/references/insane-search/tls-impersonate.md +186 -0
- package/dist/skills/ultimate-browsing/references/insane-search/twitter.md +104 -0
- package/dist/skills/ultimate-browsing/scripts/cookie_crypto.py +75 -0
- package/dist/skills/ultimate-browsing/scripts/cookie_domains.py +38 -0
- package/dist/skills/ultimate-browsing/scripts/cookie_paths.py +112 -0
- package/dist/skills/ultimate-browsing/scripts/extract_cookies.py +280 -0
- package/dist/skills/ultimate-browsing/scripts/tests/test_cookie_domain_filter.py +110 -0
- package/dist/skills/ultimate-browsing/scripts/tests/test_extract_cookies.py +245 -0
- package/dist/skills/ultraresearch/ATTRIBUTION.md +49 -0
- package/dist/skills/ultraresearch/SKILL.md +34 -6
- package/dist/skills/ulw-plan/SKILL.md +4 -1
- package/dist/tools/background-task/constants.d.ts +1 -1
- package/dist/tools/delegate-task/sync-task-deps.d.ts +8 -6
- package/dist/tools/skill-mcp/tools.d.ts +1 -1
- package/dist/tui.js +18 -4
- package/package.json +16 -14
- package/packages/omo-codex/THIRD-PARTY-NOTICES.md +27 -4
- package/packages/omo-codex/plugin/.codex-plugin/plugin.json +3 -1
- package/packages/omo-codex/plugin/README.md +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +134 -42
- package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
- package/packages/omo-codex/plugin/components/codegraph/LICENSE +21 -0
- package/packages/omo-codex/plugin/components/codegraph/NODE-RUNTIME-LICENSES.md +2951 -0
- package/packages/omo-codex/plugin/components/codegraph/NOTICE +16 -0
- package/packages/omo-codex/plugin/components/codegraph/dist/cli.js +633 -193
- package/packages/omo-codex/plugin/components/codegraph/dist/serve.js +561 -44
- package/packages/omo-codex/plugin/components/codegraph/package.json +9 -3
- package/packages/omo-codex/plugin/components/codegraph/src/cli.ts +11 -0
- package/packages/omo-codex/plugin/components/codegraph/src/hook-types.ts +12 -0
- package/packages/omo-codex/plugin/components/codegraph/src/hook.ts +34 -0
- package/packages/omo-codex/plugin/components/codegraph/src/mcp-unavailable.ts +75 -0
- package/packages/omo-codex/plugin/components/codegraph/src/serve.ts +66 -13
- package/packages/omo-codex/plugin/components/codegraph/src/session-start-worker.ts +26 -12
- package/packages/omo-codex/plugin/components/codegraph/test/hook.test.ts +50 -330
- package/packages/omo-codex/plugin/components/codegraph/test/package-runtime.test.ts +91 -0
- package/packages/omo-codex/plugin/components/codegraph/test/provisioned-node-guard.test.ts +2 -2
- package/packages/omo-codex/plugin/components/codegraph/test/serve-mcp-facade.test.ts +68 -0
- package/packages/omo-codex/plugin/components/codegraph/test/serve-node-support.test.ts +11 -1
- package/packages/omo-codex/plugin/components/codegraph/test/serve-provision.test.ts +48 -0
- package/packages/omo-codex/plugin/components/codegraph/test/serve-unavailable.test.ts +133 -0
- package/packages/omo-codex/plugin/components/codegraph/test/serve.test.ts +1 -112
- package/packages/omo-codex/plugin/components/codegraph/test/session-start-node-support.test.ts +149 -0
- package/packages/omo-codex/plugin/components/codegraph/test/session-start-trust-boundary.test.ts +63 -0
- package/packages/omo-codex/plugin/components/codegraph/test/session-start-worker-availability.test.ts +106 -0
- package/packages/omo-codex/plugin/components/codegraph/test/session-start-worker-flow.test.ts +150 -0
- package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
- package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
- package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
- package/packages/omo-codex/plugin/components/rules/dist/cli.js +3 -3
- package/packages/omo-codex/plugin/components/rules/package.json +1 -1
- package/packages/omo-codex/plugin/components/rules/src/sparkshell-awareness.ts +3 -3
- package/packages/omo-codex/plugin/components/rules/test/sparkshell-awareness.test.ts +33 -9
- package/packages/omo-codex/plugin/components/start-work-continuation/package.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/dist/cli.js +94 -0
- package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +17 -0
- package/packages/omo-codex/plugin/components/teammode/package.json +26 -0
- package/packages/omo-codex/plugin/components/teammode/skills/teammode/SKILL.md +59 -32
- package/packages/omo-codex/plugin/components/teammode/skills/teammode/scripts/team-guide.mjs +17 -16
- package/packages/omo-codex/plugin/components/teammode/skills/teammode/scripts/team-state.mjs +70 -3
- package/packages/omo-codex/plugin/components/teammode/skills/teammode/scripts/team-worktree.mjs +113 -0
- package/packages/omo-codex/plugin/components/teammode/skills/teammode/scripts/team.mjs +63 -4
- package/packages/omo-codex/plugin/components/teammode/src/cli.ts +12 -0
- package/packages/omo-codex/plugin/components/teammode/src/codex-hook.ts +125 -0
- package/packages/omo-codex/plugin/components/teammode/test/thread-title-hook.test.ts +116 -0
- package/packages/omo-codex/plugin/components/teammode/tsconfig.json +25 -0
- package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/agents/explorer.toml +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/directive.md +5 -4
- package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/test/package-smoke.test.ts +24 -3
- package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/references/full-workflow.md +8 -7
- package/packages/omo-codex/plugin/components/ulw-loop/test/skill-contract.test.ts +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-codegraph-init-guidance.json +17 -0
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +17 -0
- package/packages/omo-codex/plugin/hooks/session-start-checking-codegraph-bootstrap.json +1 -1
- package/packages/omo-codex/plugin/package-lock.json +129 -12
- package/packages/omo-codex/plugin/package.json +3 -2
- package/packages/omo-codex/plugin/scripts/auto-update-plan.mjs +133 -0
- package/packages/omo-codex/plugin/scripts/auto-update-release-notes.mjs +135 -0
- package/packages/omo-codex/plugin/scripts/auto-update.mjs +33 -133
- package/packages/omo-codex/plugin/scripts/hook-status-message.mjs +1 -0
- package/packages/omo-codex/plugin/scripts/materialize-shared-upstreams.mjs +41 -0
- package/packages/omo-codex/plugin/shared/src/config-loader.ts +20 -2
- package/packages/omo-codex/plugin/shared/test/config-loader.test.ts +16 -0
- package/packages/omo-codex/plugin/skills/frontend/ATTRIBUTION.md +32 -8
- package/packages/omo-codex/plugin/skills/frontend/references/design/airbnb.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/airtable.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/apple.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/binance.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/bmw.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/bugatti.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/cal.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/claude.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/clay.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/clickhouse.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/cohere.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/coinbase.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/composio.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/cursor.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/elevenlabs.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/expo.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/ferrari.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/figma.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/framer.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/hashicorp.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/ibm.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/imagegen-frontend-web.md +380 -79
- package/packages/omo-codex/plugin/skills/frontend/references/design/intercom.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/kraken.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/lamborghini.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/linear.app.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/lovable.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/mastercard.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/meta.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/minimax.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/mintlify.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/miro.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/mistral.ai.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/mongodb.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/nike.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/notion.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/nvidia.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/ollama.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/opencode.ai.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/pinterest.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/playstation.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/posthog.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/raycast.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/renault.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/replicate.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/resend.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/revolut.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/runwayml.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/sanity.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/sentry.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/shopify.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/spacex.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/spotify.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/starbucks.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/stitch-skill.md +1 -1
- package/packages/omo-codex/plugin/skills/frontend/references/design/stripe.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/supabase.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/superhuman.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/taste-skill.md +1188 -208
- package/packages/omo-codex/plugin/skills/frontend/references/design/tesla.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/theverge.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/together.ai.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/uber.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/vercel.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/vodafone.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/voltagent.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/warp.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/webflow.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/wired.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/wise.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/x.ai.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/zapier.md +3 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/README.md +501 -115
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/charts.csv +26 -26
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/colors.csv +162 -97
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/icons.csv +105 -100
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/landing.csv +22 -18
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/products.csv +162 -97
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/stacks/flutter.csv +53 -53
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/stacks/html-tailwind.csv +56 -56
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/stacks/nextjs.csv +53 -53
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/stacks/react.csv +54 -54
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/stacks/svelte.csv +54 -54
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/stacks/swiftui.csv +51 -51
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/stacks/vue.csv +50 -50
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/styles.csv +17 -0
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/typography.csv +17 -1
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/ui-reasoning.csv +162 -101
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/data/web-interface.csv +30 -30
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/scripts/core.py +31 -22
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/scripts/design_system.py +150 -69
- package/packages/omo-codex/plugin/skills/frontend/references/ui-ux-db/scripts/search.py +3 -3
- package/packages/omo-codex/plugin/skills/lcx-doctor/SKILL.md +1 -1
- package/packages/omo-codex/plugin/skills/teammode/SKILL.md +59 -32
- package/packages/omo-codex/plugin/skills/teammode/scripts/team-guide.mjs +17 -16
- package/packages/omo-codex/plugin/skills/teammode/scripts/team-state.mjs +70 -3
- package/packages/omo-codex/plugin/skills/teammode/scripts/team-worktree.mjs +113 -0
- package/packages/omo-codex/plugin/skills/teammode/scripts/team.mjs +63 -4
- package/packages/omo-codex/plugin/skills/ultimate-browsing/ATTRIBUTION.md +105 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/SKILL.md +140 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/agents/openai.yaml +2 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/__init__.py +24 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/__main__.py +106 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/bias_check.py +174 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/curl_probe.py +91 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/executor.py +192 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/fetch_chain.py +268 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/referers.py +15 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/result_schema.py +45 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/summary.py +37 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/templates/package.json +11 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/templates/playwright_mobile_chrome.js +129 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/templates/playwright_real_chrome.js +167 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/tests/test_fetch_chain.py +77 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/tests/test_playwright_templates.py +282 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/url_transforms.py +98 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/validators.py +216 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/waf_detector.py +214 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/waf_profiles.yaml +162 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/references/agent-reach/README.md +79 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/references/agent-reach/career.md +29 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/references/agent-reach/dev.md +62 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/references/agent-reach/search.md +33 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/references/agent-reach/social.md +207 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/references/agent-reach/video.md +115 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/references/agent-reach/web.md +76 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/references/chrome-stealth.md +120 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/references/insane-search/README.md +319 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/references/insane-search/cache-archive.md +83 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/references/insane-search/fallback.md +159 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/references/insane-search/jina.md +130 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/references/insane-search/json-api.md +133 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/references/insane-search/media.md +123 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/references/insane-search/metadata.md +116 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/references/insane-search/naver.md +107 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/references/insane-search/playwright.md +142 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/references/insane-search/public-api.md +119 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/references/insane-search/rss.md +123 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/references/insane-search/tls-impersonate.md +186 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/references/insane-search/twitter.md +104 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/scripts/cookie_crypto.py +75 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/scripts/cookie_domains.py +38 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/scripts/cookie_paths.py +112 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/scripts/extract_cookies.py +280 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/scripts/tests/test_cookie_domain_filter.py +110 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/scripts/tests/test_extract_cookies.py +245 -0
- package/packages/omo-codex/plugin/skills/ultraresearch/ATTRIBUTION.md +49 -0
- package/packages/omo-codex/plugin/skills/ultraresearch/SKILL.md +34 -6
- package/packages/omo-codex/plugin/skills/ulw-loop/references/full-workflow.md +8 -7
- package/packages/omo-codex/plugin/test/aggregate-build.test.mjs +2 -1
- package/packages/omo-codex/plugin/test/aggregate-hooks.test.mjs +36 -0
- package/packages/omo-codex/plugin/test/aggregate-manifest.test.mjs +2 -1
- package/packages/omo-codex/plugin/test/aggregate-plugin-fixture.mjs +1 -1
- package/packages/omo-codex/plugin/test/auto-update-release-notes.test.mjs +95 -0
- package/packages/omo-codex/plugin/test/auto-update-restart-notice.test.mjs +12 -3
- package/packages/omo-codex/plugin/test/component-bundled-cli.test.mjs +1 -0
- package/packages/omo-codex/plugin/test/component-codegraph-mcp-smoke.test.mjs +76 -0
- package/packages/omo-codex/plugin/test/component-hook-contract-cases.mjs +24 -0
- package/packages/omo-codex/plugin/test/hook-status-message.test.mjs +1 -0
- package/packages/omo-codex/plugin/test/sync-skills-test-support.mjs +1 -0
- package/packages/omo-codex/plugin/test/teammode-communication.test.mjs +87 -0
- package/packages/omo-codex/plugin/test/teammode-thread-title.test.mjs +169 -0
- package/packages/omo-codex/plugin/test/teammode-worktree.test.mjs +246 -0
- package/packages/omo-codex/plugin/test/ultraresearch-skill-contract.test.mjs +78 -0
- package/packages/omo-codex/scripts/install-cli-args.test.mjs +1 -1
- package/packages/omo-codex/scripts/install-config-git-bash.test.mjs +23 -0
- package/packages/omo-codex/scripts/install-delegated-command.test.mjs +76 -4
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +531 -214
- package/packages/omo-codex/scripts/install-local-entrypoint.test.mjs +40 -3
- package/packages/shared-skills/skills/frontend/ATTRIBUTION.md +32 -8
- package/packages/shared-skills/skills/frontend/references/design/airbnb.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/airtable.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/apple.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/binance.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/bmw.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/bugatti.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/cal.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/claude.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/clay.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/clickhouse.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/cohere.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/coinbase.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/composio.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/cursor.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/elevenlabs.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/expo.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/ferrari.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/figma.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/framer.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/hashicorp.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/ibm.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/imagegen-frontend-web.md +380 -79
- package/packages/shared-skills/skills/frontend/references/design/intercom.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/kraken.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/lamborghini.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/linear.app.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/lovable.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/mastercard.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/meta.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/minimax.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/mintlify.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/miro.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/mistral.ai.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/mongodb.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/nike.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/notion.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/nvidia.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/ollama.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/opencode.ai.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/pinterest.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/playstation.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/posthog.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/raycast.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/renault.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/replicate.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/resend.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/revolut.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/runwayml.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/sanity.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/sentry.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/shopify.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/spacex.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/spotify.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/starbucks.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/stitch-skill.md +1 -1
- package/packages/shared-skills/skills/frontend/references/design/stripe.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/supabase.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/superhuman.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/taste-skill.md +1188 -208
- package/packages/shared-skills/skills/frontend/references/design/tesla.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/theverge.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/together.ai.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/uber.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/vercel.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/vodafone.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/voltagent.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/warp.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/webflow.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/wired.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/wise.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/x.ai.md +3 -0
- package/packages/shared-skills/skills/frontend/references/design/zapier.md +3 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/README.md +501 -115
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/charts.csv +26 -26
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/colors.csv +162 -97
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/icons.csv +105 -100
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/landing.csv +22 -18
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/products.csv +162 -97
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/stacks/flutter.csv +53 -53
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/stacks/html-tailwind.csv +56 -56
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/stacks/nextjs.csv +53 -53
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/stacks/react.csv +54 -54
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/stacks/svelte.csv +54 -54
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/stacks/swiftui.csv +51 -51
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/stacks/vue.csv +50 -50
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/styles.csv +17 -0
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/typography.csv +17 -1
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/ui-reasoning.csv +162 -101
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/data/web-interface.csv +30 -30
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/scripts/core.py +31 -22
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/scripts/design_system.py +150 -69
- package/packages/shared-skills/skills/frontend/references/ui-ux-db/scripts/search.py +3 -3
- package/packages/shared-skills/skills/lcx-doctor/SKILL.md +1 -1
- package/packages/shared-skills/skills/ultimate-browsing/ATTRIBUTION.md +105 -0
- package/packages/shared-skills/skills/ultimate-browsing/SKILL.md +140 -0
- package/packages/shared-skills/skills/ultimate-browsing/engine/__init__.py +24 -0
- package/packages/shared-skills/skills/ultimate-browsing/engine/__main__.py +106 -0
- package/packages/shared-skills/skills/ultimate-browsing/engine/bias_check.py +174 -0
- package/packages/shared-skills/skills/ultimate-browsing/engine/curl_probe.py +91 -0
- package/packages/shared-skills/skills/ultimate-browsing/engine/executor.py +192 -0
- package/packages/shared-skills/skills/ultimate-browsing/engine/fetch_chain.py +268 -0
- package/packages/shared-skills/skills/ultimate-browsing/engine/referers.py +15 -0
- package/packages/shared-skills/skills/ultimate-browsing/engine/result_schema.py +45 -0
- package/packages/shared-skills/skills/ultimate-browsing/engine/summary.py +37 -0
- package/packages/shared-skills/skills/ultimate-browsing/engine/templates/package.json +11 -0
- package/packages/shared-skills/skills/ultimate-browsing/engine/templates/playwright_mobile_chrome.js +129 -0
- package/packages/shared-skills/skills/ultimate-browsing/engine/templates/playwright_real_chrome.js +167 -0
- package/packages/shared-skills/skills/ultimate-browsing/engine/tests/test_fetch_chain.py +77 -0
- package/packages/shared-skills/skills/ultimate-browsing/engine/tests/test_playwright_templates.py +282 -0
- package/packages/shared-skills/skills/ultimate-browsing/engine/url_transforms.py +98 -0
- package/packages/shared-skills/skills/ultimate-browsing/engine/validators.py +216 -0
- package/packages/shared-skills/skills/ultimate-browsing/engine/waf_detector.py +214 -0
- package/packages/shared-skills/skills/ultimate-browsing/engine/waf_profiles.yaml +162 -0
- package/packages/shared-skills/skills/ultimate-browsing/references/agent-reach/README.md +79 -0
- package/packages/shared-skills/skills/ultimate-browsing/references/agent-reach/career.md +29 -0
- package/packages/shared-skills/skills/ultimate-browsing/references/agent-reach/dev.md +62 -0
- package/packages/shared-skills/skills/ultimate-browsing/references/agent-reach/search.md +33 -0
- package/packages/shared-skills/skills/ultimate-browsing/references/agent-reach/social.md +207 -0
- package/packages/shared-skills/skills/ultimate-browsing/references/agent-reach/video.md +115 -0
- package/packages/shared-skills/skills/ultimate-browsing/references/agent-reach/web.md +76 -0
- package/packages/shared-skills/skills/ultimate-browsing/references/chrome-stealth.md +120 -0
- package/packages/shared-skills/skills/ultimate-browsing/references/insane-search/README.md +319 -0
- package/packages/shared-skills/skills/ultimate-browsing/references/insane-search/cache-archive.md +83 -0
- package/packages/shared-skills/skills/ultimate-browsing/references/insane-search/fallback.md +159 -0
- package/packages/shared-skills/skills/ultimate-browsing/references/insane-search/jina.md +130 -0
- package/packages/shared-skills/skills/ultimate-browsing/references/insane-search/json-api.md +133 -0
- package/packages/shared-skills/skills/ultimate-browsing/references/insane-search/media.md +123 -0
- package/packages/shared-skills/skills/ultimate-browsing/references/insane-search/metadata.md +116 -0
- package/packages/shared-skills/skills/ultimate-browsing/references/insane-search/naver.md +107 -0
- package/packages/shared-skills/skills/ultimate-browsing/references/insane-search/playwright.md +142 -0
- package/packages/shared-skills/skills/ultimate-browsing/references/insane-search/public-api.md +119 -0
- package/packages/shared-skills/skills/ultimate-browsing/references/insane-search/rss.md +123 -0
- package/packages/shared-skills/skills/ultimate-browsing/references/insane-search/tls-impersonate.md +186 -0
- package/packages/shared-skills/skills/ultimate-browsing/references/insane-search/twitter.md +104 -0
- package/packages/shared-skills/skills/ultimate-browsing/scripts/cookie_crypto.py +75 -0
- package/packages/shared-skills/skills/ultimate-browsing/scripts/cookie_domains.py +38 -0
- package/packages/shared-skills/skills/ultimate-browsing/scripts/cookie_paths.py +112 -0
- package/packages/shared-skills/skills/ultimate-browsing/scripts/extract_cookies.py +280 -0
- package/packages/shared-skills/skills/ultimate-browsing/scripts/tests/test_cookie_domain_filter.py +110 -0
- package/packages/shared-skills/skills/ultimate-browsing/scripts/tests/test_extract_cookies.py +245 -0
- package/packages/shared-skills/skills/ultraresearch/ATTRIBUTION.md +49 -0
- package/packages/shared-skills/skills/ultraresearch/SKILL.md +34 -6
- package/packages/shared-skills/skills/ulw-plan/SKILL.md +4 -1
- package/packages/omo-codex/plugin/components/codegraph/dist/cli.d.ts +0 -2
- package/packages/omo-codex/plugin/components/codegraph/dist/serve.d.ts +0 -32
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, expect, it } from "bun:test";
|
|
2
|
-
import {
|
|
2
|
+
import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
3
3
|
import { tmpdir } from "node:os";
|
|
4
4
|
import { join, resolve } from "node:path";
|
|
5
5
|
import { Readable } from "node:stream";
|
|
@@ -8,8 +8,7 @@ import { fileURLToPath } from "node:url";
|
|
|
8
8
|
import { runCodegraphCli } from "../src/cli.ts";
|
|
9
9
|
import {
|
|
10
10
|
executeCodegraphSessionStartHook,
|
|
11
|
-
|
|
12
|
-
runCodegraphSessionStartWorker,
|
|
11
|
+
runCodegraphPostToolUseHook,
|
|
13
12
|
type WorkerSpawnInvocation,
|
|
14
13
|
} from "../src/hook.ts";
|
|
15
14
|
|
|
@@ -48,6 +47,54 @@ describe("CodeGraph SessionStart hook", () => {
|
|
|
48
47
|
}
|
|
49
48
|
});
|
|
50
49
|
|
|
50
|
+
it("#given CodeGraph MCP reports an uninitialized project #when PostToolUse fires #then it emits OMO global-store init guidance", async () => {
|
|
51
|
+
// given
|
|
52
|
+
const output = runCodegraphPostToolUseHook(
|
|
53
|
+
{
|
|
54
|
+
cwd: "/Users/me/project",
|
|
55
|
+
tool_name: "codegraph.codegraph_status",
|
|
56
|
+
tool_response: {
|
|
57
|
+
error: [
|
|
58
|
+
"Tool execution failed: CodeGraph not initialized in /Users/me/project.",
|
|
59
|
+
"Run 'codegraph init' in that project first.",
|
|
60
|
+
].join(" "),
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
{ homeDir: "/Users/me" },
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
// when
|
|
67
|
+
const parsed = JSON.parse(output);
|
|
68
|
+
|
|
69
|
+
// then
|
|
70
|
+
expect(parsed).toEqual({
|
|
71
|
+
hookSpecificOutput: {
|
|
72
|
+
hookEventName: "PostToolUse",
|
|
73
|
+
additionalContext: expect.stringContaining('"/Users/me/.omo/codegraph/projects/project-'),
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
expect(parsed.hookSpecificOutput.additionalContext).toContain('run `codegraph init` from "/Users/me/project"');
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
it("#given real CodeGraph status output has no MCP path phrase #when PostToolUse fires #then it emits OMO global-store init guidance", async () => {
|
|
80
|
+
// given
|
|
81
|
+
const output = runCodegraphPostToolUseHook(
|
|
82
|
+
{
|
|
83
|
+
cwd: "/Users/me/project",
|
|
84
|
+
tool_name: "mcp__codegraph__codegraph_status",
|
|
85
|
+
tool_response: ['Project: /Users/me/project', "Not initialized", 'Run "codegraph init" to initialize'].join("\n"),
|
|
86
|
+
},
|
|
87
|
+
{ homeDir: "/Users/me" },
|
|
88
|
+
);
|
|
89
|
+
|
|
90
|
+
// when
|
|
91
|
+
const parsed = JSON.parse(output);
|
|
92
|
+
|
|
93
|
+
// then
|
|
94
|
+
expect(parsed.hookSpecificOutput.additionalContext).toContain('CodeGraph is not initialized for "/Users/me/project"');
|
|
95
|
+
expect(parsed.hookSpecificOutput.additionalContext).toContain('"/Users/me/.omo/codegraph/projects/project-');
|
|
96
|
+
});
|
|
97
|
+
|
|
51
98
|
it("#given CodeGraph is disabled by Codex SOT config #when SessionStart fires #then it skips without spawning", async () => {
|
|
52
99
|
// given
|
|
53
100
|
const stdout: string[] = [];
|
|
@@ -198,323 +245,6 @@ describe("CodeGraph SessionStart hook", () => {
|
|
|
198
245
|
}
|
|
199
246
|
});
|
|
200
247
|
|
|
201
|
-
it("#given an unsupported local Node and a PATH CodeGraph command #when worker runs #then it skips without touching the workspace", async () => {
|
|
202
|
-
// given
|
|
203
|
-
const workspace = mkdtempSync(join(tmpdir(), "omo-codegraph-worker-node-"));
|
|
204
|
-
const homeDir = mkdtempSync(join(tmpdir(), "omo-codegraph-worker-node-home-"));
|
|
205
|
-
const outcomes: unknown[] = [];
|
|
206
|
-
|
|
207
|
-
try {
|
|
208
|
-
// when
|
|
209
|
-
const result = await runCodegraphSessionStartWorker({
|
|
210
|
-
cwd: workspace,
|
|
211
|
-
env: { HOME: homeDir },
|
|
212
|
-
nodeVersion: "26.3.0",
|
|
213
|
-
logOutcome: (outcome) => outcomes.push(outcome),
|
|
214
|
-
deps: {
|
|
215
|
-
resolveCommand: () => {
|
|
216
|
-
return { argsPrefix: [], command: "/usr/local/bin/codegraph", exists: true, source: "path" };
|
|
217
|
-
},
|
|
218
|
-
ensureProvisioned: () => {
|
|
219
|
-
throw new Error("ensureProvisioned should not run on unsupported Node");
|
|
220
|
-
},
|
|
221
|
-
prepareWorkspace: () => {
|
|
222
|
-
throw new Error("prepareWorkspace should not run on unsupported Node");
|
|
223
|
-
},
|
|
224
|
-
runCommand: () => {
|
|
225
|
-
throw new Error("runCommand should not run on unsupported Node");
|
|
226
|
-
},
|
|
227
|
-
},
|
|
228
|
-
});
|
|
229
|
-
|
|
230
|
-
// then
|
|
231
|
-
expect(result).toEqual({ action: "skipped-unsupported-node" });
|
|
232
|
-
expect(existsSync(join(workspace, ".codegraph"))).toBe(false);
|
|
233
|
-
expect(outcomes).toEqual([{ action: "skipped-unsupported-node", projectRoot: workspace }]);
|
|
234
|
-
} finally {
|
|
235
|
-
rmSync(workspace, { recursive: true, force: true });
|
|
236
|
-
rmSync(homeDir, { recursive: true, force: true });
|
|
237
|
-
}
|
|
238
|
-
});
|
|
239
|
-
|
|
240
|
-
it("#given an unsupported local Node but bundled CodeGraph resolves through CODEGRAPH_NODE_BIN #when worker runs #then it bootstraps with the compatible runtime", async () => {
|
|
241
|
-
// given
|
|
242
|
-
const workspace = mkdtempSync(join(tmpdir(), "omo-codegraph-worker-compatible-node-"));
|
|
243
|
-
const homeDir = mkdtempSync(join(tmpdir(), "omo-codegraph-worker-compatible-node-home-"));
|
|
244
|
-
const nodeBin = "/opt/node22/bin/node";
|
|
245
|
-
const calls: Array<{ readonly args: readonly string[]; readonly command: string }> = [];
|
|
246
|
-
const outcomes: unknown[] = [];
|
|
247
|
-
|
|
248
|
-
try {
|
|
249
|
-
// when
|
|
250
|
-
const result = await runCodegraphSessionStartWorker({
|
|
251
|
-
cwd: workspace,
|
|
252
|
-
env: { CODEGRAPH_NODE_BIN: nodeBin, HOME: homeDir },
|
|
253
|
-
nodeVersion: "26.3.0",
|
|
254
|
-
logOutcome: (outcome) => outcomes.push(outcome),
|
|
255
|
-
deps: {
|
|
256
|
-
ensureGitignored: () => true,
|
|
257
|
-
ensureProvisioned: () => {
|
|
258
|
-
throw new Error("provisioning should not run when bundled CodeGraph resolved");
|
|
259
|
-
},
|
|
260
|
-
prepareWorkspace: () => ({
|
|
261
|
-
dataDir: join(homeDir, ".omo/codegraph/projects/test"),
|
|
262
|
-
dataRoot: join(homeDir, ".omo/codegraph"),
|
|
263
|
-
linked: true,
|
|
264
|
-
mode: "global-linked",
|
|
265
|
-
projectLink: join(workspace, ".codegraph"),
|
|
266
|
-
}),
|
|
267
|
-
resolveCommand: () => ({ argsPrefix: ["codegraph.js"], command: nodeBin, exists: true, source: "bundled" }),
|
|
268
|
-
runCommand: (_projectRoot, command, args) => {
|
|
269
|
-
calls.push({ args, command });
|
|
270
|
-
return Promise.resolve({ exitCode: 0, stdout: calls.length === 1 ? '{"initialized":false}' : "", timedOut: false });
|
|
271
|
-
},
|
|
272
|
-
},
|
|
273
|
-
});
|
|
274
|
-
|
|
275
|
-
// then
|
|
276
|
-
expect(result).toEqual({ action: "initialized" });
|
|
277
|
-
expect(calls).toEqual([
|
|
278
|
-
{ args: ["codegraph.js", "status", "--json"], command: nodeBin },
|
|
279
|
-
{ args: ["codegraph.js", "init"], command: nodeBin },
|
|
280
|
-
]);
|
|
281
|
-
expect(outcomes).toEqual([{ action: "initialized", exitCode: 0, projectRoot: workspace, source: "bundled", timedOut: false }]);
|
|
282
|
-
} finally {
|
|
283
|
-
rmSync(workspace, { recursive: true, force: true });
|
|
284
|
-
rmSync(homeDir, { recursive: true, force: true });
|
|
285
|
-
}
|
|
286
|
-
});
|
|
287
|
-
|
|
288
|
-
it("#given CodeGraph cannot be resolved or provisioned #when worker runs #then it logs a graceful skip", async () => {
|
|
289
|
-
// given
|
|
290
|
-
const workspace = mkdtempSync(join(tmpdir(), "omo-codegraph-worker-"));
|
|
291
|
-
const homeDir = mkdtempSync(join(tmpdir(), "omo-codegraph-worker-home-"));
|
|
292
|
-
const outcomes: unknown[] = [];
|
|
293
|
-
const calls: string[] = [];
|
|
294
|
-
|
|
295
|
-
try {
|
|
296
|
-
// when
|
|
297
|
-
const result = await runCodegraphSessionStartWorker({
|
|
298
|
-
cwd: workspace,
|
|
299
|
-
env: { HOME: homeDir },
|
|
300
|
-
nodeVersion: "22.14.0",
|
|
301
|
-
logOutcome: (outcome) => outcomes.push(outcome),
|
|
302
|
-
deps: {
|
|
303
|
-
ensureGitignored: () => {
|
|
304
|
-
calls.push("ensureGitignored");
|
|
305
|
-
return true;
|
|
306
|
-
},
|
|
307
|
-
ensureProvisioned: () => Promise.resolve({ error: "offline", provisioned: false }),
|
|
308
|
-
prepareWorkspace: () => {
|
|
309
|
-
calls.push("prepareWorkspace");
|
|
310
|
-
return {
|
|
311
|
-
dataDir: join(homeDir, ".omo/codegraph/projects/test"),
|
|
312
|
-
dataRoot: join(homeDir, ".omo/codegraph"),
|
|
313
|
-
linked: true,
|
|
314
|
-
mode: "global-linked",
|
|
315
|
-
projectLink: join(workspace, ".codegraph"),
|
|
316
|
-
};
|
|
317
|
-
},
|
|
318
|
-
resolveCommand: () => ({ argsPrefix: [], command: "codegraph", exists: false, source: "path" }),
|
|
319
|
-
runCommand: () => {
|
|
320
|
-
calls.push("runCommand");
|
|
321
|
-
return Promise.resolve({ exitCode: 0, stdout: "", timedOut: false });
|
|
322
|
-
},
|
|
323
|
-
},
|
|
324
|
-
});
|
|
325
|
-
|
|
326
|
-
// then
|
|
327
|
-
expect(result).toEqual({ action: "skipped-unavailable" });
|
|
328
|
-
expect(calls).toEqual([]);
|
|
329
|
-
expect(outcomes).toEqual([
|
|
330
|
-
{
|
|
331
|
-
action: "skipped-unavailable",
|
|
332
|
-
error: "offline",
|
|
333
|
-
projectRoot: workspace,
|
|
334
|
-
source: "path",
|
|
335
|
-
},
|
|
336
|
-
]);
|
|
337
|
-
} finally {
|
|
338
|
-
rmSync(workspace, { recursive: true, force: true });
|
|
339
|
-
rmSync(homeDir, { recursive: true, force: true });
|
|
340
|
-
}
|
|
341
|
-
});
|
|
342
|
-
|
|
343
|
-
it("#given CodeGraph is unavailable and auto provisioning is disabled #when worker runs #then it leaves the project untouched", async () => {
|
|
344
|
-
// given
|
|
345
|
-
const workspace = mkdtempSync(join(tmpdir(), "omo-codegraph-worker-unavailable-"));
|
|
346
|
-
const homeDir = mkdtempSync(join(tmpdir(), "omo-codegraph-worker-unavailable-home-"));
|
|
347
|
-
const outcomes: unknown[] = [];
|
|
348
|
-
|
|
349
|
-
try {
|
|
350
|
-
// when
|
|
351
|
-
const result = await runCodegraphSessionStartWorker({
|
|
352
|
-
config: { codegraph: { auto_provision: false, enabled: true }, sources: [], warnings: [] },
|
|
353
|
-
nodeVersion: "22.14.0",
|
|
354
|
-
cwd: workspace,
|
|
355
|
-
env: { HOME: homeDir },
|
|
356
|
-
logOutcome: (outcome) => outcomes.push(outcome),
|
|
357
|
-
deps: {
|
|
358
|
-
ensureProvisioned: () => {
|
|
359
|
-
throw new Error("auto provision should not run");
|
|
360
|
-
},
|
|
361
|
-
resolveCommand: () => ({ argsPrefix: [], command: "missing-codegraph", exists: false, source: "path" }),
|
|
362
|
-
runCommand: () => {
|
|
363
|
-
throw new Error("codegraph command should not run");
|
|
364
|
-
},
|
|
365
|
-
},
|
|
366
|
-
});
|
|
367
|
-
|
|
368
|
-
// then
|
|
369
|
-
expect(result).toEqual({ action: "skipped-unavailable" });
|
|
370
|
-
expect(existsSync(join(workspace, ".codegraph"))).toBe(false);
|
|
371
|
-
expect(existsSync(join(workspace, ".git", "info", "exclude"))).toBe(false);
|
|
372
|
-
expect(outcomes).toEqual([
|
|
373
|
-
{
|
|
374
|
-
action: "skipped-unavailable",
|
|
375
|
-
error: "codegraph binary unavailable and auto_provision is disabled",
|
|
376
|
-
projectRoot: workspace,
|
|
377
|
-
source: "path",
|
|
378
|
-
},
|
|
379
|
-
]);
|
|
380
|
-
} finally {
|
|
381
|
-
rmSync(workspace, { recursive: true, force: true });
|
|
382
|
-
rmSync(homeDir, { recursive: true, force: true });
|
|
383
|
-
}
|
|
384
|
-
});
|
|
385
|
-
|
|
386
|
-
it("#given Windows install_dir has codegraph.cmd #when worker resolves provisioned CodeGraph #then it uses the cmd shim", async () => {
|
|
387
|
-
await withProcessPlatform("win32", async () => {
|
|
388
|
-
// given
|
|
389
|
-
const workspace = mkdtempSync(join(tmpdir(), "omo-codegraph-worker-win32-"));
|
|
390
|
-
const homeDir = mkdtempSync(join(tmpdir(), "omo-codegraph-worker-win32-home-"));
|
|
391
|
-
const installDir = mkdtempSync(join(tmpdir(), "omo-codegraph-worker-win32-install-"));
|
|
392
|
-
const binPath = join(installDir, "bin", "codegraph.cmd");
|
|
393
|
-
const calls: { readonly args: readonly string[]; readonly command: string; readonly env: Record<string, string> }[] = [];
|
|
394
|
-
const outcomes: unknown[] = [];
|
|
395
|
-
try {
|
|
396
|
-
mkdirSync(join(installDir, "bin"), { recursive: true });
|
|
397
|
-
writeFileSync(binPath, "");
|
|
398
|
-
|
|
399
|
-
// when
|
|
400
|
-
const result = await runCodegraphSessionStartWorker({
|
|
401
|
-
config: { codegraph: { enabled: true, install_dir: installDir }, sources: [], warnings: [] },
|
|
402
|
-
nodeVersion: "22.14.0",
|
|
403
|
-
cwd: workspace,
|
|
404
|
-
env: { HOME: homeDir },
|
|
405
|
-
logOutcome: (outcome) => outcomes.push(outcome),
|
|
406
|
-
deps: {
|
|
407
|
-
ensureGitignored: () => true,
|
|
408
|
-
ensureProvisioned: () => {
|
|
409
|
-
throw new Error("provisioning should not run when install_dir binary exists");
|
|
410
|
-
},
|
|
411
|
-
prepareWorkspace: () => ({
|
|
412
|
-
dataDir: join(homeDir, ".omo/codegraph/projects/test"),
|
|
413
|
-
dataRoot: join(homeDir, ".omo/codegraph"),
|
|
414
|
-
linked: true,
|
|
415
|
-
mode: "global-linked",
|
|
416
|
-
projectLink: join(workspace, ".codegraph"),
|
|
417
|
-
}),
|
|
418
|
-
resolveCommand: (options) => {
|
|
419
|
-
const provisioned = options?.provisioned?.() ?? null;
|
|
420
|
-
return { argsPrefix: [], command: provisioned ?? "missing-codegraph", exists: provisioned !== null, source: provisioned === null ? "path" : "provisioned" };
|
|
421
|
-
},
|
|
422
|
-
runCommand: (_projectRoot, command, args, options) => {
|
|
423
|
-
calls.push({ args, command, env: options.env });
|
|
424
|
-
return Promise.resolve({ exitCode: 0, stdout: calls.length === 1 ? '{"initialized":false}' : "", timedOut: false });
|
|
425
|
-
},
|
|
426
|
-
},
|
|
427
|
-
});
|
|
428
|
-
|
|
429
|
-
// then
|
|
430
|
-
expect(result).toEqual({ action: "initialized" });
|
|
431
|
-
expect(calls.map((call) => ({ args: [...call.args], command: call.command }))).toEqual([
|
|
432
|
-
{ args: ["status", "--json"], command: binPath },
|
|
433
|
-
{ args: ["init"], command: binPath },
|
|
434
|
-
]);
|
|
435
|
-
expect(calls[0]?.env["CODEGRAPH_INSTALL_DIR"]).toBe(installDir);
|
|
436
|
-
expect(outcomes).toEqual([{ action: "initialized", exitCode: 0, projectRoot: workspace, source: "provisioned", timedOut: false }]);
|
|
437
|
-
} finally {
|
|
438
|
-
rmSync(workspace, { recursive: true, force: true });
|
|
439
|
-
rmSync(homeDir, { recursive: true, force: true });
|
|
440
|
-
rmSync(installDir, { recursive: true, force: true });
|
|
441
|
-
}
|
|
442
|
-
});
|
|
443
|
-
});
|
|
444
|
-
|
|
445
|
-
it("#given Windows codegraph.cmd #when default worker runner builds invocation #then it runs through cmd.exe", () => {
|
|
446
|
-
// given
|
|
447
|
-
const command = "C:\\Users\\test\\.omo\\codegraph\\bin\\codegraph.cmd";
|
|
448
|
-
|
|
449
|
-
// when
|
|
450
|
-
const invocation = resolveCodegraphCommandInvocation(command, ["status", "--json"], "win32");
|
|
451
|
-
|
|
452
|
-
// then
|
|
453
|
-
expect(invocation).toEqual({
|
|
454
|
-
args: ["/d", "/s", "/c", command, "status", "--json"],
|
|
455
|
-
command: "cmd.exe",
|
|
456
|
-
});
|
|
457
|
-
});
|
|
458
|
-
|
|
459
|
-
it("#given non-Windows codegraph command #when default worker runner builds invocation #then it executes directly", () => {
|
|
460
|
-
// given
|
|
461
|
-
const command = "/home/test/.omo/codegraph/bin/codegraph";
|
|
462
|
-
|
|
463
|
-
// when
|
|
464
|
-
const invocation = resolveCodegraphCommandInvocation(command, ["sync"], "linux");
|
|
465
|
-
|
|
466
|
-
// then
|
|
467
|
-
expect(invocation).toEqual({ args: ["sync"], command });
|
|
468
|
-
});
|
|
469
|
-
|
|
470
|
-
it("#given resolved CodeGraph status #when worker runs #then it runs status before init or sync", async () => {
|
|
471
|
-
for (const scenario of [
|
|
472
|
-
{ action: "initialized", args: [["status", "--json"], ["init"]], stdout: '{"initialized":false}' },
|
|
473
|
-
{ action: "synced", args: [["status", "--json"], ["sync"]], stdout: '{"initialized":true}' },
|
|
474
|
-
] as const) {
|
|
475
|
-
// given
|
|
476
|
-
const workspace = mkdtempSync(join(tmpdir(), "omo-codegraph-status-"));
|
|
477
|
-
const homeDir = mkdtempSync(join(tmpdir(), "omo-codegraph-status-home-"));
|
|
478
|
-
const calls: { readonly args: readonly string[]; readonly command: string; readonly env: Record<string, string> }[] = [];
|
|
479
|
-
const outcomes: unknown[] = [];
|
|
480
|
-
try {
|
|
481
|
-
// when
|
|
482
|
-
const result = await runCodegraphSessionStartWorker({
|
|
483
|
-
config: { codegraph: { enabled: true, install_dir: "/tmp/codegraph-install" }, sources: [], warnings: [] },
|
|
484
|
-
nodeVersion: "22.14.0",
|
|
485
|
-
cwd: workspace,
|
|
486
|
-
env: { HOME: homeDir },
|
|
487
|
-
logOutcome: (outcome) => outcomes.push(outcome),
|
|
488
|
-
deps: {
|
|
489
|
-
ensureGitignored: () => true,
|
|
490
|
-
ensureProvisioned: () => Promise.resolve({ binPath: "/tmp/codegraph", provisioned: true }),
|
|
491
|
-
prepareWorkspace: () => ({
|
|
492
|
-
dataDir: join(homeDir, ".omo/codegraph/projects/test"),
|
|
493
|
-
dataRoot: join(homeDir, ".omo/codegraph"),
|
|
494
|
-
linked: true,
|
|
495
|
-
mode: "global-linked",
|
|
496
|
-
projectLink: join(workspace, ".codegraph"),
|
|
497
|
-
}),
|
|
498
|
-
resolveCommand: () => ({ argsPrefix: [], command: "/tmp/codegraph", exists: true, source: "path" }),
|
|
499
|
-
runCommand: (_projectRoot, command, args, options) => {
|
|
500
|
-
calls.push({ args, command, env: options.env });
|
|
501
|
-
return Promise.resolve({ exitCode: 0, stdout: calls.length === 1 ? scenario.stdout : "", timedOut: false });
|
|
502
|
-
},
|
|
503
|
-
},
|
|
504
|
-
});
|
|
505
|
-
|
|
506
|
-
// then
|
|
507
|
-
expect(result).toEqual({ action: scenario.action });
|
|
508
|
-
expect(calls.map((call) => [...call.args])).toEqual(scenario.args.map((args) => [...args]));
|
|
509
|
-
expect(calls[0]?.env["CODEGRAPH_INSTALL_DIR"]).toBe("/tmp/codegraph-install");
|
|
510
|
-
expect(outcomes).toEqual([{ action: scenario.action, exitCode: 0, projectRoot: workspace, source: "path", timedOut: false }]);
|
|
511
|
-
} finally {
|
|
512
|
-
rmSync(workspace, { recursive: true, force: true });
|
|
513
|
-
rmSync(homeDir, { recursive: true, force: true });
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
});
|
|
517
|
-
|
|
518
248
|
it("#given malformed hook input with CodeGraph disabled #when SessionStart fires #then it stays silent and exits zero", async () => {
|
|
519
249
|
// given
|
|
520
250
|
const stdout: string[] = [];
|
|
@@ -552,13 +282,3 @@ describe("CodeGraph SessionStart hook", () => {
|
|
|
552
282
|
);
|
|
553
283
|
});
|
|
554
284
|
});
|
|
555
|
-
|
|
556
|
-
async function withProcessPlatform(platform: NodeJS.Platform, run: () => Promise<void>): Promise<void> {
|
|
557
|
-
const descriptor = Object.getOwnPropertyDescriptor(process, "platform");
|
|
558
|
-
Object.defineProperty(process, "platform", { configurable: true, enumerable: true, value: platform });
|
|
559
|
-
try {
|
|
560
|
-
await run();
|
|
561
|
-
} finally {
|
|
562
|
-
if (descriptor !== undefined) Object.defineProperty(process, "platform", descriptor);
|
|
563
|
-
}
|
|
564
|
-
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { describe, expect, it } from "bun:test";
|
|
2
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
3
|
+
import { dirname, resolve } from "node:path";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
|
+
|
|
6
|
+
type CodegraphPackageJson = {
|
|
7
|
+
readonly files?: readonly string[];
|
|
8
|
+
readonly optionalDependencies?: Readonly<Record<string, string>>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const componentRoot = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
|
12
|
+
const repoRoot = resolve(componentRoot, "../../../../..");
|
|
13
|
+
|
|
14
|
+
function readCodegraphPackageJson(): CodegraphPackageJson {
|
|
15
|
+
const parsed: unknown = JSON.parse(readFileSync(resolve(componentRoot, "package.json"), "utf8"));
|
|
16
|
+
if (!isCodegraphPackageJson(parsed)) throw new TypeError("Invalid CodeGraph package metadata");
|
|
17
|
+
return parsed;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function isCodegraphPackageJson(value: unknown): value is CodegraphPackageJson {
|
|
21
|
+
return isRecord(value) && maybeStringArray(value["files"]) && maybeStringRecord(value["optionalDependencies"]);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function maybeStringArray(value: unknown): value is readonly string[] | undefined {
|
|
25
|
+
return value === undefined || (Array.isArray(value) && value.every((item) => typeof item === "string"));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function maybeStringRecord(value: unknown): value is Readonly<Record<string, string>> | undefined {
|
|
29
|
+
return value === undefined || (isRecord(value) && Object.values(value).every((item) => typeof item === "string"));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function isRecord(value: unknown): value is Record<string, unknown> {
|
|
33
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
describe("CodeGraph component runtime package metadata", () => {
|
|
37
|
+
it("#given the CodeGraph component package #when validating runtime distribution metadata #then upstream CodeGraph installs optionally with shipped legal files", () => {
|
|
38
|
+
// given
|
|
39
|
+
const packageJson = readCodegraphPackageJson();
|
|
40
|
+
|
|
41
|
+
// when
|
|
42
|
+
const optionalDependencies = packageJson.optionalDependencies ?? {};
|
|
43
|
+
const files = packageJson.files ?? [];
|
|
44
|
+
|
|
45
|
+
// then
|
|
46
|
+
expect(optionalDependencies["@colbymchenry/codegraph"]).toBe("1.0.1");
|
|
47
|
+
expect(files).toContain("LICENSE");
|
|
48
|
+
expect(files).toContain("NODE-RUNTIME-LICENSES.md");
|
|
49
|
+
expect(files).toContain("NOTICE");
|
|
50
|
+
expect(existsSync(resolve(componentRoot, "LICENSE"))).toBe(true);
|
|
51
|
+
expect(existsSync(resolve(componentRoot, "NODE-RUNTIME-LICENSES.md"))).toBe(true);
|
|
52
|
+
expect(existsSync(resolve(componentRoot, "NOTICE"))).toBe(true);
|
|
53
|
+
expect(existsSync(resolve(componentRoot, "dist", "cli.d.ts"))).toBe(false);
|
|
54
|
+
expect(existsSync(resolve(componentRoot, "dist", "serve.d.ts"))).toBe(false);
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
it("#given marketplace payload includes only the plugin tree #when reading CodeGraph NOTICE #then it is self-contained", () => {
|
|
58
|
+
// given
|
|
59
|
+
const notice = readFileSync(resolve(componentRoot, "NOTICE"), "utf8");
|
|
60
|
+
|
|
61
|
+
expect(notice).toContain("@colbymchenry/codegraph@1.0.1");
|
|
62
|
+
expect(notice).toContain("MIT license");
|
|
63
|
+
expect(notice).toContain("Node.js v24.16.0 runtime");
|
|
64
|
+
expect(notice).toContain("NODE-RUNTIME-LICENSES.md");
|
|
65
|
+
expect(notice).not.toContain("packages/omo-codex/THIRD-PARTY-NOTICES.md");
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
it("#given CodeGraph platform bundles include Node #when reading runtime licenses #then Node license text ships with the component", () => {
|
|
69
|
+
// given
|
|
70
|
+
const licenseText = readFileSync(resolve(componentRoot, "NODE-RUNTIME-LICENSES.md"), "utf8");
|
|
71
|
+
|
|
72
|
+
// then
|
|
73
|
+
expect(licenseText).toContain("Node.js v24.16.0 LICENSE text");
|
|
74
|
+
expect(licenseText).toContain("Copyright Node.js contributors");
|
|
75
|
+
expect(licenseText).toContain("The externally maintained libraries used by Node.js are:");
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
it("#given third-party notices #when validating CodeGraph component notices #then aggregate Codex notices list CodeGraph as shipped", () => {
|
|
79
|
+
// given
|
|
80
|
+
const codexNotice = readFileSync(resolve(repoRoot, "packages/omo-codex/THIRD-PARTY-NOTICES.md"), "utf8");
|
|
81
|
+
|
|
82
|
+
// when
|
|
83
|
+
const listsCodegraphComponent = codexNotice.includes("@sisyphuslabs/codex-codegraph");
|
|
84
|
+
const listsUpstreamRuntime = codexNotice.includes("@colbymchenry/codegraph");
|
|
85
|
+
|
|
86
|
+
// then
|
|
87
|
+
expect(listsCodegraphComponent).toBe(true);
|
|
88
|
+
expect(listsUpstreamRuntime).toBe(true);
|
|
89
|
+
expect(codexNotice).not.toContain("not currently an omo-codex plugin component");
|
|
90
|
+
});
|
|
91
|
+
});
|
|
@@ -35,7 +35,7 @@ describe("CodeGraph provisioned launcher Node guard", () => {
|
|
|
35
35
|
const workspace = mkdtempSync(join(tmpdir(), "omo-codegraph-worker-node25-"));
|
|
36
36
|
const homeDir = mkdtempSync(join(tmpdir(), "omo-codegraph-worker-node25-home-"));
|
|
37
37
|
const installDir = mkdtempSync(join(tmpdir(), "omo-codegraph-worker-node25-install-"));
|
|
38
|
-
const binPath = join(installDir, "bin", "codegraph");
|
|
38
|
+
const binPath = join(installDir, "bin", process.platform === "win32" ? "codegraph.cmd" : "codegraph");
|
|
39
39
|
const calls: Array<{ readonly args: readonly string[]; readonly command: string }> = [];
|
|
40
40
|
const outcomes: unknown[] = [];
|
|
41
41
|
|
|
@@ -45,7 +45,7 @@ describe("CodeGraph provisioned launcher Node guard", () => {
|
|
|
45
45
|
|
|
46
46
|
// when
|
|
47
47
|
const result = await runCodegraphSessionStartWorker({
|
|
48
|
-
config: { codegraph: { enabled: true, install_dir: installDir }, sources: [], warnings: [] },
|
|
48
|
+
config: { codegraph: { enabled: true, install_dir: installDir }, sources: [], trustedCodegraphInstallDir: installDir, warnings: [] },
|
|
49
49
|
nodeVersion: "26.3.0",
|
|
50
50
|
cwd: workspace,
|
|
51
51
|
env: { HOME: homeDir },
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { describe, expect, it } from "bun:test";
|
|
2
|
+
import { PassThrough } from "node:stream";
|
|
3
|
+
|
|
4
|
+
import { runCodegraphServe } from "../src/serve.ts";
|
|
5
|
+
|
|
6
|
+
describe("runCodegraphServe MCP unavailable facade", () => {
|
|
7
|
+
it("#given CodeGraph is unavailable #when an MCP client initializes #then it answers with an empty-tool facade", async () => {
|
|
8
|
+
// given
|
|
9
|
+
const input = new PassThrough();
|
|
10
|
+
const output = new PassThrough();
|
|
11
|
+
const stderr: string[] = [];
|
|
12
|
+
let stdout = "";
|
|
13
|
+
output.on("data", (chunk: Buffer) => {
|
|
14
|
+
stdout += chunk.toString("utf8");
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const run = runCodegraphServe({
|
|
18
|
+
config: { codegraph: { auto_provision: false, enabled: true }, sources: [], warnings: [] },
|
|
19
|
+
env: { PATH: "/bin" },
|
|
20
|
+
buildEnv: () => ({}),
|
|
21
|
+
resolve: () => ({ argsPrefix: [], command: "codegraph", exists: false, source: "path" }),
|
|
22
|
+
stderr: { write: (chunk: string) => stderr.push(chunk) },
|
|
23
|
+
stdin: input,
|
|
24
|
+
stdout: output,
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
// when
|
|
28
|
+
input.end(frameMcpRequest({
|
|
29
|
+
id: 1,
|
|
30
|
+
method: "initialize",
|
|
31
|
+
params: {
|
|
32
|
+
capabilities: {},
|
|
33
|
+
clientInfo: { name: "ulw-red", version: "0.0.0" },
|
|
34
|
+
protocolVersion: "2025-06-18",
|
|
35
|
+
},
|
|
36
|
+
}));
|
|
37
|
+
const exitCode = await run;
|
|
38
|
+
|
|
39
|
+
// then
|
|
40
|
+
expect(exitCode).toBe(0);
|
|
41
|
+
expect(stderr).toEqual([
|
|
42
|
+
"CodeGraph MCP skipped: codegraph binary not found. Install CodeGraph or set OMO_CODEGRAPH_BIN.\n",
|
|
43
|
+
]);
|
|
44
|
+
expect(parseFirstJsonRpcBody(stdout)).toEqual({
|
|
45
|
+
id: 1,
|
|
46
|
+
jsonrpc: "2.0",
|
|
47
|
+
result: {
|
|
48
|
+
capabilities: { tools: { listChanged: false } },
|
|
49
|
+
protocolVersion: "2025-06-18",
|
|
50
|
+
serverInfo: { name: "codegraph", version: "1.0.1" },
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
function frameMcpRequest(request: {
|
|
57
|
+
readonly id: number;
|
|
58
|
+
readonly method: string;
|
|
59
|
+
readonly params: Record<string, unknown>;
|
|
60
|
+
}): string {
|
|
61
|
+
const body = JSON.stringify({ jsonrpc: "2.0", ...request });
|
|
62
|
+
return `Content-Length: ${Buffer.byteLength(body)}\r\n\r\n${body}`;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function parseFirstJsonRpcBody(transcript: string): unknown {
|
|
66
|
+
const [, body = ""] = transcript.split("\r\n\r\n", 2);
|
|
67
|
+
return JSON.parse(body);
|
|
68
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { describe, expect, it } from "bun:test";
|
|
2
|
+
import { PassThrough } from "node:stream";
|
|
2
3
|
|
|
3
4
|
import { CODEGRAPH_UNSAFE_NODE_ENV } from "../../../../../utils/src/codegraph/node-support.ts";
|
|
4
5
|
import { runCodegraphServe } from "../src/serve.ts";
|
|
@@ -11,6 +12,7 @@ describe("runCodegraphServe node support", () => {
|
|
|
11
12
|
|
|
12
13
|
// when
|
|
13
14
|
const exitCode = await runCodegraphServe({
|
|
15
|
+
...closedMcpStdio(),
|
|
14
16
|
env: { PATH: "/bin" },
|
|
15
17
|
nodeVersion: "26.3.0",
|
|
16
18
|
buildEnv: () => ({}),
|
|
@@ -23,7 +25,7 @@ describe("runCodegraphServe node support", () => {
|
|
|
23
25
|
});
|
|
24
26
|
|
|
25
27
|
// then
|
|
26
|
-
expect(exitCode).toBe(
|
|
28
|
+
expect(exitCode).toBe(0);
|
|
27
29
|
expect(spawned).toEqual([]);
|
|
28
30
|
expect(stderr).toHaveLength(1);
|
|
29
31
|
expect(stderr[0]).toContain("CodeGraph MCP skipped");
|
|
@@ -31,3 +33,11 @@ describe("runCodegraphServe node support", () => {
|
|
|
31
33
|
expect(stderr[0]).toContain(CODEGRAPH_UNSAFE_NODE_ENV);
|
|
32
34
|
});
|
|
33
35
|
});
|
|
36
|
+
|
|
37
|
+
function closedMcpStdio(): { readonly stdin: PassThrough; readonly stdout: PassThrough } {
|
|
38
|
+
const stdin = new PassThrough();
|
|
39
|
+
const stdout = new PassThrough();
|
|
40
|
+
stdout.resume();
|
|
41
|
+
stdin.end();
|
|
42
|
+
return { stdin, stdout };
|
|
43
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { describe, expect, it } from "bun:test";
|
|
2
|
+
import { join } from "node:path";
|
|
3
|
+
|
|
4
|
+
import { runCodegraphServe } from "../src/serve.ts";
|
|
5
|
+
|
|
6
|
+
describe("runCodegraphServe provisioning", () => {
|
|
7
|
+
it("#given CodeGraph is unresolved #when serving MCP #then provisions CodeGraph before spawning", async () => {
|
|
8
|
+
// given
|
|
9
|
+
const binPath = join("/tmp/home/.omo/codegraph", "bin", "codegraph");
|
|
10
|
+
const calls: Array<{
|
|
11
|
+
readonly args: readonly string[];
|
|
12
|
+
readonly command: string;
|
|
13
|
+
readonly env: Record<string, string | undefined>;
|
|
14
|
+
}> = [];
|
|
15
|
+
const stderr: string[] = [];
|
|
16
|
+
|
|
17
|
+
// when
|
|
18
|
+
const exitCode = await runCodegraphServe({
|
|
19
|
+
config: { codegraph: { enabled: true }, sources: [], warnings: [] },
|
|
20
|
+
env: { PATH: "/bin" },
|
|
21
|
+
homeDir: "/tmp/home",
|
|
22
|
+
nodeVersion: "22.14.0",
|
|
23
|
+
buildEnv: () => ({}),
|
|
24
|
+
resolve: () => ({ argsPrefix: [], command: "codegraph", exists: false, source: "path" }),
|
|
25
|
+
ensureProvisioned: (options) =>
|
|
26
|
+
Promise.resolve({
|
|
27
|
+
binPath: join(options.installDir ?? "/tmp/home/.omo/codegraph", "bin", "codegraph"),
|
|
28
|
+
provisioned: true,
|
|
29
|
+
}),
|
|
30
|
+
runProcess: (command, args, options) => {
|
|
31
|
+
calls.push({ args, command, env: options.env });
|
|
32
|
+
return Promise.resolve(0);
|
|
33
|
+
},
|
|
34
|
+
stderr: { write: (chunk: string) => stderr.push(chunk) },
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
// then
|
|
38
|
+
expect(exitCode).toBe(0);
|
|
39
|
+
expect(stderr).toEqual([]);
|
|
40
|
+
expect(calls).toEqual([
|
|
41
|
+
{
|
|
42
|
+
args: ["serve", "--mcp"],
|
|
43
|
+
command: binPath,
|
|
44
|
+
env: { PATH: "/bin" },
|
|
45
|
+
},
|
|
46
|
+
]);
|
|
47
|
+
});
|
|
48
|
+
});
|