@desplega.ai/agent-swarm 2.7.5 → 2.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{acp-adapter-g3ads55s.js → acp-adapter-7b4vk3h5.js} +5 -4
- package/dist/{actions-zwfykqqk.js → actions-3tt153af.js} +18 -17
- package/dist/{amp-adapter-z3s0ssdt.js → amp-adapter-njpts0yr.js} +1 -1
- package/dist/{anthropic-messages-x4q6rfq5.js → anthropic-messages-xey2skwx.js} +7 -7
- package/dist/{app-vmp4fgep.js → app-nky4378f.js} +3 -3
- package/dist/{assistant-vwde653f.js → assistant-jnb669pa.js} +24 -22
- package/dist/{azure-openai-responses-s1w5n70z.js → azure-openai-responses-26t7j9ra.js} +5 -5
- package/dist/{boot-reembed-375t7tbk.js → boot-reembed-9mgvaztt.js} +1 -1
- package/dist/{boot-reembed-gq9rcpnj.js → boot-reembed-qs2djdej.js} +1 -1
- package/dist/{boot-scrub-sweep-nd938kyf.js → boot-scrub-sweep-yjpdj7s1.js} +3 -3
- package/dist/{boot-seeds-aykx51v3.js → boot-seeds-5cm6ambd.js} +4 -4
- package/dist/{boxd-k1j26g3h.js → boxd-nv507va8.js} +5 -5
- package/dist/{claude-adapter-8j4hm099.js → claude-adapter-fn287zmm.js} +5 -4
- package/dist/{claude-managed-setup-0wyynpn1.js → claude-managed-setup-wtdz2mj2.js} +1 -1
- package/dist/{claude-sdk-session-q6wj5hmy.js → claude-sdk-session-x91kqyhm.js} +9677 -9514
- package/dist/{cli-j3jvnpe8.js → cli-08bmz9z9.js} +1 -1
- package/dist/{cli-gjr2y2xk.js → cli-0agcv1v5.js} +4 -1
- package/dist/{cli-y24sc29k.js → cli-1c6tzt8g.js} +30 -8
- package/dist/{cli-mjzynrse.js → cli-35rsp8ye.js} +1 -1
- package/dist/{cli-rpm2sgv0.js → cli-3fg0bdcv.js} +19 -2
- package/dist/{cli-nn4d8dne.js → cli-5b456bpf.js} +2 -2
- package/dist/{cli-bhjt02p8.js → cli-5jnhv72d.js} +1 -1
- package/dist/{cli-fqzx7gwa.js → cli-5zx699j9.js} +2 -2
- package/dist/{cli-hf6zt5m6.js → cli-69szn7w7.js} +17 -1
- package/dist/{cli-vqypxzh4.js → cli-6g0hb4cp.js} +8 -8
- package/dist/{cli-tqgg40ek.js → cli-6pfd54vx.js} +9 -8
- package/dist/{cli-bsn8nhrq.js → cli-6vcp76qk.js} +3 -3
- package/dist/{cli-zppwg9p9.js → cli-72v799xn.js} +1 -1
- package/dist/cli-82j36f2m.js +45 -0
- package/dist/{cli-hn9hxmz9.js → cli-8305gbq0.js} +29 -16
- package/dist/{cli-z8eh3ex8.js → cli-8sckt74b.js} +8 -8
- package/dist/{cli-bnz7a7qf.js → cli-95jzxcp3.js} +1 -1
- package/dist/{cli-0bxqnvq9.js → cli-adeegh7d.js} +29 -7
- package/dist/{cli-g61qxmge.js → cli-afkqkrtw.js} +3 -3
- package/dist/{cli-7a42nfy0.js → cli-ayayvfg4.js} +24 -4
- package/dist/{cli-bqt1mptt.js → cli-az48n0nr.js} +4 -4
- package/dist/{cli-z6jkx23q.js → cli-bfv7vdg6.js} +9 -9
- package/dist/{cli-pywf3eh5.js → cli-caj33vcq.js} +5 -5
- package/dist/{cli-5pag6rmn.js → cli-cb2a8pna.js} +1 -1
- package/dist/{cli-wvaawacd.js → cli-cppkf404.js} +5236 -72
- package/dist/{cli-mry0qzym.js → cli-ddaanqkd.js} +123 -10
- package/dist/{cli-0gey5fzy.js → cli-e0kmphd6.js} +2 -2
- package/dist/{cli-zh3fp8v2.js → cli-e46hg0xw.js} +1 -1
- package/dist/{cli-jm2vfpfd.js → cli-e5bzrn01.js} +1 -1
- package/dist/{cli-qxnf8z2z.js → cli-excnnjg2.js} +165 -153
- package/dist/{cli-71ptav7x.js → cli-ferkkrg9.js} +1 -1
- package/dist/{cli-vpf89f34.js → cli-fmjd0t1y.js} +3 -3
- package/dist/{cli-rm6hqj3z.js → cli-fyt2g4wd.js} +33 -139
- package/dist/cli-g08zdaec.js +55 -0
- package/dist/{cli-ehq736cn.js → cli-g7s47cc5.js} +4 -4
- package/dist/{cli-82ae98pz.js → cli-gz6q4eve.js} +3 -3
- package/dist/{cli-82jg7fp9.js → cli-he5nxaa8.js} +1 -1
- package/dist/{cli-rqkxrmgw.js → cli-je518txm.js} +39 -14
- package/dist/{cli-8hs41zy2.js → cli-jtjtabxe.js} +1 -1
- package/dist/{cli-611a1294.js → cli-k0wwfqbg.js} +18 -1
- package/dist/{cli-nzxr556s.js → cli-k1nje3v3.js} +38 -43
- package/dist/{cli-3h4nhjn8.js → cli-k8196sh2.js} +9 -7
- package/dist/{cli-afrrppsw.js → cli-k899ehvh.js} +2 -2
- package/dist/{cli-0731hvbw.js → cli-m0da8j35.js} +23 -9
- package/dist/cli-m2z8jagn.js +12078 -0
- package/dist/{cli-8veytvbh.js → cli-mkk9rnzz.js} +5 -5
- package/dist/{cli-7wspm5gm.js → cli-n6bv12jn.js} +528 -6
- package/dist/{cli-spknvxbq.js → cli-nmzhp1b5.js} +14 -12
- package/dist/{cli-p599f1qm.js → cli-p82cnnjq.js} +1 -1
- package/dist/{cli-xtjhfmpc.js → cli-pc6n7fre.js} +1 -1
- package/dist/{cli-vbyfwh92.js → cli-pjctyea3.js} +2 -2
- package/dist/{cli-nmbmy64z.js → cli-pq73h5mz.js} +3 -3
- package/dist/{cli-aa6yxc7m.js → cli-pz4rk021.js} +1 -1
- package/dist/{cli-7wcyk2s5.js → cli-q3tkegby.js} +1 -1
- package/dist/cli-qghe0h66.js +67 -0
- package/dist/{cli-6s7vdcta.js → cli-qh4d4tvk.js} +4 -4
- package/dist/{cli-mmwm7zbf.js → cli-rtt8g4v9.js} +1 -1
- package/dist/{cli-kg8hchyg.js → cli-sa02jsqt.js} +1 -1
- package/dist/{cli-1h3wcpbw.js → cli-snpj5zbj.js} +2 -2
- package/dist/{cli-a7v854rf.js → cli-tgrv9cjx.js} +263 -12
- package/dist/{cli-a47xy8eq.js → cli-vz22fyqv.js} +186 -54
- package/dist/{cli-1ayk1eas.js → cli-wk5yrfwd.js} +285 -42
- package/dist/{cli-1338796d.js → cli-ws19768n.js} +1755 -119
- package/dist/{cli-70r77n04.js → cli-xae4g51r.js} +1 -1
- package/dist/{cli-gf5hbmdr.js → cli-yjdgea32.js} +3 -3
- package/dist/{cli-xbkdm710.js → cli-yndmfxb3.js} +3 -3
- package/dist/{cli-rhw40jgb.js → cli-yyj3j5m4.js} +2 -2
- package/dist/cli.js +26 -25
- package/dist/{cloudflare-workers-ai-system-one-bm60fjm0.js → cloudflare-workers-ai-system-one-ef2a980q.js} +2 -2
- package/dist/{codex-adapter-q6k3gnyg.js → codex-adapter-cf2yxe9m.js} +3 -2
- package/dist/{codex-hook-9efm2x1m.js → codex-hook-a0c6g6t6.js} +1 -1
- package/dist/{codex-session-runner-3mwmk3d9.js → codex-session-runner-6vfzdgbd.js} +3 -2
- package/dist/{commands-evrenjn9.js → commands-t3mfy7vn.js} +9 -3
- package/dist/{controller-xjp8vswh.js → controller-q7xrbaz0.js} +8 -3
- package/dist/{controllers-connect-pp5jnxvc.js → controllers-connect-c6nm70kg.js} +20 -19
- package/dist/{cursor-adapter-yf47w4t0.js → cursor-adapter-ftd81ga8.js} +1 -1
- package/dist/{db-zxpw6aht.js → db-dk572x25.js} +3 -3
- package/dist/{db-rgfsh91f.js → db-vemtpmcc.js} +14 -4
- package/dist/{devtools-82fzqra8.js → devtools-qxfgbsqz.js} +1 -1
- package/dist/{dispatcher-smasgws7.js → dispatcher-kh7ecxh9.js} +17 -16
- package/dist/{docker-rrjhaqt9.js → docker-c1a3gqmf.js} +89 -22
- package/dist/{dsh-adapter-ftyy8dnp.js → dsh-adapter-v8628r89.js} +1 -1
- package/dist/{e2b-w1p0bnpm.js → e2b-fr12yccx.js} +5 -5
- package/dist/{e2b-qcaj675y.js → e2b-x6ywzak3.js} +3 -3
- package/dist/{easter-egg-3d-yyts7p16.js → easter-egg-3d-nenw4x63.js} +1 -1
- package/dist/{embedding-space-1z0mbg95.js → embedding-space-0jepb239.js} +6 -6
- package/dist/{embeddings-ygeg7tm7.js → embeddings-xxt49yxg.js} +1 -1
- package/dist/{execute-14qhqp4d.js → execute-1mhw6e4x.js} +1 -1
- package/dist/{external-channel-ttgrs3sx.js → external-channel-55v12e60.js} +2 -2
- package/dist/{fx-adapter-gt6pncj2.js → fx-adapter-bs8wqrk5.js} +6 -5
- package/dist/{google-generative-ai-yvmdxyxa.js → google-generative-ai-v94hr7h0.js} +5 -5
- package/dist/{google-vertex-jrtdh9gs.js → google-vertex-g7vr6cf8.js} +5 -5
- package/dist/{grok-adapter-sm4m5k4g.js → grok-adapter-gpjqmkcq.js} +6 -5
- package/dist/handlers-zxmp1ta4.js +32 -0
- package/dist/{heartbeat-qahz4p62.js → heartbeat-k42svnr0.js} +20 -19
- package/dist/{hook-4fd5wq5w.js → hook-114m7hap.js} +4 -3
- package/dist/{hook-kj3d398m.js → hook-6nphweh0.js} +24 -9
- package/dist/{http-1ted0j1k.js → http-r8cc4wz7.js} +1196 -211
- package/dist/index-a8phxqnk.js +37 -0
- package/dist/{index-q4b917zs.js → index-e3s8wmxy.js} +1 -1
- package/dist/{index-6rq3r5zb.js → index-fpk4bcd9.js} +1 -1
- package/dist/{index-5rk6rfzr.js → index-fvzke5kx.js} +1 -1
- package/dist/index-k6h00t4c.js +30 -0
- package/dist/{index-7v51awbn.js → index-nh3wyqdt.js} +1027 -577
- package/dist/{index-yqhz88yy.js → index-pxn30mse.js} +8 -8
- package/dist/index-xrz7te8h.js +33 -0
- package/dist/{keepalive-6cf311t5.js → keepalive-x060nt9p.js} +3 -3
- package/dist/lead-956sd2yc.js +71 -0
- package/dist/{maintenance-a4bm1bmt.js → maintenance-2xxfexhf.js} +1 -1
- package/dist/{mistral-conversations-4pmwj1c0.js → mistral-conversations-3gjpdb4b.js} +4 -4
- package/dist/{oauth-refresh-sweep-3h0dfw1k.js → oauth-refresh-sweep-fckc4ar5.js} +2 -2
- package/dist/{onboard-myn5hraa.js → onboard-zc48j237.js} +5 -5
- package/dist/{openai-codex-responses-44j573nm.js → openai-codex-responses-8pbxq9h5.js} +5 -5
- package/dist/{openai-completions-a4gee2a8.js → openai-completions-rm00s912.js} +4 -4
- package/dist/{openai-decisions-w4qkrcar.js → openai-decisions-8v957r2r.js} +1 -1
- package/dist/{openai-responses-rbp6h5kr.js → openai-responses-agxpf96k.js} +5 -5
- package/dist/{opencode-adapter-p2nkb5am.js → opencode-adapter-r690h1cr.js} +4 -3
- package/dist/{otel-impl-a1a0ef6b.js → otel-impl-r5xbh81q.js} +4 -4
- package/dist/{pi-mono-adapter-rzmpb72a.js → pi-mono-adapter-c7v8sdec.js} +7 -6
- package/dist/{pricing-refresh-83drrnxj.js → pricing-refresh-3pmre11v.js} +3 -3
- package/dist/{rbac-roles-s8y6ecb5.js → rbac-roles-3vbshwsb.js} +1 -1
- package/dist/{rbac-roles-0fb6e7pj.js → rbac-roles-910mmkgz.js} +2 -2
- package/dist/{render-v2-twmbgrz4.js → render-v2-pxykkbab.js} +3 -3
- package/dist/{resume-zfqc36xj.js → resume-adda0bwy.js} +6 -6
- package/dist/{runtime-qwggdpqr.js → runtime-fnbm7stk.js} +1 -1
- package/dist/{session-access-sc9pn9da.js → session-access-2fvamrdc.js} +4 -4
- package/dist/{session-source-backfill-qh07xr8g.js → session-source-backfill-08xvv0sm.js} +2 -2
- package/dist/{setup-4fr0m7a1.js → setup-1aqmvmh1.js} +3 -3
- package/dist/{typesafe-system-one-5mavm259.js → typesafe-system-one-0bmqcxfg.js} +2 -2
- package/dist/{virtual-modules-fh4ha15b.js → virtual-modules-d2pjk9j1.js} +5 -5
- package/dist/{work-objects-0wr8zxct.js → work-objects-9s0yrm5j.js} +20 -19
- package/dist/{worker-follow-up-ktyyazyp.js → worker-follow-up-3q78fqmr.js} +17 -16
- package/dist/worker-y15hy08h.js +71 -0
- package/openapi.json +289 -4
- package/package.json +9 -8
- package/src/apps/definition.ts +6 -5
- package/src/be/db/page-theme-tokens.ts +12 -0
- package/src/be/db/script-runs.ts +23 -0
- package/src/be/db/tasks/read.ts +131 -4
- package/src/be/db/tasks/write.ts +19 -0
- package/src/be/db-client.ts +114 -11
- package/src/be/db.ts +49 -6
- package/src/be/memory/providers/sqlite-store.ts +49 -12
- package/src/be/migrations/260_runtime_pool_cache.sql +20 -0
- package/src/be/migrations/262_session_visibility_indexes.sql +18 -0
- package/src/be/migrations/263_task_list_filter_index.sql +11 -0
- package/src/be/migrations/264_slack_thread_cover_index.sql +9 -0
- package/src/be/migrations/266_script_runs_source_task.sql +11 -0
- package/src/be/migrations/269_pages_design_system.sql +23 -0
- package/src/be/runtime-pools/cache-cleanup.ts +109 -0
- package/src/be/runtime-pools/db.ts +65 -6
- package/src/be/runtime-pools/remote-controller.ts +5 -0
- package/src/be/runtime-pools/supervisor.ts +33 -2
- package/src/be/scripts/typecheck.ts +22 -0
- package/src/be/seed/schedules-seeder.ts +0 -10
- package/src/be/seed-scripts/catalog/catalog-report.inline.ts +2 -0
- package/src/be/seed-scripts/catalog/catalog-report.ts +2 -0
- package/src/be/seed-scripts/catalog/memory-eval.ts +2 -0
- package/src/be/seed-scripts/catalog/swarm-update-check.ts +150 -0
- package/src/be/seed-scripts/catalog/task-failure-audit.ts +5 -1
- package/src/be/seed-scripts/index.ts +9 -0
- package/src/be/seed-skills/bundled-files.generated.json +3 -3
- package/src/be/swarm-config-guard.ts +32 -0
- package/src/be/task-auto-title-listener.ts +127 -0
- package/src/commands/controller.ts +4 -0
- package/src/commands/entrypoint-api-readiness.ts +74 -0
- package/src/commands/onboard/agent-fs-version.ts +1 -1
- package/src/commands/profile-sync.ts +151 -16
- package/src/commands/runner.ts +15 -7
- package/src/hooks/hook.ts +20 -9
- package/src/http/index.ts +4 -1
- package/src/http/list-total-cache.ts +14 -7
- package/src/http/memory.ts +38 -9
- package/src/http/pages-public.ts +93 -129
- package/src/http/pages.ts +94 -21
- package/src/http/script-runs.ts +174 -5
- package/src/http/status.ts +10 -2
- package/src/http/tasks.ts +4 -2
- package/src/pages/browser-sdk.ts +48 -21
- package/src/pages/color-literals.ts +115 -0
- package/src/pages/page-head.ts +766 -0
- package/src/pages/version.ts +3 -0
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/codex-adapter.ts +1 -0
- package/src/providers/codex-app-server.ts +27 -1
- package/src/providers/fx-adapter.ts +1 -1
- package/src/providers/pi-mono-extension.ts +30 -15
- package/src/runtime-providers/controller-protocol.ts +14 -1
- package/src/runtime-providers/controller.ts +5 -0
- package/src/runtime-providers/docker.ts +108 -23
- package/src/runtime-providers/types.ts +16 -0
- package/src/script-workflows/workflow-ctx.ts +8 -0
- package/src/scripts-runtime/types/stdlib.d.ts +22 -0
- package/src/scripts-runtime/types/swarm-sdk.d.ts +22 -0
- package/src/server-user.ts +1 -0
- package/src/slack/commands.ts +5 -1
- package/src/slack/handlers.ts +37 -2
- package/src/slack/left-threads.ts +27 -4
- package/src/tasks/follow-up-gate.ts +318 -0
- package/src/tasks/follow-up-redelegation-guard.ts +155 -0
- package/src/tasks/worker-follow-up.ts +21 -1
- package/src/tests/claude-artifacts-read-script.test.ts +209 -0
- package/src/tests/codex-app-server.test.ts +59 -0
- package/src/tests/codex-gateway-route.test.ts +50 -1
- package/src/tests/create-page-tool.test.ts +501 -0
- package/src/tests/db-client-busy-retry.test.ts +81 -0
- package/src/tests/db-client.test.ts +21 -0
- package/src/tests/db-task-read-contract.test.ts +9 -2
- package/src/tests/db-task-write-contract.test.ts +7 -1
- package/src/tests/db-tasks-read.test.ts +21 -0
- package/src/tests/entrypoint-api-readiness.test.ts +416 -210
- package/src/tests/explicit-model-validation.test.ts +14 -8
- package/src/tests/fixtures/pages/head-v1.html +56 -0
- package/src/tests/follow-up-gate-shadow.test.ts +513 -0
- package/src/tests/follow-up-redelivery-guard.test.ts +432 -202
- package/src/tests/identity-field-budget.test.ts +1 -1
- package/src/tests/internal-ai/credentials.test.ts +62 -0
- package/src/tests/internal-ai/task-title.test.ts +283 -0
- package/src/tests/list-total-cache.test.ts +27 -2
- package/src/tests/memory-fts-populate.test.ts +11 -9
- package/src/tests/memory-retrieval-purge.test.ts +80 -0
- package/src/tests/merge-gate-detect-changes.test.ts +145 -0
- package/src/tests/migration-260-runtime-pool-cache.test.ts +118 -0
- package/src/tests/page-proxy.test.ts +1 -1
- package/src/tests/page-session-dev-cookie.test.ts +188 -0
- package/src/tests/pages-frame-ancestors.test.ts +28 -1
- package/src/tests/pages-head-v2.test.ts +534 -0
- package/src/tests/pages-http.test.ts +330 -0
- package/src/tests/pages-public-html.test.ts +43 -0
- package/src/tests/pages-storage.test.ts +182 -0
- package/src/tests/pages-versioning.test.ts +72 -0
- package/src/tests/profile-sync-stale-writeback.test.ts +334 -0
- package/src/tests/profile-sync.test.ts +11 -15
- package/src/tests/query-audit-plans.test.ts +27 -0
- package/src/tests/runtime-cache-cleanup.test.ts +367 -0
- package/src/tests/runtime-e2b-pools.test.ts +41 -0
- package/src/tests/runtime-pools-db.test.ts +98 -0
- package/src/tests/runtime-pools-http.test.ts +29 -0
- package/src/tests/runtime-providers-docker.test.ts +253 -0
- package/src/tests/runtime-remote-controller.test.ts +66 -2
- package/src/tests/runtime-supervisor.test.ts +66 -2
- package/src/tests/scheduled-task-required-params-migration.test.ts +3 -1
- package/src/tests/script-connections.test.ts +13 -0
- package/src/tests/script-runs-http.test.ts +684 -2
- package/src/tests/seed-registry.test.ts +28 -6
- package/src/tests/seed-schedules.test.ts +61 -8
- package/src/tests/seed-scripts.test.ts +168 -2
- package/src/tests/slack-leave-thread.test.ts +145 -5
- package/src/tests/slack-render-v2-query-plans.test.ts +24 -2
- package/src/tests/status.test.ts +11 -0
- package/src/tests/swarm-diff.test.ts +121 -2
- package/src/tests/task-auto-title-config-guard.test.ts +37 -0
- package/src/tests/task-auto-title-listener.test.ts +165 -0
- package/src/tests/tasks-readable-row.test.ts +155 -0
- package/src/tests/theme-import.test.ts +758 -0
- package/src/tests/themes-page-theme.test.ts +155 -0
- package/src/tests/themes-presets.test.ts +172 -0
- package/src/tests/workflow-script-principal.test.ts +2 -1
- package/src/themes/classics.ts +949 -0
- package/src/themes/import.ts +420 -0
- package/src/themes/page-fields.ts +40 -0
- package/src/themes/page-theme.ts +102 -0
- package/src/themes/presets.ts +561 -0
- package/src/themes/tokens.ts +218 -0
- package/src/tools/app-upsert.ts +1 -1
- package/src/tools/create-page.ts +118 -12
- package/src/tools/send-task.ts +35 -47
- package/src/tools/slack-leave-thread.ts +1 -1
- package/src/tools/task-dedup.ts +45 -21
- package/src/tools/utils.ts +33 -0
- package/src/types.ts +83 -3
- package/src/utils/constants.ts +19 -0
- package/src/utils/follow-up-gate-schedule-ids.ts +13 -0
- package/src/utils/internal-ai/credentials.ts +146 -93
- package/src/utils/internal-ai/index.ts +10 -0
- package/src/utils/internal-ai/models.ts +18 -0
- package/src/utils/internal-ai/task-title.ts +282 -0
- package/src/utils/page-session.ts +37 -0
- package/templates/schedules/daily-status-report/content.md +88 -2
- package/templates/schedules/daily-swarm-update-check/content.md +16 -40
- package/templates/skills/apps/SKILL.md +1 -1
- package/templates/skills/apps/content.md +1 -1
- package/templates/skills/composio-google-docs/content.md +10 -0
- package/templates/skills/heartbeat-runbook/content.md +1 -1
- package/templates/skills/pages/config.json +1 -1
- package/templates/skills/pages/content.md +539 -86
- package/templates/skills/pages/files/examples/annotated-pr.html +21 -12
- package/templates/skills/pages/files/examples/multiplayer-board.html +41 -41
- package/templates/skills/pages/files/examples/report-page.html +125 -124
- package/templates/skills/script-workflows/content.md +19 -1
- package/templates/skills/swarm-docs/content.md +1 -0
- package/templates/skills/swarm-scripts/SKILL.md +2 -0
- package/templates/skills/swarm-scripts/content.md +2 -0
- package/dist/cli-2pnswgh8.js +0 -189
- package/dist/cli-dznrgaep.js +0 -30
- package/dist/cli-w3hcrxht.js +0 -6985
- package/dist/handlers-vwmba1m2.js +0 -31
- package/dist/index-5r71rf98.js +0 -32
- package/dist/index-anmwxs87.js +0 -29
- package/dist/index-spp0ra5c.js +0 -36
- package/dist/lead-fjy418cw.js +0 -69
- package/dist/worker-0c5tyzqe.js +0 -69
- package/templates/schedules/daily-workflow-health-audit/config.json +0 -19
- package/templates/schedules/daily-workflow-health-audit/content.md +0 -191
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
unknown,
|
|
13
13
|
array2,
|
|
14
14
|
object2,
|
|
15
|
+
strictObject2,
|
|
15
16
|
union2,
|
|
16
17
|
discriminatedUnion,
|
|
17
18
|
record2,
|
|
@@ -24,7 +25,7 @@ import {
|
|
|
24
25
|
import {
|
|
25
26
|
MAX_PROFILE_FILE_LENGTH,
|
|
26
27
|
init_constants3
|
|
27
|
-
} from "./cli-
|
|
28
|
+
} from "./cli-k0wwfqbg.js";
|
|
28
29
|
import {
|
|
29
30
|
__esm
|
|
30
31
|
} from "./cli-242037k3.js";
|
|
@@ -123,6 +124,493 @@ function isSafeBundlePath(path) {
|
|
|
123
124
|
}
|
|
124
125
|
var init_bundle_path = () => {};
|
|
125
126
|
|
|
127
|
+
// src/themes/tokens.ts
|
|
128
|
+
var PAGE_THEME_COLOR_TOKENS, PAGE_THEME_SHARED_TOKENS, PAGE_THEME_TOKENS, HIVE_SHARED_TOKENS, HIVE_LIGHT_COLORS, HIVE_DARK_COLORS, HIVE_PAGE_TOKENS;
|
|
129
|
+
var init_tokens2 = __esm(() => {
|
|
130
|
+
PAGE_THEME_COLOR_TOKENS = [
|
|
131
|
+
"--color-background",
|
|
132
|
+
"--color-foreground",
|
|
133
|
+
"--color-card",
|
|
134
|
+
"--color-card-foreground",
|
|
135
|
+
"--color-surface",
|
|
136
|
+
"--color-popover",
|
|
137
|
+
"--color-popover-foreground",
|
|
138
|
+
"--color-primary",
|
|
139
|
+
"--color-primary-foreground",
|
|
140
|
+
"--color-secondary",
|
|
141
|
+
"--color-secondary-foreground",
|
|
142
|
+
"--color-muted",
|
|
143
|
+
"--color-muted-foreground",
|
|
144
|
+
"--color-accent",
|
|
145
|
+
"--color-accent-foreground",
|
|
146
|
+
"--color-destructive",
|
|
147
|
+
"--color-destructive-foreground",
|
|
148
|
+
"--color-border",
|
|
149
|
+
"--color-border-subtle",
|
|
150
|
+
"--color-input",
|
|
151
|
+
"--color-ring",
|
|
152
|
+
"--color-chart-1",
|
|
153
|
+
"--color-chart-2",
|
|
154
|
+
"--color-chart-3",
|
|
155
|
+
"--color-chart-4",
|
|
156
|
+
"--color-chart-5",
|
|
157
|
+
"--color-status-success",
|
|
158
|
+
"--color-status-success-strong",
|
|
159
|
+
"--color-status-success-foreground",
|
|
160
|
+
"--color-status-active",
|
|
161
|
+
"--color-status-active-strong",
|
|
162
|
+
"--color-status-active-foreground",
|
|
163
|
+
"--color-status-error",
|
|
164
|
+
"--color-status-error-strong",
|
|
165
|
+
"--color-status-error-foreground",
|
|
166
|
+
"--color-status-info",
|
|
167
|
+
"--color-status-info-strong",
|
|
168
|
+
"--color-status-info-foreground",
|
|
169
|
+
"--color-status-pending",
|
|
170
|
+
"--color-status-pending-strong",
|
|
171
|
+
"--color-status-pending-foreground",
|
|
172
|
+
"--color-status-warning",
|
|
173
|
+
"--color-status-warning-strong",
|
|
174
|
+
"--color-status-warning-foreground",
|
|
175
|
+
"--color-status-paused",
|
|
176
|
+
"--color-status-paused-strong",
|
|
177
|
+
"--color-status-paused-foreground",
|
|
178
|
+
"--color-status-neutral",
|
|
179
|
+
"--color-status-neutral-strong",
|
|
180
|
+
"--color-status-neutral-foreground",
|
|
181
|
+
"--color-status-success-solid",
|
|
182
|
+
"--color-status-active-solid"
|
|
183
|
+
];
|
|
184
|
+
PAGE_THEME_SHARED_TOKENS = [
|
|
185
|
+
"--font-sans",
|
|
186
|
+
"--font-mono",
|
|
187
|
+
"--radius-sm",
|
|
188
|
+
"--radius-md",
|
|
189
|
+
"--radius-lg",
|
|
190
|
+
"--radius-xl"
|
|
191
|
+
];
|
|
192
|
+
PAGE_THEME_TOKENS = [...PAGE_THEME_COLOR_TOKENS, ...PAGE_THEME_SHARED_TOKENS];
|
|
193
|
+
HIVE_SHARED_TOKENS = {
|
|
194
|
+
"--font-sans": '"Space Grotesk", sans-serif',
|
|
195
|
+
"--font-mono": '"Space Mono", monospace',
|
|
196
|
+
"--radius-sm": "0.375rem",
|
|
197
|
+
"--radius-md": "0.5rem",
|
|
198
|
+
"--radius-lg": "0.625rem",
|
|
199
|
+
"--radius-xl": "0.625rem"
|
|
200
|
+
};
|
|
201
|
+
HIVE_LIGHT_COLORS = {
|
|
202
|
+
"--color-background": "oklch(1 0 0)",
|
|
203
|
+
"--color-foreground": "oklch(0.141 0.005 285.823)",
|
|
204
|
+
"--color-card": "oklch(1 0 0)",
|
|
205
|
+
"--color-card-foreground": "oklch(0.141 0.005 285.823)",
|
|
206
|
+
"--color-surface": "oklch(0.985 0.0015 286)",
|
|
207
|
+
"--color-popover": "oklch(1 0 0)",
|
|
208
|
+
"--color-popover-foreground": "oklch(0.141 0.005 285.823)",
|
|
209
|
+
"--color-primary": "oklch(0.555 0.163 48.998)",
|
|
210
|
+
"--color-primary-foreground": "oklch(0.985 0 0)",
|
|
211
|
+
"--color-secondary": "oklch(0.967 0.001 286.375)",
|
|
212
|
+
"--color-secondary-foreground": "oklch(0.21 0.006 285.885)",
|
|
213
|
+
"--color-muted": "oklch(0.967 0.001 286.375)",
|
|
214
|
+
"--color-muted-foreground": "oklch(0.552 0.016 285.938)",
|
|
215
|
+
"--color-accent": "oklch(0.943 0.003 286.375)",
|
|
216
|
+
"--color-accent-foreground": "oklch(0.21 0.006 285.885)",
|
|
217
|
+
"--color-destructive": "oklch(0.577 0.245 27.325)",
|
|
218
|
+
"--color-destructive-foreground": "oklch(0.985 0 0)",
|
|
219
|
+
"--color-border": "oklch(0.92 0.004 286.32)",
|
|
220
|
+
"--color-border-subtle": "oklch(0.945 0.003 286)",
|
|
221
|
+
"--color-input": "oklch(0.92 0.004 286.32)",
|
|
222
|
+
"--color-ring": "oklch(0.555 0.163 48.998)",
|
|
223
|
+
"--color-chart-1": "oklch(0.646 0.222 41.116)",
|
|
224
|
+
"--color-chart-2": "oklch(0.6 0.118 184.704)",
|
|
225
|
+
"--color-chart-3": "oklch(0.398 0.07 227.392)",
|
|
226
|
+
"--color-chart-4": "oklch(0.828 0.189 84.429)",
|
|
227
|
+
"--color-chart-5": "oklch(0.769 0.188 70.08)",
|
|
228
|
+
"--color-status-success": "oklch(0.74 0.1 163)",
|
|
229
|
+
"--color-status-success-strong": "oklch(0.5 0.09 163)",
|
|
230
|
+
"--color-status-success-foreground": "oklch(0.21 0.006 285.885)",
|
|
231
|
+
"--color-status-active": "oklch(0.81 0.11 75)",
|
|
232
|
+
"--color-status-active-strong": "oklch(0.55 0.1 68)",
|
|
233
|
+
"--color-status-active-foreground": "oklch(0.21 0.006 285.885)",
|
|
234
|
+
"--color-status-error": "oklch(0.72 0.12 25)",
|
|
235
|
+
"--color-status-error-strong": "oklch(0.51 0.14 25)",
|
|
236
|
+
"--color-status-error-foreground": "oklch(0.21 0.006 285.885)",
|
|
237
|
+
"--color-status-info": "oklch(0.74 0.09 235)",
|
|
238
|
+
"--color-status-info-strong": "oklch(0.5 0.09 240)",
|
|
239
|
+
"--color-status-info-foreground": "oklch(0.21 0.006 285.885)",
|
|
240
|
+
"--color-status-pending": "oklch(0.84 0.1 95)",
|
|
241
|
+
"--color-status-pending-strong": "oklch(0.55 0.09 90)",
|
|
242
|
+
"--color-status-pending-foreground": "oklch(0.21 0.006 285.885)",
|
|
243
|
+
"--color-status-warning": "oklch(0.76 0.11 55)",
|
|
244
|
+
"--color-status-warning-strong": "oklch(0.53 0.11 50)",
|
|
245
|
+
"--color-status-warning-foreground": "oklch(0.21 0.006 285.885)",
|
|
246
|
+
"--color-status-paused": "oklch(0.71 0.1 262)",
|
|
247
|
+
"--color-status-paused-strong": "oklch(0.5 0.1 262)",
|
|
248
|
+
"--color-status-paused-foreground": "oklch(0.21 0.006 285.885)",
|
|
249
|
+
"--color-status-neutral": "oklch(0.62 0.014 286)",
|
|
250
|
+
"--color-status-neutral-strong": "oklch(0.48 0.014 286)",
|
|
251
|
+
"--color-status-neutral-foreground": "oklch(0.21 0.006 285.885)",
|
|
252
|
+
"--color-status-success-solid": "oklch(0.627 0.194 149.2)",
|
|
253
|
+
"--color-status-active-solid": "oklch(0.666 0.179 58.318)"
|
|
254
|
+
};
|
|
255
|
+
HIVE_DARK_COLORS = {
|
|
256
|
+
"--color-background": "oklch(0.141 0.005 285.823)",
|
|
257
|
+
"--color-foreground": "oklch(0.985 0 0)",
|
|
258
|
+
"--color-card": "oklch(0.21 0.006 285.885)",
|
|
259
|
+
"--color-card-foreground": "oklch(0.985 0 0)",
|
|
260
|
+
"--color-surface": "oklch(0.185 0.006 286)",
|
|
261
|
+
"--color-popover": "oklch(0.21 0.006 285.885)",
|
|
262
|
+
"--color-popover-foreground": "oklch(0.985 0 0)",
|
|
263
|
+
"--color-primary": "oklch(0.769 0.188 70.08)",
|
|
264
|
+
"--color-primary-foreground": "oklch(0.21 0.006 285.885)",
|
|
265
|
+
"--color-secondary": "oklch(0.274 0.006 286.033)",
|
|
266
|
+
"--color-secondary-foreground": "oklch(0.985 0 0)",
|
|
267
|
+
"--color-muted": "oklch(0.274 0.006 286.033)",
|
|
268
|
+
"--color-muted-foreground": "oklch(0.705 0.015 286.067)",
|
|
269
|
+
"--color-accent": "oklch(0.274 0.006 286.033)",
|
|
270
|
+
"--color-accent-foreground": "oklch(0.985 0 0)",
|
|
271
|
+
"--color-destructive": "oklch(0.704 0.191 22.216)",
|
|
272
|
+
"--color-destructive-foreground": "oklch(0.985 0 0)",
|
|
273
|
+
"--color-border": "oklch(1 0 0 / 10%)",
|
|
274
|
+
"--color-border-subtle": "oklch(1 0 0 / 8%)",
|
|
275
|
+
"--color-input": "oklch(1 0 0 / 15%)",
|
|
276
|
+
"--color-ring": "oklch(0.769 0.188 70.08)",
|
|
277
|
+
"--color-chart-1": "oklch(0.488 0.243 264.376)",
|
|
278
|
+
"--color-chart-2": "oklch(0.696 0.17 162.48)",
|
|
279
|
+
"--color-chart-3": "oklch(0.769 0.188 70.08)",
|
|
280
|
+
"--color-chart-4": "oklch(0.627 0.265 303.9)",
|
|
281
|
+
"--color-chart-5": "oklch(0.645 0.246 16.439)",
|
|
282
|
+
"--color-status-success": "oklch(0.78 0.1 163)",
|
|
283
|
+
"--color-status-success-strong": "oklch(0.78 0.1 163)",
|
|
284
|
+
"--color-status-success-foreground": "oklch(0.21 0.006 285.885)",
|
|
285
|
+
"--color-status-active": "oklch(0.84 0.1 80)",
|
|
286
|
+
"--color-status-active-strong": "oklch(0.84 0.1 80)",
|
|
287
|
+
"--color-status-active-foreground": "oklch(0.21 0.006 285.885)",
|
|
288
|
+
"--color-status-error": "oklch(0.74 0.11 22)",
|
|
289
|
+
"--color-status-error-strong": "oklch(0.74 0.11 22)",
|
|
290
|
+
"--color-status-error-foreground": "oklch(0.21 0.006 285.885)",
|
|
291
|
+
"--color-status-info": "oklch(0.78 0.09 235)",
|
|
292
|
+
"--color-status-info-strong": "oklch(0.78 0.09 235)",
|
|
293
|
+
"--color-status-info-foreground": "oklch(0.21 0.006 285.885)",
|
|
294
|
+
"--color-status-pending": "oklch(0.86 0.09 95)",
|
|
295
|
+
"--color-status-pending-strong": "oklch(0.86 0.09 95)",
|
|
296
|
+
"--color-status-pending-foreground": "oklch(0.21 0.006 285.885)",
|
|
297
|
+
"--color-status-warning": "oklch(0.79 0.1 55)",
|
|
298
|
+
"--color-status-warning-strong": "oklch(0.79 0.1 55)",
|
|
299
|
+
"--color-status-warning-foreground": "oklch(0.21 0.006 285.885)",
|
|
300
|
+
"--color-status-paused": "oklch(0.74 0.09 260)",
|
|
301
|
+
"--color-status-paused-strong": "oklch(0.74 0.09 260)",
|
|
302
|
+
"--color-status-paused-foreground": "oklch(0.21 0.006 285.885)",
|
|
303
|
+
"--color-status-neutral": "oklch(0.72 0.012 286)",
|
|
304
|
+
"--color-status-neutral-strong": "oklch(0.72 0.012 286)",
|
|
305
|
+
"--color-status-neutral-foreground": "oklch(0.21 0.006 285.885)",
|
|
306
|
+
"--color-status-success-solid": "oklch(0.723 0.219 149.6)",
|
|
307
|
+
"--color-status-active-solid": "oklch(0.769 0.188 70.08)"
|
|
308
|
+
};
|
|
309
|
+
HIVE_PAGE_TOKENS = {
|
|
310
|
+
light: { ...HIVE_LIGHT_COLORS, ...HIVE_SHARED_TOKENS },
|
|
311
|
+
dark: { ...HIVE_DARK_COLORS, ...HIVE_SHARED_TOKENS }
|
|
312
|
+
};
|
|
313
|
+
});
|
|
314
|
+
|
|
315
|
+
// src/themes/import.ts
|
|
316
|
+
function importThemeTokens(input) {
|
|
317
|
+
const fields = readRecord(input, "themeTokens");
|
|
318
|
+
const raw = THEME_IMPORTERS[readFormat(fields.format)](fields);
|
|
319
|
+
const ignored = new Set;
|
|
320
|
+
const tokens = {
|
|
321
|
+
light: normalizeDeclarations(raw.light, "light", ignored),
|
|
322
|
+
dark: normalizeDeclarations(raw.dark, "dark", ignored)
|
|
323
|
+
};
|
|
324
|
+
for (const entry of raw.skipped)
|
|
325
|
+
ignored.add(entry);
|
|
326
|
+
return { tokens, ignored: [...ignored] };
|
|
327
|
+
}
|
|
328
|
+
function readFormat(format) {
|
|
329
|
+
if (format === undefined || format === null)
|
|
330
|
+
return "tokens";
|
|
331
|
+
const known = THEME_IMPORT_FORMATS.find((candidate) => candidate === format);
|
|
332
|
+
if (known)
|
|
333
|
+
return known;
|
|
334
|
+
throw new ThemeImportError(`unknown themeTokens format ${quote(format)}: use one of ${THEME_IMPORT_FORMATS.join(", ")}`);
|
|
335
|
+
}
|
|
336
|
+
function readTokenMaps(input) {
|
|
337
|
+
assertFields(input, "tokens", ["format", "light", "dark"]);
|
|
338
|
+
return {
|
|
339
|
+
light: readTokenMap(input.light, "light"),
|
|
340
|
+
dark: readTokenMap(input.dark, "dark"),
|
|
341
|
+
skipped: []
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
function readTokenMap(value, mode) {
|
|
345
|
+
if (value === undefined || value === null)
|
|
346
|
+
return [];
|
|
347
|
+
return Object.entries(readRecord(value, `themeTokens.${mode}`)).map(([name, tokenValue]) => {
|
|
348
|
+
if (typeof tokenValue !== "string") {
|
|
349
|
+
throw new ThemeImportError(`themeTokens.${mode}[${quote(name)}] must be a string`);
|
|
350
|
+
}
|
|
351
|
+
return [name, tokenValue];
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
function readCssBlocks(input) {
|
|
355
|
+
assertFields(input, "css", ["format", "css"]);
|
|
356
|
+
if (typeof input.css !== "string") {
|
|
357
|
+
throw new ThemeImportError('themeTokens.css must be a string of CSS (format "css")');
|
|
358
|
+
}
|
|
359
|
+
return parseCss(input.css);
|
|
360
|
+
}
|
|
361
|
+
function openCssBlock(prelude, parent) {
|
|
362
|
+
if (parent.kind === "other")
|
|
363
|
+
return parent;
|
|
364
|
+
const selector = prelude.trim().replace(/\s+/g, " ");
|
|
365
|
+
if (parent.kind === "wrapper") {
|
|
366
|
+
if (/^@layer(?: |$)/.test(selector))
|
|
367
|
+
return parent;
|
|
368
|
+
if (DARK_MEDIA_QUERY.test(selector))
|
|
369
|
+
return { kind: "wrapper", dark: true };
|
|
370
|
+
const modes = THEME_AT_RULE.test(selector) && !parent.dark ? ["light"] : selectorModes(selector);
|
|
371
|
+
if (modes.length > 0)
|
|
372
|
+
return { kind: "theme", modes: parent.dark ? ["dark"] : modes };
|
|
373
|
+
}
|
|
374
|
+
const label = selector.length > MAX_LABEL_LENGTH ? `${selector.slice(0, MAX_LABEL_LENGTH)}...` : selector;
|
|
375
|
+
return { kind: "other", label };
|
|
376
|
+
}
|
|
377
|
+
function selectorModes(selector) {
|
|
378
|
+
const modes = new Set;
|
|
379
|
+
for (const part of selectorListParts(selector)) {
|
|
380
|
+
if (LIGHT_SELECTORS.has(part))
|
|
381
|
+
modes.add("light");
|
|
382
|
+
else if (DARK_SELECTORS.has(part) || DARK_ATTRIBUTE_SELECTOR.test(part))
|
|
383
|
+
modes.add("dark");
|
|
384
|
+
}
|
|
385
|
+
return [...modes];
|
|
386
|
+
}
|
|
387
|
+
function selectorListParts(selector) {
|
|
388
|
+
const parts = [];
|
|
389
|
+
let depth = 0;
|
|
390
|
+
let start = 0;
|
|
391
|
+
for (let index = 0;index < selector.length; index++) {
|
|
392
|
+
const char = selector[index];
|
|
393
|
+
if (char === '"' || char === "'")
|
|
394
|
+
index = closingQuoteIndex(selector, index);
|
|
395
|
+
else if (char === "(" || char === "[")
|
|
396
|
+
depth++;
|
|
397
|
+
else if (char === ")" || char === "]")
|
|
398
|
+
depth = Math.max(0, depth - 1);
|
|
399
|
+
else if (char === "," && depth === 0) {
|
|
400
|
+
parts.push(selector.slice(start, index).trim());
|
|
401
|
+
start = index + 1;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
parts.push(selector.slice(start).trim());
|
|
405
|
+
return parts;
|
|
406
|
+
}
|
|
407
|
+
function parseCss(css) {
|
|
408
|
+
const text = css.replace(/\/\*[\s\S]*?(?:\*\/|$)/g, " ");
|
|
409
|
+
const raw = { light: [], dark: [], skipped: [] };
|
|
410
|
+
const blocks = [];
|
|
411
|
+
let themeBlocks = 0;
|
|
412
|
+
let start = 0;
|
|
413
|
+
let parens = 0;
|
|
414
|
+
for (let index = 0;index < text.length; index++) {
|
|
415
|
+
const char = text[index];
|
|
416
|
+
if (char === '"' || char === "'") {
|
|
417
|
+
index = closingQuoteIndex(text, index);
|
|
418
|
+
continue;
|
|
419
|
+
}
|
|
420
|
+
if (char === "(")
|
|
421
|
+
parens++;
|
|
422
|
+
else if (char === ")")
|
|
423
|
+
parens = Math.max(0, parens - 1);
|
|
424
|
+
if (parens > 0 || char !== "{" && char !== "}" && char !== ";")
|
|
425
|
+
continue;
|
|
426
|
+
const segment = text.slice(start, index);
|
|
427
|
+
start = index + 1;
|
|
428
|
+
const current = blocks.at(-1) ?? TOP_LEVEL;
|
|
429
|
+
if (char === "{") {
|
|
430
|
+
const block = openCssBlock(segment, current);
|
|
431
|
+
if (block.kind === "theme")
|
|
432
|
+
themeBlocks++;
|
|
433
|
+
blocks.push(block);
|
|
434
|
+
continue;
|
|
435
|
+
}
|
|
436
|
+
readCssDeclaration(segment, current, raw);
|
|
437
|
+
if (char === "}" && blocks.pop() === undefined) {
|
|
438
|
+
throw new ThemeImportError('themeTokens.css has an unmatched "}"');
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
if (blocks.length > 0)
|
|
442
|
+
throw new ThemeImportError('themeTokens.css has an unclosed "{" block');
|
|
443
|
+
if (themeBlocks === 0) {
|
|
444
|
+
throw new ThemeImportError("themeTokens.css has no :root, .dark, or @theme block");
|
|
445
|
+
}
|
|
446
|
+
return raw;
|
|
447
|
+
}
|
|
448
|
+
function closingQuoteIndex(text, open) {
|
|
449
|
+
for (let index = open + 1;index < text.length; index++) {
|
|
450
|
+
const char = text[index];
|
|
451
|
+
if (char === "\\")
|
|
452
|
+
index++;
|
|
453
|
+
else if (char === text[open] || char === `
|
|
454
|
+
`)
|
|
455
|
+
return index;
|
|
456
|
+
}
|
|
457
|
+
return text.length;
|
|
458
|
+
}
|
|
459
|
+
function readCssDeclaration(segment, block, raw) {
|
|
460
|
+
if (block.kind === "wrapper")
|
|
461
|
+
return;
|
|
462
|
+
const colon = segment.indexOf(":");
|
|
463
|
+
if (colon === -1)
|
|
464
|
+
return;
|
|
465
|
+
const name = segment.slice(0, colon).trim();
|
|
466
|
+
if (!name.startsWith("--"))
|
|
467
|
+
return;
|
|
468
|
+
if (block.kind === "other") {
|
|
469
|
+
raw.skipped.push(`${name} (in ${block.label})`);
|
|
470
|
+
return;
|
|
471
|
+
}
|
|
472
|
+
const value = segment.slice(colon + 1).replace(/\s+/g, " ");
|
|
473
|
+
for (const mode of block.modes)
|
|
474
|
+
raw[mode].push([name, value]);
|
|
475
|
+
}
|
|
476
|
+
function normalizeDeclarations(declarations, mode, ignored) {
|
|
477
|
+
const explicit = {};
|
|
478
|
+
const expanded = {};
|
|
479
|
+
for (const [rawName, rawValue] of declarations) {
|
|
480
|
+
const name = rawName.trim();
|
|
481
|
+
const bare = name.replace(/^--/, "");
|
|
482
|
+
const token = contractToken(bare);
|
|
483
|
+
if (!token && bare !== "radius") {
|
|
484
|
+
ignored.add(name);
|
|
485
|
+
continue;
|
|
486
|
+
}
|
|
487
|
+
const renamed = renameReferences(checkedValue(rawValue, name, mode));
|
|
488
|
+
if (renamed.outside.length > 0) {
|
|
489
|
+
ignored.add(`${name} (references ${renamed.outside.join(", ")})`);
|
|
490
|
+
continue;
|
|
491
|
+
}
|
|
492
|
+
if (token) {
|
|
493
|
+
if (!renamed.references.has(token))
|
|
494
|
+
explicit[token] = renamed.value;
|
|
495
|
+
continue;
|
|
496
|
+
}
|
|
497
|
+
for (const [step, size] of RADIUS_STEPS) {
|
|
498
|
+
if (!renamed.references.has(step))
|
|
499
|
+
expanded[step] = size(renamed.value);
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
return { ...expanded, ...explicit };
|
|
503
|
+
}
|
|
504
|
+
function isContractToken(name) {
|
|
505
|
+
return CONTRACT_TOKENS.has(name);
|
|
506
|
+
}
|
|
507
|
+
function contractToken(bare) {
|
|
508
|
+
const direct = `--${bare}`;
|
|
509
|
+
if (isContractToken(direct))
|
|
510
|
+
return direct;
|
|
511
|
+
const color = `--color-${bare}`;
|
|
512
|
+
return isContractToken(color) ? color : null;
|
|
513
|
+
}
|
|
514
|
+
function renameReferences(value) {
|
|
515
|
+
const references = new Set;
|
|
516
|
+
const outside = new Set;
|
|
517
|
+
const renamed = value.replace(VAR_REFERENCE, (reference, bare) => {
|
|
518
|
+
const token = bare === "radius" ? "--radius-lg" : contractToken(bare);
|
|
519
|
+
if (!token) {
|
|
520
|
+
outside.add(`--${bare}`);
|
|
521
|
+
return reference;
|
|
522
|
+
}
|
|
523
|
+
references.add(token);
|
|
524
|
+
return `var(${token}`;
|
|
525
|
+
});
|
|
526
|
+
return { value: renamed, references, outside: [...outside] };
|
|
527
|
+
}
|
|
528
|
+
function checkedValue(rawValue, name, mode) {
|
|
529
|
+
const trimmed = rawValue.trim();
|
|
530
|
+
const value = trimmed.length > MAX_VALUE_LENGTH + IMPORTANT_ROOM ? trimmed : trimmed.replace(IMPORTANT_SUFFIX, "").trimEnd();
|
|
531
|
+
const problem = valueProblem(value);
|
|
532
|
+
if (problem)
|
|
533
|
+
throw new ThemeImportError(`${mode} token ${quote(name)}: ${problem}`);
|
|
534
|
+
return HSL_TRIPLET.test(value) ? `hsl(${value})` : value;
|
|
535
|
+
}
|
|
536
|
+
function valueProblem(value) {
|
|
537
|
+
if (value.length === 0 || value.length > MAX_VALUE_LENGTH) {
|
|
538
|
+
return `value must be 1 to ${MAX_VALUE_LENGTH} characters`;
|
|
539
|
+
}
|
|
540
|
+
for (const char of value) {
|
|
541
|
+
const code = char.charCodeAt(0);
|
|
542
|
+
if (code < 32 || code === 127) {
|
|
543
|
+
return "value must not contain a newline or a control character";
|
|
544
|
+
}
|
|
545
|
+
if (UNSAFE_CHARACTERS.includes(char))
|
|
546
|
+
return `value must not contain ${quote(char)}`;
|
|
547
|
+
}
|
|
548
|
+
const pattern = UNSAFE_PATTERN.exec(value);
|
|
549
|
+
if (pattern)
|
|
550
|
+
return `value must not contain ${quote(pattern[0])}`;
|
|
551
|
+
return balanced(value) ? null : "value has an unclosed quote or parenthesis";
|
|
552
|
+
}
|
|
553
|
+
function balanced(value) {
|
|
554
|
+
let depth = 0;
|
|
555
|
+
let open = null;
|
|
556
|
+
for (const char of value) {
|
|
557
|
+
if (open) {
|
|
558
|
+
if (char === open)
|
|
559
|
+
open = null;
|
|
560
|
+
} else if (char === '"' || char === "'")
|
|
561
|
+
open = char;
|
|
562
|
+
else if (char === "(")
|
|
563
|
+
depth++;
|
|
564
|
+
else if (char === ")" && --depth < 0)
|
|
565
|
+
return false;
|
|
566
|
+
}
|
|
567
|
+
return depth === 0 && open === null;
|
|
568
|
+
}
|
|
569
|
+
function readRecord(value, label) {
|
|
570
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
571
|
+
throw new ThemeImportError(`${label} must be an object`);
|
|
572
|
+
}
|
|
573
|
+
return Object.fromEntries(Object.entries(value));
|
|
574
|
+
}
|
|
575
|
+
function assertFields(input, format, allowed) {
|
|
576
|
+
const extra = Object.keys(input).find((key) => input[key] !== undefined && !allowed.includes(key));
|
|
577
|
+
if (extra !== undefined) {
|
|
578
|
+
throw new ThemeImportError(`unknown themeTokens field ${quote(extra)} for format "${format}" (allowed: ${allowed.join(", ")})`);
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
function quote(value) {
|
|
582
|
+
return String(JSON.stringify(value)).slice(0, 80);
|
|
583
|
+
}
|
|
584
|
+
var THEME_IMPORT_FORMATS, ThemeImportError, THEME_IMPORTERS, MAX_VALUE_LENGTH = 200, IMPORTANT_ROOM = 16, IMPORTANT_SUFFIX, UNSAFE_CHARACTERS = ";{}<>\\", UNSAFE_PATTERN, HSL_TRIPLET, VAR_REFERENCE, CONTRACT_TOKENS, RADIUS_STEPS, TOP_LEVEL, LIGHT_SELECTORS, DARK_SELECTORS, DARK_ATTRIBUTE_SELECTOR, DARK_MEDIA_QUERY, THEME_AT_RULE, MAX_LABEL_LENGTH = 40;
|
|
585
|
+
var init_import = __esm(() => {
|
|
586
|
+
init_tokens2();
|
|
587
|
+
THEME_IMPORT_FORMATS = ["tokens", "css"];
|
|
588
|
+
ThemeImportError = class ThemeImportError extends Error {
|
|
589
|
+
name = "ThemeImportError";
|
|
590
|
+
};
|
|
591
|
+
THEME_IMPORTERS = {
|
|
592
|
+
tokens: readTokenMaps,
|
|
593
|
+
css: readCssBlocks
|
|
594
|
+
};
|
|
595
|
+
IMPORTANT_SUFFIX = /!\s*important$/i;
|
|
596
|
+
UNSAFE_PATTERN = /(?:url|src|image(?:-set)?|expression)\(|@import|javascript:|\/\*|\*\//i;
|
|
597
|
+
HSL_TRIPLET = /^-?[\d.]+(?:deg)?\s+-?[\d.]+%\s+-?[\d.]+%(?:\s*\/\s*[\d.]+%?)?$/;
|
|
598
|
+
VAR_REFERENCE = /var\(\s*--([\w-]+)/gi;
|
|
599
|
+
CONTRACT_TOKENS = new Set(PAGE_THEME_TOKENS);
|
|
600
|
+
RADIUS_STEPS = [
|
|
601
|
+
["--radius-sm", (radius) => `calc(${radius} - 4px)`],
|
|
602
|
+
["--radius-md", (radius) => `calc(${radius} - 2px)`],
|
|
603
|
+
["--radius-lg", (radius) => radius],
|
|
604
|
+
["--radius-xl", (radius) => `calc(${radius} + 4px)`]
|
|
605
|
+
];
|
|
606
|
+
TOP_LEVEL = { kind: "wrapper", dark: false };
|
|
607
|
+
LIGHT_SELECTORS = new Set([":root", ":host", "html"]);
|
|
608
|
+
DARK_SELECTORS = new Set([".dark", ":root.dark", "html.dark"]);
|
|
609
|
+
DARK_ATTRIBUTE_SELECTOR = /^\[ ?data-theme ?= ?(["']?)dark\1 ?\]$/;
|
|
610
|
+
DARK_MEDIA_QUERY = /^@media ?\( ?prefers-color-scheme ?: ?dark ?\)$/i;
|
|
611
|
+
THEME_AT_RULE = /^@theme(?: [\w-]+)*$/;
|
|
612
|
+
});
|
|
613
|
+
|
|
126
614
|
// node_modules/@asteasolutions/zod-to-openapi/dist/index.cjs
|
|
127
615
|
function __rest(s, e) {
|
|
128
616
|
var t = {};
|
|
@@ -1651,10 +2139,11 @@ function checkExtensionInstallSource(body, ctx) {
|
|
|
1651
2139
|
ctx.addIssue({ code: "custom", path: ["files"], message: "files is required with manifest" });
|
|
1652
2140
|
}
|
|
1653
2141
|
}
|
|
1654
|
-
var AssetKeySchema, AssetEntityTypeSchema, AssetProviderRefSchema, AssetKeyMappingSchema, AssetSummarySchema, ModelTierSchema, MODEL_TIERS, ReasoningEffortSchema, LEGACY_MODEL_TO_TIER, DEFAULT_MODEL_TIER_MAP, AgentTaskStatusSchema, TERMINAL_TASK_STATUSES, OPEN_TASK_STATUSES, InboxMessageStatusSchema, InboxMessageSchema, AgentTaskSourceSchema, RoutingReasonSchema, RoutingSourceSchema, ProviderNameSchema, ModelProfileNameSchema, ModelProfileSchema, SessionShareAccessSchema, SessionAccessSchema, SessionOwnerSchema, SessionSharesSchema, SessionSharesUpdateSchema, SteerModeSchema, SteeringStatusSchema, SteeringSourceSchema, SteeringMessageSchema, SteerOutcomeSchema, OnUnsupportedSchema, SteerResultSchema, PROVIDER_STEER_CAPABILITIES, FollowUpConfigSchema, RoutingAffinitySchema, AgentTaskSchema, CreateTaskOptionsSchema, TaskAttachmentKindSchema, SERVER_GENERATED_ATTACHMENT_CAPABILITY = "_agentSwarmGeneratedBy", attachmentCapabilitiesSchema, attachmentCommonFields, AttachmentInputSchema, TaskAttachmentSchema, UserSchema, RbacRoleSchema, UserRbacRolesSchema, UserCommsPrefsSchema, IdentityEventTypeSchema, InboxItemTypeSchema, InboxItemStatusSchema, InboxItemStateSchema, FavoriteItemTypeSchema, UserFavoriteSchema, TaskTemplateKindSchema, TaskTemplateSchema, AgentStatusSchema, AgentAvatarSchema, AgentSlackIconSchema, AgentSchema, AgentCredStatusKeyResultSchema, AgentCredStatusLiveTestSchema, AgentLatestModelSchema, AgentBedrockStatusSchema, AgentOpencodeGoStatusSchema, AcpSessionConfigSelectValueSchema, AcpSessionConfigSelectGroupSchema, AcpSessionConfigOptionSchema, AgentAcpStatusSchema, AgentCredStatusSchema, AgentWithTasksSchema, ChangeSourceSchema, VersionableFieldSchema, ContextVersionSchema, ChannelTypeSchema, ChannelSchema, ChannelMessageSchema, ServiceStatusSchema, ServiceSchema, AgentLogEventTypeSchema, ResumeReasonSchema, AgentLogSchema, SessionLogSchema, SessionCostSourceSchema, SessionCostModelBreakdownSchema, SessionCostSchema, EventCategorySchema, EventStatusSchema, EventSourceSchema, EventNameSchema, SwarmEventSchema, AutomationIntegrationIdSchema, ScheduledTaskTargetTypeSchema, ScheduledTaskSchema, SwarmConfigScopeSchema, SwarmConfigSchema, RepoGuidelinesSchema, REPO_GUIDELINES_MAX_ENTRIES = 50, RepoGuidelinesInputSchema, RepoHooksSchema, SwarmRepoSchema, AgentMemoryScopeSchema, AgentMemorySourceSchema, AgentMemorySchema, ActiveSessionSchema, WorkerNudgeSchema, RuntimeInstanceStatusSchema, RuntimeProviderKindSchema, DeliveryModeSchema, PoolLifecycleSchema, RuntimeResourcesSchema, RuntimeControllerCreateSchema, RuntimeControllerUpdateSchema, RuntimeControllerSchema, RuntimePoolCreateSchema, RuntimePoolUpdateSchema, RuntimePoolSchema, RuntimePoolCreateAgentSchema, RuntimeInstanceSchema, RetryPolicySchema, SUPERSEDED_WORKFLOW_TASK_REASON = "superseded_workflow_task", ExecutorMetaSchema, ValidationResultSchema, StepValidationConfigSchema, SwarmScriptNodeConfigSchema, WorkflowNodeSchema, WorkflowEdgeSchema, WorkflowDefinitionSchema, WorkflowNodePatchSchema, WorkflowPatchSchema, WebhookVerificationSchema, TriggerConfigSchema, CooldownConfigSchema, InputValueSchema, WorkflowTemplateSchema, WorkflowSnapshotSchema, WorkflowSchema, WorkflowVersionSchema, PageContentTypeSchema, PageAuthModeSchema, PageSnapshotSchema, PageSchema, PageVersionSchema, MetricParamSchema, MetricVariableTypeSchema, MetricFormatSchema, MetricVisualizationSchema, MetricQuerySchema, MetricVariableSchema, MetricVizConfigSchema, MetricWidgetSchema, MetricDefinitionSchema, MetricSnapshotSchema, MetricSchema, MetricVersionSchema, WorkflowRunStatusSchema, WorkflowRunSchema, WorkflowRunParentSchema, WorkflowRunSummarySchema, ScriptRunStatusSchema, TERMINAL_SCRIPT_RUN_STATUSES, ScriptRunKindSchema, ScriptRunSchema, ScriptRunListItemSchema, ScriptRunJournalEntrySchema, WorkflowRunStepStatusSchema, WorkflowRunStepSchema, WorkflowRunStepSlimSchema, WaitModeSchema, WaitStateStatusSchema, WaitStateRowSchema, PromptTemplateScopeSchema, PromptTemplateStateSchema, PromptTemplateSchema, PromptTemplateHistorySchema, ScriptScopeSchema, ScriptFsModeSchema, ScriptExecutorNameSchema, ScriptRecordSchema, ScriptVersionRecordSchema, ExtensionNameSchema, SemverSchema, ExtensionBundlePathSchema, ExtensionAssetNameSchema, ExtensionScriptAssetSchema, ExtensionScheduleAssetSchema, ExtensionWorkflowAssetSchema, ExtensionSkillAssetSchema, ExtensionWorkflowFileSchema, ExtensionManifestSchema, ExtensionStatusSchema, ExtensionSchema, ExtensionFileSchema, ExtensionVersionSchema, ExtensionRunSchema, ExtensionInstallBodySchema, ScriptApiAuthModeSchema, ScriptApiRecordSchema, SkillTypeSchema, SkillScopeSchema, SkillSchema, AgentSkillSchema, SkillWithInstallInfoSchema, SkillFileSchema, McpServerTransportSchema, McpServerScopeSchema, McpAuthMethodSchema, McpServerSchema, AgentMcpServerSchema, McpServerWithInstallInfoSchema, ContextSnapshotEventTypeSchema, ContextFormulaSchema, ContextSnapshotSchema, BudgetScopeSchema, BudgetSchema, PricingProviderSchema, PricingTokenClassSchema, PricingRowSchema, BudgetRefusalCauseSchema, BudgetRefusalNotificationSchema, BudgetRefusedTriggerSchema, KvValueTypeSchema, KV_NAME_REGEX, KvNamespaceSchema, KvKeySchema, KvEntrySchema;
|
|
2142
|
+
var AssetKeySchema, AssetEntityTypeSchema, AssetProviderRefSchema, AssetKeyMappingSchema, AssetSummarySchema, ModelTierSchema, MODEL_TIERS, ReasoningEffortSchema, LEGACY_MODEL_TO_TIER, DEFAULT_MODEL_TIER_MAP, AgentTaskStatusSchema, TERMINAL_TASK_STATUSES, OPEN_TASK_STATUSES, InboxMessageStatusSchema, InboxMessageSchema, AgentTaskSourceSchema, RoutingReasonSchema, RoutingSourceSchema, ProviderNameSchema, ModelProfileNameSchema, ModelProfileSchema, SessionShareAccessSchema, SessionAccessSchema, SessionOwnerSchema, SessionSharesSchema, SessionSharesUpdateSchema, SteerModeSchema, SteeringStatusSchema, SteeringSourceSchema, SteeringMessageSchema, SteerOutcomeSchema, OnUnsupportedSchema, SteerResultSchema, PROVIDER_STEER_CAPABILITIES, FollowUpConfigSchema, RoutingAffinitySchema, AgentTaskSchema, CreateTaskOptionsSchema, TaskAttachmentKindSchema, SERVER_GENERATED_ATTACHMENT_CAPABILITY = "_agentSwarmGeneratedBy", attachmentCapabilitiesSchema, attachmentCommonFields, AttachmentInputSchema, TaskAttachmentSchema, UserSchema, RbacRoleSchema, UserRbacRolesSchema, UserCommsPrefsSchema, IdentityEventTypeSchema, InboxItemTypeSchema, InboxItemStatusSchema, InboxItemStateSchema, FavoriteItemTypeSchema, UserFavoriteSchema, TaskTemplateKindSchema, TaskTemplateSchema, AgentStatusSchema, AgentAvatarSchema, AgentSlackIconSchema, AgentSchema, AgentCredStatusKeyResultSchema, AgentCredStatusLiveTestSchema, AgentLatestModelSchema, AgentBedrockStatusSchema, AgentOpencodeGoStatusSchema, AcpSessionConfigSelectValueSchema, AcpSessionConfigSelectGroupSchema, AcpSessionConfigOptionSchema, AgentAcpStatusSchema, AgentCredStatusSchema, AgentWithTasksSchema, ChangeSourceSchema, VersionableFieldSchema, ContextVersionSchema, ChannelTypeSchema, ChannelSchema, ChannelMessageSchema, ServiceStatusSchema, ServiceSchema, AgentLogEventTypeSchema, ResumeReasonSchema, AgentLogSchema, SessionLogSchema, SessionCostSourceSchema, SessionCostModelBreakdownSchema, SessionCostSchema, EventCategorySchema, EventStatusSchema, EventSourceSchema, EventNameSchema, SwarmEventSchema, AutomationIntegrationIdSchema, ScheduledTaskTargetTypeSchema, ScheduledTaskSchema, SwarmConfigScopeSchema, SwarmConfigSchema, RepoGuidelinesSchema, REPO_GUIDELINES_MAX_ENTRIES = 50, RepoGuidelinesInputSchema, RepoHooksSchema, SwarmRepoSchema, AgentMemoryScopeSchema, AgentMemorySourceSchema, AgentMemorySchema, ActiveSessionSchema, WorkerNudgeSchema, RuntimeInstanceStatusSchema, RuntimeProviderKindSchema, DeliveryModeSchema, PoolLifecycleSchema, RuntimeResourcesSchema, RuntimeControllerCreateSchema, RuntimeControllerUpdateSchema, RuntimeControllerSchema, RuntimePoolCacheSchema, RuntimePoolCreateSchema, RuntimePoolUpdateSchema, RuntimePoolSchema, RuntimePoolCreateAgentSchema, RuntimeInstanceSchema, RetryPolicySchema, SUPERSEDED_WORKFLOW_TASK_REASON = "superseded_workflow_task", ExecutorMetaSchema, ValidationResultSchema, StepValidationConfigSchema, SwarmScriptNodeConfigSchema, WorkflowNodeSchema, WorkflowEdgeSchema, WorkflowDefinitionSchema, WorkflowNodePatchSchema, WorkflowPatchSchema, WebhookVerificationSchema, TriggerConfigSchema, CooldownConfigSchema, InputValueSchema, WorkflowTemplateSchema, WorkflowSnapshotSchema, WorkflowSchema, WorkflowVersionSchema, PageContentTypeSchema, PageAuthModeSchema, PageThemeTokensSchema, PageThemeTokensInputSchema, PageSnapshotSchema, PageSchema, PageVersionSchema, MetricParamSchema, MetricVariableTypeSchema, MetricFormatSchema, MetricVisualizationSchema, MetricQuerySchema, MetricVariableSchema, MetricVizConfigSchema, MetricWidgetSchema, MetricDefinitionSchema, MetricSnapshotSchema, MetricSchema, MetricVersionSchema, WorkflowRunStatusSchema, WorkflowRunSchema, WorkflowRunParentSchema, WorkflowRunSummarySchema, ScriptRunStatusSchema, TERMINAL_SCRIPT_RUN_STATUSES, ScriptRunKindSchema, ScriptRunSchema, ScriptRunListItemSchema, ScriptRunJournalEntrySchema, WorkflowRunStepStatusSchema, WorkflowRunStepSchema, WorkflowRunStepSlimSchema, WaitModeSchema, WaitStateStatusSchema, WaitStateRowSchema, PromptTemplateScopeSchema, PromptTemplateStateSchema, PromptTemplateSchema, PromptTemplateHistorySchema, ScriptScopeSchema, ScriptFsModeSchema, ScriptExecutorNameSchema, ScriptRecordSchema, ScriptVersionRecordSchema, ExtensionNameSchema, SemverSchema, ExtensionBundlePathSchema, ExtensionAssetNameSchema, ExtensionScriptAssetSchema, ExtensionScheduleAssetSchema, ExtensionWorkflowAssetSchema, ExtensionSkillAssetSchema, ExtensionWorkflowFileSchema, ExtensionManifestSchema, ExtensionStatusSchema, ExtensionSchema, ExtensionFileSchema, ExtensionVersionSchema, ExtensionRunSchema, ExtensionInstallBodySchema, ScriptApiAuthModeSchema, ScriptApiRecordSchema, SkillTypeSchema, SkillScopeSchema, SkillSchema, AgentSkillSchema, SkillWithInstallInfoSchema, SkillFileSchema, McpServerTransportSchema, McpServerScopeSchema, McpAuthMethodSchema, McpServerSchema, AgentMcpServerSchema, McpServerWithInstallInfoSchema, ContextSnapshotEventTypeSchema, ContextFormulaSchema, ContextSnapshotSchema, BudgetScopeSchema, BudgetSchema, PricingProviderSchema, PricingTokenClassSchema, PricingRowSchema, BudgetRefusalCauseSchema, BudgetRefusalNotificationSchema, BudgetRefusedTriggerSchema, KvValueTypeSchema, KV_NAME_REGEX, KvNamespaceSchema, KvKeySchema, KvEntrySchema;
|
|
1655
2143
|
var init_types4 = __esm(() => {
|
|
1656
2144
|
init_key();
|
|
1657
2145
|
init_bundle_path();
|
|
2146
|
+
init_import();
|
|
1658
2147
|
init_constants3();
|
|
1659
2148
|
init_zod_openapi();
|
|
1660
2149
|
AssetKeySchema = string2().min(1).max(255).superRefine((value, ctx) => {
|
|
@@ -2471,6 +2960,7 @@ var init_types4 = __esm(() => {
|
|
|
2471
2960
|
"task_released",
|
|
2472
2961
|
"task_deferred_wait_woke",
|
|
2473
2962
|
"task_follow_up_suppressed",
|
|
2963
|
+
"task_follow_up_gate_shadow",
|
|
2474
2964
|
"task_citation_check_refused",
|
|
2475
2965
|
"channel_message",
|
|
2476
2966
|
"service_registered",
|
|
@@ -2794,6 +3284,18 @@ var init_types4 = __esm(() => {
|
|
|
2794
3284
|
createdAt: string2(),
|
|
2795
3285
|
updatedAt: string2()
|
|
2796
3286
|
}).openapi("RuntimeController");
|
|
3287
|
+
RuntimePoolCacheSchema = object2({
|
|
3288
|
+
mountPath: string2().min(2).refine((path) => {
|
|
3289
|
+
const parts = path.split("/").filter(Boolean);
|
|
3290
|
+
const normalized = `/${parts.join("/")}`;
|
|
3291
|
+
const protectedPaths = [
|
|
3292
|
+
"/workspace/personal",
|
|
3293
|
+
"/workspace/shared",
|
|
3294
|
+
...["/home/worker", "/root"].flatMap((home) => [".ssh", ".codex", ".claude", ".claude.json", ".pi", ".config", ".local"].map((directory) => `${home}/${directory}`))
|
|
3295
|
+
];
|
|
3296
|
+
return path.startsWith("/") && parts.length > 0 && !path.includes("\x00") && !parts.some((part) => part === "." || part === "..") && !protectedPaths.some((protectedPath) => protectedPath === normalized || protectedPath.startsWith(`${normalized}/`) || normalized.startsWith(`${protectedPath}/`));
|
|
3297
|
+
}, "Cache mountPath must be absolute, without . or .., and must not cover worker homes, workspaces or credential directories")
|
|
3298
|
+
}).strict();
|
|
2797
3299
|
RuntimePoolCreateSchema = object2({
|
|
2798
3300
|
name: string2().min(1).max(200),
|
|
2799
3301
|
kind: RuntimeProviderKindSchema,
|
|
@@ -2807,6 +3309,7 @@ var init_types4 = __esm(() => {
|
|
|
2807
3309
|
delivery: DeliveryModeSchema.nullable().default(null),
|
|
2808
3310
|
env: record2(string2(), string2()).default({}),
|
|
2809
3311
|
resources: RuntimeResourcesSchema.nullable().default(null),
|
|
3312
|
+
cache: RuntimePoolCacheSchema.nullable().default(null),
|
|
2810
3313
|
ttlSec: number2().int().positive().nullable().default(null),
|
|
2811
3314
|
enabled: boolean().default(true)
|
|
2812
3315
|
}).strict();
|
|
@@ -2819,6 +3322,7 @@ var init_types4 = __esm(() => {
|
|
|
2819
3322
|
delivery: DeliveryModeSchema.nullable().optional(),
|
|
2820
3323
|
env: record2(string2(), string2()).optional(),
|
|
2821
3324
|
resources: RuntimeResourcesSchema.nullable().optional(),
|
|
3325
|
+
cache: RuntimePoolCacheSchema.nullable().optional(),
|
|
2822
3326
|
ttlSec: number2().int().positive().nullable().optional(),
|
|
2823
3327
|
enabled: boolean().optional()
|
|
2824
3328
|
});
|
|
@@ -3056,6 +3560,16 @@ var init_types4 = __esm(() => {
|
|
|
3056
3560
|
}).openapi("WorkflowVersion");
|
|
3057
3561
|
PageContentTypeSchema = _enum2(["text/html", "application/json", "image/svg+xml"]);
|
|
3058
3562
|
PageAuthModeSchema = _enum2(["public", "authed", "password"]);
|
|
3563
|
+
PageThemeTokensSchema = object2({
|
|
3564
|
+
light: record2(string2(), string2()),
|
|
3565
|
+
dark: record2(string2(), string2())
|
|
3566
|
+
}).openapi("PageThemeTokens");
|
|
3567
|
+
PageThemeTokensInputSchema = strictObject2({
|
|
3568
|
+
format: _enum2(THEME_IMPORT_FORMATS).optional(),
|
|
3569
|
+
light: record2(string2(), string2()).optional(),
|
|
3570
|
+
dark: record2(string2(), string2()).optional(),
|
|
3571
|
+
css: string2().optional()
|
|
3572
|
+
});
|
|
3059
3573
|
PageSnapshotSchema = object2({
|
|
3060
3574
|
title: string2(),
|
|
3061
3575
|
description: string2().optional(),
|
|
@@ -3063,7 +3577,10 @@ var init_types4 = __esm(() => {
|
|
|
3063
3577
|
authMode: PageAuthModeSchema,
|
|
3064
3578
|
passwordHash: string2().optional(),
|
|
3065
3579
|
body: string2(),
|
|
3066
|
-
needsCredentials: array2(string2()).optional()
|
|
3580
|
+
needsCredentials: array2(string2()).optional(),
|
|
3581
|
+
theme: string2().nullable().optional(),
|
|
3582
|
+
themeTokens: PageThemeTokensSchema.nullable().optional(),
|
|
3583
|
+
designVersion: number2().int().min(1).optional()
|
|
3067
3584
|
}).openapi("PageSnapshot");
|
|
3068
3585
|
PageSchema = object2({
|
|
3069
3586
|
id: string2(),
|
|
@@ -3077,6 +3594,9 @@ var init_types4 = __esm(() => {
|
|
|
3077
3594
|
passwordHash: string2().optional(),
|
|
3078
3595
|
body: string2(),
|
|
3079
3596
|
needsCredentials: array2(string2()).optional(),
|
|
3597
|
+
theme: string2().nullable(),
|
|
3598
|
+
themeTokens: PageThemeTokensSchema.nullable(),
|
|
3599
|
+
designVersion: number2().int().min(1),
|
|
3080
3600
|
viewCount: number2().int().min(0).default(0),
|
|
3081
3601
|
createdAt: string2(),
|
|
3082
3602
|
updatedAt: string2(),
|
|
@@ -3235,12 +3755,14 @@ var init_types4 = __esm(() => {
|
|
|
3235
3755
|
error: string2().optional(),
|
|
3236
3756
|
lastHeartbeatAt: string2().optional(),
|
|
3237
3757
|
idempotencyKey: string2().optional(),
|
|
3238
|
-
requestedByUserId: string2().optional()
|
|
3758
|
+
requestedByUserId: string2().optional(),
|
|
3759
|
+
sourceTaskId: string2().optional()
|
|
3239
3760
|
}).openapi("ScriptRun");
|
|
3240
3761
|
ScriptRunListItemSchema = ScriptRunSchema.omit({
|
|
3241
3762
|
source: true,
|
|
3242
3763
|
args: true,
|
|
3243
|
-
output: true
|
|
3764
|
+
output: true,
|
|
3765
|
+
sourceTaskId: true
|
|
3244
3766
|
});
|
|
3245
3767
|
ScriptRunJournalEntrySchema = object2({
|
|
3246
3768
|
id: string2().uuid(),
|
|
@@ -3719,4 +4241,4 @@ var init_types4 = __esm(() => {
|
|
|
3719
4241
|
}).openapi("KvEntry");
|
|
3720
4242
|
});
|
|
3721
4243
|
|
|
3722
|
-
export { ASSET_KEY_MAX_LENGTH, normalizeAssetKey, defaultAssetKey, keyPrefixRange, SESSION_LEAF_KINDS, sessionGroupKey, parseAssetKey, isCanonicalAssetKey, canWriteAssetKey, init_key, isSafeBundlePath, init_bundle_path, $OpenAPIRegistry, $OpenApiGeneratorV31, init_dist6, init_zod_openapi, AssetKeySchema, AssetEntityTypeSchema, AssetKeyMappingSchema, AssetSummarySchema, ModelTierSchema, MODEL_TIERS, ReasoningEffortSchema, DEFAULT_MODEL_TIER_MAP, parseModelTier, splitLegacyModelAlias, parseWorkerModelTierOverrides, resolveTaskModelSelection, AgentTaskStatusSchema, TERMINAL_TASK_STATUSES, isTerminalTaskStatus, OPEN_TASK_STATUSES, AgentTaskSourceSchema, RoutingReasonSchema, ProviderNameSchema, ModelProfileNameSchema, ModelProfileSchema, SessionAccessSchema, SessionOwnerSchema, SessionSharesSchema, SessionSharesUpdateSchema, SteerModeSchema, SteeringSourceSchema, SteeringMessageSchema, SteerOutcomeSchema, OnUnsupportedSchema, SteerResultSchema, PROVIDER_STEER_CAPABILITIES, FollowUpConfigSchema, RoutingAffinitySchema, AgentTaskSchema, CreateTaskOptionsSchema, SERVER_GENERATED_ATTACHMENT_CAPABILITY, AttachmentInputSchema, TaskAttachmentSchema, UserSchema, RbacRoleSchema, UserRbacRolesSchema, UserCommsPrefsSchema, InboxItemTypeSchema, InboxItemStatusSchema, InboxItemStateSchema, FavoriteItemTypeSchema, UserFavoriteSchema, TaskTemplateKindSchema, TaskTemplateSchema, AgentStatusSchema, AgentAvatarSchema, AgentSlackIconSchema, AgentSchema, AgentLatestModelSchema, AgentAcpStatusSchema, AgentCredStatusSchema, AgentWithTasksSchema, VersionableFieldSchema, ChannelTypeSchema, ResumeReasonSchema, AgentLogSchema, SessionLogSchema, SessionCostModelBreakdownSchema, SessionCostSchema, EventCategorySchema, EventStatusSchema, EventSourceSchema, EventNameSchema, SwarmEventSchema, AutomationIntegrationIdSchema, ScheduledTaskTargetTypeSchema, ScheduledTaskSchema, SwarmConfigScopeSchema, SwarmConfigSchema, RepoGuidelinesInputSchema, RepoHooksSchema, SwarmRepoSchema, AgentMemoryScopeSchema, AgentMemorySourceSchema, AgentMemorySchema, ActiveSessionSchema, WorkerNudgeSchema, RuntimeProviderKindSchema, DeliveryModeSchema, RuntimeControllerCreateSchema, RuntimeControllerUpdateSchema, RuntimeControllerSchema, RuntimePoolCreateSchema, RuntimePoolUpdateSchema, RuntimePoolSchema, RuntimePoolCreateAgentSchema, RuntimeInstanceSchema, RetryPolicySchema, SUPERSEDED_WORKFLOW_TASK_REASON, WorkflowEdgeSchema, WorkflowDefinitionSchema, WorkflowNodePatchSchema, WorkflowPatchSchema, TriggerConfigSchema, CooldownConfigSchema, InputValueSchema, WorkflowSchema, WorkflowVersionSchema, PageContentTypeSchema, PageAuthModeSchema, PageSchema, PageVersionSchema, MetricWidgetSchema, MetricDefinitionSchema, MetricSchema, MetricVersionSchema, WorkflowRunStatusSchema, WorkflowRunSchema, WorkflowRunParentSchema, WorkflowRunSummarySchema, ScriptRunStatusSchema, TERMINAL_SCRIPT_RUN_STATUSES, ScriptRunSchema, ScriptRunListItemSchema, ScriptRunJournalEntrySchema, WorkflowRunStepSchema, WorkflowRunStepSlimSchema, PromptTemplateScopeSchema, PromptTemplateStateSchema, PromptTemplateSchema, PromptTemplateHistorySchema, ScriptScopeSchema, ScriptFsModeSchema, ScriptExecutorNameSchema, ScriptRecordSchema, ScriptVersionRecordSchema, ExtensionWorkflowFileSchema, ExtensionManifestSchema, ExtensionSchema, ExtensionVersionSchema, ExtensionRunSchema, checkExtensionInstallSource, ExtensionInstallBodySchema, ScriptApiAuthModeSchema, ScriptApiRecordSchema, SkillSchema, AgentSkillSchema, SkillWithInstallInfoSchema, SkillFileSchema, McpAuthMethodSchema, McpServerSchema, AgentMcpServerSchema, McpServerWithInstallInfoSchema, ContextSnapshotEventTypeSchema, ContextFormulaSchema, ContextSnapshotSchema, BudgetScopeSchema, BudgetSchema, PricingProviderSchema, PricingTokenClassSchema, PricingRowSchema, BudgetRefusalCauseSchema, BudgetRefusalNotificationSchema, BudgetRefusedTriggerSchema, KvValueTypeSchema, KvNamespaceSchema, KvKeySchema, KvEntrySchema, init_types4 };
|
|
4244
|
+
export { ASSET_KEY_MAX_LENGTH, normalizeAssetKey, defaultAssetKey, keyPrefixRange, SESSION_LEAF_KINDS, sessionGroupKey, parseAssetKey, isCanonicalAssetKey, canWriteAssetKey, init_key, isSafeBundlePath, init_bundle_path, PAGE_THEME_COLOR_TOKENS, PAGE_THEME_SHARED_TOKENS, PAGE_THEME_TOKENS, HIVE_PAGE_TOKENS, init_tokens2, ThemeImportError, importThemeTokens, init_import, $OpenAPIRegistry, $OpenApiGeneratorV31, init_dist6, init_zod_openapi, AssetKeySchema, AssetEntityTypeSchema, AssetKeyMappingSchema, AssetSummarySchema, ModelTierSchema, MODEL_TIERS, ReasoningEffortSchema, DEFAULT_MODEL_TIER_MAP, parseModelTier, splitLegacyModelAlias, parseWorkerModelTierOverrides, resolveTaskModelSelection, AgentTaskStatusSchema, TERMINAL_TASK_STATUSES, isTerminalTaskStatus, OPEN_TASK_STATUSES, AgentTaskSourceSchema, RoutingReasonSchema, ProviderNameSchema, ModelProfileNameSchema, ModelProfileSchema, SessionAccessSchema, SessionOwnerSchema, SessionSharesSchema, SessionSharesUpdateSchema, SteerModeSchema, SteeringSourceSchema, SteeringMessageSchema, SteerOutcomeSchema, OnUnsupportedSchema, SteerResultSchema, PROVIDER_STEER_CAPABILITIES, FollowUpConfigSchema, RoutingAffinitySchema, AgentTaskSchema, CreateTaskOptionsSchema, SERVER_GENERATED_ATTACHMENT_CAPABILITY, AttachmentInputSchema, TaskAttachmentSchema, UserSchema, RbacRoleSchema, UserRbacRolesSchema, UserCommsPrefsSchema, InboxItemTypeSchema, InboxItemStatusSchema, InboxItemStateSchema, FavoriteItemTypeSchema, UserFavoriteSchema, TaskTemplateKindSchema, TaskTemplateSchema, AgentStatusSchema, AgentAvatarSchema, AgentSlackIconSchema, AgentSchema, AgentLatestModelSchema, AgentAcpStatusSchema, AgentCredStatusSchema, AgentWithTasksSchema, VersionableFieldSchema, ChannelTypeSchema, ResumeReasonSchema, AgentLogSchema, SessionLogSchema, SessionCostModelBreakdownSchema, SessionCostSchema, EventCategorySchema, EventStatusSchema, EventSourceSchema, EventNameSchema, SwarmEventSchema, AutomationIntegrationIdSchema, ScheduledTaskTargetTypeSchema, ScheduledTaskSchema, SwarmConfigScopeSchema, SwarmConfigSchema, RepoGuidelinesInputSchema, RepoHooksSchema, SwarmRepoSchema, AgentMemoryScopeSchema, AgentMemorySourceSchema, AgentMemorySchema, ActiveSessionSchema, WorkerNudgeSchema, RuntimeProviderKindSchema, DeliveryModeSchema, RuntimeControllerCreateSchema, RuntimeControllerUpdateSchema, RuntimeControllerSchema, RuntimePoolCacheSchema, RuntimePoolCreateSchema, RuntimePoolUpdateSchema, RuntimePoolSchema, RuntimePoolCreateAgentSchema, RuntimeInstanceSchema, RetryPolicySchema, SUPERSEDED_WORKFLOW_TASK_REASON, WorkflowEdgeSchema, WorkflowDefinitionSchema, WorkflowNodePatchSchema, WorkflowPatchSchema, TriggerConfigSchema, CooldownConfigSchema, InputValueSchema, WorkflowSchema, WorkflowVersionSchema, PageContentTypeSchema, PageAuthModeSchema, PageThemeTokensSchema, PageThemeTokensInputSchema, PageSchema, PageVersionSchema, MetricWidgetSchema, MetricDefinitionSchema, MetricSchema, MetricVersionSchema, WorkflowRunStatusSchema, WorkflowRunSchema, WorkflowRunParentSchema, WorkflowRunSummarySchema, ScriptRunStatusSchema, TERMINAL_SCRIPT_RUN_STATUSES, ScriptRunSchema, ScriptRunListItemSchema, ScriptRunJournalEntrySchema, WorkflowRunStepSchema, WorkflowRunStepSlimSchema, PromptTemplateScopeSchema, PromptTemplateStateSchema, PromptTemplateSchema, PromptTemplateHistorySchema, ScriptScopeSchema, ScriptFsModeSchema, ScriptExecutorNameSchema, ScriptRecordSchema, ScriptVersionRecordSchema, ExtensionWorkflowFileSchema, ExtensionManifestSchema, ExtensionSchema, ExtensionVersionSchema, ExtensionRunSchema, checkExtensionInstallSource, ExtensionInstallBodySchema, ScriptApiAuthModeSchema, ScriptApiRecordSchema, SkillSchema, AgentSkillSchema, SkillWithInstallInfoSchema, SkillFileSchema, McpAuthMethodSchema, McpServerSchema, AgentMcpServerSchema, McpServerWithInstallInfoSchema, ContextSnapshotEventTypeSchema, ContextFormulaSchema, ContextSnapshotSchema, BudgetScopeSchema, BudgetSchema, PricingProviderSchema, PricingTokenClassSchema, PricingRowSchema, BudgetRefusalCauseSchema, BudgetRefusalNotificationSchema, BudgetRefusedTriggerSchema, KvValueTypeSchema, KvNamespaceSchema, KvKeySchema, KvEntrySchema, init_types4 };
|