mancode 0.3.13 → 0.3.15
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/README.en.md +39 -18
- package/README.md +36 -18
- package/dist/{chunk-O3QAKAPJ.js → chunk-LMXUPBCN.js} +22 -13
- package/dist/chunk-LMXUPBCN.js.map +1 -0
- package/dist/{chunk-L3TKSX6R.js → chunk-QIOMFU35.js} +18 -17
- package/dist/chunk-QIOMFU35.js.map +1 -0
- package/dist/cli.js +177 -9
- package/dist/cli.js.map +1 -1
- package/dist/{store-JUB2KAFT.js → store-DCTOW75Z.js} +2 -2
- package/dist/{v3-adapter-CPZNFTJR.js → v3-adapter-C5EM5EHM.js} +2 -2
- package/package.json +6 -5
- package/dist/chunk-L3TKSX6R.js.map +0 -1
- package/dist/chunk-O3QAKAPJ.js.map +0 -1
- /package/dist/{store-JUB2KAFT.js.map → store-DCTOW75Z.js.map} +0 -0
- /package/dist/{v3-adapter-CPZNFTJR.js.map → v3-adapter-C5EM5EHM.js.map} +0 -0
package/README.en.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<p align="center">
|
|
18
18
|
<a href="./LICENSE"><img src="https://img.shields.io/badge/License-AGPL--3.0-blue.svg?style=flat-square" alt="License: AGPL-3.0" /></a>
|
|
19
19
|
<a href="https://www.npmjs.com/package/mancode"><img src="https://img.shields.io/npm/v/mancode?style=flat-square" alt="npm version" /></a>
|
|
20
|
-
<img src="https://img.shields.io/badge/status-
|
|
20
|
+
<img src="https://img.shields.io/badge/status-Continuity%20v0.3.15-2f855a?style=flat-square" alt="Status: mancode Continuity v0.3.15" />
|
|
21
21
|
<img src="https://img.shields.io/badge/platforms-Claude%20Code%20%7C%20Cursor%20%7C%20Codex%20%7C%20Copilot%20%7C%20ZCode-5865F2?style=flat-square" alt="Platforms: Claude Code, Cursor, Codex in ChatGPT desktop and CLI, GitHub Copilot, ZCode" />
|
|
22
22
|
</p>
|
|
23
23
|
|
|
@@ -34,6 +34,9 @@ different gears for different stakes: light solo mode for daily practice, `/man`
|
|
|
34
34
|
for playoff-level engineering discipline, and coaching-staff subagents for
|
|
35
35
|
research, planning, implementation, and review.
|
|
36
36
|
|
|
37
|
+
**mancode Continuity** is the continuous-context runtime that carries tasks,
|
|
38
|
+
decisions, and verification evidence safely into later conversations.
|
|
39
|
+
|
|
37
40
|
[Installation](#installation) · [Usage](#usage)
|
|
38
41
|
|
|
39
42
|
mancode ships with adapters for Claude Code, Cursor, Codex in the ChatGPT
|
|
@@ -102,7 +105,7 @@ explicitly resumes the existing TaskRef, preserving continuity without treating
|
|
|
102
105
|
one window's temporary state as another window's identity.
|
|
103
106
|
|
|
104
107
|
```bash
|
|
105
|
-
mancode status --json
|
|
108
|
+
mancode status --brief --json
|
|
106
109
|
mancode context session new --client claude-code
|
|
107
110
|
mancode context resume <namespace:ULID> --session <id> --client claude-code
|
|
108
111
|
mancode context show --purpose orient --session <id> --client claude-code
|
|
@@ -177,7 +180,7 @@ the original mode entries, never task/session snapshots. `mancode init
|
|
|
177
180
|
default `solo` for lightweight implementation, or continue the full `/man`
|
|
178
181
|
validation and bounded risk-review workflow.
|
|
179
182
|
- **Keep workflow artifacts on disk**: save research, plans, review reports,
|
|
180
|
-
and summaries under `.mancode
|
|
183
|
+
and summaries under `.mancode/<namespace>/workflows/<ULID>/`.
|
|
181
184
|
- **Support team context**: use `/manteam` with confirmed typed entities under
|
|
182
185
|
`.mancode/shared/`.
|
|
183
186
|
- **Scan project health**: use `mancode manps` to detect stale TODOs, unused
|
|
@@ -263,7 +266,7 @@ Context Pack:
|
|
|
263
266
|
work. A planning or research request made from default `solo` routes into `/man`.
|
|
264
267
|
It inspects the project, asks only questions that can change scope, architecture,
|
|
265
268
|
cost, or acceptance, and recommends 2–3 options when a decision benefits from
|
|
266
|
-
guidance. It writes the plan under `.mancode/local/workflows/<
|
|
269
|
+
guidance. It writes the plan under `.mancode/local/workflows/<ULID>/` only
|
|
267
270
|
after the requirements are ready.
|
|
268
271
|
|
|
269
272
|
Finishing the plan does not automatically start the full workflow. At the plan
|
|
@@ -350,9 +353,8 @@ it should behave, and why previous decisions were made.
|
|
|
350
353
|
|
|
351
354
|
## Installation
|
|
352
355
|
|
|
353
|
-
**Status**:
|
|
354
|
-
and CLI,
|
|
355
|
-
with project skill discovery kept behind a verification gate before release.
|
|
356
|
+
**Status**: mancode Continuity v0.3.15. Claude Code, Cursor, Codex in the ChatGPT
|
|
357
|
+
desktop app and CLI, GitHub Copilot, and ZCode adapters are included.
|
|
356
358
|
|
|
357
359
|
Requires Node.js 20 or newer. macOS, Linux, Windows CMD, PowerShell, and Git Bash
|
|
358
360
|
are supported. Git is optional: without it, initialization continues with solo
|
|
@@ -421,11 +423,14 @@ mancode init
|
|
|
421
423
|
mancode init --legacy
|
|
422
424
|
mancode status
|
|
423
425
|
mancode status --json
|
|
426
|
+
mancode status --brief --json
|
|
424
427
|
mancode install <claude-code|cursor|codex|copilot|zcode>
|
|
425
428
|
mancode list-platforms
|
|
426
429
|
mancode team identity create --name "<name>"
|
|
427
430
|
mancode context session new --client <platform>
|
|
428
431
|
mancode workflow create <man|manba|manteam> "<task>" --session <id>
|
|
432
|
+
mancode workflow list --json
|
|
433
|
+
mancode workflow show <namespace:ULID> --json
|
|
429
434
|
mancode context resume <local:ULID|shared:ULID> --session <id>
|
|
430
435
|
mancode workflow requirements <namespace:ULID> finalize --file <requirements.json> --expected-revision <n> --session <id>
|
|
431
436
|
mancode workflow plan <namespace:ULID> revise --file <plan.md> --expected-revision <n> --session <id>
|
|
@@ -447,7 +452,7 @@ mancode version
|
|
|
447
452
|
Simplified output:
|
|
448
453
|
|
|
449
454
|
```text
|
|
450
|
-
mancode v0.3.
|
|
455
|
+
mancode v0.3.15
|
|
451
456
|
|
|
452
457
|
Project: my-app
|
|
453
458
|
Runtime: ready
|
|
@@ -486,12 +491,15 @@ mancode init
|
|
|
486
491
|
|
|
487
492
|
### `mancode status`
|
|
488
493
|
|
|
489
|
-
|
|
490
|
-
the physical readiness of each
|
|
494
|
+
The default and full JSON views show activation, runtime binding,
|
|
495
|
+
identity/session evidence, transport, and the physical readiness of each
|
|
496
|
+
platform bootstrap and original mode entry. Coding agents should combine
|
|
497
|
+
`--brief --json` to read only the compact Continuity runtime view.
|
|
491
498
|
|
|
492
499
|
```bash
|
|
493
500
|
mancode status
|
|
494
501
|
mancode status --json
|
|
502
|
+
mancode status --brief --json
|
|
495
503
|
```
|
|
496
504
|
|
|
497
505
|
### `mancode workflow`
|
|
@@ -507,9 +515,11 @@ mancode context session new --client codex
|
|
|
507
515
|
mancode workflow create man "refactor auth module" --session <id>
|
|
508
516
|
mancode workflow requirements <local:ULID> finalize --file requirements.json --expected-revision <n> --session <id>
|
|
509
517
|
mancode workflow plan <local:ULID> revise --file plan.md --expected-revision <n> --session <id>
|
|
518
|
+
mancode workflow plan <local:ULID> confirm --plan-decision <plan_only|governed_execution> --expected-revision <n> --session <id>
|
|
510
519
|
mancode workflow review <local:ULID> apply --file review-ledger.json --expected-revision <n> --session <id>
|
|
511
520
|
mancode workflow verify <local:ULID> apply --file verification-ledger.json --expected-revision <n> --session <id>
|
|
512
521
|
mancode workflow complete <local:ULID> --expected-revision <n> --session <id>
|
|
522
|
+
mancode context compact --dry-run
|
|
513
523
|
```
|
|
514
524
|
|
|
515
525
|
### `mancode manps`
|
|
@@ -635,23 +645,34 @@ Ensure the `.cursor/rules/mancode-*.mdc` files exist. Rules with
|
|
|
635
645
|
Mode-specific rules (manba, man, manteam, manps) trigger based on the
|
|
636
646
|
description field — invoke them by asking for `/manba` or similar.
|
|
637
647
|
|
|
638
|
-
### How to
|
|
648
|
+
### How to reinstall Continuity adapters
|
|
639
649
|
|
|
640
650
|
```bash
|
|
641
|
-
mancode uninstall
|
|
642
|
-
mancode
|
|
643
|
-
mancode
|
|
651
|
+
mancode uninstall claude-code --force
|
|
652
|
+
mancode uninstall cursor --force
|
|
653
|
+
mancode uninstall codex --force
|
|
654
|
+
mancode uninstall copilot --force
|
|
655
|
+
mancode uninstall zcode --force
|
|
656
|
+
mancode install claude-code
|
|
657
|
+
mancode install cursor
|
|
658
|
+
mancode install codex
|
|
659
|
+
mancode install copilot
|
|
660
|
+
mancode install zcode
|
|
644
661
|
```
|
|
645
662
|
|
|
646
|
-
|
|
663
|
+
Continuity authority is protected, so `mancode uninstall --all` does not delete workflow
|
|
664
|
+
authority. To inspect removable runtime records, run
|
|
665
|
+
`mancode context compact --dry-run` first.
|
|
666
|
+
|
|
667
|
+
### How to remove the CLI
|
|
647
668
|
|
|
648
669
|
```bash
|
|
649
|
-
mancode uninstall --all --force
|
|
650
670
|
npm uninstall -g mancode
|
|
651
671
|
```
|
|
652
672
|
|
|
653
|
-
|
|
654
|
-
|
|
673
|
+
Uninstalling each platform removes its mancode bootstrap while preserving
|
|
674
|
+
user-authored rules, instructions, and Continuity workflow data. The `--all` form is only
|
|
675
|
+
supported for projects explicitly initialized with `mancode init --legacy`.
|
|
655
676
|
|
|
656
677
|
## FAQ
|
|
657
678
|
|
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<p align="center">
|
|
18
18
|
<a href="./LICENSE"><img src="https://img.shields.io/badge/License-AGPL--3.0-blue.svg?style=flat-square" alt="许可证:AGPL-3.0" /></a>
|
|
19
19
|
<a href="https://www.npmjs.com/package/mancode"><img src="https://img.shields.io/npm/v/mancode?style=flat-square" alt="npm 版本" /></a>
|
|
20
|
-
<img src="https://img.shields.io/badge/status-
|
|
20
|
+
<img src="https://img.shields.io/badge/status-Continuity%20v0.3.15-2f855a?style=flat-square" alt="状态:mancode Continuity v0.3.15" />
|
|
21
21
|
<img src="https://img.shields.io/badge/platforms-Claude%20Code%20%7C%20Cursor%20%7C%20Codex%20%7C%20Copilot%20%7C%20ZCode-5865F2?style=flat-square" alt="平台:Claude Code、Cursor、ChatGPT 桌面端 Codex、Codex CLI、GitHub Copilot、ZCode" />
|
|
22
22
|
</p>
|
|
23
23
|
|
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
日常任务用轻量 `solo`,关键任务用季后赛级别的 `/man`,复杂任务让教练组 subagents
|
|
37
37
|
负责调研、计划、实现和审查。
|
|
38
38
|
|
|
39
|
+
**mancode Continuity(连续上下文运行时)**负责把任务、决策和验证证据安全地带到后续对话。
|
|
40
|
+
|
|
39
41
|
mancode 当前支持 Claude Code、Cursor、ChatGPT 桌面端中的 Codex、Codex CLI、
|
|
40
42
|
GitHub Copilot 和 ZCode。每个平台继续使用原来的 `man*` 入口,并通过静态
|
|
41
43
|
bootstrap 接入统一的 Context Pack 与 workflow authority。
|
|
@@ -92,7 +94,7 @@ mancode 把目标、需求、计划、检查结果和交接信息保存在稳定
|
|
|
92
94
|
窗口的临时状态误当成另一个窗口的身份。
|
|
93
95
|
|
|
94
96
|
```bash
|
|
95
|
-
mancode status --json
|
|
97
|
+
mancode status --brief --json
|
|
96
98
|
mancode context session new --client claude-code
|
|
97
99
|
mancode context resume <namespace:ULID> --session <id> --client claude-code
|
|
98
100
|
mancode context show --purpose orient --session <id> --client claude-code
|
|
@@ -155,7 +157,7 @@ AGENTS.md # Codex(ChatGPT 桌面端/CLI):托管 ins
|
|
|
155
157
|
- **在存在 UI 时匹配现有设计系统**:检查项目 UI 依赖、Tailwind 配置、CSS 变量和已有组件,让 agent 复用现有颜色、字体和交互模式。
|
|
156
158
|
- **先把需求和计划对齐**:`/man` 会调研项目、引导澄清会改变方案的需求、推荐可行选项并生成可确认的持久计划;计划完成后不会自动进入完整实施。
|
|
157
159
|
- **自由选择执行强度**:计划确认后,可只保留计划、交给默认 `solo` 轻量开发,或继续完整 `/man` 的验证与有界风险审查。
|
|
158
|
-
- **保留工作流产物**:调研、计划、审查报告和总结会保存到 `.mancode
|
|
160
|
+
- **保留工作流产物**:调研、计划、审查报告和总结会保存到 `.mancode/<namespace>/workflows/<ULID>/`。
|
|
159
161
|
- **支持团队上下文**:`/manteam` 通过 `.mancode/shared/` 的类型化实体共享已确认信息。
|
|
160
162
|
- **扫描项目健康度**:`mancode manps` 检测陈旧 TODO、未使用依赖、风险依赖和硬编码设计值。
|
|
161
163
|
|
|
@@ -228,7 +230,7 @@ mancode 不把“当前模式”写进持久状态。需要某种工作方式时
|
|
|
228
230
|
`solo`,当用户要求先调研、给方案或出计划时,也会进入 `/man`。它会先了解项目,
|
|
229
231
|
只追问会改变范围、架构、成本或验收的问题;适合由系统推荐的决策会给出 2–3 个
|
|
230
232
|
方案、优缺点和明确建议。需求足够清楚后,计划才会写入
|
|
231
|
-
`.mancode/local/workflows/<
|
|
233
|
+
`.mancode/local/workflows/<ULID>/plan.md`。
|
|
232
234
|
|
|
233
235
|
计划完成不会自动开始完整开发。用户在计划关卡选择:交给 `solo` 按已确认计划
|
|
234
236
|
轻量开发、继续完整 `/man`、只保留计划,或修改计划。只有选择完整 `/man` 才继续
|
|
@@ -305,9 +307,8 @@ src/components/
|
|
|
305
307
|
|
|
306
308
|
## 安装
|
|
307
309
|
|
|
308
|
-
|
|
309
|
-
Codex CLI
|
|
310
|
-
发现路径在发布前仍作为验证门禁。
|
|
310
|
+
**状态**:mancode Continuity v0.3.15。Claude Code、Cursor、ChatGPT 桌面端中的
|
|
311
|
+
Codex、Codex CLI、GitHub Copilot 和 ZCode adapter 均已接入。
|
|
311
312
|
|
|
312
313
|
需要 Node.js 20 或更高版本。原生支持 macOS、Linux、Windows CMD、
|
|
313
314
|
PowerShell 和 Git Bash。Git 是可选依赖:未安装时仍可初始化,只会把团队
|
|
@@ -374,11 +375,14 @@ mancode init
|
|
|
374
375
|
mancode init --legacy
|
|
375
376
|
mancode status
|
|
376
377
|
mancode status --json
|
|
378
|
+
mancode status --brief --json
|
|
377
379
|
mancode install <claude-code|cursor|codex|copilot|zcode>
|
|
378
380
|
mancode list-platforms
|
|
379
381
|
mancode team identity create --name "<name>"
|
|
380
382
|
mancode context session new --client <platform>
|
|
381
383
|
mancode workflow create <man|manba|manteam> "<task>" --session <id>
|
|
384
|
+
mancode workflow list --json
|
|
385
|
+
mancode workflow show <namespace:ULID> --json
|
|
382
386
|
mancode context resume <local:ULID|shared:ULID> --session <id>
|
|
383
387
|
mancode workflow requirements <namespace:ULID> finalize --file <requirements.json> --expected-revision <n> --session <id>
|
|
384
388
|
mancode workflow plan <namespace:ULID> revise --file <plan.md> --expected-revision <n> --session <id>
|
|
@@ -400,7 +404,7 @@ mancode version
|
|
|
400
404
|
以下是简化输出示例:
|
|
401
405
|
|
|
402
406
|
```text
|
|
403
|
-
mancode v0.3.
|
|
407
|
+
mancode v0.3.15
|
|
404
408
|
|
|
405
409
|
Project: my-app
|
|
406
410
|
Runtime: ready
|
|
@@ -438,12 +442,14 @@ mancode init
|
|
|
438
442
|
|
|
439
443
|
### `mancode status`
|
|
440
444
|
|
|
441
|
-
显示 activation、runtime binding、identity/session evidence、
|
|
442
|
-
bootstrap/原 mode
|
|
445
|
+
默认输出和完整 JSON 显示 activation、runtime binding、identity/session evidence、
|
|
446
|
+
transport 和各平台 bootstrap/原 mode 入口的实际就绪状态。编码 Agent 应组合使用
|
|
447
|
+
`--brief --json`,只读取精简的 Continuity 运行时视图。
|
|
443
448
|
|
|
444
449
|
```bash
|
|
445
450
|
mancode status
|
|
446
451
|
mancode status --json
|
|
452
|
+
mancode status --brief --json
|
|
447
453
|
```
|
|
448
454
|
|
|
449
455
|
### `mancode workflow`
|
|
@@ -458,9 +464,11 @@ mancode context session new --client codex
|
|
|
458
464
|
mancode workflow create man "refactor auth module" --session <id>
|
|
459
465
|
mancode workflow requirements <local:ULID> finalize --file requirements.json --expected-revision <n> --session <id>
|
|
460
466
|
mancode workflow plan <local:ULID> revise --file plan.md --expected-revision <n> --session <id>
|
|
467
|
+
mancode workflow plan <local:ULID> confirm --plan-decision <plan_only|governed_execution> --expected-revision <n> --session <id>
|
|
461
468
|
mancode workflow review <local:ULID> apply --file review-ledger.json --expected-revision <n> --session <id>
|
|
462
469
|
mancode workflow verify <local:ULID> apply --file verification-ledger.json --expected-revision <n> --session <id>
|
|
463
470
|
mancode workflow complete <local:ULID> --expected-revision <n> --session <id>
|
|
471
|
+
mancode context compact --dry-run
|
|
464
472
|
```
|
|
465
473
|
|
|
466
474
|
### `mancode manps`
|
|
@@ -575,23 +583,33 @@ mancode/
|
|
|
575
583
|
(context、practice、solo)在每次对话加载。模式规则(manba、man、manteam、
|
|
576
584
|
manps)按 description 触发——输入 `/manba` 等关键词即可激活。
|
|
577
585
|
|
|
578
|
-
###
|
|
586
|
+
### 如何重装 Continuity 适配器
|
|
579
587
|
|
|
580
588
|
```bash
|
|
581
|
-
mancode uninstall
|
|
582
|
-
mancode
|
|
583
|
-
mancode
|
|
589
|
+
mancode uninstall claude-code --force
|
|
590
|
+
mancode uninstall cursor --force
|
|
591
|
+
mancode uninstall codex --force
|
|
592
|
+
mancode uninstall copilot --force
|
|
593
|
+
mancode uninstall zcode --force
|
|
594
|
+
mancode install claude-code
|
|
595
|
+
mancode install cursor
|
|
596
|
+
mancode install codex
|
|
597
|
+
mancode install copilot
|
|
598
|
+
mancode install zcode
|
|
584
599
|
```
|
|
585
600
|
|
|
586
|
-
|
|
601
|
+
Continuity authority 受保护,`mancode uninstall --all` 不会删除工作流权威数据。需要
|
|
602
|
+
清理运行时保留记录时,先用 `mancode context compact --dry-run` 检查候选。
|
|
603
|
+
|
|
604
|
+
### 如何移除 CLI
|
|
587
605
|
|
|
588
606
|
```bash
|
|
589
|
-
mancode uninstall --all --force
|
|
590
607
|
npm uninstall -g mancode
|
|
591
608
|
```
|
|
592
609
|
|
|
593
|
-
|
|
594
|
-
|
|
610
|
+
逐个平台卸载会移除对应的 mancode bootstrap,并保留用户自定义 rules、instructions
|
|
611
|
+
和 Continuity 工作流数据。旧项目若明确使用 `mancode init --legacy`,才支持 legacy 的
|
|
612
|
+
`mancode uninstall --all --force`。
|
|
595
613
|
|
|
596
614
|
## 常见问题
|
|
597
615
|
|
|
@@ -6714,14 +6714,9 @@ var V3ContextStore = class {
|
|
|
6714
6714
|
})
|
|
6715
6715
|
};
|
|
6716
6716
|
}
|
|
6717
|
-
/**
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
* V3 child creation takes that same parent lock before publishing.
|
|
6721
|
-
*/
|
|
6722
|
-
async listActiveChildTaskRefs(parentTaskRef) {
|
|
6723
|
-
const parent = parseTaskRefValue(parentTaskRef);
|
|
6724
|
-
const children = [];
|
|
6717
|
+
/** Lists every canonical V3 workflow without relying on a session pointer. */
|
|
6718
|
+
async listWorkflowMetadata() {
|
|
6719
|
+
const workflows = [];
|
|
6725
6720
|
for (const namespace of ["local", "shared"]) {
|
|
6726
6721
|
const directory = path9.join(".mancode", namespace, "workflows");
|
|
6727
6722
|
const entries = await readDirectoryEntriesWithin(
|
|
@@ -6730,7 +6725,7 @@ var V3ContextStore = class {
|
|
|
6730
6725
|
);
|
|
6731
6726
|
for (const taskId of entries.sort(compareUtf83)) {
|
|
6732
6727
|
try {
|
|
6733
|
-
assertUlid(taskId, "workflow
|
|
6728
|
+
assertUlid(taskId, "workflow directory");
|
|
6734
6729
|
} catch {
|
|
6735
6730
|
throw new Error("MANCODE_CONTEXT_COLLECTION_ENTRY_INVALID");
|
|
6736
6731
|
}
|
|
@@ -6745,12 +6740,26 @@ var V3ContextStore = class {
|
|
|
6745
6740
|
"metadata.json",
|
|
6746
6741
|
parseWorkflowMetadata
|
|
6747
6742
|
);
|
|
6748
|
-
if (
|
|
6749
|
-
|
|
6743
|
+
if (!sameTaskRef(metadata.taskRef, taskRef)) {
|
|
6744
|
+
throw new Error("MANCODE_CONTEXT_TASK_LOCATION_MISMATCH");
|
|
6750
6745
|
}
|
|
6746
|
+
workflows.push(metadata);
|
|
6751
6747
|
}
|
|
6752
6748
|
}
|
|
6753
|
-
return
|
|
6749
|
+
return workflows.sort(
|
|
6750
|
+
(left, right) => Date.parse(right.updatedAt) - Date.parse(left.updatedAt) || compareUtf83(left.taskRef.namespace, right.taskRef.namespace) || compareUtf83(left.taskRef.taskId, right.taskRef.taskId)
|
|
6751
|
+
);
|
|
6752
|
+
}
|
|
6753
|
+
/**
|
|
6754
|
+
* Lists non-terminal children from canonical metadata only. Callers that
|
|
6755
|
+
* need a completion gate must hold the parent task lock while invoking it;
|
|
6756
|
+
* V3 child creation takes that same parent lock before publishing.
|
|
6757
|
+
*/
|
|
6758
|
+
async listActiveChildTaskRefs(parentTaskRef) {
|
|
6759
|
+
const parent = parseTaskRefValue(parentTaskRef);
|
|
6760
|
+
return (await this.listWorkflowMetadata()).filter(
|
|
6761
|
+
(metadata) => metadata.parent !== null && sameTaskRef(metadata.parent.taskRef, parent) && !isTerminalWorkflowStatus(metadata.status)
|
|
6762
|
+
).map((metadata) => metadata.taskRef).sort(
|
|
6754
6763
|
(left, right) => compareUtf83(left.namespace, right.namespace) || compareUtf83(left.taskId, right.taskId)
|
|
6755
6764
|
);
|
|
6756
6765
|
}
|
|
@@ -7114,4 +7123,4 @@ export {
|
|
|
7114
7123
|
V3ContextStore,
|
|
7115
7124
|
storedTaskAggregateDigest
|
|
7116
7125
|
};
|
|
7117
|
-
//# sourceMappingURL=chunk-
|
|
7126
|
+
//# sourceMappingURL=chunk-LMXUPBCN.js.map
|