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
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { describe, expect, it } from "bun:test";
|
|
2
|
+
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
3
|
+
import { tmpdir } from "node:os";
|
|
4
|
+
import { join } from "node:path";
|
|
5
|
+
import { PassThrough } from "node:stream";
|
|
6
|
+
|
|
7
|
+
import { runCodegraphServe } from "../src/serve.ts";
|
|
8
|
+
|
|
9
|
+
describe("runCodegraphServe unavailable CodeGraph paths", () => {
|
|
10
|
+
it("#given CodeGraph is unresolved #when serving MCP #then exposes an empty facade with a skip hint", async () => {
|
|
11
|
+
// given
|
|
12
|
+
const stderr: string[] = [];
|
|
13
|
+
const spawned: string[] = [];
|
|
14
|
+
|
|
15
|
+
// when
|
|
16
|
+
const exitCode = await runCodegraphServe({
|
|
17
|
+
...closedMcpStdio(),
|
|
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
|
+
runProcess: (command: string) => {
|
|
23
|
+
spawned.push(command);
|
|
24
|
+
return Promise.resolve(0);
|
|
25
|
+
},
|
|
26
|
+
stderr: { write: (chunk: string) => stderr.push(chunk) },
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
// then
|
|
30
|
+
expect(exitCode).toBe(0);
|
|
31
|
+
expect(spawned).toEqual([]);
|
|
32
|
+
expect(stderr).toEqual([
|
|
33
|
+
"CodeGraph MCP skipped: codegraph binary not found. Install CodeGraph or set OMO_CODEGRAPH_BIN.\n",
|
|
34
|
+
]);
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
it("#given an unsupported local Node #when serving MCP #then exposes an empty facade without spawning codegraph", async () => {
|
|
38
|
+
// given
|
|
39
|
+
const stderr: string[] = [];
|
|
40
|
+
const spawned: string[] = [];
|
|
41
|
+
|
|
42
|
+
// when
|
|
43
|
+
const exitCode = await runCodegraphServe({
|
|
44
|
+
...closedMcpStdio(),
|
|
45
|
+
env: {},
|
|
46
|
+
nodeVersion: "26.3.0",
|
|
47
|
+
buildEnv: () => ({}),
|
|
48
|
+
resolve: () => ({ argsPrefix: [], command: "codegraph", exists: true, source: "path" }),
|
|
49
|
+
runProcess: (command: string) => {
|
|
50
|
+
spawned.push(command);
|
|
51
|
+
return Promise.resolve(0);
|
|
52
|
+
},
|
|
53
|
+
stderr: { write: (chunk: string) => stderr.push(chunk) },
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
// then
|
|
57
|
+
expect(exitCode).toBe(0);
|
|
58
|
+
expect(spawned).toEqual([]);
|
|
59
|
+
expect(stderr).toHaveLength(1);
|
|
60
|
+
expect(stderr[0]).toContain("CodeGraph MCP skipped");
|
|
61
|
+
expect(stderr[0]).toContain("CODEGRAPH_ALLOW_UNSAFE_NODE");
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
it("#given OMO_CODEGRAPH_BIN points at a missing path #when serving MCP #then exposes an empty facade before spawn", async () => {
|
|
65
|
+
// given
|
|
66
|
+
const stderr: string[] = [];
|
|
67
|
+
const spawned: string[] = [];
|
|
68
|
+
|
|
69
|
+
// when
|
|
70
|
+
const exitCode = await runCodegraphServe({
|
|
71
|
+
...closedMcpStdio(),
|
|
72
|
+
buildEnv: () => ({}),
|
|
73
|
+
commandExists: () => false,
|
|
74
|
+
resolve: () => ({ argsPrefix: [], command: "/nonexistent", exists: true, source: "env" }),
|
|
75
|
+
runProcess: (command: string) => {
|
|
76
|
+
spawned.push(command);
|
|
77
|
+
return Promise.resolve(0);
|
|
78
|
+
},
|
|
79
|
+
stderr: { write: (chunk: string) => stderr.push(chunk) },
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
// then
|
|
83
|
+
expect(exitCode).toBe(0);
|
|
84
|
+
expect(spawned).toEqual([]);
|
|
85
|
+
expect(stderr).toEqual([
|
|
86
|
+
"CodeGraph MCP skipped: codegraph binary not found. Install CodeGraph or set OMO_CODEGRAPH_BIN.\n",
|
|
87
|
+
]);
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
it("#given Codex SOT disables CodeGraph #when serving MCP #then exposes an empty facade with a disabled hint", async () => {
|
|
91
|
+
// given
|
|
92
|
+
const homeDir = mkdtempSync(join(tmpdir(), "omo-codegraph-serve-disabled-home-"));
|
|
93
|
+
const workspace = mkdtempSync(join(tmpdir(), "omo-codegraph-serve-disabled-workspace-"));
|
|
94
|
+
const stderr: string[] = [];
|
|
95
|
+
const spawned: string[] = [];
|
|
96
|
+
try {
|
|
97
|
+
mkdirSync(join(homeDir, ".omo"), { recursive: true });
|
|
98
|
+
mkdirSync(join(workspace, ".omo"), { recursive: true });
|
|
99
|
+
writeFileSync(join(homeDir, ".omo", "config.jsonc"), '{ "codegraph": { "enabled": true } }\n');
|
|
100
|
+
writeFileSync(join(workspace, ".omo", "config.jsonc"), '{ "[codex]": { "codegraph": { "enabled": false } } }\n');
|
|
101
|
+
|
|
102
|
+
// when
|
|
103
|
+
const exitCode = await runCodegraphServe({
|
|
104
|
+
...closedMcpStdio(),
|
|
105
|
+
cwd: workspace,
|
|
106
|
+
env: { HOME: homeDir },
|
|
107
|
+
runProcess: (command: string) => {
|
|
108
|
+
spawned.push(command);
|
|
109
|
+
return Promise.resolve(0);
|
|
110
|
+
},
|
|
111
|
+
stderr: { write: (chunk: string) => stderr.push(chunk) },
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
// then
|
|
115
|
+
expect(exitCode).toBe(0);
|
|
116
|
+
expect(spawned).toEqual([]);
|
|
117
|
+
expect(stderr).toEqual([
|
|
118
|
+
"CodeGraph MCP skipped: disabled by OMO SOT config. Set [codex].codegraph.enabled=true to enable it.\n",
|
|
119
|
+
]);
|
|
120
|
+
} finally {
|
|
121
|
+
rmSync(homeDir, { recursive: true, force: true });
|
|
122
|
+
rmSync(workspace, { recursive: true, force: true });
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
function closedMcpStdio(): { readonly stdin: PassThrough; readonly stdout: PassThrough } {
|
|
128
|
+
const stdin = new PassThrough();
|
|
129
|
+
const stdout = new PassThrough();
|
|
130
|
+
stdout.resume();
|
|
131
|
+
stdin.end();
|
|
132
|
+
return { stdin, stdout };
|
|
133
|
+
}
|
|
@@ -10,31 +10,6 @@ import { resolveServeProcessInvocation, runCodegraphServe } from "../src/serve.t
|
|
|
10
10
|
const componentRoot = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
|
11
11
|
|
|
12
12
|
describe("runCodegraphServe", () => {
|
|
13
|
-
it("#given CodeGraph is unresolved #when serving MCP #then exits non-zero with a one-line skip hint", async () => {
|
|
14
|
-
// given
|
|
15
|
-
const stderr: string[] = [];
|
|
16
|
-
const spawned: string[] = [];
|
|
17
|
-
|
|
18
|
-
// when
|
|
19
|
-
const exitCode = await runCodegraphServe({
|
|
20
|
-
env: { PATH: "/bin" },
|
|
21
|
-
buildEnv: () => ({}),
|
|
22
|
-
resolve: () => ({ argsPrefix: [], command: "codegraph", exists: false, source: "path" }),
|
|
23
|
-
runProcess: (command: string) => {
|
|
24
|
-
spawned.push(command);
|
|
25
|
-
return Promise.resolve(0);
|
|
26
|
-
},
|
|
27
|
-
stderr: { write: (chunk: string) => stderr.push(chunk) },
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
// then
|
|
31
|
-
expect(exitCode).toBe(1);
|
|
32
|
-
expect(spawned).toEqual([]);
|
|
33
|
-
expect(stderr).toEqual([
|
|
34
|
-
"CodeGraph MCP skipped: codegraph binary not found. Install CodeGraph or set OMO_CODEGRAPH_BIN.\n",
|
|
35
|
-
]);
|
|
36
|
-
});
|
|
37
|
-
|
|
38
13
|
it("#given CodeGraph resolves #when serving MCP #then execs codegraph serve --mcp with inherited stdio and telemetry disabled", async () => {
|
|
39
14
|
// given
|
|
40
15
|
const calls: Array<{
|
|
@@ -86,32 +61,6 @@ describe("runCodegraphServe", () => {
|
|
|
86
61
|
]);
|
|
87
62
|
});
|
|
88
63
|
|
|
89
|
-
it("#given an unsupported local Node #when serving MCP #then skips fast without spawning codegraph", async () => {
|
|
90
|
-
// given
|
|
91
|
-
const stderr: string[] = [];
|
|
92
|
-
const spawned: string[] = [];
|
|
93
|
-
|
|
94
|
-
// when
|
|
95
|
-
const exitCode = await runCodegraphServe({
|
|
96
|
-
env: {},
|
|
97
|
-
nodeVersion: "26.3.0",
|
|
98
|
-
buildEnv: () => ({}),
|
|
99
|
-
resolve: () => ({ argsPrefix: [], command: "codegraph", exists: true, source: "path" }),
|
|
100
|
-
runProcess: (command: string) => {
|
|
101
|
-
spawned.push(command);
|
|
102
|
-
return Promise.resolve(0);
|
|
103
|
-
},
|
|
104
|
-
stderr: { write: (chunk: string) => stderr.push(chunk) },
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
// then
|
|
108
|
-
expect(exitCode).toBe(1);
|
|
109
|
-
expect(spawned).toEqual([]);
|
|
110
|
-
expect(stderr).toHaveLength(1);
|
|
111
|
-
expect(stderr[0]).toContain("CodeGraph MCP skipped");
|
|
112
|
-
expect(stderr[0]).toContain("CODEGRAPH_ALLOW_UNSAFE_NODE");
|
|
113
|
-
});
|
|
114
|
-
|
|
115
64
|
it("#given an unsupported local Node but the unsafe override is set #when serving MCP #then it still spawns codegraph", async () => {
|
|
116
65
|
// given
|
|
117
66
|
const spawned: string[] = [];
|
|
@@ -181,66 +130,6 @@ describe("runCodegraphServe", () => {
|
|
|
181
130
|
expect(spawned).toEqual([{ args: ["serve", "--mcp"], command: commandPath }]);
|
|
182
131
|
});
|
|
183
132
|
|
|
184
|
-
it("#given OMO_CODEGRAPH_BIN points at a missing path #when serving MCP #then exits before spawn", async () => {
|
|
185
|
-
// given
|
|
186
|
-
const stderr: string[] = [];
|
|
187
|
-
const spawned: string[] = [];
|
|
188
|
-
|
|
189
|
-
// when
|
|
190
|
-
const exitCode = await runCodegraphServe({
|
|
191
|
-
buildEnv: () => ({}),
|
|
192
|
-
commandExists: () => false,
|
|
193
|
-
resolve: () => ({ argsPrefix: [], command: "/nonexistent", exists: true, source: "env" }),
|
|
194
|
-
runProcess: (command: string) => {
|
|
195
|
-
spawned.push(command);
|
|
196
|
-
return Promise.resolve(0);
|
|
197
|
-
},
|
|
198
|
-
stderr: { write: (chunk: string) => stderr.push(chunk) },
|
|
199
|
-
});
|
|
200
|
-
|
|
201
|
-
// then
|
|
202
|
-
expect(exitCode).toBe(1);
|
|
203
|
-
expect(spawned).toEqual([]);
|
|
204
|
-
expect(stderr).toEqual([
|
|
205
|
-
"CodeGraph MCP skipped: codegraph binary not found. Install CodeGraph or set OMO_CODEGRAPH_BIN.\n",
|
|
206
|
-
]);
|
|
207
|
-
});
|
|
208
|
-
|
|
209
|
-
it("#given Codex SOT disables CodeGraph #when serving MCP #then exits non-zero with a disabled hint", async () => {
|
|
210
|
-
// given
|
|
211
|
-
const homeDir = mkdtempSync(join(tmpdir(), "omo-codegraph-serve-disabled-home-"));
|
|
212
|
-
const workspace = mkdtempSync(join(tmpdir(), "omo-codegraph-serve-disabled-workspace-"));
|
|
213
|
-
const stderr: string[] = [];
|
|
214
|
-
const spawned: string[] = [];
|
|
215
|
-
try {
|
|
216
|
-
mkdirSync(join(homeDir, ".omo"), { recursive: true });
|
|
217
|
-
mkdirSync(join(workspace, ".omo"), { recursive: true });
|
|
218
|
-
writeFileSync(join(homeDir, ".omo", "config.jsonc"), '{ "codegraph": { "enabled": true } }\n');
|
|
219
|
-
writeFileSync(join(workspace, ".omo", "config.jsonc"), '{ "[codex]": { "codegraph": { "enabled": false } } }\n');
|
|
220
|
-
|
|
221
|
-
// when
|
|
222
|
-
const exitCode = await runCodegraphServe({
|
|
223
|
-
cwd: workspace,
|
|
224
|
-
env: { HOME: homeDir },
|
|
225
|
-
runProcess: (command: string) => {
|
|
226
|
-
spawned.push(command);
|
|
227
|
-
return Promise.resolve(0);
|
|
228
|
-
},
|
|
229
|
-
stderr: { write: (chunk: string) => stderr.push(chunk) },
|
|
230
|
-
});
|
|
231
|
-
|
|
232
|
-
// then
|
|
233
|
-
expect(exitCode).toBe(1);
|
|
234
|
-
expect(spawned).toEqual([]);
|
|
235
|
-
expect(stderr).toEqual([
|
|
236
|
-
"CodeGraph MCP skipped: disabled by OMO SOT config. Set [codex].codegraph.enabled=true to enable it.\n",
|
|
237
|
-
]);
|
|
238
|
-
} finally {
|
|
239
|
-
rmSync(homeDir, { recursive: true, force: true });
|
|
240
|
-
rmSync(workspace, { recursive: true, force: true });
|
|
241
|
-
}
|
|
242
|
-
});
|
|
243
|
-
|
|
244
133
|
it("#given Windows Codex SOT install_dir has codegraph.cmd #when serving MCP #then it resolves there and exports CODEGRAPH_INSTALL_DIR", async () => {
|
|
245
134
|
await withProcessPlatform("win32", async () => {
|
|
246
135
|
// given
|
|
@@ -259,7 +148,7 @@ describe("runCodegraphServe", () => {
|
|
|
259
148
|
|
|
260
149
|
// when
|
|
261
150
|
const exitCode = await runCodegraphServe({
|
|
262
|
-
config: { codegraph: { enabled: true, install_dir: installDir }, sources: [], warnings: [] },
|
|
151
|
+
config: { codegraph: { enabled: true, install_dir: installDir }, sources: [], trustedCodegraphInstallDir: installDir, warnings: [] },
|
|
263
152
|
env: { HOME: "/tmp/home" },
|
|
264
153
|
nodeVersion: "22.14.0",
|
|
265
154
|
homeDir: "/tmp/home",
|
package/packages/omo-codex/plugin/components/codegraph/test/session-start-node-support.test.ts
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { describe, expect, it } from "bun:test";
|
|
2
|
+
import { existsSync, mkdtempSync, rmSync } from "node:fs";
|
|
3
|
+
import { tmpdir } from "node:os";
|
|
4
|
+
import { join } from "node:path";
|
|
5
|
+
|
|
6
|
+
import { runCodegraphSessionStartWorker } from "../src/hook.ts";
|
|
7
|
+
|
|
8
|
+
describe("CodeGraph SessionStart worker Node support", () => {
|
|
9
|
+
it("#given an unsupported local Node and a PATH CodeGraph command with auto provisioning disabled #when worker runs #then it skips without touching the workspace", async () => {
|
|
10
|
+
// given
|
|
11
|
+
const workspace = mkdtempSync(join(tmpdir(), "omo-codegraph-worker-node-"));
|
|
12
|
+
const homeDir = mkdtempSync(join(tmpdir(), "omo-codegraph-worker-node-home-"));
|
|
13
|
+
const outcomes: unknown[] = [];
|
|
14
|
+
|
|
15
|
+
try {
|
|
16
|
+
// when
|
|
17
|
+
const result = await runCodegraphSessionStartWorker({
|
|
18
|
+
config: { codegraph: { auto_provision: false, enabled: true }, sources: [], warnings: [] },
|
|
19
|
+
cwd: workspace,
|
|
20
|
+
env: { HOME: homeDir },
|
|
21
|
+
nodeVersion: "26.3.0",
|
|
22
|
+
logOutcome: (outcome) => outcomes.push(outcome),
|
|
23
|
+
deps: {
|
|
24
|
+
resolveCommand: () => {
|
|
25
|
+
return { argsPrefix: [], command: "/usr/local/bin/codegraph", exists: true, source: "path" };
|
|
26
|
+
},
|
|
27
|
+
ensureProvisioned: () => {
|
|
28
|
+
throw new Error("ensureProvisioned should not run on unsupported Node");
|
|
29
|
+
},
|
|
30
|
+
prepareWorkspace: () => {
|
|
31
|
+
throw new Error("prepareWorkspace should not run on unsupported Node");
|
|
32
|
+
},
|
|
33
|
+
runCommand: () => {
|
|
34
|
+
throw new Error("runCommand should not run on unsupported Node");
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
// then
|
|
40
|
+
expect(result).toEqual({ action: "skipped-unsupported-node" });
|
|
41
|
+
expect(existsSync(join(workspace, ".codegraph"))).toBe(false);
|
|
42
|
+
expect(outcomes).toEqual([{ action: "skipped-unsupported-node", projectRoot: workspace }]);
|
|
43
|
+
} finally {
|
|
44
|
+
rmSync(workspace, { recursive: true, force: true });
|
|
45
|
+
rmSync(homeDir, { recursive: true, force: true });
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
it("#given an unsupported local Node and a PATH CodeGraph command #when auto provisioning succeeds #then it bootstraps with the provisioned binary", async () => {
|
|
50
|
+
// given
|
|
51
|
+
const workspace = mkdtempSync(join(tmpdir(), "omo-codegraph-worker-node-provision-"));
|
|
52
|
+
const homeDir = mkdtempSync(join(tmpdir(), "omo-codegraph-worker-node-provision-home-"));
|
|
53
|
+
const binPath = join(homeDir, ".omo", "codegraph", "bin", "codegraph");
|
|
54
|
+
const calls: Array<{ readonly args: readonly string[]; readonly command: string }> = [];
|
|
55
|
+
const provisionCalls: Array<{ readonly installDir?: string; readonly lockDir: string; readonly version: "1.0.1" }> = [];
|
|
56
|
+
const outcomes: unknown[] = [];
|
|
57
|
+
|
|
58
|
+
try {
|
|
59
|
+
// when
|
|
60
|
+
const result = await runCodegraphSessionStartWorker({
|
|
61
|
+
cwd: workspace,
|
|
62
|
+
env: { HOME: homeDir },
|
|
63
|
+
nodeVersion: "26.3.0",
|
|
64
|
+
logOutcome: (outcome) => outcomes.push(outcome),
|
|
65
|
+
deps: {
|
|
66
|
+
ensureGitignored: () => true,
|
|
67
|
+
ensureProvisioned: (options) => {
|
|
68
|
+
provisionCalls.push(options);
|
|
69
|
+
return Promise.resolve({ binPath, provisioned: true });
|
|
70
|
+
},
|
|
71
|
+
prepareWorkspace: () => ({
|
|
72
|
+
dataDir: join(homeDir, ".omo/codegraph/projects/test"),
|
|
73
|
+
dataRoot: join(homeDir, ".omo/codegraph"),
|
|
74
|
+
linked: true,
|
|
75
|
+
mode: "global-linked",
|
|
76
|
+
projectLink: join(workspace, ".codegraph"),
|
|
77
|
+
}),
|
|
78
|
+
resolveCommand: () => ({ argsPrefix: [], command: "/usr/local/bin/codegraph", exists: true, source: "path" }),
|
|
79
|
+
runCommand: (_projectRoot, command, args) => {
|
|
80
|
+
calls.push({ args, command });
|
|
81
|
+
return Promise.resolve({ exitCode: 0, stdout: calls.length === 1 ? '{"initialized":false}' : "", timedOut: false });
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
// then
|
|
87
|
+
expect(result).toEqual({ action: "initialized" });
|
|
88
|
+
expect(calls).toEqual([
|
|
89
|
+
{ args: ["status", "--json"], command: binPath },
|
|
90
|
+
{ args: ["init"], command: binPath },
|
|
91
|
+
]);
|
|
92
|
+
expect(provisionCalls).toEqual([
|
|
93
|
+
{ installDir: join(homeDir, ".omo", "codegraph"), lockDir: join(homeDir, ".omo", "codegraph", ".locks"), version: "1.0.1" },
|
|
94
|
+
]);
|
|
95
|
+
expect(outcomes).toEqual([{ action: "initialized", exitCode: 0, projectRoot: workspace, source: "provisioned", timedOut: false }]);
|
|
96
|
+
} finally {
|
|
97
|
+
rmSync(workspace, { recursive: true, force: true });
|
|
98
|
+
rmSync(homeDir, { recursive: true, force: true });
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
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 () => {
|
|
103
|
+
// given
|
|
104
|
+
const workspace = mkdtempSync(join(tmpdir(), "omo-codegraph-worker-compatible-node-"));
|
|
105
|
+
const homeDir = mkdtempSync(join(tmpdir(), "omo-codegraph-worker-compatible-node-home-"));
|
|
106
|
+
const nodeBin = "/opt/node22/bin/node";
|
|
107
|
+
const calls: Array<{ readonly args: readonly string[]; readonly command: string }> = [];
|
|
108
|
+
const outcomes: unknown[] = [];
|
|
109
|
+
|
|
110
|
+
try {
|
|
111
|
+
// when
|
|
112
|
+
const result = await runCodegraphSessionStartWorker({
|
|
113
|
+
cwd: workspace,
|
|
114
|
+
env: { CODEGRAPH_NODE_BIN: nodeBin, HOME: homeDir },
|
|
115
|
+
nodeVersion: "26.3.0",
|
|
116
|
+
logOutcome: (outcome) => outcomes.push(outcome),
|
|
117
|
+
deps: {
|
|
118
|
+
ensureGitignored: () => true,
|
|
119
|
+
ensureProvisioned: () => {
|
|
120
|
+
throw new Error("provisioning should not run when bundled CodeGraph resolved");
|
|
121
|
+
},
|
|
122
|
+
prepareWorkspace: () => ({
|
|
123
|
+
dataDir: join(homeDir, ".omo/codegraph/projects/test"),
|
|
124
|
+
dataRoot: join(homeDir, ".omo/codegraph"),
|
|
125
|
+
linked: true,
|
|
126
|
+
mode: "global-linked",
|
|
127
|
+
projectLink: join(workspace, ".codegraph"),
|
|
128
|
+
}),
|
|
129
|
+
resolveCommand: () => ({ argsPrefix: ["codegraph.js"], command: nodeBin, exists: true, source: "bundled" }),
|
|
130
|
+
runCommand: (_projectRoot, command, args) => {
|
|
131
|
+
calls.push({ args, command });
|
|
132
|
+
return Promise.resolve({ exitCode: 0, stdout: calls.length === 1 ? '{"initialized":false}' : "", timedOut: false });
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
// then
|
|
138
|
+
expect(result).toEqual({ action: "initialized" });
|
|
139
|
+
expect(calls).toEqual([
|
|
140
|
+
{ args: ["codegraph.js", "status", "--json"], command: nodeBin },
|
|
141
|
+
{ args: ["codegraph.js", "init"], command: nodeBin },
|
|
142
|
+
]);
|
|
143
|
+
expect(outcomes).toEqual([{ action: "initialized", exitCode: 0, projectRoot: workspace, source: "bundled", timedOut: false }]);
|
|
144
|
+
} finally {
|
|
145
|
+
rmSync(workspace, { recursive: true, force: true });
|
|
146
|
+
rmSync(homeDir, { recursive: true, force: true });
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
});
|
package/packages/omo-codex/plugin/components/codegraph/test/session-start-trust-boundary.test.ts
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { describe, expect, it } from "bun:test";
|
|
2
|
+
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
3
|
+
import { tmpdir } from "node:os";
|
|
4
|
+
import { join } from "node:path";
|
|
5
|
+
|
|
6
|
+
import { runCodegraphSessionStartWorker } from "../src/hook.ts";
|
|
7
|
+
|
|
8
|
+
describe("CodeGraph SessionStart trust boundary", () => {
|
|
9
|
+
it("#given project config sets install_dir #when worker provisions CodeGraph #then it uses the trusted home install root", async () => {
|
|
10
|
+
// given
|
|
11
|
+
const workspace = mkdtempSync(join(tmpdir(), "omo-codegraph-untrusted-project-"));
|
|
12
|
+
const homeDir = mkdtempSync(join(tmpdir(), "omo-codegraph-untrusted-project-home-"));
|
|
13
|
+
const attackerInstallDir = join(workspace, "attacker-install");
|
|
14
|
+
const trustedInstallDir = join(homeDir, ".omo", "codegraph");
|
|
15
|
+
const calls: Array<{ readonly env: Record<string, string>; readonly installDir?: string; readonly lockDir?: string }> = [];
|
|
16
|
+
try {
|
|
17
|
+
mkdirSync(join(workspace, ".omo"), { recursive: true });
|
|
18
|
+
writeFileSync(join(workspace, ".omo", "config.jsonc"), JSON.stringify({ codegraph: { enabled: true, install_dir: attackerInstallDir } }));
|
|
19
|
+
|
|
20
|
+
// when
|
|
21
|
+
const result = await runCodegraphSessionStartWorker({
|
|
22
|
+
cwd: workspace,
|
|
23
|
+
env: { HOME: homeDir },
|
|
24
|
+
nodeVersion: "22.14.0",
|
|
25
|
+
deps: {
|
|
26
|
+
ensureGitignored: () => true,
|
|
27
|
+
ensureProvisioned: (options) => {
|
|
28
|
+
calls.push({
|
|
29
|
+
env: {},
|
|
30
|
+
...(options.installDir === undefined ? {} : { installDir: options.installDir }),
|
|
31
|
+
...(options.lockDir === undefined ? {} : { lockDir: options.lockDir }),
|
|
32
|
+
});
|
|
33
|
+
return Promise.resolve({ binPath: join(trustedInstallDir, "bin", "codegraph"), provisioned: true });
|
|
34
|
+
},
|
|
35
|
+
prepareWorkspace: () => ({
|
|
36
|
+
dataDir: join(homeDir, ".omo/codegraph/projects/test"),
|
|
37
|
+
dataRoot: join(homeDir, ".omo/codegraph"),
|
|
38
|
+
linked: true,
|
|
39
|
+
mode: "global-linked",
|
|
40
|
+
projectLink: join(workspace, ".codegraph"),
|
|
41
|
+
}),
|
|
42
|
+
resolveCommand: (options) => {
|
|
43
|
+
expect(options?.provisioned?.()).toBe(null);
|
|
44
|
+
return { argsPrefix: [], command: "missing-codegraph", exists: false, source: "path" };
|
|
45
|
+
},
|
|
46
|
+
runCommand: (_projectRoot, _command, _args, options) => {
|
|
47
|
+
calls.push({ env: options.env });
|
|
48
|
+
return Promise.resolve({ exitCode: 0, stdout: calls.length === 2 ? '{"initialized":false}' : "", timedOut: false });
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
// then
|
|
54
|
+
expect(result).toEqual({ action: "initialized" });
|
|
55
|
+
expect(calls[0]).toEqual({ env: {}, installDir: trustedInstallDir, lockDir: join(trustedInstallDir, ".locks") });
|
|
56
|
+
expect(calls[1]?.env["CODEGRAPH_INSTALL_DIR"]).toBe(trustedInstallDir);
|
|
57
|
+
expect(calls[1]?.env["CODEGRAPH_INSTALL_DIR"]).not.toBe(attackerInstallDir);
|
|
58
|
+
} finally {
|
|
59
|
+
rmSync(workspace, { recursive: true, force: true });
|
|
60
|
+
rmSync(homeDir, { recursive: true, force: true });
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
});
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { describe, expect, it } from "bun:test";
|
|
2
|
+
import { existsSync, mkdtempSync, rmSync } from "node:fs";
|
|
3
|
+
import { tmpdir } from "node:os";
|
|
4
|
+
import { join } from "node:path";
|
|
5
|
+
|
|
6
|
+
import { runCodegraphSessionStartWorker } from "../src/hook.ts";
|
|
7
|
+
|
|
8
|
+
describe("CodeGraph SessionStart worker availability", () => {
|
|
9
|
+
it("#given CodeGraph cannot be resolved or provisioned #when worker runs #then it logs a graceful skip", async () => {
|
|
10
|
+
// given
|
|
11
|
+
const workspace = mkdtempSync(join(tmpdir(), "omo-codegraph-worker-"));
|
|
12
|
+
const homeDir = mkdtempSync(join(tmpdir(), "omo-codegraph-worker-home-"));
|
|
13
|
+
const outcomes: unknown[] = [];
|
|
14
|
+
const calls: string[] = [];
|
|
15
|
+
|
|
16
|
+
try {
|
|
17
|
+
// when
|
|
18
|
+
const result = await runCodegraphSessionStartWorker({
|
|
19
|
+
cwd: workspace,
|
|
20
|
+
env: { HOME: homeDir },
|
|
21
|
+
nodeVersion: "22.14.0",
|
|
22
|
+
logOutcome: (outcome) => outcomes.push(outcome),
|
|
23
|
+
deps: {
|
|
24
|
+
ensureGitignored: () => {
|
|
25
|
+
calls.push("ensureGitignored");
|
|
26
|
+
return true;
|
|
27
|
+
},
|
|
28
|
+
ensureProvisioned: () => Promise.resolve({ error: "offline", provisioned: false }),
|
|
29
|
+
prepareWorkspace: () => {
|
|
30
|
+
calls.push("prepareWorkspace");
|
|
31
|
+
return {
|
|
32
|
+
dataDir: join(homeDir, ".omo/codegraph/projects/test"),
|
|
33
|
+
dataRoot: join(homeDir, ".omo/codegraph"),
|
|
34
|
+
linked: true,
|
|
35
|
+
mode: "global-linked",
|
|
36
|
+
projectLink: join(workspace, ".codegraph"),
|
|
37
|
+
};
|
|
38
|
+
},
|
|
39
|
+
resolveCommand: () => ({ argsPrefix: [], command: "codegraph", exists: false, source: "path" }),
|
|
40
|
+
runCommand: () => {
|
|
41
|
+
calls.push("runCommand");
|
|
42
|
+
return Promise.resolve({ exitCode: 0, stdout: "", timedOut: false });
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
// then
|
|
48
|
+
expect(result).toEqual({ action: "skipped-unavailable" });
|
|
49
|
+
expect(calls).toEqual([]);
|
|
50
|
+
expect(outcomes).toEqual([
|
|
51
|
+
{
|
|
52
|
+
action: "skipped-unavailable",
|
|
53
|
+
error: "offline",
|
|
54
|
+
projectRoot: workspace,
|
|
55
|
+
source: "path",
|
|
56
|
+
},
|
|
57
|
+
]);
|
|
58
|
+
} finally {
|
|
59
|
+
rmSync(workspace, { recursive: true, force: true });
|
|
60
|
+
rmSync(homeDir, { recursive: true, force: true });
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
it("#given CodeGraph is unavailable and auto provisioning is disabled #when worker runs #then it leaves the project untouched", async () => {
|
|
65
|
+
// given
|
|
66
|
+
const workspace = mkdtempSync(join(tmpdir(), "omo-codegraph-worker-unavailable-"));
|
|
67
|
+
const homeDir = mkdtempSync(join(tmpdir(), "omo-codegraph-worker-unavailable-home-"));
|
|
68
|
+
const outcomes: unknown[] = [];
|
|
69
|
+
|
|
70
|
+
try {
|
|
71
|
+
// when
|
|
72
|
+
const result = await runCodegraphSessionStartWorker({
|
|
73
|
+
config: { codegraph: { auto_provision: false, enabled: true }, sources: [], warnings: [] },
|
|
74
|
+
nodeVersion: "22.14.0",
|
|
75
|
+
cwd: workspace,
|
|
76
|
+
env: { HOME: homeDir },
|
|
77
|
+
logOutcome: (outcome) => outcomes.push(outcome),
|
|
78
|
+
deps: {
|
|
79
|
+
ensureProvisioned: () => {
|
|
80
|
+
throw new Error("auto provision should not run");
|
|
81
|
+
},
|
|
82
|
+
resolveCommand: () => ({ argsPrefix: [], command: "missing-codegraph", exists: false, source: "path" }),
|
|
83
|
+
runCommand: () => {
|
|
84
|
+
throw new Error("codegraph command should not run");
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
// then
|
|
90
|
+
expect(result).toEqual({ action: "skipped-unavailable" });
|
|
91
|
+
expect(existsSync(join(workspace, ".codegraph"))).toBe(false);
|
|
92
|
+
expect(existsSync(join(workspace, ".git", "info", "exclude"))).toBe(false);
|
|
93
|
+
expect(outcomes).toEqual([
|
|
94
|
+
{
|
|
95
|
+
action: "skipped-unavailable",
|
|
96
|
+
error: "codegraph binary unavailable and auto_provision is disabled",
|
|
97
|
+
projectRoot: workspace,
|
|
98
|
+
source: "path",
|
|
99
|
+
},
|
|
100
|
+
]);
|
|
101
|
+
} finally {
|
|
102
|
+
rmSync(workspace, { recursive: true, force: true });
|
|
103
|
+
rmSync(homeDir, { recursive: true, force: true });
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
});
|