@andorra-labs/code 0.1.10 → 0.1.11

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.
Files changed (155) hide show
  1. package/README.md +28 -208
  2. package/THIRD_PARTY_NOTICES.md +15 -0
  3. package/dist/src/agent-execution.js +36 -0
  4. package/dist/src/app-server/protocol.d.ts +1 -0
  5. package/dist/src/app-server.d.ts +34 -1
  6. package/dist/src/app-server.js +264 -54
  7. package/dist/src/automation-service.js +1 -1
  8. package/dist/src/browser-session.d.ts +8 -0
  9. package/dist/src/browser-session.js +27 -1
  10. package/dist/src/browser-ui/app.js +237 -15
  11. package/dist/src/browser-ui/index.html +5 -5
  12. package/dist/src/browser-ui/style.css +110 -65
  13. package/dist/src/browser-ui/tokens.css +27 -26
  14. package/dist/src/coding-tools.d.ts +24 -0
  15. package/dist/src/coding-tools.js +71 -8
  16. package/dist/src/command-screens.js +1 -1
  17. package/dist/src/commands.js +1 -1
  18. package/dist/src/completion-gates.d.ts +42 -7
  19. package/dist/src/completion-gates.js +55 -9
  20. package/dist/src/completion.d.ts +8 -0
  21. package/dist/src/completion.js +19 -1
  22. package/dist/src/dashboard-view.js +2 -2
  23. package/dist/src/deadline.js +4 -0
  24. package/dist/src/graph-manager-chat.js +13 -13
  25. package/dist/src/graph-runner.js +39 -2
  26. package/dist/src/graph-server.js +9 -9
  27. package/dist/src/graph-sync.d.ts +8 -0
  28. package/dist/src/graph-sync.js +54 -3
  29. package/dist/src/graph-tool.js +1 -1
  30. package/dist/src/graph-ui/app.js +262 -93
  31. package/dist/src/graph-ui/controls.css +43 -22
  32. package/dist/src/graph-ui/controls.js +31 -1
  33. package/dist/src/graph-ui/embed.js +62 -13
  34. package/dist/src/graph-ui/icons.js +4 -0
  35. package/dist/src/graph-ui/index.html +3 -3
  36. package/dist/src/graph-ui/manager-state.js +2 -2
  37. package/dist/src/graph-ui/manager.css +19 -18
  38. package/dist/src/graph-ui/manager.js +11 -11
  39. package/dist/src/graph-ui/skill-picker.js +1 -1
  40. package/dist/src/graph-ui/studio-canvas.js +8 -8
  41. package/dist/src/graph-ui/studio.css +18 -15
  42. package/dist/src/graph-ui/studio.js +92 -35
  43. package/dist/src/graph-ui/style.css +122 -79
  44. package/dist/src/graph-ui/theme.js +2 -2
  45. package/dist/src/graph-ui/tokens.css +33 -29
  46. package/dist/src/graphs.d.ts +3 -2
  47. package/dist/src/graphs.js +3 -2
  48. package/dist/src/membership-errors.d.ts +7 -1
  49. package/dist/src/membership-errors.js +9 -3
  50. package/dist/src/pull-requests.d.ts +42 -6
  51. package/dist/src/pull-requests.js +11 -3
  52. package/dist/src/react-runtime.js +121 -14
  53. package/dist/src/read-document-doc.d.ts +20 -0
  54. package/dist/src/read-document-doc.js +524 -0
  55. package/dist/src/read-document-docx.d.ts +21 -0
  56. package/dist/src/read-document-docx.js +584 -0
  57. package/dist/src/read-document-text.d.ts +29 -0
  58. package/dist/src/read-document-text.js +67 -0
  59. package/dist/src/read-document-tool.d.ts +48 -0
  60. package/dist/src/read-document-tool.js +162 -0
  61. package/dist/src/read-document.d.ts +78 -0
  62. package/dist/src/read-document.js +353 -0
  63. package/dist/src/read-image.d.ts +29 -2
  64. package/dist/src/read-image.js +42 -17
  65. package/dist/src/runtime.d.ts +19 -0
  66. package/dist/src/runtime.js +10 -1
  67. package/dist/src/session-changes.d.ts +6 -1
  68. package/dist/src/session-changes.js +13 -5
  69. package/dist/src/side-panel.d.ts +6 -1
  70. package/dist/src/side-panel.js +12 -10
  71. package/dist/src/skills/bundled/create-skill/SKILL.md +1 -1
  72. package/dist/src/skills/bundled/diagram/SKILL.md +1 -1
  73. package/dist/src/skills/bundled/graph-manager/SKILL.md +37 -3
  74. package/dist/src/skills/bundled/graph-manager/patterns.md +27 -0
  75. package/dist/src/skills/bundled/provenance.json +4 -4
  76. package/dist/src/skills/runtime-skills.js +3 -3
  77. package/dist/src/stall-recovery.d.ts +6 -2
  78. package/dist/src/stall-recovery.js +7 -2
  79. package/dist/src/terminal-ui.js +2 -2
  80. package/dist/src/time-limit.d.ts +53 -0
  81. package/dist/src/time-limit.js +79 -0
  82. package/dist/src/tools.js +92 -7
  83. package/dist/src/transcript.js +1 -1
  84. package/dist/src/types.d.ts +6 -0
  85. package/dist/src/usage-analytics.d.ts +3 -1
  86. package/dist/src/usage-analytics.js +16 -2
  87. package/package.json +6 -26
  88. package/docs/README.md +0 -36
  89. package/docs/agents/README.md +0 -62
  90. package/docs/agents/install-for-agents.md +0 -56
  91. package/docs/agents/mcp-server.md +0 -212
  92. package/docs/agents/subagent-mode.md +0 -149
  93. package/docs/concepts/README.md +0 -47
  94. package/docs/concepts/jev-actionable-routing.md +0 -113
  95. package/docs/concepts/jev-decision-thresholds.md +0 -412
  96. package/docs/concepts/jev-efficiency.md +0 -217
  97. package/docs/concepts/jev-eval-2026-11-01.md +0 -78
  98. package/docs/concepts/limits.md +0 -52
  99. package/docs/concepts/memory.md +0 -10
  100. package/docs/concepts/security.md +0 -50
  101. package/docs/concepts/workspace-instructions.md +0 -29
  102. package/docs/getting-started/README.md +0 -82
  103. package/docs/getting-started/accounts.md +0 -78
  104. package/docs/getting-started/configure-providers.md +0 -132
  105. package/docs/guides/README.md +0 -13
  106. package/docs/guides/browser.md +0 -39
  107. package/docs/guides/desktop-app.md +0 -414
  108. package/docs/guides/extensions.md +0 -102
  109. package/docs/guides/graph-builder.md +0 -116
  110. package/docs/guides/headless.md +0 -46
  111. package/docs/guides/tui.md +0 -75
  112. package/docs/guides/update.md +0 -70
  113. package/docs/guides/web-search.md +0 -51
  114. package/docs/guides/windows-code-signing.md +0 -319
  115. package/docs/llms.txt +0 -45
  116. package/docs/reference/README.md +0 -7
  117. package/docs/reference/cli.md +0 -76
  118. package/docs/reference/config.md +0 -91
  119. package/docs/reference/slash-commands.md +0 -59
  120. package/docs/superpowers/plans/2026-11-01-claude-console-sign-in.md +0 -111
  121. package/docs/superpowers/plans/2026-11-01-jev-node-opt-in.md +0 -910
  122. package/docs/superpowers/plans/2026-11-02-workflow-pane.md +0 -398
  123. package/docs/superpowers/plans/2026-11-06-graph-soft-delete.md +0 -125
  124. package/docs/superpowers/plans/2026-11-09-orchestrator-delegation.md +0 -295
  125. package/docs/superpowers/plans/2026-11-13-graph-manager-chat.md +0 -203
  126. package/docs/superpowers/plans/2026-11-14-jev-fair-use-pricing.md +0 -79
  127. package/docs/superpowers/specs/2026-10-31-work-line-summary-design.md +0 -50
  128. package/docs/superpowers/specs/2026-11-01-claude-console-sign-in-design.md +0 -176
  129. package/docs/superpowers/specs/2026-11-01-jev-node-opt-in-design.md +0 -164
  130. package/docs/superpowers/specs/2026-11-01-pr-section-design.md +0 -111
  131. package/docs/superpowers/specs/2026-11-02-workflow-pane-design.md +0 -130
  132. package/docs/superpowers/specs/2026-11-06-bundled-skills-design.md +0 -206
  133. package/docs/superpowers/specs/2026-11-09-orchestrator-delegation-design.md +0 -291
  134. package/docs/superpowers/specs/2026-11-13-graph-manager-chat-design.md +0 -182
  135. package/docs/superpowers/specs/2026-11-14-jev-fair-use-pricing-design.md +0 -156
  136. package/scripts/jev-efficiency-eval.mjs +0 -187
  137. package/scripts/jev-efficiency-live.mjs +0 -193
  138. package/scripts/zcode-engine-replay.mjs +0 -223
  139. package/tests/agent-centric-mcp-test-plan.md +0 -208
  140. package/tests/analytics-settings-test-plan.md +0 -165
  141. package/tests/browser-cli-smoke.mjs +0 -276
  142. package/tests/browser-test-plan.md +0 -280
  143. package/tests/chat-side-panel-test-plan.md +0 -309
  144. package/tests/decision-engine-test-plan.md +0 -163
  145. package/tests/default-active-jev-test-plan.md +0 -85
  146. package/tests/harness-extensions-test-plan.md +0 -113
  147. package/tests/jev-all-decisions-test-plan.md +0 -156
  148. package/tests/jev-efficiency/criteria.json +0 -158
  149. package/tests/jev-efficiency/workloads.mjs +0 -242
  150. package/tests/jev-efficiency-test-plan.md +0 -198
  151. package/tests/permissions-sandbox-probe.mjs +0 -74
  152. package/tests/permissions-test-plan.md +0 -191
  153. package/tests/product-telemetry-test-plan.md +0 -536
  154. package/tests/thinking-stream-preview-test-plan.md +0 -136
  155. package/tests/zcode-react-engine-test-plan.md +0 -396
@@ -325,7 +325,7 @@ globalThis.AndorraManager = (() => {
325
325
  if (createdOffer?.id === event.graphId) createdOffer = null;
326
326
  if (state.graph?.id !== event.graphId) return;
327
327
  offeredRevision = null;
328
- status('Workflow Manager deleted this workflow.');
328
+ status('Graph Manager deleted this graph.');
329
329
  }
330
330
  /** Opens the graph the agent created. Unsaved edits on the canvas are asked about first, as for any other graph. */
331
331
  async function openCreated(offer) {
@@ -346,7 +346,7 @@ globalThis.AndorraManager = (() => {
346
346
  sentCanvas = JSON.stringify(state.graph);
347
347
  beforeLastMessage = null; unsureCanvas = false;
348
348
  offeredRevision = null;
349
- status(`Workflow Manager saved version ${state.graph.revision}`);
349
+ status(`Graph Manager saved version ${state.graph.revision}`);
350
350
  renderNotices();
351
351
  return true;
352
352
  }
@@ -362,7 +362,7 @@ globalThis.AndorraManager = (() => {
362
362
  async function send() {
363
363
  const text = input.value.trim();
364
364
  if (!text || !state.graph) return;
365
- if (!choice) { localError = 'Add a model provider to use Workflow Manager.'; renderNotices(); return; }
365
+ if (!choice) { localError = 'Add a model provider to use Graph Manager.'; renderNotices(); return; }
366
366
  const revision = Number.isInteger(state.graph.revision) ? state.graph.revision : 0;
367
367
  // The canvas is recorded with the message and becomes the comparison baseline only when the
368
368
  // stream echoes that message; a refused request puts the words back and leaves the baseline alone.
@@ -528,7 +528,7 @@ globalThis.AndorraManager = (() => {
528
528
  }
529
529
  if (entry.type === 'graph.deleted') {
530
530
  const other = entry.graphId !== chatGraphId && entry.graphId !== state.graph?.id;
531
- return node('div', other ? `Deleted ${entry.graphId}` : 'Deleted this workflow', 'manager-row manager-saved');
531
+ return node('div', other ? `Deleted ${entry.graphId}` : 'Deleted this graph', 'manager-row manager-saved');
532
532
  }
533
533
  if (entry.type === 'approval') return approvalCard(entry);
534
534
  if (entry.type === 'question') return questionCard(entry);
@@ -554,7 +554,7 @@ globalThis.AndorraManager = (() => {
554
554
  return item;
555
555
  }
556
556
  function approvalCard(entry) {
557
- const item = card(entry, 'Workflow Manager asks to', entry.text);
557
+ const item = card(entry, 'Graph Manager asks to', entry.text);
558
558
  if (entry.answered) return closed(item, entry, 'Answered');
559
559
  return actions(item, entry, [
560
560
  control('Approve', () => settle(entry, '/api/manager/approve', { id: entry.id, approved: true }, 'Approved'), 'btn-small primary'),
@@ -562,7 +562,7 @@ globalThis.AndorraManager = (() => {
562
562
  ]);
563
563
  }
564
564
  function questionCard(entry) {
565
- const item = card(entry, 'Workflow Manager asks', entry.question);
565
+ const item = card(entry, 'Graph Manager asks', entry.question);
566
566
  if (entry.answered) return closed(item, entry, 'Answered');
567
567
  const answer = value => settle(entry, '/api/manager/answer', { id: entry.id, value }, `Answered: ${value}`);
568
568
  if (Array.isArray(entry.choices) && entry.choices.length) {
@@ -588,7 +588,7 @@ globalThis.AndorraManager = (() => {
588
588
  const atEnd = log.scrollHeight - log.scrollTop - log.clientHeight < 40;
589
589
  const next = [];
590
590
  if (!transcript.length) {
591
- log.replaceChildren(node('p', 'Ask Workflow Manager to build or change this workflow. It sees the canvas as it is now, unsaved edits included, and asks before it saves anything.', 'help manager-empty'));
591
+ log.replaceChildren(node('p', 'Ask Graph Manager to build or change this graph. It sees the canvas as it is now, unsaved edits included, and asks before it saves anything.', 'help manager-empty'));
592
592
  rendered = [];
593
593
  return;
594
594
  }
@@ -628,23 +628,23 @@ globalThis.AndorraManager = (() => {
628
628
  }
629
629
  function renderNotices() {
630
630
  const bars = [];
631
- if (!state.providers.length) bars.push(notice('manager-warning', 'Add a model provider to use Workflow Manager.', []));
631
+ if (!state.providers.length) bars.push(notice('manager-warning', 'Add a model provider to use Graph Manager.', []));
632
632
  if (switchOffer && state.graph?.id === switchOffer) {
633
- bars.push(notice('manager-switch', `Start a new chat about ${state.graph.name || 'this workflow'}?`, [
633
+ bars.push(notice('manager-switch', `Start a new chat about ${state.graph.name || 'this graph'}?`, [
634
634
  control('New chat', () => { void newChat(); }, 'btn-small primary'),
635
635
  control('Keep this chat', () => { switchOffer = null; renderNotices(); }),
636
636
  ]));
637
637
  }
638
638
  if (offeredRevision !== null && state.graph) {
639
639
  const id = state.graph.id;
640
- bars.push(notice('manager-load', `Workflow Manager saved version ${offeredRevision}. Load it?`, [
640
+ bars.push(notice('manager-load', `Graph Manager saved version ${offeredRevision}. Load it?`, [
641
641
  control('Load', () => { void loadRevision(id); }, 'btn-small primary'),
642
642
  control('Not now', () => { offeredRevision = null; renderNotices(); }),
643
643
  ]));
644
644
  }
645
645
  if (createdOffer && state.graph?.id === 'default') {
646
646
  const offer = createdOffer;
647
- bars.push(notice('manager-created', `Workflow Manager created ${offer.label}. Open it?`, [
647
+ bars.push(notice('manager-created', `Graph Manager created ${offer.label}. Open it?`, [
648
648
  control('Open', () => { void openCreated(offer); }, 'btn-small primary'),
649
649
  control('Not now', () => { createdOffer = null; renderNotices(); }),
650
650
  ]));
@@ -123,7 +123,7 @@
123
123
  warnings.replaceChildren();
124
124
  for (const problem of problems(textarea.value, value)) {
125
125
  const row = el('p', undefined, 'skill-warning');
126
- row.title = 'A skill in a project\'s .agents/skills folder is found when the workflow runs in that project. Install or turn on skills in Settings > Skills.';
126
+ row.title = 'A skill in a project\'s .agents/skills folder is found when the graph runs in that project. Install or turn on skills in Settings > Skills.';
127
127
  const glyph = icon('warning'); if (glyph) row.append(glyph);
128
128
  row.append(el('span', problemText(problem)));
129
129
  warnings.append(row);
@@ -116,7 +116,7 @@
116
116
  path.setAttribute('fill', 'none');
117
117
  // The accent is a token, and an SVG attribute cannot name one: its value is read from the
118
118
  // page instead. A harness that loads this file on its own falls back to the register's value.
119
- path.setAttribute('stroke', typeof themeColor === 'function' ? themeColor('--accent', '#dedee3') : '#dedee3');
119
+ path.setAttribute('stroke', typeof themeColor === 'function' ? themeColor('--accent', '#ececec') : '#ececec');
120
120
  path.setAttribute('stroke-width', '2.5');
121
121
  path.setAttribute('stroke-dasharray', '6 4');
122
122
  layer.append(path); canvas.append(layer);
@@ -187,7 +187,7 @@
187
187
  clearSelection(); state.selectedEdge = edge;
188
188
  }, true);
189
189
  showInspector();
190
- status('Connection added. Set its inputs and save the workflow.');
190
+ status('Connection added. Set its inputs and save the graph.');
191
191
  };
192
192
  const cancel = e => {
193
193
  if (!active || !matchesPointer(e)) return;
@@ -246,7 +246,7 @@
246
246
  clearSelection();
247
247
  state.selectedIds = picked.map(node => node.id); state.selected = state.selectedIds.at(-1) || null;
248
248
  renderCanvas(); renderInspector(); if (picked.length) showInspector();
249
- status('Selected ' + picked.length + ' nodes.');
249
+ status(studio.selectedStepsText(picked.length));
250
250
  };
251
251
  const cancel = e => {
252
252
  if (matchesPointer(e)) cleanup(); // Aborted gestures never alter the selection.
@@ -292,14 +292,14 @@
292
292
  // the same ID), or if the source was removed in the current graph.
293
293
  if (externalSources.length && (copied.graphId !== state.graph.id ||
294
294
  externalSources.some(source => !Object.hasOwn(state.graph.nodes, source)))) {
295
- status('Copy Condition steps with their source steps before pasting into another workflow.', true);
295
+ status('Copy Condition steps with their source steps before pasting into another graph.', true);
296
296
  return;
297
297
  }
298
298
  // The free-tier rules live in app.js; a page or harness without them has no allowance to apply.
299
299
  const freeRefusal = typeof freeNodeRefusal === 'function' ? freeNodeRefusal(copied.nodes) : undefined;
300
300
  if (freeRefusal) { status(freeRefusal, true); return; }
301
301
  if (Object.keys(state.graph.nodes).length + copied.nodes.length > nodeLimit(state.graph)) {
302
- status('Workflow step limit reached. Remove steps before pasting.', true); return;
302
+ status('Graph step limit reached. Remove steps before pasting.', true); return;
303
303
  }
304
304
  pasteOffset += 40;
305
305
  const positions = copied.nodes.map(node => node.position || { x: 120, y: 120 });
@@ -397,7 +397,7 @@
397
397
  function showShortcuts() {
398
398
  const controls = globalThis.AndorraControls;
399
399
  if (typeof controls?.alert !== 'function') {
400
- alert('Workflow Editor shortcuts:\n' + SHORTCUTS.map(item => shortcutText(item) + ': ' + item.action).join('\n'));
400
+ alert('Graph Editor shortcuts:\n' + SHORTCUTS.map(item => shortcutText(item) + ': ' + item.action).join('\n'));
401
401
  return;
402
402
  }
403
403
  const list = document.createElement('dl');
@@ -415,7 +415,7 @@
415
415
  description.textContent = item.action;
416
416
  list.append(term, description);
417
417
  }
418
- void controls.alert({ title: 'Workflow Editor shortcuts', content: list });
418
+ void controls.alert({ title: 'Graph Editor shortcuts', content: list });
419
419
  }
420
420
 
421
421
  function installToolbar() {
@@ -436,7 +436,7 @@
436
436
  const canvas = byId('canvas');
437
437
  const map = svg('svg');
438
438
  map.id = 'studio-minimap'; map.setAttribute('viewBox', '0 0 160 100');
439
- map.setAttribute('role', 'img'); map.setAttribute('aria-label', 'Workflow minimap. Click to center on an area.');
439
+ map.setAttribute('role', 'img'); map.setAttribute('aria-label', 'Graph minimap. Click to center on an area.');
440
440
  canvas.append(map);
441
441
  }
442
442
  function refreshSnap() {
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  /* Test and Runs: the two secondary actions that stay in the toolbar. */
8
- .studio-secondary[aria-pressed="true"] { background: var(--selected, var(--accent-soft)); }
8
+ .studio-secondary[aria-pressed="true"] { background: var(--selected); }
9
9
 
10
10
  .studio-dialog {
11
11
  width: min(620px, calc(100vw - 40px)); max-height: min(84dvh, 860px);
@@ -16,25 +16,24 @@
16
16
  .studio-dialog::backdrop { background: var(--overlay); }
17
17
  .studio-dialog-head {
18
18
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
19
- padding: var(--space-3) var(--space-5); border-bottom: 1px solid var(--border); font-size: var(--type-section); font-weight: var(--weight-strong);
19
+ padding: var(--space-3) var(--space-5); border-bottom: 1px solid var(--border); font-size: var(--type-section); line-height: var(--leading-md); font-weight: var(--weight-strong);
20
20
  }
21
21
  .studio-dialog-body { padding: var(--space-5); max-height: calc(min(84dvh, 860px) - 65px); overflow: auto; display: flex; flex-direction: column; gap: 10px; }
22
- .studio-dialog-body > .help { margin: 0 0 8px; line-height: 1.5; }
23
- .studio-dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
22
+ .studio-dialog-body > .help { margin: 0 0 8px; line-height: var(--leading-xs); }
24
23
 
25
24
  .studio-code {
26
25
  margin: 8px 0 0; width: 100%; padding: 12px; border: 1px solid var(--border);
27
26
  background: var(--bg-card); border-radius: var(--radius-md); color: var(--text);
28
- font-size: var(--type-xs); line-height: 1.5; font-family: var(--font-mono); white-space: pre-wrap; overflow: auto; overflow-wrap: anywhere; max-height: 380px;
27
+ font-size: var(--type-xs); line-height: var(--leading-code); font-family: var(--font-mono); white-space: pre-wrap; overflow: auto; overflow-wrap: anywhere; max-height: 380px;
29
28
  }
30
29
 
31
30
  .studio-template { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
32
31
  .studio-template > button { min-width: 132px; text-align: left; }
33
- .studio-template p { margin: 0; color: var(--text-2); line-height: 1.45; }
32
+ .studio-template p { margin: 0; color: var(--text-2); line-height: var(--leading-sm); }
34
33
  .studio-history-row { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-md); }
35
34
  .studio-history-row > strong { display: block; margin-bottom: 4px; }
36
35
  .studio-history-row .help { margin: 4px 0 10px; }
37
- .studio-history-row > button { margin-right: 8px; }
36
+ .studio-history-row > button { margin-right: var(--space-2); }
38
37
  .studio-test-row { display: grid; gap: 5px; margin: 4px 0; }
39
38
  .studio-test-row > span { font-weight: var(--weight-strong); font-size: var(--type-xs); }
40
39
 
@@ -49,11 +48,14 @@
49
48
  .studio-run-head button { padding: 0 var(--space-2); font-size: var(--type-xs); }
50
49
  .studio-run-head span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
51
50
  .studio-run-log { flex: 1; overflow: auto; display: flex; flex-direction: column; align-items: stretch; padding: 5px 14px 12px; }
51
+ /* A log row is a button (it selects the step), so it undoes the button's centring: a log reads from
52
+ its left edge. */
52
53
  .studio-run-event {
54
+ justify-content: flex-start;
53
55
  border: 0; border-bottom: 1px solid var(--border); border-radius: 0; text-align: left; padding: 6px 8px;
54
- font-family: var(--font-mono); font-size: var(--type-xs); font-weight: var(--weight-regular); line-height: 1.4; white-space: normal; background: transparent; color: var(--text-2);
56
+ font-family: var(--font-mono); font-size: var(--type-xs); font-weight: var(--weight-regular); line-height: var(--leading-code); white-space: normal; background: transparent; color: var(--text-2);
55
57
  }
56
- .studio-run-event:hover:not(:disabled) { background: var(--hover, var(--bg-card)); }
58
+ .studio-run-event:hover:not(:disabled) { background: var(--hover); }
57
59
 
58
60
  #canvas .studio-group-layer { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 0; }
59
61
  #canvas .studio-group {
@@ -68,13 +70,13 @@
68
70
  position: absolute; top: 5px; right: 8px; border: 0; background: var(--bg-input);
69
71
  color: var(--text-2); padding: 1px var(--space-2); min-height: 0; border-radius: var(--radius-xs); pointer-events: auto;
70
72
  }
71
- #canvas .studio-wire-preview { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 7; }
72
- #canvas .studio-marquee { position: absolute; border: 1px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius-xs); pointer-events: none; z-index: 7; }
73
+ #canvas .studio-wire-preview { position: absolute; top: 0; left: 0; pointer-events: none; z-index: var(--z-raised); }
74
+ #canvas .studio-marquee { position: absolute; border: 1px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius-xs); pointer-events: none; z-index: var(--z-raised); }
73
75
 
74
76
  #studio-minimap {
75
77
  position: absolute; bottom: var(--space-4); right: var(--space-4); width: 160px; height: 100px;
76
78
  border: 1px solid var(--border); background: var(--bg-input); border-radius: var(--card-radius);
77
- box-shadow: var(--shadow-menu); z-index: 4; cursor: crosshair; overflow: hidden;
79
+ box-shadow: var(--shadow-menu); z-index: var(--z-raised); cursor: crosshair; overflow: hidden;
78
80
  }
79
81
  /* The map is a sketch of the canvas: nodes are quiet blocks in the card's own outline colour, so
80
82
  the viewport's frame is the brightest thing on it. Like the cards, an end carries no hue. */
@@ -84,11 +86,12 @@
84
86
  the rectangle unfilled rather than drawing it as a solid block. */
85
87
  #studio-minimap .studio-minimap-viewport { fill: transparent; fill: color-mix(in srgb, var(--accent) 10%, transparent); stroke: var(--border-strong); stroke-width: 1; rx: 3px; vector-effect: non-scaling-stroke; pointer-events: none; }
86
88
 
87
- /* Node run states: a steady 2px ring, with no glow and nothing that loops. The live state is the
88
- ink accent; the settled states are the two colours the chrome allows, done and error. */
89
+ /* Node run states: a steady ring, with no glow and nothing that loops. The live state is the ink
90
+ accent; a finished step is settled and ordinary, so it takes a quiet 1px ring of the muted ink
91
+ rather than a colour (no green in the chrome, ADR 0022); a failure is the one red. */
89
92
  .node.studio-node-preview { box-shadow: var(--lift-2), 0 0 0 2px var(--warn); }
90
93
  .node.studio-node-running { box-shadow: var(--lift-2), 0 0 0 2px var(--accent); }
91
- .node.studio-node-complete { box-shadow: var(--lift-2), 0 0 0 2px var(--ok); }
94
+ .node.studio-node-complete { box-shadow: var(--lift-2), 0 0 0 1px var(--text-3); }
92
95
  .node.studio-node-failed { box-shadow: var(--lift-2), 0 0 0 2px var(--err); }
93
96
  .node.studio-node-cancelled { box-shadow: var(--lift-2), 0 0 0 2px var(--text-3); }
94
97
 
@@ -87,6 +87,61 @@
87
87
  }
88
88
  let inspectorContextId = '';
89
89
 
90
+ // The run log in words (D13): the journal's event types, a run's status, a duration and a count
91
+ // as a person reads them, never the engine's identifiers ("graph.node.completed", "failed",
92
+ // "90000ms"). An event this table does not know yet is named from its last words, without the
93
+ // engine's prefixes.
94
+ const EVENT_WORDS = {
95
+ 'graph.started': 'Run started', 'graph.completed': 'Run finished', 'graph.stopped': 'Run stopped',
96
+ 'graph.paused': 'Run paused', 'graph.resumed': 'Run resumed', 'graph.finalization.resumed': 'Finishing resumed',
97
+ 'graph.node.started': 'Step started', 'graph.node.completed': 'Step finished', 'graph.edge.activated': 'Route taken',
98
+ 'graph.approval': 'Approval requested', 'approval.requested': 'Approval requested',
99
+ 'approval.approved': 'Approved', 'approval.denied': 'Denied',
100
+ 'graph.todos.updated': 'To-dos updated', 'graph.widgets.updated': 'Widgets updated',
101
+ 'graph.skill.activated': 'Skill used', 'graph.skill.missing': 'Skill missing',
102
+ 'node.tool.started': 'Tool started', 'node.tool.completed': 'Tool finished', 'node.tool.failed': 'Tool failed',
103
+ 'node.model.response': 'Model response', 'agent.model.completed': 'Model response',
104
+ };
105
+ function eventWords(type) {
106
+ if (Object.hasOwn(EVENT_WORDS, type)) return EVENT_WORDS[type];
107
+ const words = String(type || '').split('.').filter(part => !['graph', 'node', 'agent'].includes(part))
108
+ .join(' ').replace(/[_-]+/g, ' ').trim();
109
+ return words ? words.charAt(0).toUpperCase() + words.slice(1) : 'Event';
110
+ }
111
+ /** How a run ended or stands, the desktop's words (RunsView runStatusLabel): one word per state, so a
112
+ * stop the person asked for is Stopped, a run that ended on a question needs your input, and every
113
+ * failure is Failed (P-ATN-07). `test/graph-studio-review-regressions.test.ts` holds the two lists to
114
+ * each other. */
115
+ function runStatusWords(status) {
116
+ return {
117
+ succeeded: 'Succeeded', running: 'Running', interrupted: 'Interrupted', cancelled: 'Stopped',
118
+ needs_clarification: 'Needs your input', infrastructure_error: 'Failed',
119
+ unknown: 'Unknown',
120
+ }[status] || 'Failed';
121
+ }
122
+ /** A duration the way the desktop's metrics read it: tenths under a minute, then "1m 30s". */
123
+ function durationWords(ms) {
124
+ if (!Number.isFinite(ms) || ms < 0) return '';
125
+ const tenths = Math.round(ms / 100) / 10;
126
+ if (tenths < 60) return tenths + 's';
127
+ const total = Math.round(ms / 1000), hours = Math.floor(total / 3600), minutes = Math.floor((total % 3600) / 60), seconds = total % 60;
128
+ return hours ? hours + 'h ' + minutes + 'm ' + seconds + 's' : minutes + 'm ' + seconds + 's';
129
+ }
130
+ const countWords = value => (Number.isFinite(value) ? value : 0).toLocaleString('en-US');
131
+ /** What a marquee selected, with the noun agreeing: "Selected 1 step." / "Selected 7 steps." */
132
+ const selectedStepsText = count => 'Selected ' + count + (count === 1 ? ' step.' : ' steps.');
133
+ /** One line of the run log: when, which step, what happened, how long, what it used. */
134
+ function runEventLine(event, name) {
135
+ const parts = [];
136
+ if (event.time) parts.push(new Date(event.time).toLocaleTimeString());
137
+ parts.push(name, eventWords(event.type) + (event.outcome ? ' (' + event.outcome + ')' : ''));
138
+ // How a stopped run ended, unless the event's own words already say it ("Run stopped" for a stop).
139
+ if (event.type === 'graph.stopped' && event.status && !['succeeded', 'cancelled'].includes(event.status)) parts.push(runStatusWords(event.status));
140
+ if (event.durationMs !== null && event.durationMs !== undefined) { const took = durationWords(event.durationMs); if (took) parts.push(took); }
141
+ if (event.usage) parts.push(countWords(event.usage.inputTokens) + ' in / ' + countWords(event.usage.outputTokens) + ' out');
142
+ return parts.join(' · ');
143
+ }
144
+
90
145
  function diffGraph(before, after) {
91
146
  const a = before.nodes || {}, b = after.nodes || {};
92
147
  const add = Object.keys(b).filter(id => !Object.hasOwn(a, id));
@@ -111,7 +166,7 @@
111
166
  '\nChanged steps: ' + (delta.changed.join(', ') || 'none') +
112
167
  '\nConnections added: ' + delta.edgesAdded +
113
168
  '\nConnections removed: ' + delta.edgesRemoved +
114
- '\nWorkflow settings changed: ' + (JSON.stringify({
169
+ '\nGraph settings changed: ' + (JSON.stringify({
115
170
  name: before.name, entry: before.entry, limits: before.limits, widgets: before.widgets,
116
171
  inputSchema: before.inputSchema, stateSchema: before.stateSchema, metadata: before.metadata
117
172
  }) !== JSON.stringify({
@@ -123,6 +178,8 @@
123
178
  if (state.dirty && !await askConfirm({ title: 'Replace your unsaved edits?', message: 'Recoverable drafts are saved separately.', confirmLabel: 'Replace', tone: 'danger' })) return false;
124
179
  clearSelection();
125
180
  state.graph = dropLegacyTokenFields(copy(next));
181
+ // A replacement has no saved form on the canvas to return to, so it stays unsaved until saved.
182
+ state.savedKey = null;
126
183
  state.dirty = true;
127
184
  state.undo = [];
128
185
  state.redo = [];
@@ -143,7 +200,7 @@
143
200
  async function importGraphJson(data) {
144
201
  if (typeof canCreateGraph === 'function' && !canCreateGraph()) throw new Error(FREE_CREATE_TIP);
145
202
  if (!data || typeof data !== 'object' || Array.isArray(data) || !data.nodes || typeof data.nodes !== 'object'
146
- || Array.isArray(data.nodes) || !Array.isArray(data.edges)) throw new Error('The file is not an Andorra workflow.');
203
+ || Array.isArray(data.nodes) || !Array.isArray(data.edges)) throw new Error('The file is not an Andorra graph.');
147
204
  const next = { ...data, id: newId(), revision: 0 };
148
205
  delete next.editorMigration;
149
206
  delete next.pendingProviderNodes; // a shared file never carries this editor's draft marker
@@ -158,8 +215,8 @@
158
215
  const pending = Object.values(validated.graph.nodes)
159
216
  .filter(node => node.type === 'agent' && !node.provider).map(node => node.id);
160
217
  if (await applyDraft(validated.graph, pending.length
161
- ? 'Imported workflow. Assign a model profile to every outlined step, then save.'
162
- : 'Imported workflow validated. Save it to keep it.',
218
+ ? 'Imported graph. Assign a model profile to every outlined step, then save.'
219
+ : 'Imported graph validated. Save it to keep it.',
163
220
  // The install runs after applyDraft's marker-stripping copy, so the requirements are
164
221
  // mirrored onto the live draft here — that mirror is what an autosave persists and a
165
222
  // later draft recovery restores.
@@ -171,32 +228,32 @@
171
228
  }
172
229
  async function importGraphFile(file) {
173
230
  if (!file) throw new Error('Choose a JSON file first.');
174
- if (file.size > 450 * 1024) throw new Error('The JSON file exceeds the workflow size limit.');
231
+ if (file.size > 450 * 1024) throw new Error('The JSON file exceeds the graph size limit.');
175
232
  return importGraphJson(JSON.parse(await file.text()));
176
233
  }
177
234
 
178
235
  function openImport() {
179
- modal('Import workflow JSON', body => {
180
- paragraph(body, 'Import creates a new workflow ID and never overwrites the original workflow. Only validated workflow JSON is accepted.');
236
+ modal('Import graph JSON', body => {
237
+ paragraph(body, 'Import creates a new graph ID and never overwrites the original graph. Only validated graph JSON is accepted.');
181
238
  // The app's drop zone and Browse button; the platform's bare file input only where that
182
239
  // layer is absent.
183
240
  const picker = typeof globalThis.AndorraControls?.filePicker === 'function'
184
- ? globalThis.AndorraControls.filePicker({ accept: '.json,application/json', label: 'Choose a workflow JSON file', hint: 'or drop it here · up to 450 KB' })
241
+ ? globalThis.AndorraControls.filePicker({ accept: '.json,application/json', label: 'Choose a graph JSON file', hint: 'or drop it here · up to 450 KB' })
185
242
  : (() => {
186
243
  const input = element('input');
187
244
  input.type = 'file';
188
245
  input.accept = '.json,application/json';
189
- input.setAttribute('aria-label', 'Choose workflow JSON');
246
+ input.setAttribute('aria-label', 'Choose graph JSON');
190
247
  return { element: input, file: () => input.files?.[0] };
191
248
  })();
192
249
  const feedback = element('p', '', 'help');
193
250
  feedback.setAttribute('role', 'status');
194
251
  body.append(picker.element, feedback);
195
- body.append(action('Import as New Workflow', async () => {
252
+ body.append(action('Import as New Graph', async () => {
196
253
  const chosen = picker.file();
197
254
  if (!chosen) throw new Error('Choose a JSON file first.');
198
255
  if (await importGraphFile(chosen)) {
199
- feedback.textContent = 'Import complete: new unsaved workflow ready.';
256
+ feedback.textContent = 'Import complete: new unsaved graph ready.';
200
257
  }
201
258
  }, 'primary'));
202
259
  });
@@ -252,15 +309,17 @@
252
309
  }
253
310
 
254
311
  function openTemplates() {
255
- modal('Start from a workflow template', body => {
312
+ modal('Start from a graph template', body => {
256
313
  paragraph(body, 'Templates are editable local drafts. They never run or save automatically.');
257
314
  for (const [id, name, desc] of [
258
315
  ['fast', 'Fast Fix', 'Direct coding-agent flow without an intake Orchestrator'],
259
316
  ['review', 'Review and Repair', 'Implement, review, then retry defects for as long as the run clock allows'],
260
317
  ['qa', 'QA Gate', 'Research, implement, and pass through an independent read-only QA Agent'],
261
318
  ]) {
319
+ // Every row is one choice among equals, so none takes the blue fill: that marks a screen's
320
+ // one action (A1), and three of them stacked named none.
262
321
  const row = element('div', undefined, 'studio-template');
263
- row.append(action(name, () => newTemplate(id), 'primary'));
322
+ row.append(action(name, () => newTemplate(id), 'btn-small'));
264
323
  paragraph(row, desc);
265
324
  body.append(row);
266
325
  }
@@ -282,7 +341,7 @@
282
341
  const current = () => !controller.signal.aborted && dialog.open &&
283
342
  state.graph === graphAtOpen && graphFingerprint() === fingerprint;
284
343
  paragraph(body, 'Snapshots are immutable. Restoring a past version opens a draft; saving creates a new version.');
285
- if (!rows.length) { paragraph(body, 'No saved versions. Save this workflow first.'); return; }
344
+ if (!rows.length) { paragraph(body, 'No saved versions. Save this graph first.'); return; }
286
345
  for (const row of rows) {
287
346
  const item = element('section', undefined, 'studio-history-row');
288
347
  item.append(element('strong', 'Version ' + row.revision + ' · ' + row.name));
@@ -293,12 +352,13 @@
293
352
  try { return await api('/api/graphs/' + encodeURIComponent(graphId) + '/revisions/' + row.revision, undefined, { signal: controller.signal }); }
294
353
  catch (error) { if (controller.signal.aborted || !current()) return null; throw error; }
295
354
  };
355
+ // Each version offers the same two actions, so neither is the screen's primary (A1).
296
356
  item.append(action('Compare', async () => {
297
357
  if (!current()) return;
298
358
  const snapshot = await fetchRevision();
299
359
  if (!snapshot || !current()) return;
300
360
  detail.textContent = describeDiff(snapshot, graphAtOpen);
301
- }));
361
+ }, 'btn-small'));
302
362
  item.append(action('Restore as Draft', async () => {
303
363
  if (!current()) return;
304
364
  const snapshot = await fetchRevision();
@@ -308,7 +368,7 @@
308
368
  if (await applyDraft(next, 'Restored version ' + row.revision + ' into a draft. Save to publish it.')) {
309
369
  shut(dialog);
310
370
  }
311
- }, 'primary'));
371
+ }, 'btn-small'));
312
372
  item.append(detail);
313
373
  body.append(item);
314
374
  }
@@ -356,7 +416,7 @@
356
416
  const fingerprint = graphFingerprint();
357
417
  const candidate = await api('/api/preview', { graph: state.graph, choices });
358
418
  if (!acceptPreviewIfCurrent(candidate, fingerprint)) {
359
- results.textContent = 'Workflow changed during preview. Run the preview again against the updated draft.';
419
+ results.textContent = 'Graph changed during preview. Run the preview again against the updated draft.';
360
420
  return;
361
421
  }
362
422
  const steps = preview.steps.map((step, i) => (i + 1) + '. ' + step.nodeName + ' → ' + step.outcome +
@@ -370,7 +430,7 @@
370
430
  }, 'primary'));
371
431
  body.append(results);
372
432
  body.append(action('How to Run Live', () => {
373
- paragraph(body, 'Open Andorra Code in your project, select the saved workflow using /graph, then enter your task. The CLI retains its normal permission and approval gates. Save the draft first.');
433
+ paragraph(body, 'Open Andorra Code in your project, select the saved graph using /graph, then enter your task. The CLI retains its normal permission and approval gates. Save the draft first.');
374
434
  }));
375
435
  }, true);
376
436
  }
@@ -455,7 +515,7 @@
455
515
  if (nodes.length < 2) { status('Select at least two steps to group.', true); return; }
456
516
  const ids = new Set(nodes.map(node => node.id));
457
517
  if (!canCreateLayoutGroup(state.graph?.metadata?.studioLayoutGroupsV1 || [], ids)) {
458
- status('A workflow supports at most 50 layout groups. Remove or merge a group before creating another.', true);
518
+ status('A graph supports at most 50 layout groups. Remove or merge a group before creating another.', true);
459
519
  return;
460
520
  }
461
521
  const name = await askText({ title: 'Name this layout group', label: 'Layout group name', value: 'New group', confirmLabel: 'Create Group', maxLength: 80 });
@@ -469,7 +529,7 @@
469
529
  id: 'group-' + crypto.randomUUID().slice(0, 8), name: name.trim(), nodeIds: [...ids],
470
530
  }];
471
531
  }, true);
472
- status('Layout group created. Groups are saved with the workflow.');
532
+ status('Layout group created. Groups are saved with the graph.');
473
533
  }
474
534
 
475
535
  function renderDebugger() {
@@ -482,18 +542,14 @@
482
542
  if (!selectedRun) { paragraph(log, 'Select a saved run to inspect its step transitions.'); return; }
483
543
  const matchesCanvas = runMatchesCanvas();
484
544
  if (!matchesCanvas && liveEvents.length) {
485
- paragraph(log, 'Historical run differs from the current workflow version or unsaved draft. Canvas overlays and step navigation are disabled.');
545
+ paragraph(log, 'Historical run differs from the current graph version or unsaved draft. Canvas overlays and step navigation are disabled.');
486
546
  }
487
547
  for (const event of liveEvents.slice(-100).reverse()) {
488
548
  const item = element('button', undefined, 'studio-run-event');
489
549
  const focusId = event.nodeId || event.source;
490
550
  const name = (matchesCanvas ? state.graph?.nodes[focusId]?.name : undefined)
491
- || focusId || 'Workflow';
492
- item.textContent = (event.time ? new Date(event.time).toLocaleTimeString() + ' · ' : '') +
493
- name + ' · ' + event.type +
494
- (event.outcome ? ' (' + event.outcome + ')' : '') +
495
- (event.durationMs !== null ? ' · ' + event.durationMs + 'ms' : '') +
496
- (event.usage ? ' · ' + event.usage.inputTokens + ' in / ' + event.usage.outputTokens + ' out' : '');
551
+ || focusId || 'Graph';
552
+ item.textContent = runEventLine(event, name);
497
553
  item.disabled = !matchesCanvas || !state.graph?.nodes[focusId];
498
554
  item.onclick = () => {
499
555
  if (runMatchesCanvas() && focusId && state.graph?.nodes[focusId]) {
@@ -518,8 +574,9 @@
518
574
  if (!select) return;
519
575
  select.replaceChildren(new Option('Choose a run…', ''));
520
576
  for (const run of runs) {
577
+ // A version is "v3" in a picker and "Version 3" in prose (D13).
521
578
  const option = new Option((run.startedAt ? new Date(run.startedAt).toLocaleString() + ' · ' : '') +
522
- run.status + (run.graphRevision !== null ? ' · r' + run.graphRevision : ''), run.id);
579
+ runStatusWords(run.status) + (Number.isInteger(run.graphRevision) ? ' · v' + run.graphRevision : ''), run.id);
523
580
  select.append(option);
524
581
  }
525
582
  if (!runs.some(run => run.id === selectedRun)) selectedRun = runs[0]?.id || '';
@@ -538,7 +595,7 @@
538
595
  event.type === 'graph.started' && Number.isInteger(event.graphRevision))?.graphRevision;
539
596
  inspectedRevision = Number.isInteger(summary?.graphRevision) ? summary.graphRevision
540
597
  : (Number.isInteger(startedRevision) ? startedRevision : null);
541
- if (note) note.textContent = 'Status: ' + response.status +
598
+ if (note) note.textContent = runStatusWords(response.status) +
542
599
  (response.truncated ? ' · Showing recent events only' : '');
543
600
  } else {
544
601
  liveEvents = [];
@@ -574,8 +631,9 @@
574
631
  let runsButton, hostMenuGroup;
575
632
 
576
633
  // The toolbar's overflow menu: the actions used now and then, behind one "More actions" button.
577
- // It follows the menu-button pattern: arrows move between items, Escape and Tab close it, and
578
- // a click outside dismisses it.
634
+ // It follows the menu-button pattern: arrows move between items, Escape and Tab close it and hand
635
+ // focus back to the button (the menu is hiding, so the browser's own Tab would drop focus to the
636
+ // page), and a click outside dismisses it.
579
637
  function installMenu() {
580
638
  const more = $studio('more'), menu = $studio('more-menu'), wrap = $studio('more-wrap');
581
639
  if (!more || !menu) return;
@@ -606,8 +664,7 @@
606
664
  list[(index + (event.key === 'ArrowDown' ? 1 : -1) + list.length) % list.length]?.focus();
607
665
  } else if (event.key === 'Home') { event.preventDefault(); list[0]?.focus(); }
608
666
  else if (event.key === 'End') { event.preventDefault(); list.at(-1)?.focus(); }
609
- else if (event.key === 'Escape') { event.preventDefault(); close(true); }
610
- else if (event.key === 'Tab') close();
667
+ else if (event.key === 'Escape' || event.key === 'Tab') { event.preventDefault(); close(true); }
611
668
  });
612
669
  // Choosing an item closes the menu before the item's own work begins.
613
670
  menu.addEventListener('click', event => { if (event.target.closest?.('[role="menuitem"]')) close(); });
@@ -666,7 +723,7 @@
666
723
  const panel = element('section', undefined, 'studio-run-panel');
667
724
  panel.id = 'studio-run-panel'; panel.hidden = true;
668
725
  const head = element('div', undefined, 'studio-run-head');
669
- head.append(element('strong', 'Workflow execution timeline'));
726
+ head.append(element('strong', 'Graph execution timeline'));
670
727
  const select = element('select'); select.id = 'studio-run-select';
671
728
  select.setAttribute('aria-label', 'Choose saved run');
672
729
  select.onchange = async () => {
@@ -736,6 +793,6 @@
736
793
  }
737
794
  }
738
795
 
739
- window.AndorraStudio = { heading, canvas, inspector: enhanceInspector, createGroup, canCreateLayoutGroup, describeDiff, nodeStatuses, nodeActivityTotals, representableSourceField, refreshRunList, toggleDebugger, runMatchesCanvas, setHostMenu, previewMatchesDraft, acceptPreviewIfCurrent, openHistory, openImport, importGraphJson, importGraphFile };
796
+ window.AndorraStudio = { selectedStepsText, eventWords, runStatusWords, durationWords, runEventLine, heading, canvas, inspector: enhanceInspector, createGroup, canCreateLayoutGroup, describeDiff, nodeStatuses, nodeActivityTotals, representableSourceField, refreshRunList, toggleDebugger, runMatchesCanvas, setHostMenu, previewMatchesDraft, acceptPreviewIfCurrent, openHistory, openImport, importGraphJson, importGraphFile };
740
797
  initialize();
741
798
  })();