@quolu/lattice 0.86.0 → 0.86.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quolu/lattice",
3
- "version": "0.86.0",
3
+ "version": "0.86.1",
4
4
  "description": "Schedulability compiler for multi-agent development: observe real code boundaries, refactor the conflicting seam, recompile the plan for parallel execution",
5
5
  "author": {
6
6
  "name": "Quo / クオ at kitepon.dev",
package/src/cli-help.mjs CHANGED
@@ -98,7 +98,7 @@ Read commands:
98
98
  verify [--plan <key>] [--json]
99
99
  snapshot --rebuild --plan <key>
100
100
  gantt serve --port <port> [--scope live|all] # 動的表示。opt-in済みplanは工程図と別の構造検査面を持つ
101
- phase status --plan <key>
101
+ phase status --plan <key> [--json]
102
102
 
103
103
  Write commands:
104
104
  repair-eol --json # Git checkoutでCRLF化された既存storeをcanonical LFへ戻し、EOL保護を追加する
@@ -318,7 +318,7 @@ const SUBCOMMAND_USAGE = Object.freeze({
318
318
  'todo dashboard remove': 'todo dashboard remove <project_id> --json # 登録簿から1件外す(対象repo不在でも可)',
319
319
  'todo phase': 'todo phase <status|review|accept|reject|reopen|close-unaudited> --plan <key> [options]'
320
320
  + ' | baseline --reason <text> [--except <plan_key>]...',
321
- 'todo phase status': 'todo phase status --plan <key>',
321
+ 'todo phase status': 'todo phase status --plan <key> [--json]',
322
322
  'todo phase review': 'todo phase review --plan <key> --phase <id> --reason <text>',
323
323
  'todo phase accept': 'todo phase accept --plan <key> --phase <id> --evidence <file> | --input <file>',
324
324
  'todo phase reject': 'todo phase reject --plan <key> --phase <id> --reason <text> --evidence <file> | --input <file>',
package/src/todo-cli.mjs CHANGED
@@ -350,6 +350,7 @@ const TODO_FLAG_SPECS = Object.freeze({
350
350
  'independence witness scaffold': Object.freeze({ known: ['plan', 'input'], required: ['plan', 'input'] }),
351
351
  show: Object.freeze({ known: ['plan', 'task', 'json'], required: ['plan', 'task'], booleans: ['json'] }),
352
352
  'note list': Object.freeze({ known: ['plan', 'task', 'json'], required: ['plan'], booleans: ['json'] }),
353
+ 'phase status': Object.freeze({ known: ['plan', 'json'], required: ['plan'], booleans: ['json'] }),
353
354
  structure: Object.freeze({ known: ['plan', 'json'], required: [], booleans: ['json'] }),
354
355
  status: Object.freeze({ known: ['json'], required: [], booleans: ['json'] }),
355
356
  });
@@ -4905,9 +4906,10 @@ export async function runTodoCli({ argv, cwd, stdout, stderr, env = process.env,
4905
4906
  if (flags !== null && isTodoIdentifier(flags.plan) && isAuthoringPathToken(flags.input)) {
4906
4907
  action = (repoRoot) => revisePhase({ repoRoot, env, planKey: flags.plan, inputRef: flags.input });
4907
4908
  }
4908
- } else if (argv.length === 4 && argv[0] === 'phase' && argv[1] === 'status'
4909
- && argv[2] === '--plan' && isTodoIdentifier(argv[3])) {
4910
- action = (repoRoot) => phaseStatus({ repoRoot, planKey: argv[3] });
4909
+ } else if (argv[0] === 'phase' && argv[1] === 'status' && readFlags(argv, ['phase', 'status']) !== null) {
4910
+ // a28: a read's --json is optional; its output is JSON either way.
4911
+ const flags = readFlags(argv, ['phase', 'status']);
4912
+ action = (repoRoot) => phaseStatus({ repoRoot, planKey: flags.plan });
4911
4913
  } else if (argv[0] === 'phase' && argv[1] === 'review'
4912
4914
  && phaseReasonFlags(argv) !== null) {
4913
4915
  const flags = phaseReasonFlags(argv);
@@ -31,6 +31,8 @@ export async function readTodoParallelCandidatesForStatus(options = {}) {
31
31
  const candidates = [];
32
32
  for (const member of store.members) {
33
33
  const planKey = member.plan.plan_key;
34
+ // ADR 0160 §2: a plan that chose conversation gets no witness prompt (BellTeam 0.85.5 report).
35
+ if (member.coordination?.mode === 'conversation') continue;
34
36
  const readyTaskIds = frontier.filter((task) => task.plan_key === planKey)
35
37
  .map(({ task_id: taskId }) => taskId);
36
38
  let artifact = null;