@desplega.ai/agent-swarm 1.157.0 → 1.158.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{acp-adapter-qhqrk4q0.js → acp-adapter-xaq4n6pc.js} +1 -1
- package/dist/{actions-9rrg0zxm.js → actions-p9hz5yat.js} +15 -15
- package/dist/{app-enysy1zd.js → app-g26wdcz6.js} +4 -4
- package/dist/{artifact-td4q4dch.js → artifact-3v5t9jtg.js} +1 -1
- package/dist/{assistant-zegamy48.js → assistant-wydfqkb3.js} +16 -16
- package/dist/{boot-reembed-r6shx5qx.js → boot-reembed-g5ckg9yb.js} +6 -6
- package/dist/{boot-reembed-zfxb937k.js → boot-reembed-se8zmdcp.js} +5 -5
- package/dist/{boot-scrub-logs-k5y0se6r.js → boot-scrub-logs-wfxqan61.js} +3 -3
- package/dist/{seed-pricing-vqxa06qf.js → boot-seeds-s3q01xj3.js} +10 -10
- package/dist/{claude-adapter-5yc7hxwv.js → claude-adapter-tv2x4f36.js} +7 -7
- package/dist/{claude-managed-adapter-ea2aga6w.js → claude-managed-adapter-41b2s7fd.js} +2 -2
- package/dist/{claude-sdk-session-j4ywn3xf.js → claude-sdk-session-t442qz6f.js} +8 -8
- package/dist/{cli-e781c6f9.js → cli-0xjkj1j7.js} +1 -0
- package/dist/{cli-58rgvkt4.js → cli-1hkrch3k.js} +2 -2
- package/dist/{cli-yscm6cv8.js → cli-20cj37vt.js} +1866 -9
- package/dist/{cli-h0wdadsx.js → cli-4198qc9v.js} +7 -3
- package/dist/{cli-awwphhcs.js → cli-47m6dkd3.js} +362 -126
- package/dist/{cli-wb2zvbfg.js → cli-53sz8gkz.js} +1 -1
- package/dist/{cli-005pze6s.js → cli-5d10vd2m.js} +1 -1
- package/dist/{cli-v53rbqp3.js → cli-65hjmev5.js} +57 -17
- package/dist/{cli-scwq51gn.js → cli-68w09sjw.js} +7 -1
- package/dist/{cli-s98skd5r.js → cli-7gtvvpbh.js} +4 -4
- package/dist/{cli-y3nxwx0t.js → cli-7s3syk22.js} +18 -11
- package/dist/{cli-74h6f2bp.js → cli-8qmme6vd.js} +2 -2
- package/dist/{cli-wsed24mk.js → cli-987hg0aa.js} +2 -2
- package/dist/{cli-9n76jszt.js → cli-9httdpyq.js} +1 -1
- package/dist/{cli-f3va018d.js → cli-aky8tctm.js} +26 -93
- package/dist/{cli-sgyqyyxe.js → cli-c07r9a2m.js} +2 -1
- package/dist/{cli-c41wjx0r.js → cli-fgqxwrpv.js} +291 -12
- package/dist/{cli-01vfmq8c.js → cli-ftfvggzx.js} +607 -164
- package/dist/{cli-ytxs7mn1.js → cli-g8djp6qe.js} +17 -0
- package/dist/{cli-avkd6mqv.js → cli-h967nb6r.js} +551 -0
- package/dist/{cli-r9ee9c4w.js → cli-j55n64b6.js} +23 -22
- package/dist/{cli-9p33cz9h.js → cli-j57qkrpq.js} +86 -28
- package/dist/{cli-tjmghmm5.js → cli-q67y4wzm.js} +6 -3
- package/dist/{cli-n6zq3kbd.js → cli-rj19hc34.js} +1 -1
- package/dist/{cli-jytrw2na.js → cli-rjehvrts.js} +4 -4
- package/dist/{cli-tpv97m71.js → cli-rqz8qbw7.js} +245 -75
- package/dist/{cli-p37sg0a9.js → cli-s8eet254.js} +1 -1
- package/dist/cli-t1ze64h3.js +811 -0
- package/dist/{cli-6jjzxv3b.js → cli-ws6rqycm.js} +3 -2
- package/dist/{cli-xf5b7y1f.js → cli-wscdvcqz.js} +13 -5
- package/dist/{cli-5j7bm4tb.js → cli-x24pshtq.js} +5 -5
- package/dist/{cli-nbp6m6gp.js → cli-xberxa1r.js} +51 -26
- package/dist/{cli-vx9p3qdt.js → cli-xhaeg2nc.js} +1 -1
- package/dist/cli.js +29 -15
- package/dist/{codex-adapter-gns3s6c3.js → codex-adapter-cnm8wk11.js} +5 -5
- package/dist/{codex-session-runner-gqnxys5w.js → codex-session-runner-gfg547zj.js} +5 -5
- package/dist/{commands-hxy2y2sp.js → commands-e3bn0p75.js} +3 -3
- package/dist/{db-w8ghhsgf.js → db-03v9kzr2.js} +17 -3
- package/dist/{dispatcher-cp1rknjz.js → dispatcher-nrmg8yht.js} +14 -14
- package/dist/{dsh-adapter-1dwg97zv.js → dsh-adapter-k03nfqa6.js} +2 -2
- package/dist/{handlers-egfhr351.js → handlers-aqcedbyb.js} +17 -17
- package/dist/{hook-x4kftwzt.js → hook-7vkskkre.js} +19 -11
- package/dist/{hook-fbxjqfjz.js → hook-ybvmrmhq.js} +4 -4
- package/dist/{http-c7jfx990.js → http-2eqa8t24.js} +432 -195
- package/dist/{index-4k9hct21.js → index-1yks3qcr.js} +14 -14
- package/dist/{index-jtvpgb8f.js → index-a3vn96n8.js} +30 -27
- package/dist/{index-dc2ek6bw.js → index-c6zsv1bd.js} +5 -5
- package/dist/{index-yy07ef2s.js → index-chgdkq36.js} +14 -14
- package/dist/{index-r6bty6tb.js → index-x71bvq0p.js} +15 -15
- package/dist/{keepalive-f7ekefyc.js → keepalive-vtkf5n99.js} +5 -5
- package/dist/{lead-h053syts.js → lead-h3sp357x.js} +26 -26
- package/dist/{maintenance-a3w6zs54.js → maintenance-jzeqtk3q.js} +6 -6
- package/dist/{oauth-refresh-sweep-vra1dhkd.js → oauth-refresh-sweep-qp3dzmdp.js} +4 -4
- package/dist/{onboard-mfgzeqxs.js → onboard-tmsp0qbz.js} +278 -81
- package/dist/{opencode-adapter-z64xjzec.js → opencode-adapter-x6x2da1z.js} +3 -3
- package/dist/{otel-impl-2ez6xk57.js → otel-impl-9mz73q65.js} +416 -301
- package/dist/{pi-mono-adapter-2b7mw16r.js → pi-mono-adapter-m6dvv0dz.js} +2 -2
- package/dist/{pricing-refresh-6sw65tck.js → pricing-refresh-v1cbr9te.js} +5 -5
- package/dist/{rbac-roles-nm6924sy.js → rbac-roles-c9wqz83x.js} +4 -4
- package/dist/{render-v2-f026j6c4.js → render-v2-gryrh9h8.js} +4 -4
- package/dist/{setup-w606fr1q.js → setup-q9720bt6.js} +2 -2
- package/dist/{virtual-modules-8qheft18.js → virtual-modules-3htpgn8x.js} +1 -1
- package/dist/{work-objects-ezmggdne.js → work-objects-b76x7deb.js} +17 -17
- package/dist/{worker-1mbyv29k.js → worker-6vrxbv41.js} +26 -26
- package/openapi.json +1626 -629
- package/package.json +2 -1
- package/src/apps/catalog.generated.json +229 -0
- package/src/apps/page-validator.ts +71 -16
- package/src/apps/row-store.ts +66 -11
- package/src/apps/sync.ts +59 -17
- package/src/artifact-sdk/browser-sdk.ts +436 -2
- package/src/be/approval-sweeps.ts +109 -0
- package/src/be/boot-seeds.ts +40 -0
- package/src/be/chunking.ts +1 -1
- package/src/be/db/agents.ts +20 -0
- package/src/be/db/approvals.ts +78 -0
- package/src/be/db/tasks/read.ts +197 -39
- package/src/be/db/tasks/write.ts +41 -9
- package/src/be/db-client.ts +107 -48
- package/src/be/db.ts +219 -76
- package/src/be/events.ts +33 -1
- package/src/be/memory/graph-expansion.ts +10 -3
- package/src/be/memory/providers/sqlite-store.ts +55 -13
- package/src/be/memory/raters/retrieval.ts +5 -2
- package/src/be/memory/reranker.ts +26 -2
- package/src/be/memory/types.ts +2 -0
- package/src/be/migrations/166_approval_request_auto_cancellation.sql +9 -0
- package/src/be/migrations/171_memory_retrieval_relevance.sql +8 -0
- package/src/be/migrations/175_workflow_runs_list_index.sql +11 -0
- package/src/be/migrations/177_events_event_agent_created_index.sql +11 -0
- package/src/be/models-catalog.ts +2 -0
- package/src/be/modelsdev-cache.json +1857 -0
- package/src/be/modelsdev-cache.ts +14 -1
- package/src/be/pricing-normalize.ts +2 -0
- package/src/be/scripts/typecheck.ts +1 -0
- package/src/be/seed-pricing.ts +3 -1
- package/src/be/seed-skills/bundled-files.generated.json +1 -1
- package/src/be/steering.ts +53 -3
- package/src/be/swarm-config-guard.ts +3 -0
- package/src/be/task-citations.ts +29 -0
- package/src/cli.tsx +14 -1
- package/src/commands/onboard/compose-generator.ts +8 -3
- package/src/commands/onboard/container-engine.ts +220 -0
- package/src/commands/onboard/manifest.ts +1 -0
- package/src/commands/onboard/steps/health-check.tsx +4 -1
- package/src/commands/onboard/steps/prereq-check.tsx +50 -54
- package/src/commands/onboard/steps/start.tsx +31 -16
- package/src/commands/onboard/types.ts +7 -2
- package/src/commands/onboard.tsx +39 -4
- package/src/commands/profile-sync.ts +79 -26
- package/src/commands/runner.ts +8 -1
- package/src/extensions/catalog.generated.json +17 -0
- package/src/extensions/contract-types.generated.ts +1 -1
- package/src/heartbeat/heartbeat.ts +263 -103
- package/src/hooks/hook.ts +21 -12
- package/src/http/agents.ts +35 -0
- package/src/http/approval-requests.ts +136 -64
- package/src/http/apps.ts +14 -3
- package/src/http/config.ts +15 -1
- package/src/http/events.ts +62 -2
- package/src/http/index.ts +6 -4
- package/src/http/memory.ts +21 -7
- package/src/http/schedules.ts +1 -1
- package/src/http/session-data.ts +9 -4
- package/src/http/sessions.ts +25 -18
- package/src/http/stats.ts +19 -7
- package/src/http/status.ts +11 -1
- package/src/http/tasks.ts +40 -8
- package/src/http/webhooks.ts +67 -46
- package/src/http/workflows.ts +15 -20
- package/src/linear/outbound.ts +37 -15
- package/src/otel-impl.ts +151 -1
- package/src/otel.ts +14 -3
- package/src/prompts/memories.ts +19 -2
- package/src/providers/claude-managed-models.ts +8 -0
- package/src/providers/modelsdev-reasoning.json +551 -0
- package/src/rbac/legacy-policy.ts +16 -0
- package/src/rbac/permissions.ts +4 -0
- package/src/scheduler/schedule-task.ts +3 -0
- package/src/scripts-runtime/sdk-allowlist.ts +1 -0
- package/src/scripts-runtime/swarm-sdk.ts +9 -0
- package/src/scripts-runtime/types/stdlib.d.ts +1 -0
- package/src/scripts-runtime/types/swarm-extension.d.ts +1 -0
- package/src/scripts-runtime/types/swarm-sdk.d.ts +1 -0
- package/src/server.ts +12 -7
- package/src/slack/app.ts +35 -4
- package/src/slack/connection-state.ts +17 -0
- package/src/tasks/context-key.ts +1 -0
- package/src/tasks/worker-follow-up.ts +6 -2
- package/src/tests/agent-task-activity.test.ts +74 -0
- package/src/tests/agents-list-model-display.test.ts +6 -1
- package/src/tests/approval-auto-cancellation-migration.test.ts +104 -0
- package/src/tests/approval-requests.test.ts +395 -0
- package/src/tests/approval-sweeps-config.test.ts +47 -0
- package/src/tests/approval-sweeps.test.ts +508 -0
- package/src/tests/apps-kibo-blocks.test.ts +77 -0
- package/src/tests/apps-spike.test.ts +56 -1
- package/src/tests/apps-sync-engine.test.ts +20 -9
- package/src/tests/boot-seeds.test.ts +170 -0
- package/src/tests/cancel-approval-request-tool.test.ts +115 -0
- package/src/tests/claude-managed-adapter.test.ts +6 -0
- package/src/tests/config-key-filter.test.ts +80 -0
- package/src/tests/context-window.test.ts +1 -0
- package/src/tests/db-client-busy-retry.test.ts +96 -0
- package/src/tests/db-client.test.ts +60 -1
- package/src/tests/db-task-read-contract.test.ts +10 -0
- package/src/tests/db-task-write-contract.test.ts +9 -0
- package/src/tests/docs-index-footprint.test.js +3 -3
- package/src/tests/events-http.test.ts +103 -0
- package/src/tests/extensions-catalog.test.ts +22 -17
- package/src/tests/extensions-pre-task.test.ts +107 -0
- package/src/tests/fixtures/kibo-blocks-definition.json.txt +105 -0
- package/src/tests/follow-up-config-inheritance.test.ts +260 -0
- package/src/tests/heartbeat-orphan-resume.test.ts +84 -0
- package/src/tests/heartbeat-reboot-live.test.ts +95 -0
- package/src/tests/heartbeat-stall-cas.test.ts +80 -0
- package/src/tests/heartbeat.test.ts +99 -3
- package/src/tests/hook-mcp-config.test.ts +29 -0
- package/src/tests/http-api-integration.test.ts +16 -2
- package/src/tests/kv-storage.test.ts +62 -0
- package/src/tests/linear-outbound-sync.test.ts +120 -5
- package/src/tests/list-endpoint-slimming.test.ts +91 -0
- package/src/tests/memory-graph-organic-route.test.ts +155 -0
- package/src/tests/memory-http-recall-gating.test.ts +14 -4
- package/src/tests/memory-hybrid.test.ts +161 -1
- package/src/tests/memory-prompt-recall-crowdout.test.ts +297 -0
- package/src/tests/memory.test.ts +22 -0
- package/src/tests/onboard-container-engine.test.ts +240 -0
- package/src/tests/otel-event-loop-and-logs.test.ts +99 -0
- package/src/tests/pricing-routes.test.ts +14 -0
- package/src/tests/profile-sync-warning.test.ts +8 -4
- package/src/tests/promote-draft-task-route.test.ts +19 -0
- package/src/tests/provider-registration.test.ts +296 -42
- package/src/tests/rbac-engine.test.ts +30 -0
- package/src/tests/reasoning-effort.test.ts +8 -0
- package/src/tests/script-connections.test.ts +7 -0
- package/src/tests/sdk-allowlist.test.ts +39 -0
- package/src/tests/session-costs-model-key-normalize.test.ts +1 -0
- package/src/tests/sessions-detail-batch.test.ts +250 -0
- package/src/tests/sessions.test.ts +118 -0
- package/src/tests/slack-config.test.ts +22 -0
- package/src/tests/sonnet-5-5-registry.test.ts +44 -0
- package/src/tests/status.test.ts +36 -1
- package/src/tests/swarm-diff.test.ts +316 -10
- package/src/tests/task-completion-idempotency.test.ts +2 -1
- package/src/tests/tasks-requested-by-filter.test.ts +3 -1
- package/src/tests/tool-annotations.test.ts +1 -1
- package/src/tests/ui-list-slim-projections.test.ts +158 -0
- package/src/tests/webhooks-task-blocked.test.ts +127 -0
- package/src/tests/workflow-approval-recovery.test.ts +203 -0
- package/src/tests/workflow-hitl-routing.test.ts +22 -1
- package/src/tests/workflow-hitl-slack-card.test.ts +52 -0
- package/src/tests/workflow-http-v2.test.ts +99 -8
- package/src/tests/workflow-retry-validation.test.ts +56 -0
- package/src/tests/workflow-tla-races.test.ts +389 -0
- package/src/tests/workflow-validation-port-routing.test.ts +113 -1
- package/src/tools/cancel-approval-request.ts +57 -0
- package/src/tools/memory-search.ts +1 -0
- package/src/tools/request-human-input.ts +4 -2
- package/src/tools/send-task.ts +4 -0
- package/src/tools/templates.ts +19 -0
- package/src/tools/tool-config.ts +2 -1
- package/src/tools/workflows/list-workflow-runs.ts +1 -0
- package/src/types.ts +38 -0
- package/src/utils/context-window.ts +1 -0
- package/src/workflows/approval-cancel.ts +152 -0
- package/src/workflows/approval-notifications.ts +84 -0
- package/src/workflows/checkpoint.ts +10 -5
- package/src/workflows/definition.ts +21 -0
- package/src/workflows/engine.ts +152 -21
- package/src/workflows/executors/human-in-the-loop.ts +1 -1
- package/src/workflows/recovery.ts +100 -45
- package/src/workflows/resume.ts +49 -18
- package/src/workflows/retry-poller.ts +71 -21
- package/templates/extensions/README.md +1 -0
- package/templates/extensions/github-sender-allowlist/README.md +18 -0
- package/templates/extensions/github-sender-allowlist/hooks.ts +55 -0
- package/templates/extensions/github-sender-allowlist/manifest.json +8 -0
- package/templates/skills/apps/content.md +20 -1
- package/templates/skills/code-quality/content.md +26 -1
- package/templates/skills/pages/content.md +16 -4
- package/templates/skills/pages/files/examples/multiplayer-board.html +3 -12
- package/dist/cli-2daksqps.js +0 -378
- package/dist/rbac-roles-3gxmnb20.js +0 -37
|
@@ -523,6 +523,7 @@ Operator launches and password pages show guest names. Never accept a viewer ide
|
|
|
523
523
|
<div id="status"></div>
|
|
524
524
|
<button id="add">Add card</button>
|
|
525
525
|
<ul id="cards"></ul>
|
|
526
|
+
<swarm-cursors room="match-42"></swarm-cursors>
|
|
526
527
|
<script type="module">
|
|
527
528
|
const lobby = await swarmSdk.room('lobby', { schemaVersion: 1 });
|
|
528
529
|
const board = await swarmSdk.room('match-42', { schemaVersion: 1 });
|
|
@@ -548,9 +549,6 @@ Operator launches and password pages show guest names. Never accept a viewer ide
|
|
|
548
549
|
state.cards[crypto.randomUUID()] = { title: 'New card', done: false };
|
|
549
550
|
});
|
|
550
551
|
};
|
|
551
|
-
document.addEventListener('pointermove', event => {
|
|
552
|
-
board.presence.set({ x: event.clientX, y: event.clientY });
|
|
553
|
-
});
|
|
554
552
|
await lobby.change(state => { state.activeMatch = 'match-42'; });
|
|
555
553
|
</script>
|
|
556
554
|
```
|
|
@@ -574,10 +572,24 @@ Array insertion takes `path`, `index`, and `values`. Text editing takes `path`,
|
|
|
574
572
|
|
|
575
573
|
`room.state` returns the current JSON state. `room.me` contains `{userId, name, kind}`.
|
|
576
574
|
`room.on(event, handler)` returns an unsubscribe function. Events include `change`, `presence`, `reset`, and `error`.
|
|
577
|
-
`room.presence.peers` contains `{userId, name, kind, data}` entries. Cursor data
|
|
575
|
+
`room.presence.peers` contains `{userId, name, kind, data}` entries. Cursor data is stored at `peer.data.__cursor`.
|
|
578
576
|
Presence updates default to one transmission per 50 milliseconds. Presence never enters the persisted document.
|
|
579
577
|
Use `await room.close()` when the page no longer needs a room.
|
|
580
578
|
|
|
579
|
+
### `<swarm-cursors>` — shared page pointers
|
|
580
|
+
|
|
581
|
+
Add this element to opt a page into named cursors for an existing room:
|
|
582
|
+
|
|
583
|
+
```html
|
|
584
|
+
<swarm-cursors room="board"></swarm-cursors>
|
|
585
|
+
```
|
|
586
|
+
|
|
587
|
+
It publishes document-normalized coordinates, so pointers line up across different viewport sizes. Each pointer uses a stable color and the peer's name, smooths incoming updates, and hides after three seconds without movement or when the peer leaves the page. Agent peers are hidden by default; add `include-agents` to show them.
|
|
588
|
+
|
|
589
|
+
The element uses the room already opened by page code when available. If it opens the room itself, it waits until page scripts have run and defaults to schema version 1. Set `schema-version` when using a newer version, such as `<swarm-cursors room="board" schema-version="2"></swarm-cursors>`.
|
|
590
|
+
|
|
591
|
+
The cursor uses the existing room presence API. It merges its reserved `__cursor` field with object data already written through `room.presence.set`, preserving fields such as a selected card. Keep page presence data as an object and treat `__cursor` as reserved for the cursor element.
|
|
592
|
+
|
|
581
593
|
### Schema changes and persistence
|
|
582
594
|
|
|
583
595
|
Declare a positive integer `schemaVersion`. A mismatch opens a stale room with readable state and rejected writes.
|
|
@@ -142,7 +142,6 @@
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
.peer-name { font-weight: 650; overflow-wrap: anywhere; }
|
|
145
|
-
.cursor { color: #67665f; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; }
|
|
146
145
|
.room-meta { color: #67665f; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; margin: 0 0 16px; }
|
|
147
146
|
.save-state { color: #67665f; font-size: .82rem; margin: 8px 0 0; min-height: 1.2em; }
|
|
148
147
|
|
|
@@ -156,6 +155,7 @@
|
|
|
156
155
|
</style>
|
|
157
156
|
</head>
|
|
158
157
|
<body>
|
|
158
|
+
<swarm-cursors room="match-42"></swarm-cursors>
|
|
159
159
|
<main class="page">
|
|
160
160
|
<header>
|
|
161
161
|
<div>
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
<aside>
|
|
186
186
|
<section class="panel" aria-labelledby="peers-heading">
|
|
187
187
|
<h2 id="peers-heading">Live peers</h2>
|
|
188
|
-
<p class="muted">
|
|
188
|
+
<p class="muted">Pointers use document-normalized coordinates and line up across viewports.</p>
|
|
189
189
|
<ul id="peers" class="peers" aria-live="polite"></ul>
|
|
190
190
|
</section>
|
|
191
191
|
|
|
@@ -294,13 +294,7 @@
|
|
|
294
294
|
const name = document.createElement('span');
|
|
295
295
|
name.className = 'peer-name';
|
|
296
296
|
name.textContent = peer.name || 'Guest';
|
|
297
|
-
|
|
298
|
-
cursor.className = 'cursor';
|
|
299
|
-
const data = peer.data || {};
|
|
300
|
-
cursor.textContent = Number.isFinite(data.x) && Number.isFinite(data.y)
|
|
301
|
-
? `cursor: ${Math.round(data.x)}, ${Math.round(data.y)}`
|
|
302
|
-
: 'cursor: not shared yet';
|
|
303
|
-
item.append(name, cursor);
|
|
297
|
+
item.append(name);
|
|
304
298
|
ui.peers.append(item);
|
|
305
299
|
}
|
|
306
300
|
}
|
|
@@ -401,9 +395,6 @@
|
|
|
401
395
|
event.preventDefault();
|
|
402
396
|
saveLobbyMessage();
|
|
403
397
|
});
|
|
404
|
-
document.addEventListener('pointermove', event => {
|
|
405
|
-
if (board) board.presence.set({ x: event.clientX, y: event.clientY });
|
|
406
|
-
}, { passive: true });
|
|
407
398
|
window.addEventListener('pagehide', () => {
|
|
408
399
|
if (board) board.close();
|
|
409
400
|
if (lobby) lobby.close();
|
package/dist/cli-2daksqps.js
DELETED
|
@@ -1,378 +0,0 @@
|
|
|
1
|
-
// src/artifact-sdk/browser-sdk.ts
|
|
2
|
-
var BROWSER_SDK_JS = `
|
|
3
|
-
class SwarmSDK {
|
|
4
|
-
constructor() {
|
|
5
|
-
let realtime;
|
|
6
|
-
const loadRealtime = () => realtime || (realtime = import('/@swarm/realtime.js'));
|
|
7
|
-
this.room = async (name, options) => (await loadRealtime()).room(name, options);
|
|
8
|
-
this.channel = async (name) => (await loadRealtime()).channel(name);
|
|
9
|
-
|
|
10
|
-
const base = '/@swarm/api';
|
|
11
|
-
const call = async (method, path, body) => {
|
|
12
|
-
const init = { method };
|
|
13
|
-
if (body !== undefined) {
|
|
14
|
-
init.headers = { 'Content-Type': 'application/json' };
|
|
15
|
-
init.body = JSON.stringify(body);
|
|
16
|
-
}
|
|
17
|
-
const res = await fetch(base + path, init);
|
|
18
|
-
const text = await res.text();
|
|
19
|
-
let parsed = null;
|
|
20
|
-
if (text) {
|
|
21
|
-
try { parsed = JSON.parse(text); } catch { parsed = text; }
|
|
22
|
-
}
|
|
23
|
-
if (!res.ok) {
|
|
24
|
-
const err = new Error('SwarmSDK ' + method + ' ' + path + ': ' + res.status);
|
|
25
|
-
err.status = res.status;
|
|
26
|
-
err.response = parsed;
|
|
27
|
-
throw err;
|
|
28
|
-
}
|
|
29
|
-
return parsed;
|
|
30
|
-
};
|
|
31
|
-
const qs = (obj) => {
|
|
32
|
-
if (!obj) return '';
|
|
33
|
-
const p = new URLSearchParams();
|
|
34
|
-
for (const [k, v] of Object.entries(obj)) {
|
|
35
|
-
if (v === undefined || v === null) continue;
|
|
36
|
-
p.set(k, String(v));
|
|
37
|
-
}
|
|
38
|
-
const s = p.toString();
|
|
39
|
-
return s ? '?' + s : '';
|
|
40
|
-
};
|
|
41
|
-
const enc = encodeURIComponent;
|
|
42
|
-
|
|
43
|
-
this.tasks = {
|
|
44
|
-
create: (body) => call('POST', '/tasks', body),
|
|
45
|
-
list: (filters) => call('GET', '/tasks' + qs(filters)),
|
|
46
|
-
get: (id) => call('GET', '/tasks/' + enc(id)),
|
|
47
|
-
storeProgress: (id, data) => call('POST', '/tasks/' + enc(id) + '/progress', data),
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
this.agents = {
|
|
51
|
-
list: () => call('GET', '/agents'),
|
|
52
|
-
get: (id) => call('GET', '/agents/' + enc(id)),
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
this.events = {
|
|
56
|
-
create: (body) => call('POST', '/events', body),
|
|
57
|
-
list: (filters) => call('GET', '/events' + qs(filters)),
|
|
58
|
-
batch: (body) => call('POST', '/events/batch', body),
|
|
59
|
-
counts: (filters) => call('GET', '/events/counts' + qs(filters)),
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
this.memory = {
|
|
63
|
-
search: (body) => call('POST', '/memory/search', body),
|
|
64
|
-
list: (filters) => call('GET', '/memory/list' + qs(filters)),
|
|
65
|
-
get: (id) => call('GET', '/memory/' + enc(id)),
|
|
66
|
-
rate: (body) => call('POST', '/memory/rate', body),
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
this.repos = {
|
|
70
|
-
list: () => call('GET', '/repos'),
|
|
71
|
-
get: (id) => call('GET', '/repos/' + enc(id)),
|
|
72
|
-
create: (body) => call('POST', '/repos', body),
|
|
73
|
-
update: (id, body) => call('PUT', '/repos/' + enc(id), body),
|
|
74
|
-
delete: (id) => call('DELETE', '/repos/' + enc(id)),
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
this.schedules = {
|
|
78
|
-
list: () => call('GET', '/schedules'),
|
|
79
|
-
get: (id) => call('GET', '/schedules/' + enc(id)),
|
|
80
|
-
create: (body) => call('POST', '/schedules', body),
|
|
81
|
-
update: (id, body) => call('PUT', '/schedules/' + enc(id), body),
|
|
82
|
-
delete: (id) => call('DELETE', '/schedules/' + enc(id)),
|
|
83
|
-
run: (id) => call('POST', '/schedules/' + enc(id) + '/run'),
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
this.approvalRequests = {
|
|
87
|
-
list: (filters) => call('GET', '/approval-requests' + qs(filters)),
|
|
88
|
-
get: (id) => call('GET', '/approval-requests/' + enc(id)),
|
|
89
|
-
create: (body) => call('POST', '/approval-requests', body),
|
|
90
|
-
respond: (id, body) => call('POST', '/approval-requests/' + enc(id) + '/respond', body),
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
this.assets = {
|
|
94
|
-
list: (filters) => call('GET', '/assets' + qs(filters)),
|
|
95
|
-
audit: () => call('GET', '/assets/key-audit'),
|
|
96
|
-
registerMapping: (body) => call('POST', '/assets/mappings', body),
|
|
97
|
-
move: (entityType, id, key) => call(
|
|
98
|
-
'PATCH',
|
|
99
|
-
'/assets/' + enc(entityType) + '/' + enc(id) + '/key',
|
|
100
|
-
{ key },
|
|
101
|
-
),
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
// KV store. The namespace is FORCED by the page-proxy to \`task:page:<id>\`
|
|
105
|
-
// (it injects X-Page-Id which the kv handler treats as highest priority).
|
|
106
|
-
// No namespace argument is exposed — pages cannot read/write any other
|
|
107
|
-
// namespace via this SDK.
|
|
108
|
-
this.kv = {
|
|
109
|
-
get: (key) => call('GET', '/kv/' + enc(key)),
|
|
110
|
-
set: (key, value, opts) => call('PUT', '/kv/' + enc(key), {
|
|
111
|
-
value,
|
|
112
|
-
valueType: opts && opts.valueType,
|
|
113
|
-
expiresInSec: opts && opts.expiresInSec,
|
|
114
|
-
}),
|
|
115
|
-
del: (key) => call('DELETE', '/kv/' + enc(key)),
|
|
116
|
-
incr: (key, by) => call('POST', '/kv/' + enc(key) + '/incr', { by: by == null ? 1 : by }),
|
|
117
|
-
list: (opts) => call('GET', '/kv' + qs(opts)),
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
// Expose BOTH the class (for \`new SwarmSDK()\`) AND a ready-to-use singleton
|
|
123
|
-
// on \`window.swarmSdk\` so pages can call e.g. \`window.swarmSdk.agents.list()\`
|
|
124
|
-
// directly without instantiating.
|
|
125
|
-
window.SwarmSDK = SwarmSDK;
|
|
126
|
-
window.swarmSdk = new SwarmSDK();
|
|
127
|
-
`;
|
|
128
|
-
var SWARM_UI_JS = `
|
|
129
|
-
(function() {
|
|
130
|
-
if (typeof window === 'undefined' || !window.customElements) return;
|
|
131
|
-
if (window.customElements.get('swarm-diff')) return;
|
|
132
|
-
|
|
133
|
-
var SEV_COLOR = {
|
|
134
|
-
error: '#ef4444',
|
|
135
|
-
warn: '#f59e0b',
|
|
136
|
-
info: '#3b82f6',
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
function esc(s) {
|
|
140
|
-
return String(s == null ? '' : s)
|
|
141
|
-
.replace(/&/g, '&')
|
|
142
|
-
.replace(/</g, '<')
|
|
143
|
-
.replace(/>/g, '>')
|
|
144
|
-
.replace(/"/g, '"')
|
|
145
|
-
.replace(/'/g, ''');
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
function slugifyAttr(s) {
|
|
149
|
-
return String(s || '').toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '');
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
function parseHunks(jsonText) {
|
|
153
|
-
var trimmed = (jsonText || '').trim();
|
|
154
|
-
if (!trimmed) return [];
|
|
155
|
-
try {
|
|
156
|
-
var parsed = JSON.parse(trimmed);
|
|
157
|
-
if (parsed && Array.isArray(parsed.hunks)) return parsed.hunks;
|
|
158
|
-
if (Array.isArray(parsed)) return parsed;
|
|
159
|
-
return [];
|
|
160
|
-
} catch (e) {
|
|
161
|
-
console.warn('[swarm-diff] failed to parse JSON body:', e);
|
|
162
|
-
return [];
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
function renderAnnotation(ann) {
|
|
167
|
-
var color = SEV_COLOR[ann && ann.severity] || SEV_COLOR.info;
|
|
168
|
-
return (
|
|
169
|
-
'<span class="swarm-diff-annot no-print" '
|
|
170
|
-
+ 'style="display:inline-block;margin-left:8px;padding:1px 6px;'
|
|
171
|
-
+ 'border-radius:4px;font-size:11px;font-weight:600;'
|
|
172
|
-
+ 'background:' + color + '22;color:' + color + ';border:1px solid ' + color + '55;">'
|
|
173
|
-
+ esc((ann && ann.severity ? ann.severity.toUpperCase() : 'INFO')) + ' · ' + esc(ann && ann.text || '')
|
|
174
|
-
+ '</span>'
|
|
175
|
-
);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
function renderHunk(hunk, hunkIdx, file) {
|
|
179
|
-
var oldLines = hunk.old_lines || 0;
|
|
180
|
-
var newLines = hunk.new_lines || 0;
|
|
181
|
-
var oldStart = hunk.old_start || 0;
|
|
182
|
-
var newStart = hunk.new_start || 0;
|
|
183
|
-
var lines = Array.isArray(hunk.lines) ? hunk.lines : [];
|
|
184
|
-
var annotations = Array.isArray(hunk.annotations) ? hunk.annotations : [];
|
|
185
|
-
// Index annotations by new-side line number for fast lookup per row.
|
|
186
|
-
var annByLine = {};
|
|
187
|
-
for (var i = 0; i < annotations.length; i++) {
|
|
188
|
-
var a = annotations[i];
|
|
189
|
-
if (a && typeof a.line === 'number') {
|
|
190
|
-
if (!annByLine[a.line]) annByLine[a.line] = [];
|
|
191
|
-
annByLine[a.line].push(a);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
var rowsHtml = '';
|
|
196
|
-
var oldN = oldStart;
|
|
197
|
-
var newN = newStart;
|
|
198
|
-
for (var j = 0; j < lines.length; j++) {
|
|
199
|
-
var line = lines[j] || {};
|
|
200
|
-
var type = line.type || 'context';
|
|
201
|
-
var text = line.text == null ? '' : line.text;
|
|
202
|
-
var bg, oldCell, newCell, sign;
|
|
203
|
-
if (type === 'add') {
|
|
204
|
-
bg = 'rgba(34,197,94,0.10)';
|
|
205
|
-
oldCell = '';
|
|
206
|
-
newCell = String(newN++);
|
|
207
|
-
sign = '+';
|
|
208
|
-
} else if (type === 'del') {
|
|
209
|
-
bg = 'rgba(239,68,68,0.10)';
|
|
210
|
-
oldCell = String(oldN++);
|
|
211
|
-
newCell = '';
|
|
212
|
-
sign = '-';
|
|
213
|
-
} else {
|
|
214
|
-
bg = 'transparent';
|
|
215
|
-
oldCell = String(oldN++);
|
|
216
|
-
newCell = String(newN++);
|
|
217
|
-
sign = ' ';
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
var annHtml = '';
|
|
221
|
-
var anns = annByLine[Number(newCell)] || annByLine[Number(oldCell)] || [];
|
|
222
|
-
for (var k = 0; k < anns.length; k++) annHtml += renderAnnotation(anns[k]);
|
|
223
|
-
|
|
224
|
-
rowsHtml += (
|
|
225
|
-
'<tr style="background:' + bg + ';">'
|
|
226
|
-
+ '<td class="swarm-diff-gutter" style="user-select:none;text-align:right;padding:0 8px;color:#7c8aa6;font-size:12px;width:48px;">' + esc(oldCell) + '</td>'
|
|
227
|
-
+ '<td class="swarm-diff-gutter" style="user-select:none;text-align:right;padding:0 8px;color:#7c8aa6;font-size:12px;width:48px;">' + esc(newCell) + '</td>'
|
|
228
|
-
+ '<td class="swarm-diff-sign" style="user-select:none;text-align:center;padding:0 4px;color:#7c8aa6;font-size:12px;width:18px;">' + esc(sign) + '</td>'
|
|
229
|
-
+ '<td class="swarm-diff-code" style="padding:0 8px;white-space:pre-wrap;word-break:break-word;font-family:\\'Space Mono\\',ui-monospace,monospace;font-size:12px;">' + esc(text) + annHtml + '</td>'
|
|
230
|
-
+ '</tr>'
|
|
231
|
-
);
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
var anchorSlug = slugifyAttr((file || 'hunk') + '-' + (oldStart || hunkIdx + 1));
|
|
235
|
-
var anchorId = 'swarm-diff-' + anchorSlug;
|
|
236
|
-
var header = (
|
|
237
|
-
'@@ -' + oldStart + ',' + oldLines + ' +' + newStart + ',' + newLines + ' @@'
|
|
238
|
-
);
|
|
239
|
-
|
|
240
|
-
return (
|
|
241
|
-
'<a id="' + esc(anchorId) + '" class="swarm-diff-anchor" data-hunk="' + esc(anchorSlug) + '"></a>'
|
|
242
|
-
+ '<div class="swarm-diff-hunk-header" style="padding:6px 12px;background:rgba(124,138,166,0.10);color:#7c8aa6;font-family:\\'Space Mono\\',ui-monospace,monospace;font-size:11px;border-top:1px solid var(--swarm-border,#22304a);">'
|
|
243
|
-
+ esc(header)
|
|
244
|
-
+ '</div>'
|
|
245
|
-
+ '<table class="swarm-diff-table" style="width:100%;border-collapse:collapse;table-layout:fixed;">'
|
|
246
|
-
+ '<tbody>' + rowsHtml + '</tbody>'
|
|
247
|
-
+ '</table>'
|
|
248
|
-
);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
function renderDiff(rootEl, diffData) {
|
|
252
|
-
var hunks = (diffData && Array.isArray(diffData.hunks)) ? diffData.hunks : (Array.isArray(diffData) ? diffData : []);
|
|
253
|
-
var file = rootEl.getAttribute('file') || '';
|
|
254
|
-
var baseSha = rootEl.getAttribute('base-sha') || '';
|
|
255
|
-
var headSha = rootEl.getAttribute('head-sha') || '';
|
|
256
|
-
|
|
257
|
-
var shaLine = '';
|
|
258
|
-
if (baseSha || headSha) {
|
|
259
|
-
shaLine = '<span class="swarm-diff-sha" style="font-family:\\'Space Mono\\',ui-monospace,monospace;font-size:11px;color:#7c8aa6;">'
|
|
260
|
-
+ esc(baseSha) + ' → ' + esc(headSha)
|
|
261
|
-
+ '</span>';
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
var hunksHtml = '';
|
|
265
|
-
for (var i = 0; i < hunks.length; i++) {
|
|
266
|
-
hunksHtml += renderHunk(hunks[i] || {}, i, file);
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
rootEl.innerHTML = (
|
|
270
|
-
'<div class="swarm-diff-root" style="border:1px solid var(--swarm-border,#22304a);border-radius:8px;background:var(--swarm-card,#121826);overflow:hidden;margin:12px 0;break-inside:avoid;">'
|
|
271
|
-
+ '<div class="swarm-diff-header" style="display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:rgba(59,130,246,0.10);border-bottom:1px solid var(--swarm-border,#22304a);">'
|
|
272
|
-
+ '<span class="swarm-diff-file" style="font-family:\\'Space Mono\\',ui-monospace,monospace;font-size:13px;font-weight:700;color:var(--swarm-text,#e6eaf2);">' + esc(file || '(untitled)') + '</span>'
|
|
273
|
-
+ shaLine
|
|
274
|
-
+ '</div>'
|
|
275
|
-
+ hunksHtml
|
|
276
|
-
+ '</div>'
|
|
277
|
-
);
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
// Public function form lives on window.swarmUi so callers can render an
|
|
281
|
-
// arbitrary root element programmatically. The custom element below is just
|
|
282
|
-
// a declarative wrapper around the same render function.
|
|
283
|
-
window.swarmUi = window.swarmUi || {};
|
|
284
|
-
window.swarmUi.renderDiff = renderDiff;
|
|
285
|
-
|
|
286
|
-
// Defer the parse-and-render so the HTML parser has time to finish
|
|
287
|
-
// appending JSON text children. \`connectedCallback\` fires on the opening
|
|
288
|
-
// tag — \`this.textContent\` is empty until children parse. Without a
|
|
289
|
-
// defer, every declarative <swarm-diff> renders an empty header and the
|
|
290
|
-
// JSON text remains visible as orphan children.
|
|
291
|
-
//
|
|
292
|
-
// queueMicrotask alone is NOT enough — Chrome's streaming parser drains
|
|
293
|
-
// microtasks between chunks, so the microtask can run BEFORE the JSON
|
|
294
|
-
// child is appended. We need to wait for the parser to finish the current
|
|
295
|
-
// document load, then read textContent.
|
|
296
|
-
//
|
|
297
|
-
// * \`document.readyState === 'loading'\` ⇒ parser still streaming →
|
|
298
|
-
// wait for DOMContentLoaded (fires after all children are parsed).
|
|
299
|
-
// * otherwise (element was created/inserted dynamically post-load) ⇒
|
|
300
|
-
// queueMicrotask is fine — DOM is stable, just give the caller a tick.
|
|
301
|
-
//
|
|
302
|
-
// Re-entrancy (element moved/reconnected) re-fires connectedCallback so
|
|
303
|
-
// we re-render against current textContent.
|
|
304
|
-
class SwarmDiffElement extends HTMLElement {
|
|
305
|
-
connectedCallback() {
|
|
306
|
-
var self = this;
|
|
307
|
-
var doRender = function() {
|
|
308
|
-
if (!self.isConnected) return;
|
|
309
|
-
var raw = self.textContent || '';
|
|
310
|
-
renderDiff(self, { hunks: parseHunks(raw) });
|
|
311
|
-
// Notify <swarm-diff-jumps> instances so they can pick up new anchors.
|
|
312
|
-
self.dispatchEvent(new CustomEvent('swarm-diff:rendered', { bubbles: true }));
|
|
313
|
-
};
|
|
314
|
-
if (typeof document !== 'undefined' && document.readyState === 'loading') {
|
|
315
|
-
document.addEventListener('DOMContentLoaded', doRender, { once: true });
|
|
316
|
-
} else {
|
|
317
|
-
queueMicrotask(doRender);
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
window.customElements.define('swarm-diff', SwarmDiffElement);
|
|
322
|
-
|
|
323
|
-
// Sibling-anchor jump list. Walks subsequent siblings, finds every
|
|
324
|
-
// <swarm-diff data-hunk=...> anchor, and renders a small list of links.
|
|
325
|
-
//
|
|
326
|
-
// Same parse-order hazard as <swarm-diff>: <swarm-diff-jumps> usually
|
|
327
|
-
// appears in the document BEFORE the <swarm-diff> elements it indexes, so
|
|
328
|
-
// we also defer to a microtask AND re-render whenever a <swarm-diff> in the
|
|
329
|
-
// document finishes rendering its anchors.
|
|
330
|
-
class SwarmDiffJumpsElement extends HTMLElement {
|
|
331
|
-
connectedCallback() {
|
|
332
|
-
var self = this;
|
|
333
|
-
var renderJumps = function() {
|
|
334
|
-
var anchors = document.querySelectorAll('.swarm-diff-anchor[data-hunk]');
|
|
335
|
-
if (!anchors.length) {
|
|
336
|
-
self.innerHTML = '<span class="no-print" style="color:#7c8aa6;font-size:12px;">No hunks yet.</span>';
|
|
337
|
-
return;
|
|
338
|
-
}
|
|
339
|
-
var items = '';
|
|
340
|
-
for (var i = 0; i < anchors.length; i++) {
|
|
341
|
-
var a = anchors[i];
|
|
342
|
-
var slug = a.getAttribute('data-hunk') || ('hunk-' + i);
|
|
343
|
-
// Hunk title = nearest preceding diff's file attribute if available.
|
|
344
|
-
var diff = a.closest && a.closest('swarm-diff');
|
|
345
|
-
var file = (diff && diff.getAttribute('file')) || slug;
|
|
346
|
-
items += '<li style="margin:0;padding:2px 0;"><a href="#' + esc(a.id) + '" style="color:#3b82f6;text-decoration:none;font-family:\\'Space Mono\\',ui-monospace,monospace;font-size:12px;">' + esc(file) + '</a></li>';
|
|
347
|
-
}
|
|
348
|
-
self.innerHTML = (
|
|
349
|
-
'<nav class="swarm-diff-jumps no-print" style="padding:8px 12px;border:1px dashed var(--swarm-border,#22304a);border-radius:8px;background:rgba(124,138,166,0.05);">'
|
|
350
|
-
+ '<div style="font-size:10px;text-transform:uppercase;letter-spacing:0.08em;color:#7c8aa6;margin-bottom:4px;">Jump to</div>'
|
|
351
|
-
+ '<ul style="list-style:none;padding:0;margin:0;">' + items + '</ul>'
|
|
352
|
-
+ '</nav>'
|
|
353
|
-
);
|
|
354
|
-
};
|
|
355
|
-
// Wait for the parser to finish initial load before first query —
|
|
356
|
-
// <swarm-diff> elements also defer to DOMContentLoaded so we must
|
|
357
|
-
// run AFTER they finish rendering their anchors. The event listener
|
|
358
|
-
// below handles the live-update case.
|
|
359
|
-
if (typeof document !== 'undefined' && document.readyState === 'loading') {
|
|
360
|
-
document.addEventListener('DOMContentLoaded', function() { queueMicrotask(renderJumps); }, { once: true });
|
|
361
|
-
} else {
|
|
362
|
-
queueMicrotask(renderJumps);
|
|
363
|
-
}
|
|
364
|
-
// Re-render whenever a sibling <swarm-diff> finishes its async render.
|
|
365
|
-
self._onDiffRendered = function() { renderJumps(); };
|
|
366
|
-
document.addEventListener('swarm-diff:rendered', self._onDiffRendered);
|
|
367
|
-
}
|
|
368
|
-
disconnectedCallback() {
|
|
369
|
-
if (this._onDiffRendered) {
|
|
370
|
-
document.removeEventListener('swarm-diff:rendered', this._onDiffRendered);
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
window.customElements.define('swarm-diff-jumps', SwarmDiffJumpsElement);
|
|
375
|
-
})();
|
|
376
|
-
`;
|
|
377
|
-
|
|
378
|
-
export { BROWSER_SDK_JS, SWARM_UI_JS };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BUILTIN_ROLES,
|
|
3
|
-
DEFAULT_ROLE_ID,
|
|
4
|
-
attachRole,
|
|
5
|
-
detachRole,
|
|
6
|
-
ensureRbacSeedsSynced,
|
|
7
|
-
getUserGrant,
|
|
8
|
-
listUserRoles,
|
|
9
|
-
runRbacCliCommand
|
|
10
|
-
} from "./cli-f3va018d.js";
|
|
11
|
-
import"./cli-ytxs7mn1.js";
|
|
12
|
-
import"./cli-awwphhcs.js";
|
|
13
|
-
import"./cli-h0wdadsx.js";
|
|
14
|
-
import"./cli-3gmcwfyx.js";
|
|
15
|
-
import"./cli-ggm92wcn.js";
|
|
16
|
-
import"./cli-19jenss3.js";
|
|
17
|
-
import"./cli-dv6cdjs2.js";
|
|
18
|
-
import"./cli-n7h1kqpf.js";
|
|
19
|
-
import"./cli-de1396j2.js";
|
|
20
|
-
import"./cli-cqt19wg6.js";
|
|
21
|
-
import"./cli-ej6gbxfb.js";
|
|
22
|
-
import"./cli-sd0mxa3c.js";
|
|
23
|
-
import"./cli-w5e1d1vv.js";
|
|
24
|
-
import"./cli-sgyqyyxe.js";
|
|
25
|
-
import"./cli-r2ap2czm.js";
|
|
26
|
-
import"./cli-zf8jjwex.js";
|
|
27
|
-
import"./cli-bc05qbss.js";
|
|
28
|
-
export {
|
|
29
|
-
BUILTIN_ROLES,
|
|
30
|
-
DEFAULT_ROLE_ID,
|
|
31
|
-
attachRole,
|
|
32
|
-
detachRole,
|
|
33
|
-
ensureRbacSeedsSynced,
|
|
34
|
-
getUserGrant,
|
|
35
|
-
listUserRoles,
|
|
36
|
-
runRbacCliCommand
|
|
37
|
-
};
|