@principles/pd-cli 2.12.2 → 2.14.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.
Files changed (92) hide show
  1. package/dist/commands/candidate.d.ts.map +1 -1
  2. package/dist/commands/candidate.js +23 -1
  3. package/dist/commands/candidate.js.map +1 -1
  4. package/dist/commands/codex-worker.d.ts +7 -3
  5. package/dist/commands/codex-worker.d.ts.map +1 -1
  6. package/dist/commands/codex-worker.js +125 -101
  7. package/dist/commands/codex-worker.js.map +1 -1
  8. package/dist/commands/consent-sweep-revoked.d.ts.map +1 -1
  9. package/dist/commands/consent-sweep-revoked.js +6 -0
  10. package/dist/commands/consent-sweep-revoked.js.map +1 -1
  11. package/dist/commands/openclaw-setup.d.ts +64 -0
  12. package/dist/commands/openclaw-setup.d.ts.map +1 -0
  13. package/dist/commands/openclaw-setup.js +272 -0
  14. package/dist/commands/openclaw-setup.js.map +1 -0
  15. package/dist/commands/runtime-internalization-enqueue-successors.d.ts.map +1 -1
  16. package/dist/commands/runtime-internalization-enqueue-successors.js +148 -130
  17. package/dist/commands/runtime-internalization-enqueue-successors.js.map +1 -1
  18. package/dist/commands/runtime-internalization-run-once.d.ts.map +1 -1
  19. package/dist/commands/runtime-internalization-run-once.js +4 -0
  20. package/dist/commands/runtime-internalization-run-once.js.map +1 -1
  21. package/dist/commands/runtime-internalization-run-rulehost.js +1 -1
  22. package/dist/commands/runtime-internalization-run-rulehost.js.map +1 -1
  23. package/dist/commands/service-run-once.d.ts +12 -27
  24. package/dist/commands/service-run-once.d.ts.map +1 -1
  25. package/dist/commands/service-run-once.js +15 -206
  26. package/dist/commands/service-run-once.js.map +1 -1
  27. package/dist/commands/workbuddy-worker.d.ts +7 -2
  28. package/dist/commands/workbuddy-worker.d.ts.map +1 -1
  29. package/dist/commands/workbuddy-worker.js +133 -99
  30. package/dist/commands/workbuddy-worker.js.map +1 -1
  31. package/dist/commands/worker-service-host-gate.d.ts +38 -0
  32. package/dist/commands/worker-service-host-gate.d.ts.map +1 -0
  33. package/dist/commands/worker-service-host-gate.js +110 -0
  34. package/dist/commands/worker-service-host-gate.js.map +1 -0
  35. package/dist/program.d.ts.map +1 -1
  36. package/dist/program.js +38 -84
  37. package/dist/program.js.map +1 -1
  38. package/dist/services/rulehost-pipeline-runner.d.ts.map +1 -1
  39. package/dist/services/rulehost-pipeline-runner.js +198 -142
  40. package/dist/services/rulehost-pipeline-runner.js.map +1 -1
  41. package/dist/services/service-host/coordinator-common.d.ts.map +1 -1
  42. package/dist/services/service-host/coordinator-common.js +4 -5
  43. package/dist/services/service-host/coordinator-common.js.map +1 -1
  44. package/dist/services/service-host/index.d.ts +7 -10
  45. package/dist/services/service-host/index.d.ts.map +1 -1
  46. package/dist/services/service-host/index.js +8 -11
  47. package/dist/services/service-host/index.js.map +1 -1
  48. package/dist/services/service-host/install-identity.d.ts +5 -5
  49. package/dist/services/service-host/managed-run.d.ts.map +1 -1
  50. package/dist/services/service-host/managed-run.js +19 -22
  51. package/dist/services/service-host/managed-run.js.map +1 -1
  52. package/dist/services/service-host/scheduler/linux.d.ts.map +1 -1
  53. package/dist/services/service-host/scheduler/linux.js +21 -2
  54. package/dist/services/service-host/scheduler/linux.js.map +1 -1
  55. package/dist/services/service-host/scheduler/service-status.d.ts +1 -1
  56. package/dist/services/service-host/scheduler/service-status.d.ts.map +1 -1
  57. package/dist/services/service-host/scheduler/service-status.js +0 -2
  58. package/dist/services/service-host/scheduler/service-status.js.map +1 -1
  59. package/dist/services/service-host/status/service-run-status.d.ts +7 -51
  60. package/dist/services/service-host/status/service-run-status.d.ts.map +1 -1
  61. package/dist/services/service-host/status/service-run-status.js.map +1 -1
  62. package/dist/services/service-host/worker-adapter-openclaw.js +3 -3
  63. package/dist/services/service-host/worker-adapter.d.ts +0 -10
  64. package/dist/services/service-host/worker-adapter.d.ts.map +1 -1
  65. package/dist/services/service-host/worker-adapter.js +4 -12
  66. package/dist/services/service-host/worker-adapter.js.map +1 -1
  67. package/dist/services/service-host/worker-env.d.ts +1 -1
  68. package/dist/services/service-host/workspace-dispatch.d.ts +5 -7
  69. package/dist/services/service-host/workspace-dispatch.d.ts.map +1 -1
  70. package/dist/services/service-host/workspace-dispatch.js +1 -3
  71. package/dist/services/service-host/workspace-dispatch.js.map +1 -1
  72. package/package.json +8 -8
  73. package/dist/commands/service-handover.d.ts +0 -12
  74. package/dist/commands/service-handover.d.ts.map +0 -1
  75. package/dist/commands/service-handover.js +0 -117
  76. package/dist/commands/service-handover.js.map +0 -1
  77. package/dist/commands/worker-drain.d.ts +0 -7
  78. package/dist/commands/worker-drain.d.ts.map +0 -1
  79. package/dist/commands/worker-drain.js +0 -51
  80. package/dist/commands/worker-drain.js.map +0 -1
  81. package/dist/services/service-host/handover-claims.d.ts +0 -14
  82. package/dist/services/service-host/handover-claims.d.ts.map +0 -1
  83. package/dist/services/service-host/handover-claims.js +0 -50
  84. package/dist/services/service-host/handover-claims.js.map +0 -1
  85. package/dist/services/service-host/shadow-run.d.ts +0 -87
  86. package/dist/services/service-host/shadow-run.d.ts.map +0 -1
  87. package/dist/services/service-host/shadow-run.js +0 -549
  88. package/dist/services/service-host/shadow-run.js.map +0 -1
  89. package/dist/services/service-host/workspace-handover.d.ts +0 -190
  90. package/dist/services/service-host/workspace-handover.d.ts.map +0 -1
  91. package/dist/services/service-host/workspace-handover.js +0 -1393
  92. package/dist/services/service-host/workspace-handover.js.map +0 -1
@@ -0,0 +1,272 @@
1
+ /**
2
+ * `pd openclaw setup` — OpenClaw conversation-ingestion consent CLI (Fix-H,
3
+ * P0 consent re-audit 2026-11-29).
4
+ *
5
+ * Before this command, OpenClaw was the only PD host with NO Owner consent
6
+ * entry: the ledger v3 already supported hostKind 'openclaw', the consumption
7
+ * gates already consulted it, but nothing could RECORD a grant or a
8
+ * revocation — and the capture layer didn't consult it at all (Fix-A closes
9
+ * the capture half). This command mirrors `pd workbuddy setup` semantics on
10
+ * the existing ledger authority:
11
+ *
12
+ * --show-disclosure : print the disclosure (read-only early exit)
13
+ * --accept : record decision=granted (decidedVia=owner_directive)
14
+ * --decline : record decision=revoked AND run the immediate
15
+ * source-revocation sweep (--apply), which with Fix-E
16
+ * now covers trajectory turn rows and their blobs
17
+ *
18
+ * Deliberately NOT touched here: the host config flag
19
+ * (plugins.entries.principles-disciple.hooks.allowConversationAccess).
20
+ * The flag is the OWNER-EDITED host config — PD never rewrites it (the
21
+ * auto-grant that did was removed in Fix-A/§F2). This command REPORTS the
22
+ * flag's live state as a warning so the operator knows both gates.
23
+ *
24
+ * CLI discipline: cli-1 (--json = exactly one machine-readable report),
25
+ * cli-4 (--accept/--decline mutex; explicit decision required with --json),
26
+ * cli-5 (a failed consent write mutates nothing), cli-6 (structured
27
+ * reason/nextAction on degraded outcomes).
28
+ */
29
+ import { resolveWorkspaceDir } from '../resolve-workspace.js';
30
+ import { assertSafeDirectoryRoot } from '../utils/path-security.js';
31
+ import { readConversationIngestionConsent, recordConversationIngestionConsent, runSourceRevocationSweep, deriveConversationIngestionConsentState, } from '@principles/host-runtime';
32
+ import { shouldBlockOpenClawConversationReads, assertExperimentPathInsideRoot } from 'principles-disciple';
33
+ export const OPENCLAW_INGESTION_DISCLOSURE_VERSION = 'oc-2026-11-29';
34
+ const SETUP_COMMAND = 'pd openclaw setup';
35
+ export function getOpenclawIngestionDisclosureText() {
36
+ return [
37
+ 'PD · OpenClaw 会话采集授权(' + OPENCLAW_INGESTION_DISCLOSURE_VERSION + ')',
38
+ '',
39
+ '开启后,PD 只在 OpenClaw 主动投递的 hook 事件里接收当前会话内容,',
40
+ '并把以下内容写入本工作区的 trajectory.db,供 Pain 诊断与原则内化使用:',
41
+ ' - 您本人输入的话语(user_turns)',
42
+ ' - 助手的可见回复(assistant_turns)',
43
+ '',
44
+ '采集受两道门约束,缺一不可(fail-closed):',
45
+ ' 1. 宿主配置 plugins.entries.principles-disciple.hooks.allowConversationAccess = true',
46
+ ' 2. 本同意记录 decision=granted(pd openclaw setup --accept)',
47
+ '',
48
+ '任一门不满足时,PD 只保留会话轮次事实(不含任何正文),不写入、不读取任何对话正文。',
49
+ '',
50
+ '随时可用 `' + SETUP_COMMAND + ' --decline` 撤销;撤销会立即清退已入库正文',
51
+ '(trajectory 轮次、blob、治理观察、signal_confirmations 摘录与 pain 链中的宿主正文),并阻止后续采集。',
52
+ '',
53
+ '共享工作区例外:若同一 workspace 还有其他宿主(如 WorkBuddy)保持授权,',
54
+ '宿主不可归属的轮次/摘录表会被保留(见 sweep 报告 skipped 列表),仅清退可归属部分。',
55
+ ].join('\n');
56
+ }
57
+ /** Live read-side flag verdict, without ever writing the host config. */
58
+ function readHostFlagState() {
59
+ const readsBlocked = shouldBlockOpenClawConversationReads();
60
+ return { name: 'allowConversationAccess', authorized: !readsBlocked, readsBlocked };
61
+ }
62
+ /**
63
+ * `pd openclaw setup` entry point: record/revoke the OpenClaw consent ledger
64
+ * record and report the (untouched) host flag state.
65
+ */
66
+ export async function handleOpenclawSetup(options) {
67
+ const generatedAt = new Date().toISOString();
68
+ const warnings = [];
69
+ // F2 (2026-11-29 review): the plugin hooks resolve the workspace through
70
+ // PD_WORKSPACE_DIR → OPENCLAW_WORKSPACE (path-resolver detectWorkspaceDir
71
+ // order). The ledger must land where the plugin reads — so this command
72
+ // honors BOTH explicit env sources ahead of resolveWorkspaceDir's chain,
73
+ // and flags a bare cwd-discovery resolution as a warning instead of
74
+ // silently writing into whatever the cwd happens to discover.
75
+ let workspace;
76
+ try {
77
+ const pdEnv = process.env.PD_WORKSPACE_DIR?.trim();
78
+ const ocEnv = process.env.OPENCLAW_WORKSPACE?.trim();
79
+ const explicitEnv = pdEnv ? pdEnv : ocEnv;
80
+ if (options.workspace !== undefined && options.workspace.trim() !== '') {
81
+ // Review round 2 (2026-11-29): the winning RAW path goes through the
82
+ // SAME safety validation as the shared resolver — never a bare
83
+ // path.resolve. assertSafeDirectoryRoot rejects the filesystem root and
84
+ // surviving `..` traversal (a drive-root --decline would otherwise
85
+ // write a consent record and run a purge at the disk root while the
86
+ // real workspace stays authorized).
87
+ workspace = assertSafeDirectoryRoot(options.workspace.trim(), '--workspace');
88
+ }
89
+ else if (explicitEnv) {
90
+ workspace = assertSafeDirectoryRoot(explicitEnv, 'PD_WORKSPACE_DIR/OPENCLAW_WORKSPACE');
91
+ }
92
+ else {
93
+ workspace = resolveWorkspaceDir(undefined);
94
+ warnings.push('workspace resolved by cwd discovery (no -w / PD_WORKSPACE_DIR / OPENCLAW_WORKSPACE) — pass -w <workspace> explicitly to be certain of the target.');
95
+ }
96
+ // Review round 2: experiment-mode containment. The plugin's own resolver
97
+ // asserts every workspace against PD_EXPERIMENT_ROOT; this CLI must not
98
+ // become the bypass that revokes (and purges) the PRODUCTION workspace
99
+ // from inside an experiment via an inherited env pointer. No-op when
100
+ // PD_EXPERIMENT_ROOT is unset (production behavior unchanged).
101
+ assertExperimentPathInsideRoot(workspace, 'pd openclaw setup');
102
+ }
103
+ catch (error) {
104
+ const detail = String(error instanceof Error ? error.message : error);
105
+ // Review round 3: an invalid experiment ROOT is not a workspace problem —
106
+ // telling the operator to "pass -w" would just be refused again by the
107
+ // same guard. Route the remedy to the actual parameter.
108
+ const isInvalidExperimentRoot = detail.includes('PD_EXPERIMENT_ROOT') && detail.includes('absolute');
109
+ const reasonSlug = isInvalidExperimentRoot ? 'experiment_root_invalid' : 'workspace_unresolvable';
110
+ const nextAction = isInvalidExperimentRoot
111
+ ? 'Set PD_EXPERIMENT_ROOT to an ABSOLUTE experiment root path, or unset it for a production run.'
112
+ : 'Pass -w <workspace> explicitly, or set PD_WORKSPACE_DIR.';
113
+ console.error(`pd openclaw setup FAILED: ${reasonSlug}: ${detail}`);
114
+ console.error(` next: ${nextAction}`);
115
+ // F7 (2026-11-29 review): under --json even a workspace-resolution
116
+ // failure emits exactly one machine-readable degraded report (cli-1/cli-6)
117
+ // — prose-only stderr leaves stdout empty.
118
+ if (options.json === true) {
119
+ console.log(JSON.stringify({
120
+ generatedAt, host: 'openclaw', workspace: '', status: 'degraded',
121
+ consentStateBefore: 'not_present', consentState: 'not_present',
122
+ disclosureVersion: OPENCLAW_INGESTION_DISCLOSURE_VERSION,
123
+ hostFlag: readHostFlagState(),
124
+ warnings: [],
125
+ reason: reasonSlug + ': ' + detail,
126
+ nextAction,
127
+ }));
128
+ }
129
+ process.exitCode = 1;
130
+ return;
131
+ }
132
+ const finish = (report) => {
133
+ if (options.json === true) {
134
+ console.log(JSON.stringify(report));
135
+ }
136
+ else {
137
+ const lines = [
138
+ 'OpenClaw conversation-ingestion setup (' + report.workspace + ')',
139
+ ' status: ' + report.status,
140
+ ' disclosureVersion: ' + report.disclosureVersion,
141
+ ' consent (before): ' + report.consentStateBefore,
142
+ ' consent (now): ' + report.consentState,
143
+ ' host flag: ' + (report.hostFlag.authorized ? 'allowConversationAccess=true' : 'NOT true (hooks not delivered / capture denied)'),
144
+ ];
145
+ for (const warning of report.warnings)
146
+ lines.push(' warning: ' + warning);
147
+ if (report.reason !== undefined)
148
+ lines.push(' reason: ' + report.reason);
149
+ if (report.nextAction !== undefined)
150
+ lines.push(' next action: ' + report.nextAction);
151
+ console.log(lines.join('\n'));
152
+ }
153
+ if (report.status === 'degraded')
154
+ process.exitCode = 1;
155
+ };
156
+ const refuse = (reason, nextAction, consentStateBefore = 'not_present') => {
157
+ finish({
158
+ generatedAt, host: 'openclaw', workspace, status: 'degraded',
159
+ consentStateBefore, consentState: consentStateBefore,
160
+ disclosureVersion: OPENCLAW_INGESTION_DISCLOSURE_VERSION,
161
+ hostFlag: readHostFlagState(),
162
+ warnings: [], reason, nextAction,
163
+ });
164
+ };
165
+ if (options.showDisclosure === true && (options.accept === true || options.decline === true || options.json === true)) {
166
+ refuse('show_disclosure_conflicts_with_decision', '--show-disclosure only prints the disclosure. Drop --accept/--decline/--json, or run `pd openclaw setup --accept|--decline [--json]` to record a decision.');
167
+ return;
168
+ }
169
+ if (options.accept === true && options.decline === true) {
170
+ refuse('accept_decline_mutex', 'Pass either --accept or --decline, not both.');
171
+ return;
172
+ }
173
+ if (options.showDisclosure === true) {
174
+ console.log(getOpenclawIngestionDisclosureText());
175
+ const before = readConversationIngestionConsent(workspace, 'openclaw');
176
+ const stateBefore = before.ok && before.record !== null
177
+ ? deriveConversationIngestionConsentState(before.record, true)
178
+ : 'not_present';
179
+ finish({
180
+ generatedAt, host: 'openclaw', workspace, status: 'ok',
181
+ consentStateBefore: stateBefore, consentState: stateBefore,
182
+ disclosureVersion: OPENCLAW_INGESTION_DISCLOSURE_VERSION,
183
+ hostFlag: readHostFlagState(),
184
+ warnings: [],
185
+ });
186
+ return;
187
+ }
188
+ if (options.accept !== true && options.decline !== true) {
189
+ refuse('decision_not_explicit', 'Pass --accept (grant) or --decline (revoke), or --show-disclosure.');
190
+ return;
191
+ }
192
+ const decision = options.accept === true ? 'granted' : 'revoked';
193
+ const before = readConversationIngestionConsent(workspace, 'openclaw');
194
+ const stateBefore = before.ok && before.record !== null
195
+ ? deriveConversationIngestionConsentState(before.record, true)
196
+ : 'not_present';
197
+ // cli-5: write the ledger FIRST here? No — grant path has no flag half to
198
+ // roll back (we never touch the host config), so a single ledger write is
199
+ // atomic enough; a failure reports degraded and mutates nothing.
200
+ const recorded = recordConversationIngestionConsent(workspace, 'openclaw', {
201
+ decision,
202
+ decidedVia: 'owner_directive',
203
+ disclosureVersion: OPENCLAW_INGESTION_DISCLOSURE_VERSION,
204
+ evidenceRef: '`' + SETUP_COMMAND + ' --' + (decision === 'granted' ? 'accept' : 'decline') + '` at ' + generatedAt,
205
+ });
206
+ if (!recorded.ok) {
207
+ refuse('consent_write_failed:' + recorded.reason, recorded.nextAction, stateBefore);
208
+ return;
209
+ }
210
+ const stateAfter = deriveConversationIngestionConsentState(recorded.record, true);
211
+ const flag = readHostFlagState();
212
+ if (decision === 'granted' && !flag.authorized) {
213
+ warnings.push('host flag allowConversationAccess is NOT true: hooks are not delivered and capture stays denied until the Owner sets it in the OpenClaw config.');
214
+ }
215
+ // Sweep status for cli-6: a revoke whose purge did not COMPLETE must not
216
+ // report ok/exit 0 (F5) — the ledger is already revoked while body material
217
+ // may remain on disk.
218
+ let sweepStatus = 'completed';
219
+ let sweepReason;
220
+ if (decision === 'revoked') {
221
+ if (flag.authorized) {
222
+ warnings.push('host flag allowConversationAccess is still true: the consent gate now blocks all body capture, but the Owner may also set the flag false to stop hook delivery entirely.');
223
+ }
224
+ // PRI-1283 R3 semantics, now with Fix-E r2 coverage: revoke → immediate
225
+ // purge (file-first blob deletion, turn tables, signal_confirmations).
226
+ // Review round 2: the workspace path is DOUBLE-QUOTED in every retry
227
+ // hint — an unquoted path with spaces makes the copied command parse the
228
+ // tail as extra arguments (cli-6: the recovery guidance must be
229
+ // executable as printed).
230
+ const retryHint = `'pd consent sweep-revoked --apply --workspace "${workspace}"'`;
231
+ try {
232
+ const sweep = await runSourceRevocationSweep({ workspaceDir: workspace, apply: true });
233
+ // F14: shared-workspace skips are informational but MUST surface — the
234
+ // purge deliberately retained host-unattributed material.
235
+ const skippedNotes = sweep.hosts.flatMap((h) => (h.skipped ?? []).map((s) => `${h.hostKind}: ${s}`));
236
+ if (skippedNotes.length > 0) {
237
+ warnings.push(`source-revocation sweep skipped steps (retained by shared-workspace guard): ${skippedNotes.join('; ')}`);
238
+ }
239
+ if (sweep.outcome === 'partial') {
240
+ sweepStatus = 'partial';
241
+ sweepReason = `source-revocation sweep partial: ${sweep.hosts.map((h) => `${h.hostKind}:${h.failures.length} failures`).join('; ')}`;
242
+ warnings.push(sweepReason + ` — rerun ${retryHint}`);
243
+ }
244
+ else if (sweep.outcome === 'failed') {
245
+ sweepStatus = 'failed';
246
+ sweepReason = `source-revocation sweep failed: ${sweep.reason}`;
247
+ warnings.push(sweepReason + ` — rerun ${retryHint}`);
248
+ }
249
+ }
250
+ catch (error) {
251
+ sweepStatus = 'error';
252
+ sweepReason = `source-revocation sweep error: ${error instanceof Error ? error.message.slice(0, 160) : String(error).slice(0, 160)}`;
253
+ warnings.push(sweepReason + ` — rerun ${retryHint}`);
254
+ }
255
+ }
256
+ finish({
257
+ generatedAt, host: 'openclaw', workspace,
258
+ status: sweepStatus === 'completed' ? 'ok' : 'degraded',
259
+ decision,
260
+ consentStateBefore: stateBefore, consentState: stateAfter,
261
+ disclosureVersion: OPENCLAW_INGESTION_DISCLOSURE_VERSION,
262
+ hostFlag: flag,
263
+ warnings,
264
+ ...(sweepReason !== undefined
265
+ ? {
266
+ reason: sweepReason,
267
+ nextAction: `Rerun 'pd consent sweep-revoked --apply --workspace "${workspace}"' to finish the purge; capture stays blocked either way.`,
268
+ }
269
+ : {}),
270
+ });
271
+ }
272
+ //# sourceMappingURL=openclaw-setup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"openclaw-setup.js","sourceRoot":"","sources":["../../src/commands/openclaw-setup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EACL,gCAAgC,EAChC,kCAAkC,EAClC,wBAAwB,EACxB,uCAAuC,GAExC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,oCAAoC,EAAE,8BAA8B,EAAE,MAAM,qBAAqB,CAAC;AAE3G,MAAM,CAAC,MAAM,qCAAqC,GAAG,eAAe,CAAC;AACrE,MAAM,aAAa,GAAG,mBAAmB,CAAC;AA+B1C,MAAM,UAAU,kCAAkC;IAChD,OAAO;QACL,uBAAuB,GAAG,qCAAqC,GAAG,GAAG;QACrE,EAAE;QACF,4CAA4C;QAC5C,+CAA+C;QAC/C,0BAA0B;QAC1B,8BAA8B;QAC9B,EAAE;QACF,6BAA6B;QAC7B,oFAAoF;QACpF,yDAAyD;QACzD,EAAE;QACF,6CAA6C;QAC7C,EAAE;QACF,QAAQ,GAAG,aAAa,GAAG,6BAA6B;QACxD,0EAA0E;QAC1E,EAAE;QACF,gDAAgD;QACh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,EAAE,YAAY,EAAE,UAAU;QACzD,iBAAiB,EAAE,qCAAqC;QACxD,QAAQ,EAAE,IAAI;QACd,QAAQ;QACR,GAAG,CAAC,WAAW,KAAK,SAAS;YAC3B,CAAC,CAAC;gBACE,MAAM,EAAE,WAAW;gBACnB,UAAU,EAAE,wDAAwD,SAAS,2DAA2D;aACzI;YACH,CAAC,CAAC,EAAE,CAAC;KACR,CAAC,CAAC;AACL,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-internalization-enqueue-successors.d.ts","sourceRoot":"","sources":["../../src/commands/runtime-internalization-enqueue-successors.ts"],"names":[],"mappings":"AAcA,UAAU,wBAAwB;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAwWD,wBAAsB,6CAA6C,CAAC,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAkWjH"}
1
+ {"version":3,"file":"runtime-internalization-enqueue-successors.d.ts","sourceRoot":"","sources":["../../src/commands/runtime-internalization-enqueue-successors.ts"],"names":[],"mappings":"AAeA,UAAU,wBAAwB;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AA0TD,wBAAsB,6CAA6C,CAAC,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAwYjH"}