cuelo 0.10.52 → 0.10.53
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/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +35 -35
- package/.next/build-manifest.json +4 -4
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.json +3 -3
- package/.next/react-loadable-manifest.json +549 -561
- package/.next/required-server-files.js +25 -25
- package/.next/required-server-files.json +25 -25
- package/.next/server/app/_global-error/page.js +3 -3
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js +2 -2
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +2 -2
- package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/api/agent/[id]/account/route.js +1 -1
- package/.next/server/app/api/agent/[id]/account/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agent/[id]/bash-output/route.js +1 -1
- package/.next/server/app/api/agent/[id]/bash-output/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agent/[id]/events/route.js +2 -2
- package/.next/server/app/api/agent/[id]/events/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agent/[id]/route.js +1 -1
- package/.next/server/app/api/agent/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agent/new/route.js +1 -1
- package/.next/server/app/api/agent/new/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agent/running/route.js +1 -1
- package/.next/server/app/api/agent/running/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/attachment-settings/route.js +1 -1
- package/.next/server/app/api/attachment-settings/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/attachments/[id]/transcription/route.js +2 -2
- package/.next/server/app/api/attachments/[id]/transcription/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/attachments/draft/route.js +1 -1
- package/.next/server/app/api/attachments/draft/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/attachments/route.js +2 -2
- package/.next/server/app/api/attachments/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/auth/all-providers/route.js +1 -1
- package/.next/server/app/api/auth/all-providers/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
- package/.next/server/app/api/auth/api-key/[provider]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/auth/login/[provider]/route.js +1 -1
- package/.next/server/app/api/auth/login/[provider]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/auth/logout/[provider]/route.js +1 -1
- package/.next/server/app/api/auth/logout/[provider]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/auth/providers/route.js +1 -1
- package/.next/server/app/api/auth/providers/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/character-mode/route.js +1 -2
- package/.next/server/app/api/character-mode/route.js.nft.json +1 -1
- package/.next/server/app/api/character-mode/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/cwd/browse/route.js +1 -1
- package/.next/server/app/api/cwd/browse/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/cwd/validate/route.js +1 -1
- package/.next/server/app/api/cwd/validate/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/default-cwd/route.js +1 -1
- package/.next/server/app/api/default-cwd/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/display-settings/route.js +1 -1
- package/.next/server/app/api/display-settings/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/document-text/route.js +2 -2
- package/.next/server/app/api/document-text/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/experiments/route.js +1 -1
- package/.next/server/app/api/experiments/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/file-index/route.js +1 -1
- package/.next/server/app/api/file-index/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/files/[...path]/route.js +1 -1
- package/.next/server/app/api/files/[...path]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/git/diff/route.js +1 -1
- package/.next/server/app/api/git/diff/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/git/status/route.js +2 -2
- package/.next/server/app/api/git/status/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/github/projects/route.js +1 -1
- package/.next/server/app/api/github/projects/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/gpt6/handles/route.js +1 -1
- package/.next/server/app/api/gpt6/handles/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/gpt6/reply/route.js +1 -1
- package/.next/server/app/api/gpt6/reply/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/gpt6/token/route.js +1 -1
- package/.next/server/app/api/gpt6/token/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/gpt6/web6-session/route.js +1 -1
- package/.next/server/app/api/gpt6/web6-session/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/home/route.js +1 -1
- package/.next/server/app/api/home/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/live/call/[callId]/route.js +2 -2
- package/.next/server/app/api/live/call/[callId]/route.js.nft.json +1 -1
- package/.next/server/app/api/live/call/[callId]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/live/events/route.js +2 -2
- package/.next/server/app/api/live/events/route.js.nft.json +1 -1
- package/.next/server/app/api/live/events/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/live/interpret/route.js +2 -2
- package/.next/server/app/api/live/interpret/route.js.nft.json +1 -1
- package/.next/server/app/api/live/interpret/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/live/offer/route.js +1 -1
- package/.next/server/app/api/live/offer/route.js.nft.json +1 -1
- package/.next/server/app/api/live/offer/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/live/voices/route.js +1 -1
- package/.next/server/app/api/live/voices/route.js.nft.json +1 -1
- package/.next/server/app/api/live/voices/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/mcp/route.js +2 -2
- package/.next/server/app/api/mcp/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/model-roles/route.js +1 -1
- package/.next/server/app/api/model-roles/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models/route.js +1 -1
- package/.next/server/app/api/models/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models-config/catalog/route.js +1 -1
- package/.next/server/app/api/models-config/catalog/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models-config/discover/route.js +1 -1
- package/.next/server/app/api/models-config/discover/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models-config/route.js +3 -3
- package/.next/server/app/api/models-config/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models-config/test/route.js +1 -1
- package/.next/server/app/api/models-config/test/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/office-characters/[...path]/route.js +1 -2
- package/.next/server/app/api/office-characters/[...path]/route.js.nft.json +1 -1
- package/.next/server/app/api/office-characters/[...path]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/plugins/route.js +1 -1
- package/.next/server/app/api/plugins/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/project-docs/route.js +1 -1
- package/.next/server/app/api/project-docs/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/project-trust/route.js +1 -1
- package/.next/server/app/api/project-trust/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/projects/route.js +2 -2
- package/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/runs/[runId]/prelude/route.js +1 -1
- package/.next/server/app/api/runs/[runId]/prelude/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/runs/[runId]/route.js +1 -1
- package/.next/server/app/api/runs/[runId]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/runs/[runId]/turns/route.js +1 -1
- package/.next/server/app/api/runs/[runId]/turns/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/runs/route.js +1 -1
- package/.next/server/app/api/runs/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/auto-name/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/auto-name/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/context/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/context/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/export/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/export/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/state/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/state/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/route.js +1 -1
- package/.next/server/app/api/sessions/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/search/route.js +1 -1
- package/.next/server/app/api/sessions/search/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/settings/route.js +1 -1
- package/.next/server/app/api/settings/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sidecars/[service]/[...path]/route.js +1 -1
- package/.next/server/app/api/sidecars/[service]/[...path]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/check/route.js +1 -1
- package/.next/server/app/api/skills/check/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/install/route.js +2 -2
- package/.next/server/app/api/skills/install/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/route.js +1 -1
- package/.next/server/app/api/skills/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/search/route.js +1 -1
- package/.next/server/app/api/skills/search/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/update/route.js +1 -1
- package/.next/server/app/api/skills/update/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/subagents/eta/route.js +1 -1
- package/.next/server/app/api/subagents/eta/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/theme/route.js +1 -1
- package/.next/server/app/api/theme/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/tool-image/route.js +1 -1
- package/.next/server/app/api/tool-image/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/update-maintenance/route.js +2 -2
- package/.next/server/app/api/update-maintenance/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/updates/route.js +1 -1
- package/.next/server/app/api/updates/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/web-access/recovery/route.js +1 -1
- package/.next/server/app/api/web-access/recovery/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/web-access/route.js +1 -1
- package/.next/server/app/api/web-access/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/web6/consults/route.js +1 -1
- package/.next/server/app/api/web6/consults/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/route.js +1 -1
- package/.next/server/app/api/worktrees/route_client-reference-manifest.js +1 -1
- package/.next/server/app/favicon.ico/route.js +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +4 -4
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +3 -3
- package/.next/server/app/index.segments/_full.segment.rsc +4 -4
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +2 -2
- package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/manifest.webmanifest/route.js +2 -2
- package/.next/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -1
- package/.next/server/app/page.js +5 -5
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/recover/page.js +2 -2
- package/.next/server/app/recover/page_client-reference-manifest.js +1 -1
- package/.next/server/app/recover.html +1 -1
- package/.next/server/app/recover.rsc +3 -3
- package/.next/server/app/recover.segments/_full.segment.rsc +3 -3
- package/.next/server/app/recover.segments/_head.segment.rsc +1 -1
- package/.next/server/app/recover.segments/_index.segment.rsc +2 -2
- package/.next/server/app/recover.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/recover.segments/recover/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/recover.segments/recover.segment.rsc +1 -1
- package/.next/server/app-paths-manifest.json +35 -35
- package/.next/server/chunks/1008.js +2 -2
- package/.next/server/chunks/1966.js +2 -0
- package/.next/server/chunks/319.js +3 -3
- package/.next/server/chunks/6429.js +2 -2
- package/.next/server/chunks/6775.js +7 -0
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/middleware.js +9 -9
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/app/_not-found/page-041b64675adcdf82.js +1 -0
- package/.next/static/chunks/app/layout-3b1f8b74c7fc5e77.js +1 -0
- package/.next/static/chunks/app/{page-3640086c732eb87d.js → page-efae4fdcf84b7a14.js} +4 -4
- package/.next/static/chunks/app/recover/{page-c0c40b3c215078a4.js → page-2bcd6a351f3eda3d.js} +1 -1
- package/.next/static/chunks/{main-app-fbc4aa3c15d48613.js → main-app-ca46ab75db2b4e4b.js} +1 -1
- package/.next/static/chunks/main-dd4c9daba44bef88.js +5 -0
- package/.next/static/chunks/next/dist/client/components/builtin/global-error-dac2a58a3b9eb28e.js +1 -0
- package/.next/static/chunks/webpack-546c8221d1906945.js +1 -0
- package/.next/trace +107 -107
- package/.next/trace-build +1 -1
- package/.next/types/app/api/agent/[id]/account/route.ts +1 -1
- package/.next/types/app/api/agent/[id]/bash-output/route.ts +1 -1
- package/.next/types/app/api/agent/[id]/events/route.ts +1 -1
- package/.next/types/app/api/agent/[id]/route.ts +1 -1
- package/.next/types/app/api/agent/new/route.ts +1 -1
- package/.next/types/app/api/agent/running/route.ts +1 -1
- package/.next/types/app/api/attachment-settings/route.ts +1 -1
- package/.next/types/app/api/attachments/[id]/transcription/route.ts +1 -1
- package/.next/types/app/api/attachments/draft/route.ts +1 -1
- package/.next/types/app/api/attachments/route.ts +1 -1
- package/.next/types/app/api/auth/all-providers/route.ts +1 -1
- package/.next/types/app/api/auth/api-key/[provider]/route.ts +1 -1
- package/.next/types/app/api/auth/login/[provider]/route.ts +1 -1
- package/.next/types/app/api/auth/logout/[provider]/route.ts +1 -1
- package/.next/types/app/api/auth/providers/route.ts +1 -1
- package/.next/types/app/api/character-mode/route.ts +1 -1
- package/.next/types/app/api/cwd/browse/route.ts +1 -1
- package/.next/types/app/api/cwd/validate/route.ts +1 -1
- package/.next/types/app/api/default-cwd/route.ts +1 -1
- package/.next/types/app/api/display-settings/route.ts +1 -1
- package/.next/types/app/api/document-text/route.ts +1 -1
- package/.next/types/app/api/experiments/route.ts +1 -1
- package/.next/types/app/api/file-index/route.ts +1 -1
- package/.next/types/app/api/files/[...path]/route.ts +1 -1
- package/.next/types/app/api/git/diff/route.ts +1 -1
- package/.next/types/app/api/git/status/route.ts +1 -1
- package/.next/types/app/api/github/projects/route.ts +1 -1
- package/.next/types/app/api/gpt6/handles/route.ts +1 -1
- package/.next/types/app/api/gpt6/reply/route.ts +1 -1
- package/.next/types/app/api/gpt6/token/route.ts +1 -1
- package/.next/types/app/api/gpt6/web6-session/route.ts +1 -1
- package/.next/types/app/api/home/route.ts +1 -1
- package/.next/types/app/api/live/call/[callId]/route.ts +1 -1
- package/.next/types/app/api/live/events/route.ts +1 -1
- package/.next/types/app/api/live/interpret/route.ts +1 -1
- package/.next/types/app/api/live/offer/route.ts +1 -1
- package/.next/types/app/api/live/voices/route.ts +1 -1
- package/.next/types/app/api/mcp/route.ts +1 -1
- package/.next/types/app/api/model-roles/route.ts +1 -1
- package/.next/types/app/api/models/route.ts +1 -1
- package/.next/types/app/api/models-config/catalog/route.ts +1 -1
- package/.next/types/app/api/models-config/discover/route.ts +1 -1
- package/.next/types/app/api/models-config/route.ts +1 -1
- package/.next/types/app/api/models-config/test/route.ts +1 -1
- package/.next/types/app/api/office-characters/[...path]/route.ts +1 -1
- package/.next/types/app/api/plugins/route.ts +1 -1
- package/.next/types/app/api/project-docs/route.ts +1 -1
- package/.next/types/app/api/project-trust/route.ts +1 -1
- package/.next/types/app/api/projects/route.ts +1 -1
- package/.next/types/app/api/runs/[runId]/prelude/route.ts +1 -1
- package/.next/types/app/api/runs/[runId]/route.ts +1 -1
- package/.next/types/app/api/runs/[runId]/turns/route.ts +1 -1
- package/.next/types/app/api/runs/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/auto-name/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/context/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/entries/[entryId]/thinking/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/export/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/state/route.ts +1 -1
- package/.next/types/app/api/sessions/route.ts +1 -1
- package/.next/types/app/api/sessions/search/route.ts +1 -1
- package/.next/types/app/api/settings/route.ts +1 -1
- package/.next/types/app/api/sidecars/[service]/[...path]/route.ts +1 -1
- package/.next/types/app/api/skills/check/route.ts +1 -1
- package/.next/types/app/api/skills/install/route.ts +1 -1
- package/.next/types/app/api/skills/route.ts +1 -1
- package/.next/types/app/api/skills/search/route.ts +1 -1
- package/.next/types/app/api/skills/update/route.ts +1 -1
- package/.next/types/app/api/subagents/eta/route.ts +1 -1
- package/.next/types/app/api/theme/route.ts +1 -1
- package/.next/types/app/api/tool-image/route.ts +1 -1
- package/.next/types/app/api/update-maintenance/route.ts +1 -1
- package/.next/types/app/api/updates/route.ts +1 -1
- package/.next/types/app/api/web-access/recovery/route.ts +1 -1
- package/.next/types/app/api/web-access/route.ts +1 -1
- package/.next/types/app/api/web6/consults/route.ts +1 -1
- package/.next/types/app/api/worktrees/route.ts +1 -1
- package/.next/types/app/layout.ts +1 -1
- package/.next/types/app/page.ts +1 -1
- package/.next/types/app/recover/page.ts +1 -1
- package/LICENSE +22 -22
- package/README.md +273 -271
- package/Tools/CUELO_Setup/files/btw-server.js +346 -346
- package/Tools/CUELO_Setup/files/native-runtime-patch.js +238 -238
- package/Tools/CUELO_Setup/files/subagent-server.js +587 -587
- package/Tools/CUELO_Setup/files/usage-server.js +1057 -1057
- package/Tools/OMP_Global_Config/agent/AGENTS.md +144 -144
- package/Tools/OMP_Global_Config/agent/RULES.md +140 -140
- package/Tools/OMP_Global_Config/agent/TITLE_SYSTEM.md +17 -17
- package/Tools/OMP_Global_Config/agent/WATCHDOG.md +55 -55
- package/Tools/OMP_Global_Config/agent/agents/maker.md +413 -413
- package/Tools/OMP_Global_Config/agent/extensions/character-voice.ts +1035 -1035
- package/Tools/OMP_Global_Config/agent/extensions/command-guard/index.ts +1110 -1110
- package/Tools/OMP_Global_Config/agent/extensions/command-guard/interop-hint.ts +133 -133
- package/Tools/OMP_Global_Config/agent/extensions/command-guard/matcher.ts +2258 -2258
- package/Tools/OMP_Global_Config/agent/extensions/command-guard/powershell-syntax.ts +210 -210
- package/Tools/OMP_Global_Config/agent/extensions/command-guard/task-guard.ts +1137 -1121
- package/Tools/OMP_Global_Config/agent/extensions/cross-review.ts +132 -132
- package/Tools/OMP_Global_Config/agent/extensions/docmap-route.ts +133 -133
- package/Tools/OMP_Global_Config/agent/extensions/draft/markdown.ts +226 -226
- package/Tools/OMP_Global_Config/agent/extensions/draft/ooxml.ts +222 -222
- package/Tools/OMP_Global_Config/agent/extensions/draft/pdf.ts +63 -63
- package/Tools/OMP_Global_Config/agent/extensions/draft/zip.ts +73 -73
- package/Tools/OMP_Global_Config/agent/extensions/draft.ts +204 -204
- package/Tools/OMP_Global_Config/agent/extensions/edit-lessons.ts +159 -159
- package/Tools/OMP_Global_Config/agent/extensions/external-advice-check.ts +36 -36
- package/Tools/OMP_Global_Config/agent/extensions/gitnexus-autosync.ts +406 -406
- package/Tools/OMP_Global_Config/agent/extensions/image-question-router.ts +55 -55
- package/Tools/OMP_Global_Config/agent/extensions/jev-runtime.ts +2700 -2700
- package/Tools/OMP_Global_Config/agent/extensions/korean-reply-guard.ts +190 -190
- package/Tools/OMP_Global_Config/agent/extensions/lib/cross-review.ts +1208 -1208
- package/Tools/OMP_Global_Config/agent/extensions/lib/docmap-search.ts +612 -612
- package/Tools/OMP_Global_Config/agent/extensions/lib/job-observation.ts +182 -182
- package/Tools/OMP_Global_Config/agent/extensions/lib/maker-routing.ts +1332 -1332
- package/Tools/OMP_Global_Config/agent/extensions/lib/mcp-selection.ts +361 -361
- package/Tools/OMP_Global_Config/agent/extensions/lib/memory-excerpt.ts +5 -5
- package/Tools/OMP_Global_Config/agent/extensions/lib/native-judge.ts +113 -113
- package/Tools/OMP_Global_Config/agent/extensions/lib/prepared-task.ts +211 -211
- package/Tools/OMP_Global_Config/agent/extensions/lib/routing-ledger.ts +538 -538
- package/Tools/OMP_Global_Config/agent/extensions/lib/session-identity.ts +34 -34
- package/Tools/OMP_Global_Config/agent/extensions/lib/task-progress.ts +492 -492
- package/Tools/OMP_Global_Config/agent/extensions/mcp-selection.ts +301 -301
- package/Tools/OMP_Global_Config/agent/extensions/prompt-compact.ts +67 -67
- package/Tools/OMP_Global_Config/agent/extensions/report-chart-guard.ts +102 -102
- package/Tools/OMP_Global_Config/agent/extensions/skim.ts +332 -332
- package/Tools/OMP_Global_Config/agent/extensions/steering-reply-gate.ts +207 -207
- package/Tools/OMP_Global_Config/agent/extensions/todo-nudge.ts +80 -80
- package/Tools/OMP_Global_Config/agent/extensions/turn-end-guard.ts +421 -421
- package/Tools/OMP_Global_Config/agent/prompt-copies/AGENTS.en.md +147 -147
- package/Tools/OMP_Global_Config/agent/prompt-copies/RULES.en.md +49 -49
- package/Tools/OMP_Global_Config/agent/rules/docs-handoff.md +39 -39
- package/Tools/OMP_Global_Config/agent/rules/frontend.md +74 -74
- package/Tools/OMP_Global_Config/agent/rules/harness-policy.json +1224 -1224
- package/Tools/OMP_Global_Config/agent/rules/legacy-encoding.md +21 -21
- package/Tools/OMP_Global_Config/agent/rules/meta-harness.md +45 -45
- package/Tools/OMP_Global_Config/agent/rules/omp-harness.md +151 -151
- package/Tools/OMP_Global_Config/agent/rules/subagent.md +750 -750
- package/Tools/OMP_Global_Config/agent/rules/task-guard.md +62 -62
- package/Tools/OMP_Global_Config/agent/rules/verdict.md +210 -210
- package/Tools/OMP_Global_Config/agent/rules/web6-consult.md +83 -83
- package/Tools/OMP_Global_Config/agent/sop/_common.md +136 -136
- package/Tools/OMP_Global_Config/agent/sop/_writer.md +259 -259
- package/Tools/OMP_Global_Config/agent/sop/maker.md +9 -9
- package/Tools/OMP_Global_Config/agent/tools/git-finalizer/finalizer.ps1 +409 -409
- package/Tools/OMP_Global_Config/agent/tools/git-finalizer/index.ts +303 -303
- package/Tools/OMP_Global_Config/agent/tools/git-finalizer/sync-checkout.ts +184 -184
- package/Tools/OMP_Global_Config/agent/tools/git-finalizer/wsl-git.ts +96 -96
- package/Tools/OMP_Global_Config/agent/tools/windows-build/index.ts +387 -387
- package/Tools/OMP_Global_Config/agent/tools/windows-control/control.ps1 +200 -200
- package/Tools/OMP_Global_Config/agent/tools/windows-control/index.ts +255 -255
- package/Tools/OMP_Global_Config/notices/orchestrate.md +26 -26
- package/Tools/OMP_Global_Config/notices/ultrathink.md +9 -9
- package/Tools/OMP_Global_Config/notices/workflow.md +16 -16
- package/Tools/OMP_Global_Config/patches/apply-core-patch.mjs +18339 -18304
- package/Tools/OMP_Global_Config/patches/apply-notices.mjs +135 -135
- package/bin/cuelo-options.js +38 -38
- package/bin/cuelo.js +273 -273
- package/bin/docker-entrypoint.mjs +19 -19
- package/bin/password-prompt.js +100 -100
- package/bin/prepare-runtime.js +112 -112
- package/bin/runtime.js +134 -134
- package/bin/web-auth-store.d.ts +104 -104
- package/bin/web-auth-store.js +593 -593
- package/install.mjs +427 -427
- package/next.config.ts +104 -104
- package/package.json +141 -141
- package/public/audio/completion/voices.json +1393 -1393
- package/public/fonts/cuelo-display/NOTICE.txt +15 -15
- package/public/fonts/fonts.css +288 -288
- package/public/fonts/jetbrains-mono/OFL.txt +93 -93
- package/public/fonts/wanted-sans/OFL.txt +93 -93
- package/public/icons/catppuccin/LICENSE +22 -22
- package/public/icons/catppuccin/README.md +8 -8
- package/public/icons/catppuccin/latte/_file.svg +3 -3
- package/public/icons/catppuccin/latte/_folder.svg +3 -3
- package/public/icons/catppuccin/latte/_folder_open.svg +3 -3
- package/public/icons/catppuccin/latte/bash.svg +7 -7
- package/public/icons/catppuccin/latte/bun-lock.svg +8 -8
- package/public/icons/catppuccin/latte/config.svg +3 -3
- package/public/icons/catppuccin/latte/css.svg +6 -6
- package/public/icons/catppuccin/latte/database.svg +3 -3
- package/public/icons/catppuccin/latte/docker.svg +3 -3
- package/public/icons/catppuccin/latte/env.svg +3 -3
- package/public/icons/catppuccin/latte/eslint.svg +6 -6
- package/public/icons/catppuccin/latte/git.svg +6 -6
- package/public/icons/catppuccin/latte/go.svg +3 -3
- package/public/icons/catppuccin/latte/graphql.svg +3 -3
- package/public/icons/catppuccin/latte/html.svg +6 -6
- package/public/icons/catppuccin/latte/javascript-react.svg +8 -8
- package/public/icons/catppuccin/latte/javascript.svg +6 -6
- package/public/icons/catppuccin/latte/json.svg +3 -3
- package/public/icons/catppuccin/latte/lock.svg +3 -3
- package/public/icons/catppuccin/latte/markdown.svg +3 -3
- package/public/icons/catppuccin/latte/ms-word.svg +6 -6
- package/public/icons/catppuccin/latte/next.svg +6 -6
- package/public/icons/catppuccin/latte/npm-lock.svg +7 -7
- package/public/icons/catppuccin/latte/pdf.svg +3 -3
- package/public/icons/catppuccin/latte/python.svg +8 -8
- package/public/icons/catppuccin/latte/rust.svg +6 -6
- package/public/icons/catppuccin/latte/sass.svg +3 -3
- package/public/icons/catppuccin/latte/terraform.svg +3 -3
- package/public/icons/catppuccin/latte/toml.svg +3 -3
- package/public/icons/catppuccin/latte/typescript-react.svg +8 -8
- package/public/icons/catppuccin/latte/typescript.svg +6 -6
- package/public/icons/catppuccin/latte/yaml.svg +3 -3
- package/public/icons/catppuccin/mocha/_file.svg +3 -3
- package/public/icons/catppuccin/mocha/_folder.svg +3 -3
- package/public/icons/catppuccin/mocha/_folder_open.svg +3 -3
- package/public/icons/catppuccin/mocha/bash.svg +7 -7
- package/public/icons/catppuccin/mocha/bun-lock.svg +8 -8
- package/public/icons/catppuccin/mocha/config.svg +3 -3
- package/public/icons/catppuccin/mocha/css.svg +6 -6
- package/public/icons/catppuccin/mocha/database.svg +3 -3
- package/public/icons/catppuccin/mocha/docker.svg +3 -3
- package/public/icons/catppuccin/mocha/env.svg +3 -3
- package/public/icons/catppuccin/mocha/eslint.svg +6 -6
- package/public/icons/catppuccin/mocha/git.svg +6 -6
- package/public/icons/catppuccin/mocha/go.svg +3 -3
- package/public/icons/catppuccin/mocha/graphql.svg +3 -3
- package/public/icons/catppuccin/mocha/html.svg +6 -6
- package/public/icons/catppuccin/mocha/javascript-react.svg +8 -8
- package/public/icons/catppuccin/mocha/javascript.svg +6 -6
- package/public/icons/catppuccin/mocha/json.svg +3 -3
- package/public/icons/catppuccin/mocha/lock.svg +3 -3
- package/public/icons/catppuccin/mocha/markdown.svg +3 -3
- package/public/icons/catppuccin/mocha/ms-word.svg +6 -6
- package/public/icons/catppuccin/mocha/next.svg +6 -6
- package/public/icons/catppuccin/mocha/npm-lock.svg +7 -7
- package/public/icons/catppuccin/mocha/pdf.svg +3 -3
- package/public/icons/catppuccin/mocha/python.svg +8 -8
- package/public/icons/catppuccin/mocha/rust.svg +6 -6
- package/public/icons/catppuccin/mocha/sass.svg +3 -3
- package/public/icons/catppuccin/mocha/terraform.svg +3 -3
- package/public/icons/catppuccin/mocha/toml.svg +3 -3
- package/public/icons/catppuccin/mocha/typescript-react.svg +8 -8
- package/public/icons/catppuccin/mocha/typescript.svg +6 -6
- package/public/icons/catppuccin/mocha/yaml.svg +3 -3
- package/public/icons/cuelo-icon.svg +8 -8
- package/public/offline.html +145 -145
- package/public/sw.js +135 -135
- package/.next/server/chunks/205.js +0 -7
- package/.next/server/chunks/7738.js +0 -1
- package/.next/static/chunks/1966.b8f83f7ba376c962.js +0 -1
- package/.next/static/chunks/3899.3f761f7e3a944e8c.js +0 -1
- package/.next/static/chunks/app/_not-found/page-9e5295df095e2e41.js +0 -1
- package/.next/static/chunks/app/layout-8b29ba206a96135e.js +0 -1
- package/.next/static/chunks/main-1ddb405481ce21f6.js +0 -5
- package/.next/static/chunks/next/dist/client/components/builtin/global-error-50782c8c9c06c8b5.js +0 -1
- package/.next/static/chunks/webpack-7b514b9855bd748c.js +0 -1
- /package/.next/static/{dQA--5NX6NZt_A6pLZUde → -mDQEyWQ8VQsAfLpiACIP}/_buildManifest.js +0 -0
- /package/.next/static/{dQA--5NX6NZt_A6pLZUde → -mDQEyWQ8VQsAfLpiACIP}/_ssgManifest.js +0 -0
package/bin/cuelo.js
CHANGED
|
@@ -1,273 +1,273 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
const {
|
|
5
|
-
getMissingBunMessage,
|
|
6
|
-
getUnsupportedBunVersionMessage,
|
|
7
|
-
getUnsupportedNodeVersionMessage,
|
|
8
|
-
isBunVersionSupported,
|
|
9
|
-
isNodeVersionSupported,
|
|
10
|
-
resolveBunPath,
|
|
11
|
-
withLoopbackNoProxy,
|
|
12
|
-
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
13
|
-
} = require("./runtime");
|
|
14
|
-
|
|
15
|
-
if (process.versions.bun && !isBunVersionSupported(process.versions.bun)) {
|
|
16
|
-
console.error(getUnsupportedBunVersionMessage(process.versions.bun));
|
|
17
|
-
process.exit(1);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
if (!process.versions.bun && !isNodeVersionSupported(process.versions.node)) {
|
|
21
|
-
console.error(getUnsupportedNodeVersionMessage(process.versions.node));
|
|
22
|
-
process.exit(1);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
26
|
-
const { spawn, spawnSync } = require("child_process");
|
|
27
|
-
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
28
|
-
const path = require("path");
|
|
29
|
-
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
30
|
-
const fs = require("fs");
|
|
31
|
-
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
32
|
-
const { parseLaunchOptions } = require("./cuelo-options");
|
|
33
|
-
const {
|
|
34
|
-
getWebAuthStatus,
|
|
35
|
-
resolveWebAuthFile,
|
|
36
|
-
setWebPassword,
|
|
37
|
-
setWebPasswordEnabled,
|
|
38
|
-
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
39
|
-
} = require("./web-auth-store");
|
|
40
|
-
const {
|
|
41
|
-
PromptAbortedError,
|
|
42
|
-
isInteractive,
|
|
43
|
-
readNewPassword,
|
|
44
|
-
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
45
|
-
} = require("./password-prompt");
|
|
46
|
-
|
|
47
|
-
if (process.argv.includes("--help") || process.argv.includes("-h")) {
|
|
48
|
-
console.log(`CUELO — open-source AI coding agent workspace and harness for omp (oh-my-pi)
|
|
49
|
-
|
|
50
|
-
Usage: cuelo [options]
|
|
51
|
-
cuelo setup [--home <dir>] [--model <provider/model>] [--role <name>=<provider/model[:effort]>]
|
|
52
|
-
cuelo start [--home <dir>]
|
|
53
|
-
cuelo health
|
|
54
|
-
|
|
55
|
-
Options:
|
|
56
|
-
-p, --port <port> Server port (default: 30141)
|
|
57
|
-
-H, --hostname <host> Listen address (default: 127.0.0.1)
|
|
58
|
-
--no-open Do not open a browser
|
|
59
|
-
--authenticated Enable password access
|
|
60
|
-
--reset-password Replace the stored web password
|
|
61
|
-
-h, --help Show this help
|
|
62
|
-
|
|
63
|
-
Requires Bun >=1.4.2 to run the server. Node >=22.19.0 may launch the CLI.
|
|
64
|
-
If install scripts did not run, use \"npm run prepare:runtime\" from the installed package before starting.`);
|
|
65
|
-
process.exit(0);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// 설치·서비스 묶음 명령은 공개 install.mjs가 소유한다. 인자·신호·종료 코드를 전달한다.
|
|
69
|
-
if (["setup", "start", "health"].includes(process.argv[2])) {
|
|
70
|
-
const child = spawn(process.execPath, [path.join(__dirname, "..", "install.mjs"), ...process.argv.slice(2)], {
|
|
71
|
-
cwd: path.join(__dirname, ".."),
|
|
72
|
-
stdio: "inherit",
|
|
73
|
-
});
|
|
74
|
-
for (const signal of ["SIGINT", "SIGTERM"]) {
|
|
75
|
-
process.on(signal, () => child.kill(signal));
|
|
76
|
-
}
|
|
77
|
-
child.on("error", (error) => {
|
|
78
|
-
console.error(`CUELO installer failed: ${error.message}`);
|
|
79
|
-
process.exitCode = 1;
|
|
80
|
-
});
|
|
81
|
-
child.on("exit", (code, signal) => {
|
|
82
|
-
process.exitCode = code ?? (signal === "SIGINT" ? 130 : 1);
|
|
83
|
-
});
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
const pkgDir = path.join(__dirname, "..");
|
|
88
|
-
const nextDir = path.join(pkgDir, ".next");
|
|
89
|
-
|
|
90
|
-
// Resolve next's CLI entry directly to avoid relying on .bin symlinks (which
|
|
91
|
-
// may not exist when installed via npx/bunx).
|
|
92
|
-
let nextBin;
|
|
93
|
-
try {
|
|
94
|
-
nextBin = require.resolve("next/dist/bin/next", { paths: [pkgDir] });
|
|
95
|
-
} catch {
|
|
96
|
-
// Fallback: locate next package root and derive the bin path manually.
|
|
97
|
-
try {
|
|
98
|
-
const nextPkg = require.resolve("next/package.json", { paths: [pkgDir] });
|
|
99
|
-
nextBin = path.join(path.dirname(nextPkg), "dist", "bin", "next");
|
|
100
|
-
} catch {
|
|
101
|
-
nextBin = path.join(pkgDir, "node_modules", "next", "dist", "bin", "next");
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
const { port, hostname, openBrowser, authenticated, resetPassword } = parseLaunchOptions();
|
|
107
|
-
const loopbackHostnames = new Set(["127.0.0.1", "localhost", "::1", "[::1]"]);
|
|
108
|
-
// Resolved once here and handed to the server through the environment, so the
|
|
109
|
-
// launcher and the Next.js process can never disagree about which credential
|
|
110
|
-
// file is in force.
|
|
111
|
-
const webAuthFile = resolveWebAuthFile();
|
|
112
|
-
|
|
113
|
-
if (!fs.existsSync(nextDir)) {
|
|
114
|
-
console.error("Build artifacts not found. Please report this issue.");
|
|
115
|
-
process.exit(1);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
// 소스 실행은 README의 별도 native patch 경로를 유지한다. tarball에는
|
|
119
|
-
// 소스와 bun.lock이 없으므로 기존 patch --check로 실행 준비를 판정한다.
|
|
120
|
-
const sourceCheckout = fs.existsSync(path.join(pkgDir, "bun.lock")) &&
|
|
121
|
-
fs.existsSync(path.join(pkgDir, "app", "layout.tsx"));
|
|
122
|
-
if (!sourceCheckout) {
|
|
123
|
-
const ready = spawnSync(process.execPath, [path.join(__dirname, "prepare-runtime.js"), "--check"], {
|
|
124
|
-
cwd: pkgDir,
|
|
125
|
-
encoding: "utf8",
|
|
126
|
-
});
|
|
127
|
-
if (ready.error || ready.status !== 0) {
|
|
128
|
-
if (ready.stdout) process.stderr.write(ready.stdout);
|
|
129
|
-
if (ready.stderr) process.stderr.write(ready.stderr);
|
|
130
|
-
if (ready.error) console.error(ready.error.message);
|
|
131
|
-
process.exit(1);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
const bunPath = resolveBunPath();
|
|
136
|
-
if (!bunPath) {
|
|
137
|
-
console.error(getMissingBunMessage());
|
|
138
|
-
process.exit(1);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/** Refuse to hang on a password prompt nobody is there to answer. */
|
|
142
|
-
function requireTerminal(flag) {
|
|
143
|
-
if (isInteractive()) return;
|
|
144
|
-
throw new Error([
|
|
145
|
-
`${flag} has to ask for a password, but CUELO is not attached to a terminal.`,
|
|
146
|
-
"Run CUELO once interactively to set the password, or pass CUELO_PASSWORD in the environment.",
|
|
147
|
-
].join("\n"));
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
async function setPasswordInteractively(intro) {
|
|
151
|
-
console.log(intro);
|
|
152
|
-
console.log(`It is stored as a scrypt hash in ${webAuthFile} — CUELO never keeps the password itself.`);
|
|
153
|
-
const password = await readNewPassword();
|
|
154
|
-
const status = setWebPassword(password, { file: webAuthFile });
|
|
155
|
-
console.log(`Password saved. CUELO now asks for the username "${status.username}" and this password.`);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* Settle password access before the server starts.
|
|
160
|
-
*
|
|
161
|
-
* A run that was asked to be locked must never come up unlocked, so the
|
|
162
|
-
* credential is written first and `next start` is spawned afterwards.
|
|
163
|
-
*/
|
|
164
|
-
async function configurePasswordAccess() {
|
|
165
|
-
const status = getWebAuthStatus({ file: webAuthFile });
|
|
166
|
-
|
|
167
|
-
if (resetPassword) {
|
|
168
|
-
if (status.managedByEnvironment) {
|
|
169
|
-
console.warn(
|
|
170
|
-
"Warning: CUELO_PASSWORD is set and takes precedence over the stored password. Unset it for this reset to have any effect.",
|
|
171
|
-
);
|
|
172
|
-
}
|
|
173
|
-
requireTerminal("--reset-password");
|
|
174
|
-
await setPasswordInteractively("Setting a new CUELO password.");
|
|
175
|
-
return;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
if (!authenticated) return;
|
|
179
|
-
|
|
180
|
-
if (status.managedByEnvironment) {
|
|
181
|
-
console.log("Password access is already required: CUELO_PASSWORD is set.");
|
|
182
|
-
return;
|
|
183
|
-
}
|
|
184
|
-
if (status.stored) {
|
|
185
|
-
if (!status.enabled) {
|
|
186
|
-
setWebPasswordEnabled(true, { file: webAuthFile });
|
|
187
|
-
console.log("Password access enabled with the password already stored on this machine.");
|
|
188
|
-
}
|
|
189
|
-
return;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
requireTerminal("--authenticated");
|
|
193
|
-
await setPasswordInteractively("--authenticated was requested and no CUELO password has been set yet.");
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
function warnAboutExposure() {
|
|
197
|
-
if (loopbackHostnames.has(hostname)) return;
|
|
198
|
-
if (getWebAuthStatus({ file: webAuthFile }).enabled) {
|
|
199
|
-
console.warn(
|
|
200
|
-
`Warning: CUELO is listening on ${hostname} with Basic Auth over HTTP. Use HTTPS or a trusted VPN to protect the password in transit.`,
|
|
201
|
-
);
|
|
202
|
-
} else {
|
|
203
|
-
console.warn(
|
|
204
|
-
`Warning: CUELO is listening on ${hostname} without authentication. Only use this on a trusted network, or start it with --authenticated.`,
|
|
205
|
-
);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
function startServer() {
|
|
210
|
-
warnAboutExposure();
|
|
211
|
-
|
|
212
|
-
// `--bun` forces Bun's own runtime for next's CLI entry (it would otherwise
|
|
213
|
-
// hand shebang'd scripts to node). The omp SDK ships TypeScript sources and
|
|
214
|
-
// `bun:` builtins, so the API routes only resolve under Bun.
|
|
215
|
-
const child = spawn(bunPath, ["--bun", nextBin, "start", "-p", port, "-H", hostname], {
|
|
216
|
-
cwd: pkgDir,
|
|
217
|
-
stdio: ["inherit", "pipe", "inherit"],
|
|
218
|
-
env: withLoopbackNoProxy({
|
|
219
|
-
...process.env,
|
|
220
|
-
CUELO_HOSTNAME: hostname,
|
|
221
|
-
CUELO_AUTH_FILE: webAuthFile,
|
|
222
|
-
// Preserve the directory from which `cuelo` was launched so relative
|
|
223
|
-
// project paths in the browser resolve against the user's shell cwd.
|
|
224
|
-
CUELO_LAUNCH_CWD: process.cwd(),
|
|
225
|
-
// `next start` overwrites NODE_ENV and PORT inside the server; the agent's child shells get
|
|
226
|
-
// these launch-time values back instead (core patch `stripHostNextServerEnv`).
|
|
227
|
-
CUELO_SHELL_ENV_BASELINE: JSON.stringify({ NODE_ENV: process.env.NODE_ENV, PORT: process.env.PORT }),
|
|
228
|
-
}),
|
|
229
|
-
});
|
|
230
|
-
// 서비스 묶음(install.mjs start)이 다른 서비스가 죽어 이 프로세스를 내릴 때 next도 같이 내려간다. 넘기지 않으면 next가
|
|
231
|
-
// 고아로 남아 포트와 출력 파이프를 쥐고, install.mjs가 끝나지 못해 유닛 재시작이 일어나지 않는다(2026-10-08 실측).
|
|
232
|
-
for (const signal of ["SIGINT", "SIGTERM"]) {
|
|
233
|
-
process.on(signal, () => child.kill(signal));
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
child.on("error", (error) => {
|
|
237
|
-
console.error(`Failed to launch CUELO through Bun (${bunPath}): ${error.message}`);
|
|
238
|
-
process.exit(1);
|
|
239
|
-
});
|
|
240
|
-
|
|
241
|
-
let browserOpened = false;
|
|
242
|
-
const url = `http://${hostname}:${port}`;
|
|
243
|
-
|
|
244
|
-
child.stdout.on("data", (chunk) => {
|
|
245
|
-
const text = chunk.toString();
|
|
246
|
-
process.stdout.write(text);
|
|
247
|
-
if (openBrowser && !browserOpened && text.includes("Ready")) {
|
|
248
|
-
browserOpened = true;
|
|
249
|
-
const isWindows = process.platform === "win32";
|
|
250
|
-
const isMac = process.platform === "darwin";
|
|
251
|
-
const openCmd = isWindows ? "start" : isMac ? "open" : "xdg-open";
|
|
252
|
-
const opener = spawn(openCmd, [url], {
|
|
253
|
-
shell: isWindows,
|
|
254
|
-
stdio: "ignore",
|
|
255
|
-
detached: true,
|
|
256
|
-
});
|
|
257
|
-
|
|
258
|
-
opener.on("error", (error) => {
|
|
259
|
-
console.warn(`Could not open browser automatically: ${error.message}`);
|
|
260
|
-
});
|
|
261
|
-
|
|
262
|
-
opener.unref();
|
|
263
|
-
}
|
|
264
|
-
});
|
|
265
|
-
|
|
266
|
-
child.on("exit", (code) => process.exit(code ?? 0));
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
configurePasswordAccess().then(startServer, (error) => {
|
|
270
|
-
if (error instanceof PromptAbortedError) process.exit(130);
|
|
271
|
-
console.error(error instanceof Error ? error.message : String(error));
|
|
272
|
-
process.exit(1);
|
|
273
|
-
});
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
const {
|
|
5
|
+
getMissingBunMessage,
|
|
6
|
+
getUnsupportedBunVersionMessage,
|
|
7
|
+
getUnsupportedNodeVersionMessage,
|
|
8
|
+
isBunVersionSupported,
|
|
9
|
+
isNodeVersionSupported,
|
|
10
|
+
resolveBunPath,
|
|
11
|
+
withLoopbackNoProxy,
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
13
|
+
} = require("./runtime");
|
|
14
|
+
|
|
15
|
+
if (process.versions.bun && !isBunVersionSupported(process.versions.bun)) {
|
|
16
|
+
console.error(getUnsupportedBunVersionMessage(process.versions.bun));
|
|
17
|
+
process.exit(1);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
if (!process.versions.bun && !isNodeVersionSupported(process.versions.node)) {
|
|
21
|
+
console.error(getUnsupportedNodeVersionMessage(process.versions.node));
|
|
22
|
+
process.exit(1);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
26
|
+
const { spawn, spawnSync } = require("child_process");
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
28
|
+
const path = require("path");
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
30
|
+
const fs = require("fs");
|
|
31
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
32
|
+
const { parseLaunchOptions } = require("./cuelo-options");
|
|
33
|
+
const {
|
|
34
|
+
getWebAuthStatus,
|
|
35
|
+
resolveWebAuthFile,
|
|
36
|
+
setWebPassword,
|
|
37
|
+
setWebPasswordEnabled,
|
|
38
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
39
|
+
} = require("./web-auth-store");
|
|
40
|
+
const {
|
|
41
|
+
PromptAbortedError,
|
|
42
|
+
isInteractive,
|
|
43
|
+
readNewPassword,
|
|
44
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
45
|
+
} = require("./password-prompt");
|
|
46
|
+
|
|
47
|
+
if (process.argv.includes("--help") || process.argv.includes("-h")) {
|
|
48
|
+
console.log(`CUELO — open-source AI coding agent workspace and harness for omp (oh-my-pi)
|
|
49
|
+
|
|
50
|
+
Usage: cuelo [options]
|
|
51
|
+
cuelo setup [--home <dir>] [--model <provider/model>] [--role <name>=<provider/model[:effort]>]
|
|
52
|
+
cuelo start [--home <dir>]
|
|
53
|
+
cuelo health
|
|
54
|
+
|
|
55
|
+
Options:
|
|
56
|
+
-p, --port <port> Server port (default: 30141)
|
|
57
|
+
-H, --hostname <host> Listen address (default: 127.0.0.1)
|
|
58
|
+
--no-open Do not open a browser
|
|
59
|
+
--authenticated Enable password access
|
|
60
|
+
--reset-password Replace the stored web password
|
|
61
|
+
-h, --help Show this help
|
|
62
|
+
|
|
63
|
+
Requires Bun >=1.4.2 to run the server. Node >=22.19.0 may launch the CLI.
|
|
64
|
+
If install scripts did not run, use \"npm run prepare:runtime\" from the installed package before starting.`);
|
|
65
|
+
process.exit(0);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// 설치·서비스 묶음 명령은 공개 install.mjs가 소유한다. 인자·신호·종료 코드를 전달한다.
|
|
69
|
+
if (["setup", "start", "health"].includes(process.argv[2])) {
|
|
70
|
+
const child = spawn(process.execPath, [path.join(__dirname, "..", "install.mjs"), ...process.argv.slice(2)], {
|
|
71
|
+
cwd: path.join(__dirname, ".."),
|
|
72
|
+
stdio: "inherit",
|
|
73
|
+
});
|
|
74
|
+
for (const signal of ["SIGINT", "SIGTERM"]) {
|
|
75
|
+
process.on(signal, () => child.kill(signal));
|
|
76
|
+
}
|
|
77
|
+
child.on("error", (error) => {
|
|
78
|
+
console.error(`CUELO installer failed: ${error.message}`);
|
|
79
|
+
process.exitCode = 1;
|
|
80
|
+
});
|
|
81
|
+
child.on("exit", (code, signal) => {
|
|
82
|
+
process.exitCode = code ?? (signal === "SIGINT" ? 130 : 1);
|
|
83
|
+
});
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
const pkgDir = path.join(__dirname, "..");
|
|
88
|
+
const nextDir = path.join(pkgDir, ".next");
|
|
89
|
+
|
|
90
|
+
// Resolve next's CLI entry directly to avoid relying on .bin symlinks (which
|
|
91
|
+
// may not exist when installed via npx/bunx).
|
|
92
|
+
let nextBin;
|
|
93
|
+
try {
|
|
94
|
+
nextBin = require.resolve("next/dist/bin/next", { paths: [pkgDir] });
|
|
95
|
+
} catch {
|
|
96
|
+
// Fallback: locate next package root and derive the bin path manually.
|
|
97
|
+
try {
|
|
98
|
+
const nextPkg = require.resolve("next/package.json", { paths: [pkgDir] });
|
|
99
|
+
nextBin = path.join(path.dirname(nextPkg), "dist", "bin", "next");
|
|
100
|
+
} catch {
|
|
101
|
+
nextBin = path.join(pkgDir, "node_modules", "next", "dist", "bin", "next");
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
const { port, hostname, openBrowser, authenticated, resetPassword } = parseLaunchOptions();
|
|
107
|
+
const loopbackHostnames = new Set(["127.0.0.1", "localhost", "::1", "[::1]"]);
|
|
108
|
+
// Resolved once here and handed to the server through the environment, so the
|
|
109
|
+
// launcher and the Next.js process can never disagree about which credential
|
|
110
|
+
// file is in force.
|
|
111
|
+
const webAuthFile = resolveWebAuthFile();
|
|
112
|
+
|
|
113
|
+
if (!fs.existsSync(nextDir)) {
|
|
114
|
+
console.error("Build artifacts not found. Please report this issue.");
|
|
115
|
+
process.exit(1);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// 소스 실행은 README의 별도 native patch 경로를 유지한다. tarball에는
|
|
119
|
+
// 소스와 bun.lock이 없으므로 기존 patch --check로 실행 준비를 판정한다.
|
|
120
|
+
const sourceCheckout = fs.existsSync(path.join(pkgDir, "bun.lock")) &&
|
|
121
|
+
fs.existsSync(path.join(pkgDir, "app", "layout.tsx"));
|
|
122
|
+
if (!sourceCheckout) {
|
|
123
|
+
const ready = spawnSync(process.execPath, [path.join(__dirname, "prepare-runtime.js"), "--check"], {
|
|
124
|
+
cwd: pkgDir,
|
|
125
|
+
encoding: "utf8",
|
|
126
|
+
});
|
|
127
|
+
if (ready.error || ready.status !== 0) {
|
|
128
|
+
if (ready.stdout) process.stderr.write(ready.stdout);
|
|
129
|
+
if (ready.stderr) process.stderr.write(ready.stderr);
|
|
130
|
+
if (ready.error) console.error(ready.error.message);
|
|
131
|
+
process.exit(1);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
const bunPath = resolveBunPath();
|
|
136
|
+
if (!bunPath) {
|
|
137
|
+
console.error(getMissingBunMessage());
|
|
138
|
+
process.exit(1);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/** Refuse to hang on a password prompt nobody is there to answer. */
|
|
142
|
+
function requireTerminal(flag) {
|
|
143
|
+
if (isInteractive()) return;
|
|
144
|
+
throw new Error([
|
|
145
|
+
`${flag} has to ask for a password, but CUELO is not attached to a terminal.`,
|
|
146
|
+
"Run CUELO once interactively to set the password, or pass CUELO_PASSWORD in the environment.",
|
|
147
|
+
].join("\n"));
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
async function setPasswordInteractively(intro) {
|
|
151
|
+
console.log(intro);
|
|
152
|
+
console.log(`It is stored as a scrypt hash in ${webAuthFile} — CUELO never keeps the password itself.`);
|
|
153
|
+
const password = await readNewPassword();
|
|
154
|
+
const status = setWebPassword(password, { file: webAuthFile });
|
|
155
|
+
console.log(`Password saved. CUELO now asks for the username "${status.username}" and this password.`);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Settle password access before the server starts.
|
|
160
|
+
*
|
|
161
|
+
* A run that was asked to be locked must never come up unlocked, so the
|
|
162
|
+
* credential is written first and `next start` is spawned afterwards.
|
|
163
|
+
*/
|
|
164
|
+
async function configurePasswordAccess() {
|
|
165
|
+
const status = getWebAuthStatus({ file: webAuthFile });
|
|
166
|
+
|
|
167
|
+
if (resetPassword) {
|
|
168
|
+
if (status.managedByEnvironment) {
|
|
169
|
+
console.warn(
|
|
170
|
+
"Warning: CUELO_PASSWORD is set and takes precedence over the stored password. Unset it for this reset to have any effect.",
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
requireTerminal("--reset-password");
|
|
174
|
+
await setPasswordInteractively("Setting a new CUELO password.");
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
if (!authenticated) return;
|
|
179
|
+
|
|
180
|
+
if (status.managedByEnvironment) {
|
|
181
|
+
console.log("Password access is already required: CUELO_PASSWORD is set.");
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
if (status.stored) {
|
|
185
|
+
if (!status.enabled) {
|
|
186
|
+
setWebPasswordEnabled(true, { file: webAuthFile });
|
|
187
|
+
console.log("Password access enabled with the password already stored on this machine.");
|
|
188
|
+
}
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
requireTerminal("--authenticated");
|
|
193
|
+
await setPasswordInteractively("--authenticated was requested and no CUELO password has been set yet.");
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
function warnAboutExposure() {
|
|
197
|
+
if (loopbackHostnames.has(hostname)) return;
|
|
198
|
+
if (getWebAuthStatus({ file: webAuthFile }).enabled) {
|
|
199
|
+
console.warn(
|
|
200
|
+
`Warning: CUELO is listening on ${hostname} with Basic Auth over HTTP. Use HTTPS or a trusted VPN to protect the password in transit.`,
|
|
201
|
+
);
|
|
202
|
+
} else {
|
|
203
|
+
console.warn(
|
|
204
|
+
`Warning: CUELO is listening on ${hostname} without authentication. Only use this on a trusted network, or start it with --authenticated.`,
|
|
205
|
+
);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
function startServer() {
|
|
210
|
+
warnAboutExposure();
|
|
211
|
+
|
|
212
|
+
// `--bun` forces Bun's own runtime for next's CLI entry (it would otherwise
|
|
213
|
+
// hand shebang'd scripts to node). The omp SDK ships TypeScript sources and
|
|
214
|
+
// `bun:` builtins, so the API routes only resolve under Bun.
|
|
215
|
+
const child = spawn(bunPath, ["--bun", nextBin, "start", "-p", port, "-H", hostname], {
|
|
216
|
+
cwd: pkgDir,
|
|
217
|
+
stdio: ["inherit", "pipe", "inherit"],
|
|
218
|
+
env: withLoopbackNoProxy({
|
|
219
|
+
...process.env,
|
|
220
|
+
CUELO_HOSTNAME: hostname,
|
|
221
|
+
CUELO_AUTH_FILE: webAuthFile,
|
|
222
|
+
// Preserve the directory from which `cuelo` was launched so relative
|
|
223
|
+
// project paths in the browser resolve against the user's shell cwd.
|
|
224
|
+
CUELO_LAUNCH_CWD: process.cwd(),
|
|
225
|
+
// `next start` overwrites NODE_ENV and PORT inside the server; the agent's child shells get
|
|
226
|
+
// these launch-time values back instead (core patch `stripHostNextServerEnv`).
|
|
227
|
+
CUELO_SHELL_ENV_BASELINE: JSON.stringify({ NODE_ENV: process.env.NODE_ENV, PORT: process.env.PORT }),
|
|
228
|
+
}),
|
|
229
|
+
});
|
|
230
|
+
// 서비스 묶음(install.mjs start)이 다른 서비스가 죽어 이 프로세스를 내릴 때 next도 같이 내려간다. 넘기지 않으면 next가
|
|
231
|
+
// 고아로 남아 포트와 출력 파이프를 쥐고, install.mjs가 끝나지 못해 유닛 재시작이 일어나지 않는다(2026-10-08 실측).
|
|
232
|
+
for (const signal of ["SIGINT", "SIGTERM"]) {
|
|
233
|
+
process.on(signal, () => child.kill(signal));
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
child.on("error", (error) => {
|
|
237
|
+
console.error(`Failed to launch CUELO through Bun (${bunPath}): ${error.message}`);
|
|
238
|
+
process.exit(1);
|
|
239
|
+
});
|
|
240
|
+
|
|
241
|
+
let browserOpened = false;
|
|
242
|
+
const url = `http://${hostname}:${port}`;
|
|
243
|
+
|
|
244
|
+
child.stdout.on("data", (chunk) => {
|
|
245
|
+
const text = chunk.toString();
|
|
246
|
+
process.stdout.write(text);
|
|
247
|
+
if (openBrowser && !browserOpened && text.includes("Ready")) {
|
|
248
|
+
browserOpened = true;
|
|
249
|
+
const isWindows = process.platform === "win32";
|
|
250
|
+
const isMac = process.platform === "darwin";
|
|
251
|
+
const openCmd = isWindows ? "start" : isMac ? "open" : "xdg-open";
|
|
252
|
+
const opener = spawn(openCmd, [url], {
|
|
253
|
+
shell: isWindows,
|
|
254
|
+
stdio: "ignore",
|
|
255
|
+
detached: true,
|
|
256
|
+
});
|
|
257
|
+
|
|
258
|
+
opener.on("error", (error) => {
|
|
259
|
+
console.warn(`Could not open browser automatically: ${error.message}`);
|
|
260
|
+
});
|
|
261
|
+
|
|
262
|
+
opener.unref();
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
|
|
266
|
+
child.on("exit", (code) => process.exit(code ?? 0));
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
configurePasswordAccess().then(startServer, (error) => {
|
|
270
|
+
if (error instanceof PromptAbortedError) process.exit(130);
|
|
271
|
+
console.error(error instanceof Error ? error.message : String(error));
|
|
272
|
+
process.exit(1);
|
|
273
|
+
});
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
#!/usr/bin/env bun
|
|
2
|
-
import fs from "node:fs";
|
|
3
|
-
import path from "node:path";
|
|
4
|
-
import { fileURLToPath } from "node:url";
|
|
5
|
-
import { spawn } from "node:child_process";
|
|
6
|
-
import { copyHarness, createProfileConfig, harnessEntries, resolveProfile } from "../install.mjs";
|
|
7
|
-
|
|
8
|
-
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
|
|
9
|
-
const { agentDir } = resolveProfile();
|
|
10
|
-
fs.mkdirSync(agentDir, { recursive: true, mode: 0o700 });
|
|
11
|
-
const pkg = JSON.parse(fs.readFileSync(path.join(root, "package.json"), "utf8"));
|
|
12
|
-
copyHarness(path.join(root, "Tools/OMP_Global_Config/agent"), agentDir, harnessEntries(pkg.files));
|
|
13
|
-
createProfileConfig(agentDir, {});
|
|
14
|
-
const child = spawn(process.execPath, [path.join(root, "install.mjs"), "start", "--hostname", "0.0.0.0", ...process.argv.slice(2)], {
|
|
15
|
-
cwd: root, env: process.env, stdio: "inherit",
|
|
16
|
-
});
|
|
17
|
-
for (const signal of ["SIGTERM", "SIGINT"]) process.on(signal, () => child.kill(signal));
|
|
18
|
-
child.on("error", (error) => { console.error(error.message); process.exitCode = 1; });
|
|
19
|
-
child.on("exit", (code, signal) => { process.exitCode = code ?? (signal ? 1 : 0); });
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
import fs from "node:fs";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
|
+
import { spawn } from "node:child_process";
|
|
6
|
+
import { copyHarness, createProfileConfig, harnessEntries, resolveProfile } from "../install.mjs";
|
|
7
|
+
|
|
8
|
+
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
|
|
9
|
+
const { agentDir } = resolveProfile();
|
|
10
|
+
fs.mkdirSync(agentDir, { recursive: true, mode: 0o700 });
|
|
11
|
+
const pkg = JSON.parse(fs.readFileSync(path.join(root, "package.json"), "utf8"));
|
|
12
|
+
copyHarness(path.join(root, "Tools/OMP_Global_Config/agent"), agentDir, harnessEntries(pkg.files));
|
|
13
|
+
createProfileConfig(agentDir, {});
|
|
14
|
+
const child = spawn(process.execPath, [path.join(root, "install.mjs"), "start", "--hostname", "0.0.0.0", ...process.argv.slice(2)], {
|
|
15
|
+
cwd: root, env: process.env, stdio: "inherit",
|
|
16
|
+
});
|
|
17
|
+
for (const signal of ["SIGTERM", "SIGINT"]) process.on(signal, () => child.kill(signal));
|
|
18
|
+
child.on("error", (error) => { console.error(error.message); process.exitCode = 1; });
|
|
19
|
+
child.on("exit", (code, signal) => { process.exitCode = code ?? (signal ? 1 : 0); });
|