@desplega.ai/agent-swarm 2.7.6 → 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-bp91d37f.js → acp-adapter-7b4vk3h5.js} +5 -4
- package/dist/{actions-yj0eeaqh.js → actions-3tt153af.js} +18 -18
- package/dist/{amp-adapter-4pg9h34q.js → amp-adapter-njpts0yr.js} +1 -1
- package/dist/{anthropic-messages-x4q6rfq5.js → anthropic-messages-xey2skwx.js} +7 -7
- package/dist/{app-909e97cr.js → app-nky4378f.js} +3 -3
- package/dist/{assistant-qdyb5fyy.js → assistant-jnb669pa.js} +19 -19
- package/dist/{azure-openai-responses-s1w5n70z.js → azure-openai-responses-26t7j9ra.js} +5 -5
- package/dist/{boot-reembed-fk0s9z18.js → boot-reembed-9mgvaztt.js} +1 -1
- package/dist/{boot-reembed-gs1rzrnh.js → boot-reembed-qs2djdej.js} +1 -1
- package/dist/{boot-scrub-sweep-4qfd4kfx.js → boot-scrub-sweep-yjpdj7s1.js} +3 -3
- package/dist/{boot-seeds-yr00k13d.js → boot-seeds-5cm6ambd.js} +4 -4
- package/dist/{boxd-vdmfssd9.js → boxd-nv507va8.js} +1 -1
- package/dist/{claude-adapter-qta1f1xn.js → claude-adapter-fn287zmm.js} +5 -4
- package/dist/{claude-managed-setup-sc6j4dm0.js → claude-managed-setup-wtdz2mj2.js} +1 -1
- package/dist/{claude-sdk-session-zgrz6yvc.js → claude-sdk-session-x91kqyhm.js} +8288 -8224
- package/dist/{cli-wp9sp1qb.js → cli-08bmz9z9.js} +1 -1
- package/dist/{cli-yy3rhsdw.js → cli-1c6tzt8g.js} +7 -7
- package/dist/{cli-q0k1w5zd.js → cli-35rsp8ye.js} +1 -1
- package/dist/{cli-xnrwazav.js → cli-3fg0bdcv.js} +1 -1
- package/dist/{cli-89knwags.js → cli-5b456bpf.js} +2 -2
- package/dist/{cli-drr5v6av.js → cli-5jnhv72d.js} +1 -1
- package/dist/{cli-dxae2yg7.js → cli-5zx699j9.js} +2 -2
- package/dist/{cli-0at8w34w.js → cli-6g0hb4cp.js} +8 -8
- package/dist/{cli-e3r2neck.js → cli-6pfd54vx.js} +5 -5
- package/dist/{cli-bsn8nhrq.js → cli-6vcp76qk.js} +3 -3
- package/dist/{cli-ekwks2vs.js → cli-72v799xn.js} +1 -1
- package/dist/cli-82j36f2m.js +45 -0
- package/dist/{cli-yx4kfngt.js → cli-8305gbq0.js} +29 -16
- package/dist/{cli-4necwtsv.js → cli-8sckt74b.js} +8 -8
- package/dist/{cli-vvpx3gsx.js → cli-95jzxcp3.js} +1 -1
- package/dist/{cli-hr2e2fft.js → cli-adeegh7d.js} +7 -7
- package/dist/{cli-m48g6p95.js → cli-afkqkrtw.js} +3 -3
- package/dist/{cli-0qatpy8q.js → cli-ayayvfg4.js} +24 -4
- package/dist/{cli-bqt1mptt.js → cli-az48n0nr.js} +4 -4
- package/dist/{cli-zm72anhg.js → cli-bfv7vdg6.js} +9 -9
- package/dist/{cli-hgaazk69.js → cli-caj33vcq.js} +5 -5
- package/dist/{cli-3ypk9vk1.js → cli-cb2a8pna.js} +1 -1
- package/dist/{cli-waqbxg08.js → cli-cppkf404.js} +17 -17
- package/dist/{cli-yn4kxs06.js → cli-ddaanqkd.js} +4 -4
- package/dist/{cli-386tyxxg.js → cli-e0kmphd6.js} +2 -2
- package/dist/{cli-54t00gt8.js → cli-e46hg0xw.js} +1 -1
- package/dist/{cli-jm2vfpfd.js → cli-e5bzrn01.js} +1 -1
- package/dist/{cli-436532ck.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-pd7vagab.js → cli-fyt2g4wd.js} +3 -3
- package/dist/{cli-gdhpcbhf.js → cli-g08zdaec.js} +1 -1
- package/dist/{cli-ehq736cn.js → cli-g7s47cc5.js} +4 -4
- package/dist/{cli-svj5090z.js → cli-gz6q4eve.js} +3 -3
- package/dist/{cli-8snvgs5r.js → cli-je518txm.js} +10 -10
- package/dist/{cli-rmmmrjkd.js → cli-jtjtabxe.js} +1 -1
- package/dist/{cli-611a1294.js → cli-k0wwfqbg.js} +18 -1
- package/dist/{cli-es6va8jk.js → cli-k1nje3v3.js} +38 -43
- package/dist/{cli-p5gp8pcx.js → cli-k8196sh2.js} +6 -6
- package/dist/{cli-nwj0ee2w.js → cli-k899ehvh.js} +2 -2
- package/dist/{cli-decfb6v8.js → cli-m0da8j35.js} +23 -9
- package/dist/{cli-he9wchme.js → cli-mkk9rnzz.js} +4 -4
- package/dist/{cli-nhrvpaj7.js → cli-n6bv12jn.js} +510 -4
- package/dist/{cli-8bc1w0tw.js → cli-nmzhp1b5.js} +14 -12
- package/dist/{cli-0yv5z2pg.js → cli-p82cnnjq.js} +1 -1
- package/dist/{cli-c60vetmm.js → cli-pc6n7fre.js} +1 -1
- package/dist/{cli-xds5f77d.js → cli-pjctyea3.js} +2 -2
- package/dist/{cli-xbbndvjy.js → cli-pq73h5mz.js} +3 -3
- package/dist/{cli-aa6yxc7m.js → cli-pz4rk021.js} +1 -1
- package/dist/{cli-xnqgpshy.js → cli-q3tkegby.js} +1 -1
- package/dist/cli-qghe0h66.js +67 -0
- package/dist/{cli-zbbwez0r.js → cli-qh4d4tvk.js} +4 -4
- package/dist/{cli-w6dt9ged.js → cli-rtt8g4v9.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-faxe6thg.js → cli-vz22fyqv.js} +186 -54
- package/dist/{cli-k2gzwsj2.js → cli-wk5yrfwd.js} +160 -26
- package/dist/{cli-shpbx5ee.js → cli-ws19768n.js} +1641 -49
- package/dist/{cli-70r77n04.js → cli-xae4g51r.js} +1 -1
- package/dist/{cli-kqdg1bsb.js → cli-yndmfxb3.js} +2 -2
- package/dist/{cli-bjb3z51z.js → cli-yyj3j5m4.js} +2 -2
- package/dist/cli.js +21 -21
- package/dist/{cloudflare-workers-ai-system-one-bm60fjm0.js → cloudflare-workers-ai-system-one-ef2a980q.js} +2 -2
- package/dist/{codex-adapter-ayd1fb6h.js → codex-adapter-cf2yxe9m.js} +3 -2
- package/dist/{codex-hook-9efm2x1m.js → codex-hook-a0c6g6t6.js} +1 -1
- package/dist/{codex-session-runner-jesa32xc.js → codex-session-runner-6vfzdgbd.js} +3 -2
- package/dist/{commands-hanewgf2.js → commands-t3mfy7vn.js} +3 -3
- package/dist/{controller-dt1n3c1q.js → controller-q7xrbaz0.js} +3 -3
- package/dist/{controllers-connect-xx8x64n5.js → controllers-connect-c6nm70kg.js} +19 -19
- package/dist/{cursor-adapter-9s4dwwdw.js → cursor-adapter-ftd81ga8.js} +1 -1
- package/dist/{db-3vttcbv4.js → db-dk572x25.js} +3 -3
- package/dist/{db-9dv0g1ab.js → db-vemtpmcc.js} +4 -2
- package/dist/{dispatcher-tx9hd1sv.js → dispatcher-kh7ecxh9.js} +17 -17
- package/dist/{dsh-adapter-007y4ejs.js → dsh-adapter-v8628r89.js} +1 -1
- package/dist/{e2b-we6hs6q5.js → e2b-fr12yccx.js} +1 -1
- package/dist/{e2b-a19d28rz.js → e2b-x6ywzak3.js} +1 -1
- package/dist/{easter-egg-3d-rgbrqb8s.js → easter-egg-3d-nenw4x63.js} +1 -1
- package/dist/{embedding-space-ny1e2940.js → embedding-space-0jepb239.js} +6 -6
- package/dist/{embeddings-2t386t13.js → embeddings-xxt49yxg.js} +1 -1
- package/dist/{execute-pksh0ceh.js → execute-1mhw6e4x.js} +1 -1
- package/dist/{external-channel-phgmhmd7.js → external-channel-55v12e60.js} +2 -2
- package/dist/{fx-adapter-fy8rr921.js → fx-adapter-bs8wqrk5.js} +6 -5
- package/dist/{google-generative-ai-8y3m3k4b.js → google-generative-ai-v94hr7h0.js} +5 -5
- package/dist/{google-vertex-w3v98n7b.js → google-vertex-g7vr6cf8.js} +5 -5
- package/dist/{grok-adapter-q0abvpaj.js → grok-adapter-gpjqmkcq.js} +6 -5
- package/dist/handlers-zxmp1ta4.js +32 -0
- package/dist/{heartbeat-kadyek8p.js → heartbeat-k42svnr0.js} +20 -20
- package/dist/{hook-9k551xnj.js → hook-114m7hap.js} +4 -3
- package/dist/{hook-5zs3msf6.js → hook-6nphweh0.js} +24 -9
- package/dist/{http-mhz9vw1f.js → http-r8cc4wz7.js} +1025 -173
- package/dist/index-a8phxqnk.js +37 -0
- package/dist/{index-vdygbq10.js → index-e3s8wmxy.js} +1 -1
- package/dist/{index-q361cg2f.js → index-fpk4bcd9.js} +1 -1
- package/dist/index-k6h00t4c.js +30 -0
- package/dist/{index-rvr00sg7.js → index-nh3wyqdt.js} +1017 -574
- package/dist/index-xrz7te8h.js +33 -0
- package/dist/{keepalive-w56f32cg.js → keepalive-x060nt9p.js} +3 -3
- package/dist/lead-956sd2yc.js +71 -0
- package/dist/{maintenance-7mdgxcea.js → maintenance-2xxfexhf.js} +1 -1
- package/dist/{mistral-conversations-4pmwj1c0.js → mistral-conversations-3gjpdb4b.js} +4 -4
- package/dist/{oauth-refresh-sweep-29txy9vk.js → oauth-refresh-sweep-fckc4ar5.js} +2 -2
- package/dist/{onboard-kpsrkarj.js → onboard-zc48j237.js} +3 -3
- 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-j25vm3rr.js → opencode-adapter-r690h1cr.js} +4 -3
- package/dist/{otel-impl-6kkct7a8.js → otel-impl-r5xbh81q.js} +4 -4
- package/dist/{pi-mono-adapter-exhkzhn2.js → pi-mono-adapter-c7v8sdec.js} +7 -6
- package/dist/{pricing-refresh-n2x7jh6k.js → pricing-refresh-3pmre11v.js} +3 -3
- package/dist/{rbac-roles-81ypx6es.js → rbac-roles-3vbshwsb.js} +1 -1
- package/dist/{rbac-roles-b5htkjby.js → rbac-roles-910mmkgz.js} +2 -2
- package/dist/{render-v2-qn6jmpk4.js → render-v2-pxykkbab.js} +3 -3
- package/dist/{resume-wd30wx23.js → resume-adda0bwy.js} +6 -6
- package/dist/{runtime-4hsg7h60.js → runtime-fnbm7stk.js} +1 -1
- package/dist/{session-access-5qvfevhk.js → session-access-2fvamrdc.js} +4 -4
- package/dist/{session-source-backfill-n1czavbr.js → session-source-backfill-08xvv0sm.js} +2 -2
- package/dist/{setup-dnb56qy5.js → setup-1aqmvmh1.js} +1 -1
- package/dist/{typesafe-system-one-5mavm259.js → typesafe-system-one-0bmqcxfg.js} +2 -2
- package/dist/{virtual-modules-76xxv9fs.js → virtual-modules-d2pjk9j1.js} +5 -5
- package/dist/{work-objects-4n21tfkm.js → work-objects-9s0yrm5j.js} +20 -20
- package/dist/{worker-follow-up-77hvzxww.js → worker-follow-up-3q78fqmr.js} +17 -17
- package/dist/worker-y15hy08h.js +71 -0
- package/openapi.json +197 -4
- package/package.json +5 -5
- package/src/apps/definition.ts +6 -5
- package/src/be/db/page-theme-tokens.ts +12 -0
- package/src/be/db/tasks/read.ts +9 -1
- package/src/be/db/tasks/write.ts +19 -0
- package/src/be/db-client.ts +107 -7
- package/src/be/db.ts +34 -2
- package/src/be/migrations/269_pages_design_system.sql +23 -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/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/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 +3 -0
- package/src/http/pages-public.ts +93 -129
- package/src/http/pages.ts +94 -21
- 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/pi-mono-extension.ts +30 -15
- package/src/tasks/follow-up-gate.ts +318 -0
- package/src/tasks/worker-follow-up.ts +21 -1
- 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-task-read-contract.test.ts +1 -0
- package/src/tests/db-task-write-contract.test.ts +2 -0
- package/src/tests/db-tasks-read.test.ts +21 -0
- package/src/tests/fixtures/pages/head-v1.html +56 -0
- package/src/tests/follow-up-gate-shadow.test.ts +513 -0
- 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/merge-gate-detect-changes.test.ts +145 -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/scheduled-task-required-params-migration.test.ts +3 -1
- package/src/tests/script-connections.test.ts +2 -0
- 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 +142 -2
- 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/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/utils.ts +33 -0
- package/src/types.ts +45 -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/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/dist/cli-2pnswgh8.js +0 -189
- package/dist/handlers-by3sfxyx.js +0 -32
- package/dist/index-4f2pvxae.js +0 -37
- package/dist/index-98gz7tmp.js +0 -30
- package/dist/index-k08z2cak.js +0 -33
- package/dist/lead-enq35nqp.js +0 -70
- package/dist/worker-gg1576j3.js +0 -70
- package/templates/schedules/daily-workflow-health-audit/config.json +0 -19
- package/templates/schedules/daily-workflow-health-audit/content.md +0 -191
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
init_constrained_sampling,
|
|
19
19
|
transformMessages,
|
|
20
20
|
init_transform_messages
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-6vcp76qk.js";
|
|
22
22
|
import {
|
|
23
23
|
sanitizeSurrogates,
|
|
24
24
|
init_sanitize_unicode
|
|
@@ -28,8 +28,8 @@ import {
|
|
|
28
28
|
collapseSystemMessages,
|
|
29
29
|
init_transcript,
|
|
30
30
|
clampThinkingLevel,
|
|
31
|
-
|
|
32
|
-
} from "./cli-
|
|
31
|
+
init_models
|
|
32
|
+
} from "./cli-snpj5zbj.js";
|
|
33
33
|
import {
|
|
34
34
|
import_websocket,
|
|
35
35
|
init_wrapper2
|
|
@@ -29619,7 +29619,7 @@ function retryGoogleRequest(request, options) {
|
|
|
29619
29619
|
var GOOGLE_SDK_THINKING_LEVEL_MAP, base64SignaturePattern, JSON_SCHEMA_META_DECLARATIONS;
|
|
29620
29620
|
var init_google_shared = __esm(() => {
|
|
29621
29621
|
init_node();
|
|
29622
|
-
|
|
29622
|
+
init_models();
|
|
29623
29623
|
init_provider_retry();
|
|
29624
29624
|
init_sanitize_unicode();
|
|
29625
29625
|
init_transcript();
|
|
@@ -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, 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, 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",
|
|
@@ -3070,6 +3560,16 @@ var init_types4 = __esm(() => {
|
|
|
3070
3560
|
}).openapi("WorkflowVersion");
|
|
3071
3561
|
PageContentTypeSchema = _enum2(["text/html", "application/json", "image/svg+xml"]);
|
|
3072
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
|
+
});
|
|
3073
3573
|
PageSnapshotSchema = object2({
|
|
3074
3574
|
title: string2(),
|
|
3075
3575
|
description: string2().optional(),
|
|
@@ -3077,7 +3577,10 @@ var init_types4 = __esm(() => {
|
|
|
3077
3577
|
authMode: PageAuthModeSchema,
|
|
3078
3578
|
passwordHash: string2().optional(),
|
|
3079
3579
|
body: string2(),
|
|
3080
|
-
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()
|
|
3081
3584
|
}).openapi("PageSnapshot");
|
|
3082
3585
|
PageSchema = object2({
|
|
3083
3586
|
id: string2(),
|
|
@@ -3091,6 +3594,9 @@ var init_types4 = __esm(() => {
|
|
|
3091
3594
|
passwordHash: string2().optional(),
|
|
3092
3595
|
body: string2(),
|
|
3093
3596
|
needsCredentials: array2(string2()).optional(),
|
|
3597
|
+
theme: string2().nullable(),
|
|
3598
|
+
themeTokens: PageThemeTokensSchema.nullable(),
|
|
3599
|
+
designVersion: number2().int().min(1),
|
|
3094
3600
|
viewCount: number2().int().min(0).default(0),
|
|
3095
3601
|
createdAt: string2(),
|
|
3096
3602
|
updatedAt: string2(),
|
|
@@ -3735,4 +4241,4 @@ var init_types4 = __esm(() => {
|
|
|
3735
4241
|
}).openapi("KvEntry");
|
|
3736
4242
|
});
|
|
3737
4243
|
|
|
3738
|
-
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, RuntimePoolCacheSchema, 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 };
|