open-managed-agents 0.1.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/LICENSE +93 -0
- package/README.md +248 -0
- package/bin/oma.mjs +499 -0
- package/dist/scripts/alpha-openai-compatible-fixture.mjs +134 -0
- package/dist/scripts/alpha-smoke-models.mjs +92 -0
- package/dist/scripts/alpha-smoke.mjs +581 -0
- package/dist/scripts/oma-doctor.js +230 -0
- package/dist/scripts/oma-models.js +299 -0
- package/dist/scripts/oma-workspaces.js +133 -0
- package/dist/src/control-plane/admin/auth.js +43 -0
- package/dist/src/control-plane/admin/routes.js +76 -0
- package/dist/src/control-plane/admin/service.js +102 -0
- package/dist/src/control-plane/admission.js +90 -0
- package/dist/src/control-plane/agents/routes.js +63 -0
- package/dist/src/control-plane/agents/service.js +687 -0
- package/dist/src/control-plane/agents/store.js +391 -0
- package/dist/src/control-plane/agents/types.js +1 -0
- package/dist/src/control-plane/api-constants.js +3 -0
- package/dist/src/control-plane/app.js +907 -0
- package/dist/src/control-plane/console/auth.js +68 -0
- package/dist/src/control-plane/console/static.js +112 -0
- package/dist/src/control-plane/deployment-runtime-config.js +328 -0
- package/dist/src/control-plane/deployment-runtime-event-coordinator.js +25 -0
- package/dist/src/control-plane/deployment-runtime-turn-guard.js +14 -0
- package/dist/src/control-plane/deployment-session-coordinator.js +25 -0
- package/dist/src/control-plane/deployment-session-output-coordinator.js +27 -0
- package/dist/src/control-plane/deployment-storage.js +354 -0
- package/dist/src/control-plane/egress/image.js +48 -0
- package/dist/src/control-plane/egress/policy.js +571 -0
- package/dist/src/control-plane/egress/presets.js +77 -0
- package/dist/src/control-plane/egress/proxy.js +72 -0
- package/dist/src/control-plane/egress/ssrf.js +106 -0
- package/dist/src/control-plane/egress/utils/debug.js +14 -0
- package/dist/src/control-plane/egress/vendor/http-proxy.js +335 -0
- package/dist/src/control-plane/egress/vendor/mitm-ca.js +226 -0
- package/dist/src/control-plane/egress/vendor/mitm-leaf.js +124 -0
- package/dist/src/control-plane/egress/vendor/parent-proxy.js +438 -0
- package/dist/src/control-plane/egress/vendor/request-filter.js +105 -0
- package/dist/src/control-plane/egress/vendor/sandbox-config.js +1 -0
- package/dist/src/control-plane/egress/vendor/tls-terminate-proxy.js +269 -0
- package/dist/src/control-plane/environments/routes.js +54 -0
- package/dist/src/control-plane/environments/service.js +112 -0
- package/dist/src/control-plane/environments/store.js +132 -0
- package/dist/src/control-plane/environments/types.js +1 -0
- package/dist/src/control-plane/errors.js +81 -0
- package/dist/src/control-plane/events/broadcaster.js +217 -0
- package/dist/src/control-plane/events/constants.js +2 -0
- package/dist/src/control-plane/events/persist.js +39 -0
- package/dist/src/control-plane/events/request.js +190 -0
- package/dist/src/control-plane/events/routes.js +159 -0
- package/dist/src/control-plane/events/runtime-helpers.js +134 -0
- package/dist/src/control-plane/events/service.js +1985 -0
- package/dist/src/control-plane/events/session-guards.js +29 -0
- package/dist/src/control-plane/events/sse.js +6 -0
- package/dist/src/control-plane/events/store.js +772 -0
- package/dist/src/control-plane/events/tool-persistence.js +102 -0
- package/dist/src/control-plane/events/types.js +21 -0
- package/dist/src/control-plane/files/routes.js +121 -0
- package/dist/src/control-plane/files/service.js +65 -0
- package/dist/src/control-plane/files/store-common.js +87 -0
- package/dist/src/control-plane/files/store-local.js +488 -0
- package/dist/src/control-plane/files/store-memory.js +270 -0
- package/dist/src/control-plane/files/store.js +2 -0
- package/dist/src/control-plane/files/types.js +7 -0
- package/dist/src/control-plane/http.js +25 -0
- package/dist/src/control-plane/ids.js +43 -0
- package/dist/src/control-plane/logging.js +263 -0
- package/dist/src/control-plane/models/auth-storage-backend.js +238 -0
- package/dist/src/control-plane/models/catalog.js +78 -0
- package/dist/src/control-plane/models/config-security.js +376 -0
- package/dist/src/control-plane/models/deployment-config.js +93 -0
- package/dist/src/control-plane/models/routes.js +32 -0
- package/dist/src/control-plane/models/service.js +138 -0
- package/dist/src/control-plane/observability/instruments.js +65 -0
- package/dist/src/control-plane/observability/metrics.js +125 -0
- package/dist/src/control-plane/observability/routes.js +95 -0
- package/dist/src/control-plane/openapi/document.js +282 -0
- package/dist/src/control-plane/openapi/routes.js +78 -0
- package/dist/src/control-plane/request-idempotency.js +85 -0
- package/dist/src/control-plane/secrets/envelope.js +132 -0
- package/dist/src/control-plane/secrets/master-key.js +44 -0
- package/dist/src/control-plane/secrets/routes.js +20 -0
- package/dist/src/control-plane/secrets/service.js +71 -0
- package/dist/src/control-plane/secrets/store.js +212 -0
- package/dist/src/control-plane/secrets/types.js +3 -0
- package/dist/src/control-plane/sessions/pi/custom-tools.js +146 -0
- package/dist/src/control-plane/sessions/pi/mcp/bridge.js +527 -0
- package/dist/src/control-plane/sessions/pi/mcp/client.js +157 -0
- package/dist/src/control-plane/sessions/pi/mcp/credential.js +28 -0
- package/dist/src/control-plane/sessions/pi/mcp/fetch.js +69 -0
- package/dist/src/control-plane/sessions/pi/mcp/probe.js +202 -0
- package/dist/src/control-plane/sessions/pi/mcp/runtime.js +13 -0
- package/dist/src/control-plane/sessions/pi/runner.js +1104 -0
- package/dist/src/control-plane/sessions/pi/sandbox/cma-glob.js +388 -0
- package/dist/src/control-plane/sessions/pi/sandbox/cma-grep.js +124 -0
- package/dist/src/control-plane/sessions/pi/sandbox/docker-egress.js +347 -0
- package/dist/src/control-plane/sessions/pi/sandbox/docker.js +1589 -0
- package/dist/src/control-plane/sessions/pi/sandbox/glob.js +48 -0
- package/dist/src/control-plane/sessions/pi/sandbox/image.js +7 -0
- package/dist/src/control-plane/sessions/pi/sandbox/microsandbox.js +1677 -0
- package/dist/src/control-plane/sessions/pi/sandbox/provider.js +561 -0
- package/dist/src/control-plane/sessions/pi/sandbox/selection.js +168 -0
- package/dist/src/control-plane/sessions/pi/span-normalizer.js +82 -0
- package/dist/src/control-plane/sessions/pi/tool-permissions.js +392 -0
- package/dist/src/control-plane/sessions/pi/translator.js +100 -0
- package/dist/src/control-plane/sessions/request.js +164 -0
- package/dist/src/control-plane/sessions/resources.js +63 -0
- package/dist/src/control-plane/sessions/routes.js +88 -0
- package/dist/src/control-plane/sessions/serialize.js +24 -0
- package/dist/src/control-plane/sessions/service.js +733 -0
- package/dist/src/control-plane/sessions/store.js +538 -0
- package/dist/src/control-plane/sessions/types.js +1 -0
- package/dist/src/control-plane/skills/archive.js +169 -0
- package/dist/src/control-plane/skills/routes.js +41 -0
- package/dist/src/control-plane/skills/service.js +29 -0
- package/dist/src/control-plane/skills/store.js +233 -0
- package/dist/src/control-plane/skills/types.js +5 -0
- package/dist/src/control-plane/sqlite-transaction.js +15 -0
- package/dist/src/control-plane/vaults/mcp-oauth-validate.js +165 -0
- package/dist/src/control-plane/vaults/oauth-refresh-ticker.js +43 -0
- package/dist/src/control-plane/vaults/oauth-refresh.js +448 -0
- package/dist/src/control-plane/vaults/routes.js +66 -0
- package/dist/src/control-plane/vaults/service.js +553 -0
- package/dist/src/control-plane/vaults/store.js +691 -0
- package/dist/src/control-plane/vaults/types.js +1 -0
- package/dist/src/control-plane/wake-loop.js +65 -0
- package/dist/src/control-plane/wiring.js +92 -0
- package/dist/src/control-plane/workspace.js +4 -0
- package/dist/src/control-plane/workspaces/store.js +158 -0
- package/dist/src/egress-proxy-main.js +103 -0
- package/dist/src/main.js +124 -0
- package/dist/src/types/agents.js +1 -0
- package/dist/src/types/common.js +1 -0
- package/dist/src/types/environments.js +1 -0
- package/dist/src/types/events.js +121 -0
- package/dist/src/types/files.js +1 -0
- package/dist/src/types/json.js +19 -0
- package/dist/src/types/sessions.js +1 -0
- package/dist/ui/managed-agents-console/README.md +52 -0
- package/dist/ui/managed-agents-console/docs/agents.md +23 -0
- package/dist/ui/managed-agents-console/docs/console.md +23 -0
- package/dist/ui/managed-agents-console/docs/dreams.md +5 -0
- package/dist/ui/managed-agents-console/docs/environments.md +27 -0
- package/dist/ui/managed-agents-console/docs/events.md +19 -0
- package/dist/ui/managed-agents-console/docs/files.md +17 -0
- package/dist/ui/managed-agents-console/docs/github.md +11 -0
- package/dist/ui/managed-agents-console/docs/integrations.md +19 -0
- package/dist/ui/managed-agents-console/docs/memory.md +11 -0
- package/dist/ui/managed-agents-console/docs/migration.md +17 -0
- package/dist/ui/managed-agents-console/docs/multiagent.md +11 -0
- package/dist/ui/managed-agents-console/docs/outcomes.md +11 -0
- package/dist/ui/managed-agents-console/docs/overview.md +41 -0
- package/dist/ui/managed-agents-console/docs/permissions.md +24 -0
- package/dist/ui/managed-agents-console/docs/quickstart.md +51 -0
- package/dist/ui/managed-agents-console/docs/reference.md +27 -0
- package/dist/ui/managed-agents-console/docs/sandbox-reference.md +19 -0
- package/dist/ui/managed-agents-console/docs/sandbox-security.md +15 -0
- package/dist/ui/managed-agents-console/docs/scheduled-deployments.md +5 -0
- package/dist/ui/managed-agents-console/docs/self-hosted-sandboxes.md +15 -0
- package/dist/ui/managed-agents-console/docs/session-operations.md +21 -0
- package/dist/ui/managed-agents-console/docs/sessions.md +21 -0
- package/dist/ui/managed-agents-console/docs/skills.md +15 -0
- package/dist/ui/managed-agents-console/docs/tools.md +23 -0
- package/dist/ui/managed-agents-console/docs/vaults.md +19 -0
- package/dist/ui/managed-agents-console/docs/webhooks.md +11 -0
- package/dist/ui/managed-agents-console/index.html +47 -0
- package/dist/ui/managed-agents-console/serve.mjs +116 -0
- package/dist/ui/managed-agents-console/src/agents-files.jsx +273 -0
- package/dist/ui/managed-agents-console/src/api.js +1043 -0
- package/dist/ui/managed-agents-console/src/app.jsx +633 -0
- package/dist/ui/managed-agents-console/src/auth.jsx +215 -0
- package/dist/ui/managed-agents-console/src/console.css +733 -0
- package/dist/ui/managed-agents-console/src/data.js +188 -0
- package/dist/ui/managed-agents-console/src/detail.jsx +719 -0
- package/dist/ui/managed-agents-console/src/docs.jsx +200 -0
- package/dist/ui/managed-agents-console/src/environments.jsx +365 -0
- package/dist/ui/managed-agents-console/src/forms.jsx +494 -0
- package/dist/ui/managed-agents-console/src/icons.jsx +48 -0
- package/dist/ui/managed-agents-console/src/skills.jsx +21 -0
- package/dist/ui/managed-agents-console/src/sse.js +185 -0
- package/dist/ui/managed-agents-console/src/states.jsx +90 -0
- package/dist/ui/managed-agents-console/src/tweaks-panel.jsx +541 -0
- package/dist/ui/managed-agents-console/src/ui.jsx +190 -0
- package/dist/ui/managed-agents-console/src/vaults-data.js +89 -0
- package/dist/ui/managed-agents-console/src/vaults.jsx +171 -0
- package/dist/ui/managed-agents-console/vendor/babel.min.js +4 -0
- package/dist/ui/managed-agents-console/vendor/react-dom.production.min.js +267 -0
- package/dist/ui/managed-agents-console/vendor/react.production.min.js +31 -0
- package/dist/ui/openapi-docs/VENDOR.md +27 -0
- package/dist/ui/openapi-docs/index.html +16 -0
- package/dist/ui/openapi-docs/swagger-initializer.js +14 -0
- package/dist/ui/openapi-docs/vendor/LICENSE +202 -0
- package/dist/ui/openapi-docs/vendor/NOTICE +2 -0
- package/dist/ui/openapi-docs/vendor/swagger-ui-bundle.js +2 -0
- package/dist/ui/openapi-docs/vendor/swagger-ui-standalone-preset.js +2 -0
- package/dist/ui/openapi-docs/vendor/swagger-ui.css +3 -0
- package/package.json +53 -0
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
// data.js — mock data for the OMA Managed Agents console (plain JS → window)
|
|
2
|
+
|
|
3
|
+
window.AGENTS = [
|
|
4
|
+
{ id:'agent_01KLjw6BFUkSNuApePpqQnnN', short:'agent_…pqQnnN', name:'cwc-agent',
|
|
5
|
+
model:'claude-opus-4-7', status:'active', created:'May 20', updated:'May 20', version:'v1',
|
|
6
|
+
tools:8, system:'You help me navigate Code w/ Claude 2026 — sessions, schedule, venue, and where to find resources.',
|
|
7
|
+
toolset:'agent_toolset_20260401', sessions:['Schedule','Ship your first Managed Agent','Day 1 keynote notes'] },
|
|
8
|
+
{ id:'agent_01H9k7Kd2aLpVrn8x', short:'agent_…7Kd2aL', name:'oma-span-probe-sonnet',
|
|
9
|
+
model:'claude-sonnet-4-6', status:'active', created:'Jun 2', updated:'Jun 2', version:'v2',
|
|
10
|
+
tools:6, system:'Probe agent for OMA model-request span pairing. Run bash, emit spans, then idle.',
|
|
11
|
+
toolset:'agent_toolset_20260401', sessions:['OMA span bash probe sonnet'] },
|
|
12
|
+
{ id:'agent_01Q9xZb1mTg4Pk', short:'agent_…Q9xZb1', name:'oma-toolspan-probe-sonnet',
|
|
13
|
+
model:'claude-sonnet-4-6', status:'active', created:'Jun 2', updated:'Jun 2', version:'v1',
|
|
14
|
+
tools:6, system:'Probe agent for tool-span timing. Exercises tool_use / tool_result pairs.',
|
|
15
|
+
toolset:'agent_toolset_20260401', sessions:['OMA real tool span probe sonnet'] },
|
|
16
|
+
{ id:'agent_01m4Tg0pQ9Lz', short:'agent_…m4Tg0p', name:'oma-tool-confirm-allow',
|
|
17
|
+
model:'claude-sonnet-4-6', status:'archived', created:'May 29', updated:'May 29', version:'v1',
|
|
18
|
+
tools:4, system:'Confirmation-flow probe (allow path).', toolset:'agent_toolset_20260401', sessions:[] },
|
|
19
|
+
];
|
|
20
|
+
|
|
21
|
+
window.SESSIONS = [
|
|
22
|
+
{ id:'sesn_01J3kQr8…5fMAqj', short:'sesn_…5fMAqj', title:'OMA real tool span probe sonnet',
|
|
23
|
+
status:'running', agent:'oma-toolspan-probe-sonnet', env:'oma-toolspan-probe-sonnet-env',
|
|
24
|
+
created:'Jun 2', updated:'Jun 2', dur:'18.4s', tokens:'31.2k / 1.1k', resources:2 },
|
|
25
|
+
{ id:'sesn_01TBKa9…TBKTMC', short:'sesn_…TBKTMC', title:'OMA span bash probe sonnet',
|
|
26
|
+
status:'idle', agent:'oma-span-probe-sonnet', env:'oma-span-probe-sonnet-env',
|
|
27
|
+
created:'Jun 2', updated:'Jun 2', dur:'12.4s', tokens:'18.2k / 640', resources:1 },
|
|
28
|
+
{ id:'sesn_01CucM8…CucMUa', short:'sesn_…CucMUa', title:'OMA span bash probe',
|
|
29
|
+
status:'idle', agent:'oma-span-probe', env:'oma-span-probe-env',
|
|
30
|
+
created:'Jun 2', updated:'Jun 2', dur:'9.1s', tokens:'11.0k / 410', resources:1 },
|
|
31
|
+
{ id:'sesn_01QB1k…QB11BH', short:'sesn_…QB11BH', title:'Clean build directory & re-export',
|
|
32
|
+
status:'idle', agent:'oma-tool-confirm', env:'oma-tool-confirm-env', confirm:true, requiresAction:true,
|
|
33
|
+
created:'May 29', updated:'May 29', dur:'4.2s', tokens:'5.4k / 120', resources:0 },
|
|
34
|
+
{ id:'sesn_017Ajs…7AjsFV', short:'sesn_…7AjsFV', title:'oma-tool-confirmation-deny',
|
|
35
|
+
status:'idle', agent:'oma-tool-confirm-deny', env:'oma-tool-confirm-deny-env',
|
|
36
|
+
created:'May 29', updated:'May 29', dur:'3.8s', tokens:'5.1k / 98', resources:0 },
|
|
37
|
+
{ id:'sesn_01ciQ8…ciQBoJ', short:'sesn_…ciQBoJ', title:'Schedule',
|
|
38
|
+
status:'idle', agent:'cwc-agent', env:'cwc-env',
|
|
39
|
+
created:'May 20', updated:'May 20', dur:'31.7s', tokens:'27.9k / 920', resources:3 },
|
|
40
|
+
{ id:'sesn_01WJxQr8…VcyvLi', short:'sesn_…VcyvLi', title:'Ship your first Managed Agent',
|
|
41
|
+
status:'idle', agent:'cwc-agent', env:'cwc-env',
|
|
42
|
+
created:'May 20', updated:'May 20', dur:'26.2s', tokens:'23.4k / 843', resources:2, focus:true },
|
|
43
|
+
{ id:'sesn_01Js2k…Js2Bjq', short:'sesn_…Js2Bjq', title:'Day 1 keynote notes',
|
|
44
|
+
status:'idle', agent:'cwc-agent', env:'cwc-env',
|
|
45
|
+
created:'May 20', updated:'May 20', dur:'14.9s', tokens:'12.8k / 470', resources:1 },
|
|
46
|
+
];
|
|
47
|
+
|
|
48
|
+
const J = (o) => JSON.stringify(o, null, 2);
|
|
49
|
+
|
|
50
|
+
// Events for the focused session (sesn_…VcyvLi). transcript:true → shows in Transcript.
|
|
51
|
+
window.EVENTS = [
|
|
52
|
+
{ id:'sevt_…a01', role:'user', type:'user.message', tag:'message', transcript:true, time:'0:00:08',
|
|
53
|
+
text:'Just finished the 11am Ship your first Managed Agent workshop with the OMA team.',
|
|
54
|
+
content:'Just finished the 11am Ship your first Managed Agent workshop with the OMA team. Logging it so the agent has context for the rest of the day.',
|
|
55
|
+
raw:J({ type:'user.message', id:'sevt_…a01', content:[{type:'text',text:'Just finished the 11am…'}], processed_at:'2026-05-20T11:42:08Z' }) },
|
|
56
|
+
{ id:'sevt_…a02', role:'span', type:'span.model_request_start', tag:'model', time:'0:00:08',
|
|
57
|
+
text:'model_request_start', startId:'sevt_…a02',
|
|
58
|
+
raw:J({ type:'span.model_request_start', id:'sevt_…a02', processed_at:'2026-05-20T11:42:08.120Z' }) },
|
|
59
|
+
{ id:'sevt_…a03', role:'span', type:'span.model_request_end', tag:'312ms', time:'0:00:08', ok:true, tokens:'7.5k / 280',
|
|
60
|
+
text:'model_request_end', dur:'312 ms', pairedStart:'sevt_…a02',
|
|
61
|
+
usage:{ input:'7,520', output:'280', cacheRead:'4,096', cacheWrite:'0' },
|
|
62
|
+
raw:J({ type:'span.model_request_end', id:'sevt_…a03', model_request_start_id:'sevt_…a02', is_error:false, model_usage:{ input_tokens:7520, output_tokens:280, cache_read_tokens:4096 }, processed_at:'2026-05-20T11:42:08.432Z' }) },
|
|
63
|
+
{ id:'sevt_…a04', role:'agent', type:'agent.message', tag:'message', transcript:true, time:'0:00:08', tokens:'7.5k / 280',
|
|
64
|
+
text:'Got it — logged for context: · Workshop: Ship your first Managed Agent · Time: 11am',
|
|
65
|
+
content:'Got it — logged for context:\n· Workshop: Ship your first Managed Agent\n· Time: 11am\n· Attendees: OMA team\nI\u2019ll keep this in mind for the rest of the day.',
|
|
66
|
+
raw:J({ type:'agent.message', id:'sevt_…a04', content:[{type:'text',text:'Got it — logged…'}] }) },
|
|
67
|
+
{ id:'sevt_…a05', role:'user', type:'user.message', tag:'message', transcript:true, time:'0:00:14', focus:true,
|
|
68
|
+
text:'I learned that agents are templates that define model and prompt configuration…',
|
|
69
|
+
content:'I learned that agents are templates that define model and prompt configuration, and environments are templates that define container configuration.',
|
|
70
|
+
raw:J({ type:'user.message', id:'sevt_…7gtZWu7', content:[{type:'text',text:'I learned that agents are templates…'}], processed_at:'2026-05-20T11:42:14Z' }) },
|
|
71
|
+
{ id:'sevt_…a06', role:'tool', type:'agent.tool_use', tag:'bash', time:'0:00:09',
|
|
72
|
+
text:'agent.tool_use · bash · append to notes.md',
|
|
73
|
+
content:'bash: echo "- Agents = templates (model + prompt)" >> notes.md',
|
|
74
|
+
raw:J({ type:'agent.tool_use', id:'sevt_…a06', name:'bash', input:{ command:'echo "- Agents = templates" >> notes.md' } }) },
|
|
75
|
+
{ id:'sevt_…a07', role:'tool', type:'agent.tool_result', tag:'exit 0', time:'0:00:11',
|
|
76
|
+
text:'agent.tool_result · exit 0',
|
|
77
|
+
content:'exit code 0 · stdout: (empty)',
|
|
78
|
+
raw:J({ type:'agent.tool_result', id:'sevt_…a07', tool_use_id:'sevt_…a06', is_error:false, content:'' }) },
|
|
79
|
+
{ id:'sevt_…a08', role:'span', type:'span.model_request_start', tag:'model', time:'0:00:13', open:true,
|
|
80
|
+
text:'model_request_start · (open — no end)', startId:'sevt_…a08',
|
|
81
|
+
raw:J({ type:'span.model_request_start', id:'sevt_…a08', processed_at:'2026-05-20T11:42:13.900Z' }) },
|
|
82
|
+
{ id:'sevt_…a09', role:'agent', type:'agent.message', tag:'message', transcript:true, time:'0:00:14', tokens:'7.8k / 233',
|
|
83
|
+
text:'Noted — adding to your running notes: · Agents = templates that define model + prompt…',
|
|
84
|
+
content:'Noted — adding to your running notes:\n· Agents = templates that define model + prompt\n· Environments = templates that define container config',
|
|
85
|
+
raw:J({ type:'agent.message', id:'sevt_…a09', content:[{type:'text',text:'Noted — adding…'}] }) },
|
|
86
|
+
{ id:'sevt_…a10', role:'user', type:'user.message', tag:'message', transcript:true, time:'0:00:25',
|
|
87
|
+
text:'Also learned that I can add MCP integrations and define client-side tools.',
|
|
88
|
+
content:'Also learned that I can add MCP integrations and define client-side tools on the agent.',
|
|
89
|
+
raw:J({ type:'user.message', id:'sevt_…a10', content:[{type:'text',text:'Also learned…'}] }) },
|
|
90
|
+
{ id:'sevt_…a11', role:'agent', type:'agent.message', tag:'message', transcript:true, time:'0:00:25', tokens:'8.1k / 330',
|
|
91
|
+
text:'Added to your notes: · Agents = templates defining model + prompt · MCP + client tools…',
|
|
92
|
+
content:'Added to your notes:\n· Agents = templates defining model + prompt\n· MCP integrations + client-side tools can be attached',
|
|
93
|
+
raw:J({ type:'agent.message', id:'sevt_…a11', content:[{type:'text',text:'Added to your notes…'}] }) },
|
|
94
|
+
{ id:'sevt_…a12', role:'sys', type:'session.status_idle', tag:'requires_action', time:'0:00:25',
|
|
95
|
+
text:'session.status_idle · requires_action: none',
|
|
96
|
+
content:'Session went idle. requires_action: false.',
|
|
97
|
+
raw:J({ type:'session.status_idle', id:'sevt_…a12', requires_action:false }) },
|
|
98
|
+
];
|
|
99
|
+
|
|
100
|
+
// ── live stream for the RUNNING session (sesn_…5fMAqj) ──
|
|
101
|
+
// `gap` = ms to wait before this event appears (streamed in order).
|
|
102
|
+
window.RUN_EVENTS = [
|
|
103
|
+
{ id:'sevt_…r01', role:'user', type:'user.message', tag:'message', transcript:true, time:'0:00:00', gap:0,
|
|
104
|
+
text:'Run the span probe: list the workspace, read config.json, then summarise findings.',
|
|
105
|
+
content:'Run the span probe: list the workspace, read config.json, then summarise findings.',
|
|
106
|
+
raw:J({ type:'user.message', id:'sevt_…r01', content:[{type:'text',text:'Run the span probe…'}], processed_at:'2026-06-05T09:14:00Z' }) },
|
|
107
|
+
{ id:'sevt_…r02', role:'span', type:'span.model_request_start', tag:'model', time:'0:00:00', gap:900, startId:'sevt_…r02',
|
|
108
|
+
text:'model_request_start',
|
|
109
|
+
raw:J({ type:'span.model_request_start', id:'sevt_…r02', processed_at:'2026-06-05T09:14:00.140Z' }) },
|
|
110
|
+
{ id:'sevt_…r03', role:'span', type:'span.model_request_end', tag:'287ms', time:'0:00:01', gap:1500, ok:true, tokens:'6.2k / 142',
|
|
111
|
+
text:'model_request_end', dur:'287 ms', pairedStart:'sevt_…r02',
|
|
112
|
+
usage:{ input:'6,210', output:'142', cacheRead:'2,048', cacheWrite:'0' },
|
|
113
|
+
raw:J({ type:'span.model_request_end', id:'sevt_…r03', model_request_start_id:'sevt_…r02', is_error:false, model_usage:{ input_tokens:6210, output_tokens:142, cache_read_tokens:2048 }, processed_at:'2026-06-05T09:14:00.427Z' }) },
|
|
114
|
+
{ id:'sevt_…r04', role:'agent', type:'agent.message', tag:'message', transcript:true, time:'0:00:01', gap:1100, tokens:'6.2k / 142',
|
|
115
|
+
text:'On it — I\u2019ll list the workspace first, then read the config.',
|
|
116
|
+
content:'On it — I\u2019ll list the workspace first, then read the config.',
|
|
117
|
+
raw:J({ type:'agent.message', id:'sevt_…r04', content:[{type:'text',text:'On it…'}] }) },
|
|
118
|
+
{ id:'sevt_…r05', role:'tool', type:'agent.tool_use', tag:'bash', transcript:true, time:'0:00:02', gap:1300,
|
|
119
|
+
text:'agent.tool_use · bash · ls -la',
|
|
120
|
+
content:'bash: ls -la', raw:J({ type:'agent.tool_use', id:'sevt_…r05', name:'bash', input:{ command:'ls -la' } }) },
|
|
121
|
+
{ id:'sevt_…r06', role:'tool', type:'agent.tool_result', tag:'exit 0', transcript:true, time:'0:00:03', gap:1700,
|
|
122
|
+
text:'agent.tool_result · exit 0 · 7 entries',
|
|
123
|
+
content:'exit 0 · config.json, src/, README.md, notes.md …', raw:J({ type:'agent.tool_result', id:'sevt_…r06', tool_use_id:'sevt_…r05', is_error:false }) },
|
|
124
|
+
{ id:'sevt_…r07', role:'span', type:'span.model_request_start', tag:'model', time:'0:00:03', gap:1000, startId:'sevt_…r07',
|
|
125
|
+
text:'model_request_start', raw:J({ type:'span.model_request_start', id:'sevt_…r07', processed_at:'2026-06-05T09:14:03.010Z' }) },
|
|
126
|
+
{ id:'sevt_…r08', role:'tool', type:'agent.tool_use', tag:'bash', transcript:true, time:'0:00:04', gap:1400,
|
|
127
|
+
text:'agent.tool_use · bash · cat config.json',
|
|
128
|
+
content:'bash: cat config.json', raw:J({ type:'agent.tool_use', id:'sevt_…r08', name:'bash', input:{ command:'cat config.json' } }) },
|
|
129
|
+
{ id:'sevt_…r09', role:'tool', type:'agent.tool_result', tag:'exit 0', transcript:true, time:'0:00:05', gap:1800,
|
|
130
|
+
text:'agent.tool_result · exit 0 · 1.2 KB',
|
|
131
|
+
content:'exit 0 · { "model": "claude-sonnet-4-6", "max_steps": 12 }', raw:J({ type:'agent.tool_result', id:'sevt_…r09', tool_use_id:'sevt_…r08', is_error:false }) },
|
|
132
|
+
{ id:'sevt_…r10', role:'agent', type:'agent.message', tag:'message', transcript:true, time:'0:00:06', gap:2000, tokens:'9.4k / 318',
|
|
133
|
+
text:'Summary: workspace has 7 entries; config targets sonnet-4-6 with a 12-step cap. Probe complete.',
|
|
134
|
+
content:'Summary:\n· Workspace: 7 entries (config.json, src/, README.md, notes.md…)\n· Config targets claude-sonnet-4-6, max_steps 12\nProbe complete.',
|
|
135
|
+
raw:J({ type:'agent.message', id:'sevt_…r10', content:[{type:'text',text:'Summary…'}] }) },
|
|
136
|
+
{ id:'sevt_…r11', role:'sys', type:'session.status_idle', tag:'requires_action', time:'0:00:06', gap:1200,
|
|
137
|
+
text:'session.status_idle · requires_action: none',
|
|
138
|
+
content:'Session went idle. requires_action: false.', raw:J({ type:'session.status_idle', id:'sevt_…r11', requires_action:false }) },
|
|
139
|
+
];
|
|
140
|
+
|
|
141
|
+
// transcript for a session that pauses on a tool confirmation (requires_action)
|
|
142
|
+
window.CONFIRM_EVENTS = [
|
|
143
|
+
{ id:'sevt_…c01', role:'user', type:'user.message', tag:'message', transcript:true, time:'0:00:00',
|
|
144
|
+
text:'Clean the build directory, then re-run the export script.',
|
|
145
|
+
content:'Clean the build directory, then re-run the export script.',
|
|
146
|
+
raw:J({ type:'user.message', id:'sevt_…c01', content:[{type:'text',text:'Clean the build directory…'}] }) },
|
|
147
|
+
{ id:'sevt_…c02', role:'agent', type:'agent.message', tag:'message', transcript:true, time:'0:00:01', tokens:'4.1k / 96',
|
|
148
|
+
text:'I\u2019ll remove build/ and then re-run export.sh. The delete needs your approval first.',
|
|
149
|
+
content:'I\u2019ll remove build/ and then re-run export.sh. The delete needs your approval first.',
|
|
150
|
+
raw:J({ type:'agent.message', id:'sevt_…c02', content:[{type:'text',text:'I\u2019ll remove build/…'}] }) },
|
|
151
|
+
{ id:'sevt_…c03', role:'tool', type:'agent.tool_use', tag:'bash', transcript:true, time:'0:00:01', confirm:true,
|
|
152
|
+
text:'agent.tool_use · bash · rm -rf build/',
|
|
153
|
+
content:'bash: rm -rf build/', tool:'bash', cmd:'rm -rf build/',
|
|
154
|
+
raw:J({ type:'agent.tool_use', id:'sevt_…c03', name:'bash', input:{ command:'rm -rf build/' }, requires_confirmation:true }) },
|
|
155
|
+
{ id:'sevt_…c04', role:'sys', type:'session.status_idle', tag:'requires_action', time:'0:00:01',
|
|
156
|
+
text:'session.status_idle · requires_action: tool_confirmation',
|
|
157
|
+
content:'Waiting for operator approval on a tool call. requires_action: true.',
|
|
158
|
+
raw:J({ type:'session.status_idle', id:'sevt_…c04', requires_action:true, action:{ type:'tool_confirmation', tool_use_id:'sevt_…c03' } }) },
|
|
159
|
+
];
|
|
160
|
+
|
|
161
|
+
// span waterfall (positions are % of total duration)
|
|
162
|
+
window.SPANS = [
|
|
163
|
+
{ role:'span', kind:'model', label:'model_request', left:4, width:22, info:'312ms · 7.5k/280' },
|
|
164
|
+
{ role:'tool', kind:'tool', label:'tool_use · bash', left:27, width:13, info:'queued' },
|
|
165
|
+
{ role:'tool', kind:'tool', label:'tool_result', left:41, width:8, info:'exit 0' },
|
|
166
|
+
{ role:'span', kind:'model', label:'model_request', left:52, width:27, info:'498ms · 7.8k/233' },
|
|
167
|
+
{ role:'span', kind:'open', label:'model_request', left:80, width:16, info:'open — no end' },
|
|
168
|
+
];
|
|
169
|
+
|
|
170
|
+
window.FILES = [
|
|
171
|
+
{ name:'report-final.md', ext:'md', type:'text/markdown', size:'2.4 KB', created:'Jun 2', dl:true },
|
|
172
|
+
{ name:'summary.txt', ext:'txt', type:'text/plain', size:'812 B', created:'Jun 2', dl:true },
|
|
173
|
+
{ name:'data-export.csv', ext:'csv', type:'text/csv', size:'41 KB', created:'Jun 2', dl:true },
|
|
174
|
+
{ name:'chart.png', ext:'png', type:'image/png', size:'188 KB', created:'Jun 2', dl:true },
|
|
175
|
+
{ name:'input-corpus.zip', ext:'zip', type:'application/zip', size:'1.2 MB', created:'May 29', dl:false },
|
|
176
|
+
];
|
|
177
|
+
|
|
178
|
+
window.EVENT_TYPES = ['message','tool_use','tool_result','custom_tool','model_request','status','error'];
|
|
179
|
+
|
|
180
|
+
window.ENVIRONMENTS = [
|
|
181
|
+
{ id:'cwc-env', label:'cwc-env', image:'docker-local · python-3.12' },
|
|
182
|
+
{ id:'oma-span-probe-sonnet-env', label:'oma-span-probe-sonnet-env', image:'docker-local · node-22' },
|
|
183
|
+
{ id:'oma-toolspan-probe-sonnet-env', label:'oma-toolspan-probe-sonnet-env', image:'docker-local · node-22' },
|
|
184
|
+
{ id:'oma-span-probe-env', label:'oma-span-probe-env', image:'docker-local · node-22' },
|
|
185
|
+
];
|
|
186
|
+
|
|
187
|
+
window.MODELS = ['claude-sonnet-5', 'claude-opus-4-7', 'claude-sonnet-4-6', 'claude-haiku-4-5'];
|
|
188
|
+
window.TOOL_OPTIONS = ['bash', 'read', 'write', 'edit', 'glob'];
|