dsh-taskbridge 1.7.1 → 1.8.1

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 (84) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/LICENSE +21 -21
  3. package/README.md +733 -877
  4. package/THIRD_PARTY_NOTICES.txt +23 -23
  5. package/antigravity/agents/dsh-taskbridge.md +32 -0
  6. package/antigravity/skills/dsh-taskbridge/SKILL.md +51 -0
  7. package/codex/dsh-taskbridge.toml +181 -631
  8. package/cordis.patch.yml +6 -6
  9. package/docs/INTRODUCTION.md +122 -295
  10. package/docs/INTRODUCTION.zh.md +134 -279
  11. package/docs/antigravity-integration.md +42 -0
  12. package/docs/auth-contract.md +138 -138
  13. package/docs/claude-code.md +6 -11
  14. package/docs/codex-integration.md +2 -2
  15. package/docs/contracts-stage-b.md +443 -443
  16. package/docs/conversation-placement.md +7 -6
  17. package/docs/plugin-market.md +30 -30
  18. package/docs/redaction-contract.md +170 -170
  19. package/docs/releases/1.7.0.zh.md +11 -11
  20. package/docs/releases/1.8.0.zh.md +16 -0
  21. package/docs/releases/1.8.1.zh.md +24 -0
  22. package/docs/runtime-compatibility.md +1 -1
  23. package/docs/taskbridge-upgrade.md +28 -28
  24. package/docs/taskdispatch-upgrade.md +25 -25
  25. package/docs/workspace-contract.md +538 -538
  26. package/docs/workspace-grouping.md +126 -126
  27. package/icon.svg +1 -1
  28. package/lib/client.d.ts +804 -699
  29. package/lib/client.js +7 -7
  30. package/locale/en.json +1 -1
  31. package/locale/zh.json +1 -1
  32. package/package.json +150 -144
  33. package/src/antigravity/installer.js +1068 -0
  34. package/src/antigravity/seam.js +142 -0
  35. package/src/auth/fence.js +361 -361
  36. package/src/auth/grants.js +789 -789
  37. package/src/client/api.js +266 -3
  38. package/src/client/index.jsx +224 -11
  39. package/src/client/sidebar.jsx +862 -862
  40. package/src/client/styles.js +624 -624
  41. package/src/client/task-cleanup.js +429 -304
  42. package/src/client/task-records-table.jsx +217 -217
  43. package/src/client/task-view.js +307 -307
  44. package/src/client/workspace-groups.js +482 -482
  45. package/src/client/workspaces-browser.jsx +770 -770
  46. package/src/codex/agent-ownership.js +270 -270
  47. package/src/codex/installer.js +6 -0
  48. package/src/codex/toml.js +784 -784
  49. package/src/config/defaults.js +11 -15
  50. package/src/config/redact.js +245 -245
  51. package/src/config/store.js +186 -186
  52. package/src/credentials/seam.js +202 -202
  53. package/src/http/respond.js +6 -5
  54. package/src/http/user-plane.js +83 -1
  55. package/src/index.js +25 -0
  56. package/src/jobs/diagnostics.js +15 -15
  57. package/src/jobs/engine.js +1 -0
  58. package/src/jobs/history.js +1 -1
  59. package/src/jobs/plan-store.js +1103 -1020
  60. package/src/jobs/record-cleanup.js +452 -7
  61. package/src/jobs/review-note.js +63 -63
  62. package/src/jobs/task-descriptions.js +82 -82
  63. package/src/jobs/task-display.js +73 -73
  64. package/src/jobs/task-tree.js +786 -786
  65. package/src/jobs/title.js +134 -134
  66. package/src/mcp/continuation.js +317 -317
  67. package/src/mcp/server.js +34 -27
  68. package/src/mcp/wait.js +34 -15
  69. package/src/model/connectivity.js +371 -371
  70. package/src/model/discovery.js +582 -582
  71. package/src/model/native-catalog.js +68 -68
  72. package/src/model/openai-adapter.js +671 -671
  73. package/src/model/probe.js +264 -264
  74. package/src/model/providers.js +756 -756
  75. package/src/model/routing.js +321 -321
  76. package/src/runtime/agent-runner.js +1 -0
  77. package/src/runtime/permissions.js +1619 -1619
  78. package/src/runtime/question-call.js +162 -162
  79. package/src/runtime/questions.js +909 -909
  80. package/src/runtime/session-placement.js +36 -1
  81. package/src/runtime/worker-prompt.js +61 -55
  82. package/src/workspace/audit.js +775 -775
  83. package/src/workspace/preflight.js +424 -424
  84. package/src/workspace/worktrees.js +833 -679
@@ -50,6 +50,8 @@
50
50
  import { createContext, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from 'react';
51
51
 
52
52
  import {
53
+ ANTIGRAVITY_ACTIONS,
54
+ CODEX_ACTIONS,
53
55
  CONNECTIVITY_LAYERS,
54
56
  CONVERSATION_POLICY_LABEL,
55
57
  EFFORT_LABELS,
@@ -64,11 +66,13 @@ import {
64
66
  PERMISSION_STATE_LABELS,
65
67
  REVIEW_STATE_LABELS,
66
68
  REVIEW_VERDICT_LABELS,
69
+ ROUTES,
67
70
  SUPPORTED_PROTOCOLS,
68
71
  TASK_STATES,
69
72
  TREE_ORPHAN_LABELS,
70
73
  TREE_STATUS_LABELS,
71
74
  TREE_STATUS_TONES,
75
+ antigravityTargetView,
72
76
  boundedText,
73
77
  changedFiles,
74
78
  clone,
@@ -76,6 +80,7 @@ import {
76
80
  codexTargetView,
77
81
  createApi,
78
82
  createStore,
83
+ describeAntigravityOutcome,
79
84
  describeCodexOutcome,
80
85
  describeError,
81
86
  documentFromDraft,
@@ -124,9 +129,11 @@ import {
124
129
  import { registerSessionRowMarker } from './workspaces-browser.jsx';
125
130
  import {
126
131
  cleanupCandidates,
132
+ cleanupConfirmText,
127
133
  cleanupProjection,
128
134
  cleanupSelectionSummary,
129
135
  cleanupWarningText,
136
+ selectCleanupCandidatesByPreset,
130
137
  toggleCleanupSelection,
131
138
  withSelectionState,
132
139
  } from './task-cleanup.js';
@@ -1505,12 +1512,15 @@ function PresetsCard({ store, snapshot }) {
1505
1512
  }
1506
1513
 
1507
1514
  /**
1508
- * Monitoring controls: the two no-progress reminders and the repeated-failure reminder.
1515
+ * Monitoring controls: the start-elapsed local self-check, the commander delivery
1516
+ * progress check, and the repeated-failure reminder.
1509
1517
  *
1510
- * There is exactly ONE time base — consecutive time without real progress — and TWO
1511
- * duration controls on it: the local self-check (default 10 minutes) and the run progress
1512
- * check reported to the dispatcher (default 40 minutes). A task that keeps working never
1513
- * reaches either, whatever its total runtime; a run's length is never itself a reminder.
1518
+ * `selfCheckSeconds` runs one read-only local inspection after execution starts
1519
+ * (default 10 minutes; active work does not postpone it). `attentionSeconds` reports a
1520
+ * run progress check to the commander when nothing new has been returned for that span
1521
+ * (default 40 minutes; internal activity, heartbeats, and self-checks do not reset it).
1522
+ * Neither reminder is a total-runtime cap and neither can cancel, restart, or resubmit
1523
+ * a task.
1514
1524
  *
1515
1525
  * What this card deliberately does NOT do: it does not submit work, does not read a
1516
1526
  * task, does not call a model, and does not create a monitoring process of its own. It
@@ -1612,7 +1622,7 @@ function MonitoringCard({ store, snapshot }) {
1612
1622
  <strong>运行进度检查</strong>从<strong>最近一次真正回传给派工方的新成果</strong>算起(第一段基准是运行开始),
1613
1623
  不是"没有进展",也不是运行总时长:DSH 内部的模型输出、思考步骤、工具调用与结果,心跳、空轮询、页面刷新、
1614
1624
  等待授权或等待问题答复、重复失败提醒、检查本身,以及本机自检的结论,<strong>都不算新成果</strong>。
1615
- 当前等待通道只在任务结束时交付成果,所以运行一开始就长时间没有新交付的任务,会在约 40 分钟时被提醒一次。
1625
+ 当前等待通道只在任务结束时交付成果,所以运行一开始就长时间没有新交付的任务,会在到达你设定的「运行进度检查」间隔时被提醒一次。
1616
1626
  <strong>这些检查完全在本机进行,不会调用任何大模型,也不消耗 token;提醒只是提示,绝不取消、重启或重新提交任务。</strong>
1617
1627
  任一间隔填 <strong>0</strong> 即关闭对应提醒,两项可以分别关闭。
1618
1628
  </p>
@@ -1803,7 +1813,7 @@ function ExecutionPanel({ store, snapshot }) {
1803
1813
  store.editDraft((current) => { current.worker.maxParallelism = value; });
1804
1814
  }}
1805
1815
  />
1806
- <Field label="工作区隔离" htmlFor="dshdg-worker-isolation" hint="默认独立工作树;共享工作区需要你明确选择。">
1816
+ <Field label="工作区隔离" htmlFor="dshdg-worker-isolation" hint="默认独立工作树;共享工作区需要你明确选择。两种模式均要求目标目录为已初始化且至少有 1 次 commit 的 Git 仓库根目录。">
1807
1817
  <select
1808
1818
  id="dshdg-worker-isolation"
1809
1819
  value={worker.isolation ?? ISOLATION_MODES[0]}
@@ -2637,6 +2647,7 @@ function TaskTreeItem({ node, store, snapshot, collapsed, setCollapsed, expanded
2637
2647
  }
2638
2648
 
2639
2649
  function TaskTreePanel({ store, snapshot, onOpen }) {
2650
+ const nav = useContext(SessionNavigation);
2640
2651
  const view = snapshot.tree ?? null;
2641
2652
  const [recordView, setRecordView] = useState('recent');
2642
2653
  const [collapsed, setCollapsed] = useState(() => new Set());
@@ -2653,6 +2664,11 @@ function TaskTreePanel({ store, snapshot, onOpen }) {
2653
2664
  const [cleanupMode, setCleanupMode] = useState(false);
2654
2665
  const [cleanupSelection, setCleanupSelection] = useState({});
2655
2666
  const [cleanupConfirm, setCleanupConfirm] = useState(false);
2667
+ const [cleanupOptions, setCleanupOptions] = useState({
2668
+ archiveSessions: false,
2669
+ removeWorktrees: false,
2670
+ cleanPlans: false,
2671
+ });
2656
2672
  if (view === null) {
2657
2673
  return <p className="dshdg-faint" data-dshdg-tree-unavailable="">
2658
2674
  {snapshot.tasksError ? '任务树读取失败,下面显示已有记录。' : '当前宿主按列表显示任务。'}
@@ -2675,14 +2691,28 @@ function TaskTreePanel({ store, snapshot, onOpen }) {
2675
2691
  : groups.flatMap((group) => group.roots);
2676
2692
  const candidates = cleanupCandidates({ roots });
2677
2693
  const canCleanup = view.cleanupAvailable === true && (view.counts?.taskChains ?? 0) > 0;
2694
+ const canSweepOrphans = view.cleanupAvailable === true && typeof store?.cleanupOrphans === 'function';
2678
2695
  const cleanupActive = cleanupMode && canCleanup;
2679
2696
  const cleanupBusy = snapshot.loading?.cleanup === true;
2697
+ const orphanSweepBusy = snapshot.loading?.cleanupOrphans === true;
2680
2698
  const summary = cleanupSelectionSummary(cleanupSelection, candidates);
2681
2699
  const mayDelete = dateError === null && !cleanupBusy && summary.executable;
2682
2700
  function clearSelection() {
2683
2701
  setCleanupSelection({});
2684
2702
  setCleanupConfirm(false);
2685
2703
  }
2704
+ function applyPresetSelection(preset) {
2705
+ setCleanupSelection(selectCleanupCandidatesByPreset(candidates, preset));
2706
+ setCleanupConfirm(false);
2707
+ }
2708
+ function toggleCleanupOption(key) {
2709
+ setCleanupOptions((prev) => ({ ...prev, [key]: !prev[key] }));
2710
+ setCleanupConfirm(false);
2711
+ }
2712
+ async function runOrphanSweep() {
2713
+ if (orphanSweepBusy || cleanupBusy) return;
2714
+ await store.cleanupOrphans({ hostWorkspaces: nav?.workspaces });
2715
+ }
2686
2716
  const updateFilter = (setter) => (event) => {
2687
2717
  setter(event.target.value);
2688
2718
  clearSelection();
@@ -2703,6 +2733,7 @@ function TaskTreePanel({ store, snapshot, onOpen }) {
2703
2733
  function leaveCleanup() {
2704
2734
  setCleanupMode(false);
2705
2735
  clearSelection();
2736
+ setCleanupOptions({ archiveSessions: false, removeWorktrees: false, cleanPlans: false });
2706
2737
  }
2707
2738
  function onToggleChain(candidate) {
2708
2739
  setCleanupSelection((old) => toggleCleanupSelection(old, withSelectionState(candidate, old[candidate.chainId])));
@@ -2710,7 +2741,10 @@ function TaskTreePanel({ store, snapshot, onOpen }) {
2710
2741
  }
2711
2742
  async function confirmCleanup() {
2712
2743
  if (!mayDelete) return;
2713
- const result = await store.cleanupTasks(cleanupSelection);
2744
+ const result = await store.cleanupTasks(cleanupSelection, {
2745
+ ...cleanupOptions,
2746
+ hostWorkspaces: nav?.workspaces,
2747
+ });
2714
2748
  if (result.ok) leaveCleanup();
2715
2749
  setCleanupConfirm(false);
2716
2750
  }
@@ -2767,6 +2801,17 @@ function TaskTreePanel({ store, snapshot, onOpen }) {
2767
2801
  项目树
2768
2802
  </button>
2769
2803
  </div>
2804
+ {canSweepOrphans ? (
2805
+ <button
2806
+ type="button"
2807
+ data-dshdg-cleanup-orphans=""
2808
+ disabled={orphanSweepBusy || cleanupBusy}
2809
+ title="扫描并清理任务记录已删除后残留的隔离工作树目录、DSH 临时工作区及已删记录对应的派工对话(绝不触碰共享工作区与源码)"
2810
+ onClick={() => { void runOrphanSweep(); }}
2811
+ >
2812
+ {orphanSweepBusy ? '正在清理残留…' : '清理残留工作区与对话'}
2813
+ </button>
2814
+ ) : null}
2770
2815
  {canCleanup ? (
2771
2816
  <button
2772
2817
  type="button"
@@ -2825,6 +2870,65 @@ function TaskTreePanel({ store, snapshot, onOpen }) {
2825
2870
  <p className="dshdg-hint" data-dshdg-cleanup-counts="">
2826
2871
  {`已选 ${summary.chains} 条执行链 / 共 ${summary.rounds} 轮`}
2827
2872
  </p>
2873
+ <div className="dshdg-row" data-dshdg-cleanup-presets="">
2874
+ <span className="dshdg-hint">快捷选择(当前筛选视图):</span>
2875
+ <button
2876
+ type="button"
2877
+ data-dshdg-cleanup-preset="all"
2878
+ disabled={cleanupBusy}
2879
+ onClick={() => applyPresetSelection('all')}
2880
+ >
2881
+ 全选可清理
2882
+ </button>
2883
+ <button
2884
+ type="button"
2885
+ data-dshdg-cleanup-preset="accepted"
2886
+ disabled={cleanupBusy}
2887
+ onClick={() => applyPresetSelection('accepted')}
2888
+ >
2889
+ 全选已审查通过
2890
+ </button>
2891
+ <button
2892
+ type="button"
2893
+ data-dshdg-cleanup-preset="failed-cancelled"
2894
+ disabled={cleanupBusy}
2895
+ onClick={() => applyPresetSelection('failed-cancelled')}
2896
+ >
2897
+ 全选已失败/已取消
2898
+ </button>
2899
+ </div>
2900
+ <div className="dshdg-cleanup-options" data-dshdg-cleanup-options="">
2901
+ <label className="dshdg-check">
2902
+ <input
2903
+ type="checkbox"
2904
+ data-dshdg-cleanup-opt="archiveSessions"
2905
+ checked={cleanupOptions.archiveSessions}
2906
+ disabled={cleanupBusy}
2907
+ onChange={() => toggleCleanupOption('archiveSessions')}
2908
+ />
2909
+ <span>同时归档对应的 DSH 派工对话(共享与隔离模式均适用,不影响你自己的普通对话)</span>
2910
+ </label>
2911
+ <label className="dshdg-check">
2912
+ <input
2913
+ type="checkbox"
2914
+ data-dshdg-cleanup-opt="removeWorktrees"
2915
+ checked={cleanupOptions.removeWorktrees}
2916
+ disabled={cleanupBusy}
2917
+ onChange={() => toggleCleanupOption('removeWorktrees')}
2918
+ />
2919
+ <span>同时删除隔离任务的工作树目录与 DSH 临时工作区(仅作用于独立工作树,绝不删除共享工作区与源文件)</span>
2920
+ </label>
2921
+ <label className="dshdg-check">
2922
+ <input
2923
+ type="checkbox"
2924
+ data-dshdg-cleanup-opt="cleanPlans"
2925
+ checked={cleanupOptions.cleanPlans}
2926
+ disabled={cleanupBusy}
2927
+ onChange={() => toggleCleanupOption('cleanPlans')}
2928
+ />
2929
+ <span>同时清理已无关联任务的空规划节点</span>
2930
+ </label>
2931
+ </div>
2828
2932
  {cleanupConfirm ? null : <p className="dshdg-warn">{cleanupWarningText()}</p>}
2829
2933
  {Object.keys(cleanupSelection).length === 0 ? null : summary.problems.map((problem) => (
2830
2934
  <p className="dshdg-warn" role="alert" key={problem} data-dshdg-cleanup-problem="">{problem}</p>
@@ -2832,7 +2936,7 @@ function TaskTreePanel({ store, snapshot, onOpen }) {
2832
2936
  {cleanupConfirm ? (
2833
2937
  <div className="dshdg-row" data-dshdg-cleanup-confirm-dialog="" role="alertdialog" aria-label="确认永久删除记录">
2834
2938
  <span>
2835
- {`确认永久删除 ${summary.chains} 条执行链、共 ${summary.rounds} 轮的任务记录及审查意见?删除后无法按任务编号查询或续接。DSH 会话、工作区与源文件不会被删除。`}
2939
+ {cleanupConfirmText(summary, cleanupOptions)}
2836
2940
  </span>
2837
2941
  <button
2838
2942
  type="button"
@@ -3445,16 +3549,108 @@ function CodexPanel({ store, snapshot }) {
3445
3549
  );
3446
3550
  }
3447
3551
 
3552
+ /**
3553
+ * The Antigravity integration card: manages the self-contained plugin bundle under
3554
+ * `<ANTIGRAVITY_CONFIG_DIR>/plugins/dsh-taskbridge/` without touching global config.
3555
+ * @param {object} props - `store`, `snapshot`.
3556
+ * @returns {object} the card.
3557
+ */
3558
+ function AntigravityPanel({ store, snapshot }) {
3559
+ const antigravity = snapshot.antigravity ?? null;
3560
+ const error = snapshot.antigravityError ?? null;
3561
+ const busy = snapshot.loading?.antigravityAction === true;
3562
+ const refreshing = snapshot.loading?.antigravityStatus === true;
3563
+ const pluginView = antigravityTargetView(antigravity, null, 'plugin');
3564
+ const mcpView = antigravityTargetView(antigravity, null, 'mcp');
3565
+ const switchAuthorized = snapshot.status?.delegation?.authorized === true
3566
+ || snapshot.settings?.delegationEnabled === true;
3567
+ const switchView = antigravityTargetView(antigravity, { authorized: switchAuthorized }, 'switch');
3568
+ const ready = antigravity?.ready === true;
3569
+ const notes = Array.isArray(antigravity?.notes) ? antigravity.notes : [];
3570
+ const disabled = busy || refreshing || antigravity === null;
3571
+ return (
3572
+ <section className="dshdg-card" aria-labelledby="dshdg-antigravity-title">
3573
+ <div className="dshdg-row">
3574
+ <h3 id="dshdg-antigravity-title">Antigravity 集成(插件包 + Skill + 子智能体 + MCP)</h3>
3575
+ <span className="dshdg-spacer" />
3576
+ <Badge tone={ready ? 'on' : 'off'}>{ready ? '已就绪' : '未就绪'}</Badge>
3577
+ </div>
3578
+ <p className="dshdg-muted">
3579
+ {'点下面的按钮,把独立的 TaskBridge 插件装进 Antigravity 插件目录('}
3580
+ <span className="dshdg-mono">plugins/dsh-taskbridge/</span>
3581
+ {'),内含 '}
3582
+ <span className="dshdg-mono">plugin.json</span>
3583
+ {'、按需加载的 '}
3584
+ <span className="dshdg-mono">skills/dsh-taskbridge/SKILL.md</span>
3585
+ {'、后台派工子智能体 '}
3586
+ <span className="dshdg-mono">agents/dsh-taskbridge.md</span>
3587
+ {' 以及插件内独立 '}
3588
+ <span className="dshdg-mono">mcp_config.json</span>
3589
+ {'。不会修改 Antigravity 全局 '}
3590
+ <span className="dshdg-mono">mcp_config.json</span>
3591
+ {' 或 '}
3592
+ <span className="dshdg-mono">config.json</span>
3593
+ {'。首次安装只会由你点击触发;已安装且未被手动修改的文件会在插件升级后自动刷新。'}
3594
+ </p>
3595
+ {error === null ? null : <p className="dshdg-fail">{error}</p>}
3596
+ {antigravity === null ? (
3597
+ <p className="dshdg-faint">正在读取 Antigravity 状态…</p>
3598
+ ) : (
3599
+ <>
3600
+ <p className="dshdg-faint">
3601
+ {'Antigravity 配置目录:'}
3602
+ <span className="dshdg-mono">{String(antigravity.antigravityHome ?? '')}</span>
3603
+ {'(设置环境变量 ANTIGRAVITY_CONFIG_DIR 可改到别处)'}
3604
+ </p>
3605
+ <div className="dshdg-list" data-dshdg-antigravity-targets="">
3606
+ <CodexTargetRow view={pluginView} />
3607
+ <CodexTargetRow view={mcpView} />
3608
+ <CodexTargetRow view={switchView} />
3609
+ </div>
3610
+ {notes.length === 0 ? null : (
3611
+ <ul className="dshdg-hint">
3612
+ {notes.map((note) => <li key={note.code}>{note.text}</li>)}
3613
+ </ul>
3614
+ )}
3615
+ <div className="dshdg-row">
3616
+ <button type="button" disabled={busy || refreshing} onClick={() => { void store.refreshAntigravityStatus(); }}>
3617
+ {refreshing ? '读取中…' : '刷新状态'}
3618
+ </button>
3619
+ <button type="button" className="dshdg-primary" disabled={disabled} onClick={() => { void store.runAntigravityAction('install'); }}>
3620
+ {busy ? '处理中…' : '安装 / 更新 Antigravity 插件'}
3621
+ </button>
3622
+ <button type="button" disabled={disabled} onClick={() => { void store.runAntigravityAction('repair'); }}>
3623
+ 仅修复 MCP 配置
3624
+ </button>
3625
+ <button type="button" className="dshdg-danger" disabled={disabled} onClick={() => { void store.runAntigravityAction('remove'); }}>
3626
+ 移除插件托管项
3627
+ </button>
3628
+ </div>
3629
+ {snapshot.antigravityOutcome === null || snapshot.antigravityOutcome === undefined
3630
+ ? null
3631
+ : <p className="dshdg-hint">{describeAntigravityOutcome(snapshot.antigravityOutcome)}</p>}
3632
+ </>
3633
+ )}
3634
+ <p className="dshdg-hint">
3635
+ {'安装后 Antigravity 会自动发现插件(或在重启 / 新开对话后加载新的 MCP 工具与技能)。'
3636
+ + '你可以在 Antigravity 对话中通过 @dsh-taskbridge 或明确要求“交给 DSH 执行”触发派工,也可由主智能体通过后台子智能体并行盯梢多个独立隔离任务。'
3637
+ + '本页不会替你打开顶部的本机调用开关;被你手动编辑过的 SKILL.md、子智能体或 MCP 配置会被保留并报告,不会被覆盖或删除。'}
3638
+ </p>
3639
+ </section>
3640
+ );
3641
+ }
3642
+
3448
3643
  // ---------------------------------------------------------------------------
3449
3644
  // Root page
3450
3645
  // ---------------------------------------------------------------------------
3451
3646
 
3452
- /** Tab definitions: authorization is not a tab — it renders above all four. */
3647
+ /** Tab definitions: authorization is not a tab — it renders above all five. */
3453
3648
  const TABS = Object.freeze([
3454
3649
  { key: 'providers', label: '接口管理' },
3455
3650
  { key: 'execution', label: '执行设置' },
3456
3651
  { key: 'tasks', label: '任务记录' },
3457
3652
  { key: 'codex', label: 'Codex 集成' },
3653
+ { key: 'antigravity', label: 'Antigravity 集成' },
3458
3654
  ]);
3459
3655
 
3460
3656
  /**
@@ -3541,6 +3737,7 @@ export function DelegateConfigPage(props) {
3541
3737
  </SessionNavigation.Provider>
3542
3738
  ) : null}
3543
3739
  {tab === 'codex' ? <CodexPanel store={store} snapshot={snapshot} /> : null}
3740
+ {tab === 'antigravity' ? <AntigravityPanel store={store} snapshot={snapshot} /> : null}
3544
3741
  </div>
3545
3742
 
3546
3743
  <div className="dshdg-row" data-dshdg-autosave="">
@@ -3565,12 +3762,26 @@ export function DelegateConfigPage(props) {
3565
3762
  }
3566
3763
 
3567
3764
  /** Re-exported so the documented contract and tests share one name for the body document. */
3568
- export { documentFromDraft, describeError, exportDocument, planCreateRequest };
3765
+ export {
3766
+ ANTIGRAVITY_ACTIONS,
3767
+ CODEX_ACTIONS,
3768
+ ROUTES,
3769
+ antigravityTargetView,
3770
+ codexTargetView,
3771
+ describeAntigravityOutcome,
3772
+ describeCodexOutcome,
3773
+ describeError,
3774
+ documentFromDraft,
3775
+ exportDocument,
3776
+ planCreateRequest,
3777
+ };
3569
3778
 
3570
3779
  export {
3780
+ CLEANUP_PRESETS,
3571
3781
  MAX_CLEANUP_CHAINS,
3572
3782
  cleanupBlockerLabel,
3573
3783
  cleanupCandidates,
3784
+ cleanupConfirmText,
3574
3785
  cleanupOutcome,
3575
3786
  cleanupProjection,
3576
3787
  cleanupRequest,
@@ -3578,7 +3789,9 @@ export {
3578
3789
  cleanupSelectionSummary,
3579
3790
  cleanupWarningText,
3580
3791
  describeCleanupOutcome,
3792
+ describeOrphanCleanupOutcome,
3581
3793
  pruneCleanupSelection,
3794
+ selectCleanupCandidatesByPreset,
3582
3795
  toggleCleanupSelection,
3583
3796
  withSelectionState,
3584
3797
  } from './task-cleanup.js';