mainflow 0.14.0 → 0.15.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.
package/dist/cli.js CHANGED
@@ -240,7 +240,8 @@ const RUNS = {
240
240
  return done(`logged ${entry.at} ${entry.operation}`);
241
241
  },
242
242
  "ops list": ({ root, opts }) => {
243
- const shown = loadHub(root).ops.filter((o) => (!opts.month || o.at.startsWith(opts.month)) && (!opts.ref || o.ref === opts.ref));
243
+ const covers = (ref) => !opts.ref || ref !== void 0 && (ref === opts.ref || ref.startsWith(`${opts.ref}/`) || ref.startsWith(`${opts.ref}#`));
244
+ const shown = loadHub(root).ops.filter((o) => (!opts.month || o.at.startsWith(opts.month)) && covers(o.ref));
244
245
  for (const o of shown) console.log(` ${o.at} ${o.target} ${o.operation} ${o.result}${o.ref ? ` ${o.ref}` : ""}`);
245
246
  return done(`${shown.length} operations`);
246
247
  },
package/dist/facts.d.ts CHANGED
@@ -299,7 +299,7 @@ export declare const COMMAND_SPECS: {
299
299
  };
300
300
  readonly 'ops list': {
301
301
  readonly usage: 'ops list [--month YYYY-MM] [--ref <ref>]';
302
- readonly summary: 'List logged external operations, optionally filtered by month or by the exact ref that was logged';
302
+ readonly summary: 'List logged external operations, optionally filtered by month or by a ref, which also matches the refs beneath it (m001 matches m001/t002 and m001/t002#c001)';
303
303
  readonly args: 0;
304
304
  readonly needsHub: true;
305
305
  };
package/dist/facts.js CHANGED
@@ -275,7 +275,7 @@ const COMMAND_SPECS = {
275
275
  },
276
276
  "ops list": {
277
277
  usage: "ops list [--month YYYY-MM] [--ref <ref>]",
278
- summary: "List logged external operations, optionally filtered by month or by the exact ref that was logged",
278
+ summary: "List logged external operations, optionally filtered by month or by a ref, which also matches the refs beneath it (m001 matches m001/t002 and m001/t002#c001)",
279
279
  args: 0,
280
280
  needsHub: true
281
281
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mainflow",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "本機多 AI 協作的主脈絡任務管理:CLI 與介面",
5
5
  "license": "MIT",
6
6
  "type": "module",