monday-cli 0.3.0 → 0.4.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 (107) hide show
  1. package/CHANGELOG.md +351 -0
  2. package/README.md +130 -36
  3. package/dist/api/assets.d.ts +326 -0
  4. package/dist/api/assets.d.ts.map +1 -0
  5. package/dist/api/assets.js +519 -0
  6. package/dist/api/assets.js.map +1 -0
  7. package/dist/api/column-types.d.ts +11 -7
  8. package/dist/api/column-types.d.ts.map +1 -1
  9. package/dist/api/column-types.js +5 -3
  10. package/dist/api/column-types.js.map +1 -1
  11. package/dist/api/column-values.d.ts +7 -1
  12. package/dist/api/column-values.d.ts.map +1 -1
  13. package/dist/api/column-values.js +15 -6
  14. package/dist/api/column-values.js.map +1 -1
  15. package/dist/api/documents.d.ts +519 -0
  16. package/dist/api/documents.d.ts.map +1 -0
  17. package/dist/api/documents.js +586 -0
  18. package/dist/api/documents.js.map +1 -0
  19. package/dist/api/item-watch.d.ts +263 -0
  20. package/dist/api/item-watch.d.ts.map +1 -0
  21. package/dist/api/item-watch.js +709 -0
  22. package/dist/api/item-watch.js.map +1 -0
  23. package/dist/api/multipart-transport.d.ts +223 -0
  24. package/dist/api/multipart-transport.d.ts.map +1 -0
  25. package/dist/api/multipart-transport.js +274 -0
  26. package/dist/api/multipart-transport.js.map +1 -0
  27. package/dist/api/parallel-dispatch.d.ts +155 -0
  28. package/dist/api/parallel-dispatch.d.ts.map +1 -0
  29. package/dist/api/parallel-dispatch.js +243 -0
  30. package/dist/api/parallel-dispatch.js.map +1 -0
  31. package/dist/api/partial-success-bulk.d.ts +118 -60
  32. package/dist/api/partial-success-bulk.d.ts.map +1 -1
  33. package/dist/api/partial-success-bulk.js +137 -79
  34. package/dist/api/partial-success-bulk.js.map +1 -1
  35. package/dist/api/partial-success-mutation.d.ts +13 -1
  36. package/dist/api/partial-success-mutation.d.ts.map +1 -1
  37. package/dist/api/partial-success-mutation.js +5 -1
  38. package/dist/api/partial-success-mutation.js.map +1 -1
  39. package/dist/api/raw-write.d.ts +12 -4
  40. package/dist/api/raw-write.d.ts.map +1 -1
  41. package/dist/api/raw-write.js +21 -11
  42. package/dist/api/raw-write.js.map +1 -1
  43. package/dist/api/resolve-client.d.ts +11 -0
  44. package/dist/api/resolve-client.d.ts.map +1 -1
  45. package/dist/api/resolve-client.js +9 -1
  46. package/dist/api/resolve-client.js.map +1 -1
  47. package/dist/cli/run.d.ts +20 -0
  48. package/dist/cli/run.d.ts.map +1 -1
  49. package/dist/cli/run.js +1 -0
  50. package/dist/cli/run.js.map +1 -1
  51. package/dist/commands/board/column-create.d.ts +6 -5
  52. package/dist/commands/board/column-create.d.ts.map +1 -1
  53. package/dist/commands/board/column-create.js +9 -6
  54. package/dist/commands/board/column-create.js.map +1 -1
  55. package/dist/commands/completion.d.ts +188 -0
  56. package/dist/commands/completion.d.ts.map +1 -0
  57. package/dist/commands/completion.js +418 -0
  58. package/dist/commands/completion.js.map +1 -0
  59. package/dist/commands/doc/get.d.ts +46 -0
  60. package/dist/commands/doc/get.d.ts.map +1 -0
  61. package/dist/commands/doc/get.js +95 -0
  62. package/dist/commands/doc/get.js.map +1 -0
  63. package/dist/commands/doc/list.d.ts +83 -0
  64. package/dist/commands/doc/list.d.ts.map +1 -0
  65. package/dist/commands/doc/list.js +248 -0
  66. package/dist/commands/doc/list.js.map +1 -0
  67. package/dist/commands/index.d.ts.map +1 -1
  68. package/dist/commands/index.js +46 -0
  69. package/dist/commands/index.js.map +1 -1
  70. package/dist/commands/item/create.js +2 -2
  71. package/dist/commands/item/update.d.ts +1 -0
  72. package/dist/commands/item/update.d.ts.map +1 -1
  73. package/dist/commands/item/update.js +61 -0
  74. package/dist/commands/item/update.js.map +1 -1
  75. package/dist/commands/item/upload.d.ts +108 -0
  76. package/dist/commands/item/upload.d.ts.map +1 -0
  77. package/dist/commands/item/upload.js +370 -0
  78. package/dist/commands/item/upload.js.map +1 -0
  79. package/dist/commands/item/watch.d.ts +90 -0
  80. package/dist/commands/item/watch.d.ts.map +1 -0
  81. package/dist/commands/item/watch.js +342 -0
  82. package/dist/commands/item/watch.js.map +1 -0
  83. package/dist/commands/update/upload.d.ts +69 -0
  84. package/dist/commands/update/upload.d.ts.map +1 -0
  85. package/dist/commands/update/upload.js +235 -0
  86. package/dist/commands/update/upload.js.map +1 -0
  87. package/dist/types/ids.d.ts +2 -0
  88. package/dist/types/ids.d.ts.map +1 -1
  89. package/dist/types/ids.js +9 -2
  90. package/dist/types/ids.js.map +1 -1
  91. package/dist/utils/mime.d.ts +24 -0
  92. package/dist/utils/mime.d.ts.map +1 -0
  93. package/dist/utils/mime.js +64 -0
  94. package/dist/utils/mime.js.map +1 -0
  95. package/dist/utils/output/envelope.d.ts +30 -0
  96. package/dist/utils/output/envelope.d.ts.map +1 -1
  97. package/dist/utils/output/envelope.js +26 -0
  98. package/dist/utils/output/envelope.js.map +1 -1
  99. package/dist/utils/output/ndjson.d.ts +25 -0
  100. package/dist/utils/output/ndjson.d.ts.map +1 -1
  101. package/dist/utils/output/ndjson.js +12 -0
  102. package/dist/utils/output/ndjson.js.map +1 -1
  103. package/dist/utils/signal.d.ts +42 -0
  104. package/dist/utils/signal.d.ts.map +1 -0
  105. package/dist/utils/signal.js +45 -0
  106. package/dist/utils/signal.js.map +1 -0
  107. package/package.json +1 -1
@@ -0,0 +1,46 @@
1
+ /**
2
+ * `monday doc get <did>` — read a single workdoc by ID, including
3
+ * its rich-text block body (cli-design.md §4.3 DOC section + §13
4
+ * v0.4 entry; v0.4-plan.md §3 M32).
5
+ *
6
+ * **Wire shape.** Single `Query.docs(ids: [<did>])` round-trip via
7
+ * {@link getDocument} against `query GetDoc` with `operationName:
8
+ * 'GetDoc'` (R-NEW-37 W2 audit-point). Monday returns `[Document]`
9
+ * (an array even for a single-id query); the fetcher extracts
10
+ * index 0. Empty array → `not_found` with `details.doc_id` (D8 —
11
+ * Monday's wire surface collapses "doesn't exist" + "exists but
12
+ * inaccessible to token" into the same shape; the CLI can't
13
+ * distinguish them).
14
+ *
15
+ * **Output envelope (D9).** Direct unwrap of the Document — `data:
16
+ * <Document with blocks>`. Mirrors the read-one-verb convention
17
+ * (`monday board get <bid>` returns `data: <Board>`, `monday user
18
+ * get <uid>` returns `data: <User>`). The Document's own `id`
19
+ * field is the echoed input; no separate `doc_id` slot is needed.
20
+ * `data.blocks: [DocumentBlock]` is the rich-text body hydrated
21
+ * from `Document.blocks` (always present on success — never null
22
+ * for a doc that resolved).
23
+ *
24
+ * **Docs are live-only at v0.4-M32** per cli-design §8 cache
25
+ * scope. Output `meta.source: "live"`, `meta.cache_age_seconds:
26
+ * null`. Per-doc body content is content-heavy + frequently
27
+ * human-edited; the stale-cache risk outweighs the cache-hit
28
+ * value.
29
+ *
30
+ * **Idempotent: yes** (pure read).
31
+ *
32
+ * **Runtime body landed at v0.4-M32 IMPL.** Argv parsing + schema +
33
+ * commander wiring all ship as the real shipped surface; the action
34
+ * body's wire-call dispatch + envelope emit are below. The verb is
35
+ * a thin wrapper around {@link getDocument} — branded `<docId>` →
36
+ * fetcher → direct-unwrap envelope.
37
+ */
38
+ import { z } from 'zod';
39
+ import { type CommandModule } from '../types.js';
40
+ import { type DocGetOutput } from '../../api/documents.js';
41
+ declare const inputSchema: z.ZodObject<{
42
+ docId: z.core.$ZodBranded<z.ZodString, "DocId", "out">;
43
+ }, z.core.$strict>;
44
+ export declare const docGetCommand: CommandModule<z.infer<typeof inputSchema>, DocGetOutput>;
45
+ export {};
46
+ //# sourceMappingURL=get.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/commands/doc/get.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAoB,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAKnE,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,wBAAwB,CAAC;AAEhC,QAAA,MAAM,WAAW;;kBAA4C,CAAC;AAE9D,eAAO,MAAM,aAAa,EAAE,aAAa,CACvC,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,EAC3B,YAAY,CAyDb,CAAC"}
@@ -0,0 +1,95 @@
1
+ /**
2
+ * `monday doc get <did>` — read a single workdoc by ID, including
3
+ * its rich-text block body (cli-design.md §4.3 DOC section + §13
4
+ * v0.4 entry; v0.4-plan.md §3 M32).
5
+ *
6
+ * **Wire shape.** Single `Query.docs(ids: [<did>])` round-trip via
7
+ * {@link getDocument} against `query GetDoc` with `operationName:
8
+ * 'GetDoc'` (R-NEW-37 W2 audit-point). Monday returns `[Document]`
9
+ * (an array even for a single-id query); the fetcher extracts
10
+ * index 0. Empty array → `not_found` with `details.doc_id` (D8 —
11
+ * Monday's wire surface collapses "doesn't exist" + "exists but
12
+ * inaccessible to token" into the same shape; the CLI can't
13
+ * distinguish them).
14
+ *
15
+ * **Output envelope (D9).** Direct unwrap of the Document — `data:
16
+ * <Document with blocks>`. Mirrors the read-one-verb convention
17
+ * (`monday board get <bid>` returns `data: <Board>`, `monday user
18
+ * get <uid>` returns `data: <User>`). The Document's own `id`
19
+ * field is the echoed input; no separate `doc_id` slot is needed.
20
+ * `data.blocks: [DocumentBlock]` is the rich-text body hydrated
21
+ * from `Document.blocks` (always present on success — never null
22
+ * for a doc that resolved).
23
+ *
24
+ * **Docs are live-only at v0.4-M32** per cli-design §8 cache
25
+ * scope. Output `meta.source: "live"`, `meta.cache_age_seconds:
26
+ * null`. Per-doc body content is content-heavy + frequently
27
+ * human-edited; the stale-cache risk outweighs the cache-hit
28
+ * value.
29
+ *
30
+ * **Idempotent: yes** (pure read).
31
+ *
32
+ * **Runtime body landed at v0.4-M32 IMPL.** Argv parsing + schema +
33
+ * commander wiring all ship as the real shipped surface; the action
34
+ * body's wire-call dispatch + envelope emit are below. The verb is
35
+ * a thin wrapper around {@link getDocument} — branded `<docId>` →
36
+ * fetcher → direct-unwrap envelope.
37
+ */
38
+ import { z } from 'zod';
39
+ import { ensureSubcommand } from '../types.js';
40
+ import { parseArgv } from '../parse-argv.js';
41
+ import { emitSuccess } from '../emit.js';
42
+ import { resolveClient } from '../../api/resolve-client.js';
43
+ import { DocIdSchema } from '../../types/ids.js';
44
+ import { docGetOutputSchema, getDocument, } from '../../api/documents.js';
45
+ const inputSchema = z.object({ docId: DocIdSchema }).strict();
46
+ export const docGetCommand = {
47
+ name: 'doc.get',
48
+ summary: 'Read a single workdoc by ID (includes block body)',
49
+ examples: [
50
+ 'monday doc get 12345678',
51
+ 'monday doc get 12345678 --json',
52
+ ],
53
+ idempotent: true,
54
+ inputSchema,
55
+ outputSchema: docGetOutputSchema,
56
+ attach: (program, ctx) => {
57
+ const noun = ensureSubcommand(program, 'doc', 'Document commands (workdocs; read-only at v0.4 — see cli-design §13 v0.4 entry)');
58
+ noun
59
+ .command('get <docId>')
60
+ .description(docGetCommand.summary)
61
+ .addHelpText('after', [
62
+ '',
63
+ 'Examples:',
64
+ ...docGetCommand.examples.map((e) => ` ${e}`),
65
+ '',
66
+ 'Notes:',
67
+ ' - Output carries the full Document plus `blocks: [DocumentBlock]` (rich-text body).',
68
+ ' - Non-existent + inaccessible docs both surface `not_found` (Monday\'s wire collapses both cases).',
69
+ '',
70
+ ].join('\n'))
71
+ .action(async (docIdArg) => {
72
+ const parsed = parseArgv(docGetCommand.inputSchema, {
73
+ docId: docIdArg,
74
+ });
75
+ const { client, apiVersion } = resolveClient(ctx, program.opts());
76
+ const result = await getDocument({
77
+ client,
78
+ docId: parsed.docId,
79
+ });
80
+ emitSuccess({
81
+ ctx,
82
+ data: result.document,
83
+ schema: docGetCommand.outputSchema,
84
+ programOpts: program.opts(),
85
+ kind: 'single',
86
+ warnings: [],
87
+ source: result.source,
88
+ cacheAgeSeconds: result.cacheAgeSeconds,
89
+ complexity: result.complexity,
90
+ apiVersion,
91
+ });
92
+ });
93
+ },
94
+ };
95
+ //# sourceMappingURL=get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/commands/doc/get.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAsB,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EACL,kBAAkB,EAClB,WAAW,GAEZ,MAAM,wBAAwB,CAAC;AAEhC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;AAE9D,MAAM,CAAC,MAAM,aAAa,GAGtB;IACF,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,mDAAmD;IAC5D,QAAQ,EAAE;QACR,yBAAyB;QACzB,gCAAgC;KACjC;IACD,UAAU,EAAE,IAAI;IAChB,WAAW;IACX,YAAY,EAAE,kBAAkB;IAChC,MAAM,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,EAAE;QACvB,MAAM,IAAI,GAAG,gBAAgB,CAC3B,OAAO,EACP,KAAK,EACL,iFAAiF,CAClF,CAAC;QACF,IAAI;aACD,OAAO,CAAC,aAAa,CAAC;aACtB,WAAW,CAAC,aAAa,CAAC,OAAO,CAAC;aAClC,WAAW,CACV,OAAO,EACP;YACE,EAAE;YACF,WAAW;YACX,GAAG,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;YAC9C,EAAE;YACF,QAAQ;YACR,uFAAuF;YACvF,sGAAsG;YACtG,EAAE;SACH,CAAC,IAAI,CAAC,IAAI,CAAC,CACb;aACA,MAAM,CAAC,KAAK,EAAE,QAAiB,EAAE,EAAE;YAClC,MAAM,MAAM,GAAG,SAAS,CAAC,aAAa,CAAC,WAAW,EAAE;gBAClD,KAAK,EAAE,QAAQ;aAChB,CAAC,CAAC;YAEH,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,aAAa,CAAC,GAAG,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;YAClE,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC;gBAC/B,MAAM;gBACN,KAAK,EAAE,MAAM,CAAC,KAAK;aACpB,CAAC,CAAC;YACH,WAAW,CAAC;gBACV,GAAG;gBACH,IAAI,EAAE,MAAM,CAAC,QAAQ;gBACrB,MAAM,EAAE,aAAa,CAAC,YAAY;gBAClC,WAAW,EAAE,OAAO,CAAC,IAAI,EAAE;gBAC3B,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,EAAE;gBACZ,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,eAAe,EAAE,MAAM,CAAC,eAAe;gBACvC,UAAU,EAAE,MAAM,CAAC,UAAU;gBAC7B,UAAU;aACX,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;CACF,CAAC"}
@@ -0,0 +1,83 @@
1
+ /**
2
+ * `monday doc list [--workspace <wid>,...] [--order-by <created_at|
3
+ * used_at>] [--limit <n>] [--page <n>]` — list workdocs visible to
4
+ * the token, optionally filtered by workspace and sorted by recency
5
+ * (cli-design.md §4.3 DOC section + §13 v0.4 entry; v0.4-plan.md §3
6
+ * M32).
7
+ *
8
+ * **Wire shape.** Single `Query.docs(...)` round-trip via
9
+ * {@link listDocuments} against `query ListDocs` with
10
+ * `operationName: 'ListDocs'` (R-NEW-37 W2 audit-point). Page/limit
11
+ * pagination — Monday's workdocs surface has no `items_page`-style
12
+ * cursor; agents paginate by incrementing `--page`. The list row
13
+ * projection ships every base Document field EXCEPT `blocks` per
14
+ * D6 closure (rich-text bodies belong to `monday doc get <did>`).
15
+ *
16
+ * **Argv shape.**
17
+ *
18
+ * - `--workspace <wid>,...` — comma-separated workspace ID
19
+ * filter (maps to wire `workspace_ids: [ID]`). Optional;
20
+ * absent → unfiltered (every visible doc across the account).
21
+ * Each entry is brand-validated via {@link WorkspaceIdSchema}.
22
+ * Inaccessible workspace IDs surface as empty filter results
23
+ * per D4 — Monday's wire silently drops unknown workspace IDs
24
+ * rather than rejecting the call; the CLI doesn't fire a
25
+ * resolver warning because the wire doesn't distinguish "no
26
+ * docs in workspace X" from "X not accessible".
27
+ * - `--order-by <created_at|used_at>` — pinned 2-value enum
28
+ * (per the M32 probe of `DocsOrderBy`). Default
29
+ * `created_at`. Both values sort `desc` server-side; no
30
+ * ascending variant on Monday's wire.
31
+ * - `--limit <n>` — `[1, 100]`, default `25` (matches Monday's
32
+ * wire-side default; ceiling pins worst-case payload size).
33
+ * Out-of-range argv rejects at parse boundary with
34
+ * `usage_error` (no wire call fires).
35
+ * - `--page <n>` — 1-based, default `1`. Out-of-range argv
36
+ * rejects at parse boundary.
37
+ *
38
+ * **Output envelope (D9).** Wrapped record `data: { documents:
39
+ * [Document], page, limit, returned_count, has_more }`.
40
+ * `has_more` is the `returned_count === limit` heuristic —
41
+ * Monday's wire doesn't surface a total count, so "exactly limit
42
+ * rows returned" is the only signal that a follow-up page may
43
+ * exist. Agents that need exhaustive listing loop until
44
+ * `has_more: false`.
45
+ *
46
+ * **Docs are live-only at v0.4-M32** per cli-design §8 cache
47
+ * scope. Output `meta.source: "live"`, `meta.cache_age_seconds:
48
+ * null`. Workdocs are content-heavy + frequently human-edited; the
49
+ * stale-cache risk outweighs the cache-hit value.
50
+ *
51
+ * **Idempotent: yes** (pure read).
52
+ *
53
+ * **Runtime body landed at v0.4-M32 IMPL.** Argv parsing + schema +
54
+ * commander wiring + `--workspace` comma-split helper all ship as
55
+ * the real shipped argv surface; the action body's wire-call
56
+ * dispatch + envelope emit are below. The verb is a thin wrapper
57
+ * around {@link listDocuments} — comma-split argv → branded array
58
+ * → fetcher → envelope.
59
+ */
60
+ import { z } from 'zod';
61
+ import { type CommandModule } from '../types.js';
62
+ import { type DocListOutput } from '../../api/documents.js';
63
+ declare const inputSchema: z.ZodObject<{
64
+ workspace: z.ZodOptional<z.ZodString>;
65
+ orderBy: z.ZodOptional<z.ZodEnum<{
66
+ created_at: "created_at";
67
+ used_at: "used_at";
68
+ }>>;
69
+ limit: z.ZodOptional<z.ZodNumber>;
70
+ page: z.ZodOptional<z.ZodNumber>;
71
+ }, z.core.$strict>;
72
+ export declare const docListCommand: CommandModule<z.infer<typeof inputSchema>, DocListOutput>;
73
+ /**
74
+ * Internals exposed for unit-test access (argv parser pinning).
75
+ * NOT a public API — the comma-split helper + decimal parser stay
76
+ * production-internal.
77
+ */
78
+ export declare const _internals: {
79
+ readonly parseWorkspaceListArg: (raw: string) => readonly string[];
80
+ readonly parseStrictDecimal: (raw: string) => number;
81
+ };
82
+ export {};
83
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/commands/doc/list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAoB,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAKnE,OAAO,EAOL,KAAK,aAAa,EACnB,MAAM,wBAAwB,CAAC;AAEhC,QAAA,MAAM,WAAW;;;;;;;;kBA6BN,CAAC;AAEZ,eAAO,MAAM,cAAc,EAAE,aAAa,CACxC,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,EAC3B,aAAa,CA4Gd,CAAC;AA2EF;;;;GAIG;AACH,eAAO,MAAM,UAAU;0CA7Ca,MAAM,KAAG,SAAS,MAAM,EAAE;uCAlB7B,MAAM,KAAG,MAAM;CAkEtC,CAAC"}
@@ -0,0 +1,248 @@
1
+ /**
2
+ * `monday doc list [--workspace <wid>,...] [--order-by <created_at|
3
+ * used_at>] [--limit <n>] [--page <n>]` — list workdocs visible to
4
+ * the token, optionally filtered by workspace and sorted by recency
5
+ * (cli-design.md §4.3 DOC section + §13 v0.4 entry; v0.4-plan.md §3
6
+ * M32).
7
+ *
8
+ * **Wire shape.** Single `Query.docs(...)` round-trip via
9
+ * {@link listDocuments} against `query ListDocs` with
10
+ * `operationName: 'ListDocs'` (R-NEW-37 W2 audit-point). Page/limit
11
+ * pagination — Monday's workdocs surface has no `items_page`-style
12
+ * cursor; agents paginate by incrementing `--page`. The list row
13
+ * projection ships every base Document field EXCEPT `blocks` per
14
+ * D6 closure (rich-text bodies belong to `monday doc get <did>`).
15
+ *
16
+ * **Argv shape.**
17
+ *
18
+ * - `--workspace <wid>,...` — comma-separated workspace ID
19
+ * filter (maps to wire `workspace_ids: [ID]`). Optional;
20
+ * absent → unfiltered (every visible doc across the account).
21
+ * Each entry is brand-validated via {@link WorkspaceIdSchema}.
22
+ * Inaccessible workspace IDs surface as empty filter results
23
+ * per D4 — Monday's wire silently drops unknown workspace IDs
24
+ * rather than rejecting the call; the CLI doesn't fire a
25
+ * resolver warning because the wire doesn't distinguish "no
26
+ * docs in workspace X" from "X not accessible".
27
+ * - `--order-by <created_at|used_at>` — pinned 2-value enum
28
+ * (per the M32 probe of `DocsOrderBy`). Default
29
+ * `created_at`. Both values sort `desc` server-side; no
30
+ * ascending variant on Monday's wire.
31
+ * - `--limit <n>` — `[1, 100]`, default `25` (matches Monday's
32
+ * wire-side default; ceiling pins worst-case payload size).
33
+ * Out-of-range argv rejects at parse boundary with
34
+ * `usage_error` (no wire call fires).
35
+ * - `--page <n>` — 1-based, default `1`. Out-of-range argv
36
+ * rejects at parse boundary.
37
+ *
38
+ * **Output envelope (D9).** Wrapped record `data: { documents:
39
+ * [Document], page, limit, returned_count, has_more }`.
40
+ * `has_more` is the `returned_count === limit` heuristic —
41
+ * Monday's wire doesn't surface a total count, so "exactly limit
42
+ * rows returned" is the only signal that a follow-up page may
43
+ * exist. Agents that need exhaustive listing loop until
44
+ * `has_more: false`.
45
+ *
46
+ * **Docs are live-only at v0.4-M32** per cli-design §8 cache
47
+ * scope. Output `meta.source: "live"`, `meta.cache_age_seconds:
48
+ * null`. Workdocs are content-heavy + frequently human-edited; the
49
+ * stale-cache risk outweighs the cache-hit value.
50
+ *
51
+ * **Idempotent: yes** (pure read).
52
+ *
53
+ * **Runtime body landed at v0.4-M32 IMPL.** Argv parsing + schema +
54
+ * commander wiring + `--workspace` comma-split helper all ship as
55
+ * the real shipped argv surface; the action body's wire-call
56
+ * dispatch + envelope emit are below. The verb is a thin wrapper
57
+ * around {@link listDocuments} — comma-split argv → branded array
58
+ * → fetcher → envelope.
59
+ */
60
+ import { z } from 'zod';
61
+ import { UsageError } from '../../utils/errors.js';
62
+ import { ensureSubcommand } from '../types.js';
63
+ import { parseArgv } from '../parse-argv.js';
64
+ import { emitSuccess } from '../emit.js';
65
+ import { resolveClient } from '../../api/resolve-client.js';
66
+ import { WorkspaceIdSchema } from '../../types/ids.js';
67
+ import { DEFAULT_DOC_LIST_LIMIT, MAX_DOC_LIST_LIMIT, MIN_DOC_LIST_LIMIT, docListOutputSchema, docsOrderBySchema, listDocuments, } from '../../api/documents.js';
68
+ const inputSchema = z
69
+ .object({
70
+ /**
71
+ * Raw comma-separated workspace IDs (e.g. `"123,456"`). Split +
72
+ * brand-validated inside the action body so the per-entry parse
73
+ * boundary fires AFTER the top-level argv parse — keeps the
74
+ * error envelope's `details.issues[].path` pointing at the
75
+ * `--workspace` argv slot rather than a per-entry index.
76
+ */
77
+ workspace: z.string().min(1, '--workspace must not be empty').optional(),
78
+ orderBy: docsOrderBySchema.optional(),
79
+ limit: z
80
+ .number()
81
+ .int({ message: '--limit must be an integer' })
82
+ .min(MIN_DOC_LIST_LIMIT, {
83
+ message: `--limit must be at least ${String(MIN_DOC_LIST_LIMIT)}`,
84
+ })
85
+ .max(MAX_DOC_LIST_LIMIT, {
86
+ message: `--limit must be at most ${String(MAX_DOC_LIST_LIMIT)} ` +
87
+ `(M32 pins the ceiling to keep worst-case response sizes bounded ` +
88
+ `for doc-heavy accounts)`,
89
+ })
90
+ .optional(),
91
+ page: z
92
+ .number()
93
+ .int({ message: '--page must be an integer' })
94
+ .min(1, { message: '--page is 1-based and must be at least 1' })
95
+ .optional(),
96
+ })
97
+ .strict();
98
+ export const docListCommand = {
99
+ name: 'doc.list',
100
+ summary: 'List workdocs visible to the token (optional workspace filter)',
101
+ examples: [
102
+ 'monday doc list',
103
+ 'monday doc list --workspace 12345',
104
+ 'monday doc list --workspace 12345,67890 --order-by used_at --limit 50',
105
+ 'monday doc list --page 2 --limit 25 --json',
106
+ ],
107
+ idempotent: true,
108
+ inputSchema,
109
+ outputSchema: docListOutputSchema,
110
+ attach: (program, ctx) => {
111
+ const noun = ensureSubcommand(program, 'doc', 'Document commands (workdocs; read-only at v0.4 — see cli-design §13 v0.4 entry)');
112
+ noun
113
+ .command('list')
114
+ .description(docListCommand.summary)
115
+ .option('--workspace <list>', 'Comma-separated workspace IDs to filter docs by (e.g. "12345,67890"). Inaccessible workspace IDs return no docs.')
116
+ .option('--order-by <field>', 'Sort field; one of: created_at (default), used_at. Both sort desc; no ascending variant on the wire.')
117
+ .option('--limit <n>', `Page size, range [${String(MIN_DOC_LIST_LIMIT)}, ${String(MAX_DOC_LIST_LIMIT)}]; default ${String(DEFAULT_DOC_LIST_LIMIT)}.`, parseStrictDecimal)
118
+ .option('--page <n>', '1-based page number; default 1.', parseStrictDecimal)
119
+ .addHelpText('after', [
120
+ '',
121
+ 'Examples:',
122
+ ...docListCommand.examples.map((e) => ` ${e}`),
123
+ '',
124
+ 'Notes:',
125
+ ` - Default limit ${String(DEFAULT_DOC_LIST_LIMIT)} matches Monday's wire-side default.`,
126
+ ' - has_more in the envelope is a returned_count === limit heuristic (Monday\'s wire doesn\'t surface a total count).',
127
+ '',
128
+ ].join('\n'))
129
+ .action(async (opts) => {
130
+ const parsed = parseArgv(docListCommand.inputSchema, {
131
+ ...(opts.workspace === undefined ? {} : { workspace: opts.workspace }),
132
+ ...(opts.orderBy === undefined ? {} : { orderBy: opts.orderBy }),
133
+ ...(opts.limit === undefined ? {} : { limit: opts.limit }),
134
+ ...(opts.page === undefined ? {} : { page: opts.page }),
135
+ });
136
+ // Parse `--workspace` once at the boundary so a malformed
137
+ // workspace ID surfaces `usage_error` ahead of any wire
138
+ // call. Empty entries (trailing comma, double comma) reject
139
+ // with a clear hint. Brand each entry via WorkspaceIdSchema
140
+ // so a non-numeric token reaches the agent with the same
141
+ // brand-error shape every other ID validator uses.
142
+ const workspaceIds = parsed.workspace === undefined
143
+ ? undefined
144
+ : parseWorkspaceListArg(parsed.workspace);
145
+ const { client, apiVersion } = resolveClient(ctx, program.opts());
146
+ const result = await listDocuments({
147
+ client,
148
+ ...(workspaceIds === undefined ? {} : { workspaceIds }),
149
+ ...(parsed.orderBy === undefined ? {} : { orderBy: parsed.orderBy }),
150
+ ...(parsed.limit === undefined ? {} : { limit: parsed.limit }),
151
+ ...(parsed.page === undefined ? {} : { page: parsed.page }),
152
+ });
153
+ const returnedCount = result.documents.length;
154
+ emitSuccess({
155
+ ctx,
156
+ data: {
157
+ documents: [...result.documents],
158
+ page: result.page,
159
+ limit: result.limit,
160
+ returned_count: returnedCount,
161
+ has_more: returnedCount === result.limit,
162
+ },
163
+ schema: docListCommand.outputSchema,
164
+ programOpts: program.opts(),
165
+ kind: 'single',
166
+ warnings: [],
167
+ source: result.source,
168
+ cacheAgeSeconds: result.cacheAgeSeconds,
169
+ complexity: result.complexity,
170
+ apiVersion,
171
+ });
172
+ });
173
+ },
174
+ };
175
+ /**
176
+ * Strict decimal-integer parser for commander option-value coercion
177
+ * on `--limit` + `--page`. `Number.parseInt` would silently truncate
178
+ * `'25.5'` → `25` and `'25abc'` → `25`, bypassing the schema-layer
179
+ * `.int()` check (Codex round-1 P2-1). The strict variant returns
180
+ * `Number.NaN` for any input that isn't a decimal-integer string;
181
+ * the schema's `.int()` then rejects `NaN` and the user sees a
182
+ * `usage_error` with the per-flag bound-violation message.
183
+ *
184
+ * Leading-zero handling: a single `0` is accepted (range floor is
185
+ * enforced separately by the schema), but `'01'` / `'007'` are
186
+ * rejected because Monday's wire IDs and page numbers never carry
187
+ * leading zeros + the strict shape matches `DECIMAL_USER_ID_PATTERN`
188
+ * elsewhere in the codebase.
189
+ */
190
+ const parseStrictDecimal = (raw) => {
191
+ if (!/^(?:0|[1-9]\d*)$/u.test(raw)) {
192
+ return Number.NaN;
193
+ }
194
+ return Number.parseInt(raw, 10);
195
+ };
196
+ /**
197
+ * Splits a comma-separated `--workspace` argv string into an array of
198
+ * brand-validated WorkspaceId strings. Empty entries reject with
199
+ * `usage_error`; non-numeric entries reject via the WorkspaceIdSchema
200
+ * brand. Whitespace around commas is trimmed.
201
+ *
202
+ * Exported via {@link _internals} only for parity with the existing
203
+ * comma-split-helper pattern in `src/commands/workspace/add-users.ts`
204
+ * — production code calls it inline within the command's action
205
+ * body.
206
+ */
207
+ const parseWorkspaceListArg = (raw) => {
208
+ const tokens = raw.split(',').map((t) => t.trim());
209
+ const ids = [];
210
+ for (const token of tokens) {
211
+ if (token === '') {
212
+ throw new UsageError('--workspace contains an empty entry (trailing comma or double ' +
213
+ 'comma); pass a comma-separated list of numeric workspace IDs.', {
214
+ details: {
215
+ hint: 'e.g. --workspace 12345,67890 — no leading, trailing, or ' +
216
+ 'duplicate commas',
217
+ argv_value: raw,
218
+ },
219
+ });
220
+ }
221
+ const parsed = WorkspaceIdSchema.safeParse(token);
222
+ if (!parsed.success) {
223
+ throw new UsageError(`--workspace entry ${JSON.stringify(token)} is not a numeric ` +
224
+ `workspace ID`, {
225
+ details: {
226
+ issues: parsed.error.issues.map((i) => ({
227
+ path: i.path.map((p) => String(p)).join('.'),
228
+ message: i.message,
229
+ })),
230
+ argv_value: raw,
231
+ hint: 'workspace IDs are numeric (e.g. 12345)',
232
+ },
233
+ });
234
+ }
235
+ ids.push(parsed.data);
236
+ }
237
+ return ids;
238
+ };
239
+ /**
240
+ * Internals exposed for unit-test access (argv parser pinning).
241
+ * NOT a public API — the comma-split helper + decimal parser stay
242
+ * production-internal.
243
+ */
244
+ export const _internals = {
245
+ parseWorkspaceListArg,
246
+ parseStrictDecimal,
247
+ };
248
+ //# sourceMappingURL=list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/commands/doc/list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAsB,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,GAEd,MAAM,wBAAwB,CAAC;AAEhC,MAAM,WAAW,GAAG,CAAC;KAClB,MAAM,CAAC;IACN;;;;;;OAMG;IACH,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,+BAA+B,CAAC,CAAC,QAAQ,EAAE;IACxE,OAAO,EAAE,iBAAiB,CAAC,QAAQ,EAAE;IACrC,KAAK,EAAE,CAAC;SACL,MA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MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;wBACtC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;wBAC5C,OAAO,EAAE,CAAC,CAAC,OAAO;qBACnB,CAAC,CAAC;oBACH,UAAU,EAAE,GAAG;oBACf,IAAI,EAAE,wCAAwC;iBAC/C;aACF,CACF,CAAC;QACJ,CAAC;QACD,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,qBAAqB;IACrB,kBAAkB;CACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAgMhD,eAAO,MAAM,kBAAkB,QAAO,SAAS,aAAa,EAmG3D,CAAC;AAEF,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAwOhD,eAAO,MAAM,kBAAkB,QAAO,SAAS,aAAa,EAyG3D,CAAC;AAEF,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC"}
@@ -153,6 +153,13 @@ import { boardFavoritesCommand } from './board/favorites.js';
153
153
  // shipped at `d058172` with Codex impl review fix-ups at
154
154
  // `5f10cda` (round 1) + `a024961` (round 2).
155
155
  import { itemHistoryCommand } from './item/history.js';
156
+ // M29 (v0.4) — `monday item watch <iid>`. Polling-based event stream
157
+ // over the M24 `item-history-projection.ts` projector. Pre-flight stub
158
+ // only at this commit (cli-design §14.4 closure at `31713fb`; runtime
159
+ // body lands at M29 IMPL); stub registers the verb surface so the
160
+ // command count + agent introspection via `monday schema` reflect the
161
+ // shape without exposing the runtime to invocation.
162
+ import { itemWatchCommand } from './item/watch.js';
156
163
  // M26 (v0.3) — `dev` namespace workflow shortcuts (cli-design §5.2
157
164
  // carve-out 1; convention, not API per §2.7). Three-level depth:
158
165
  // `dev sprint current`, `dev task done`, etc. Pre-flight stubs at
@@ -182,6 +189,39 @@ import { webhookListCommand } from './webhook/list.js';
182
189
  import { webhookCreateCommand } from './webhook/create.js';
183
190
  import { webhookDeleteCommand } from './webhook/delete.js';
184
191
  import { notificationSendCommand } from './notification/send.js';
192
+ // M31 (v0.4) — asset upload (`item upload` / `update upload`). Two
193
+ // new write verbs crossing the wire via multipart/form-data (NOT
194
+ // the JSON-only `client.request` seam). Shipped end-to-end at
195
+ // v0.4-M31 (cli-design §4.3 + §6.4 asset-upload sub-section + §13
196
+ // v0.4 entry; v0.4-plan §3 M31 + §13 post-mortem). First v0.4
197
+ // transport extension; fired R-NEW-41 3rd consumer
198
+ // (`docs/architecture.md` "Wire-vs-CLI semantics documentation
199
+ // conventions" section).
200
+ import { itemUploadCommand } from './item/upload.js';
201
+ import { updateUploadCommand } from './update/upload.js';
202
+ // M32 (v0.4) — workdocs read surface (`doc list` / `doc get`).
203
+ // Read-only at v0.4 per cli-design §13 v0.4 entry; full docs CRUD
204
+ // deferred to v0.5. Pre-flight stubs at this commit (argv schema +
205
+ // wire query documents only); runtime bodies + integration tests
206
+ // land at M32 IMPL. Empirical probe at `scripts/probe/m32-docs.ts`
207
+ // (2026-05-14, API `2026-01`) pinned `Query.docs(...)` signature +
208
+ // the 14-field `Document` projection + the 9-field `DocumentBlock`
209
+ // shape + the `DocsOrderBy` 2-value enum.
210
+ import { docListCommand } from './doc/list.js';
211
+ import { docGetCommand } from './doc/get.js';
212
+ // M33 (v0.4) — `monday completion <bash|zsh|fish>`. Shell-completion
213
+ // script emitter; first non-envelope stdout surface in the CLI
214
+ // (cli-design §3.1 raw-bytes carve-out). Empirical-probe finding at
215
+ // M33 pre-flight (`grep -rn 'completion\|complete' node_modules/
216
+ // commander/lib/ node_modules/commander/typings/` 2026-05-14, commander
217
+ // 14.0.3) returned zero hits — commander has no built-in completion
218
+ // machinery, so the verb hand-rolls per-shell templates at runtime (no
219
+ // runtime dep added). Shipped end-to-end at v0.4-M33 IMPL: argv schema
220
+ // + commander wiring + `--json` envelope schema + the three-mode
221
+ // format-aware action body + three per-shell template builders that
222
+ // walk `program.commands` at emit time so completions stay in sync
223
+ // with the registry.
224
+ import { completionCommand } from './completion.js';
185
225
  // M6 commands — diagnostics + GraphQL escape hatch + agent-flow E2E.
186
226
  import { rawCommand } from './raw/index.js';
187
227
  import { boardDoctorCommand } from './board/doctor.js';
@@ -240,6 +280,7 @@ export const getCommandRegistry = () => {
240
280
  itemSearchCommand,
241
281
  itemSubitemsCommand,
242
282
  itemHistoryCommand,
283
+ itemWatchCommand,
243
284
  itemSetCommand,
244
285
  itemClearCommand,
245
286
  itemUpdateCommand,
@@ -281,6 +322,11 @@ export const getCommandRegistry = () => {
281
322
  webhookCreateCommand,
282
323
  webhookDeleteCommand,
283
324
  notificationSendCommand,
325
+ itemUploadCommand,
326
+ updateUploadCommand,
327
+ docListCommand,
328
+ docGetCommand,
329
+ completionCommand,
284
330
  rawCommand,
285
331
  boardDoctorCommand,
286
332
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,kDAAkD;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,O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AuB;QACvB,uBAAuB;QACvB,wBAAwB;QACxB,0BAA0B;QAC1B,uBAAuB;QACvB,gBAAgB;QAChB,eAAe;QACf,gBAAgB;QAChB,oBAAoB;QACpB,uBAAuB;QACvB,mBAAmB;QACnB,kBAAkB;QAClB,qBAAqB;QACrB,eAAe;QACf,cAAc;QACd,aAAa;QACb,iBAAiB;QACjB,gBAAgB;QAChB,cAAc;QACd,eAAe;QACf,eAAe;QACf,iBAAiB;QACjB,mBAAmB;QACnB,kBAAkB;QAClB,gBAAgB;QAChB,cAAc;QACd,gBAAgB;QAChB,iBAAiB;QACjB,iBAAiB;QACjB,kBAAkB;QAClB,iBAAiB;QACjB,oBAAoB;QACpB,eAAe;QACf,iBAAiB;QACjB,yBAAyB;QACzB,wBAAwB;QACxB,mBAAmB;QACnB,kBAAkB;QAClB,iBAAiB;QACjB,mBAAmB;QACnB,iBAAiB;QACjB,mBAAmB;QACnB,gBAAgB;QAChB,kBAAkB;QAClB,qBAAqB;QACrB,gBAAgB;QAChB,iBAAiB;QACjB,aAAa;QACb,YAAY;QACZ,kBAAkB;QAClB,mBAAmB;QACnB,gBAAgB;QAChB,uBAAuB;QACvB,oBAAoB;QACpB,qBAAqB;QACrB,kBAAkB;QAClB,mBAAmB;QACnB,qBAAqB;QACrB,kBAAkB;QAClB,mBAAmB;QACnB,kBAAkB;QAClB,mBAAmB;QACnB,kBAAkB;QAClB,oBAAoB;QACpB,oBAAoB;QACpB,uBAAuB;QACvB,iBAAiB;QACjB,mBAAmB;QACnB,cAAc;QACd,aAAa;QACb,iBAAiB;QACjB,UAAU;QACV,kBAAkB;KACnB,CAAC;IACF,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAGF,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC"}
@@ -420,13 +420,13 @@ const resolveCreateMode = async (inputs) => {
420
420
  `creation is deferred. Use a classic board ` +
421
421
  `(hierarchy_type null/"classic"). v0.3 M28 Decision 11 closure: ` +
422
422
  `Monday's sub_items_board carries no subtasks column at API ` +
423
- `2026-01, so depth-2 subitems have no data-model home — v0.4 ` +
423
+ `2026-01, so depth-2 subitems have no data-model home — v0.5 ` +
424
424
  `picks the feature up if Monday surfaces the capability.`, {
425
425
  details: {
426
426
  parent_item_id: dispatch.parentItemId,
427
427
  parent_board_id: parent.boardId,
428
428
  hierarchy_type: parent.hierarchyType,
429
- deferred_to: 'v0.4',
429
+ deferred_to: 'v0.5',
430
430
  },
431
431
  });
432
432
  }
@@ -94,6 +94,7 @@ declare const inputSchema: z.ZodObject<{
94
94
  filterJson: z.ZodOptional<z.ZodString>;
95
95
  createLabelsIfMissing: z.ZodOptional<z.ZodBoolean>;
96
96
  continueOnError: z.ZodOptional<z.ZodBoolean>;
97
+ concurrency: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
97
98
  }, z.core.$strict>;
98
99
  export declare const itemUpdateCommand: CommandModule<z.infer<typeof inputSchema>, ItemUpdateOutput>;
99
100
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/commands/item/update.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAoB,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AA+CnE,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,8BAA8B,CAAC;AAUtC,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;kBAAsB,CAAC;AAC1D,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAC;AAE7C;;;;;;;;;;GAUG;AACH,QAAA,MAAM,WAAW;;;;;;;;;;kBA8Dd,CAAC;AA2DJ,eAAO,MAAM,iBAAiB,EAAE,aAAa,CAC3C,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,EAC3B,gBAAgB,CA+OjB,CAAC"}
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/commands/item/update.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAoB,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AA+CnE,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,8BAA8B,CAAC;AActC,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;kBAAsB,CAAC;AAC1D,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAC;AAE7C;;;;;;;;;;GAUG;AACH,QAAA,MAAM,WAAW;;;;;;;;;;;kBAmFd,CAAC;AA0FJ,eAAO,MAAM,iBAAiB,EAAE,aAAa,CAC3C,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,EAC3B,gBAAgB,CAoPjB,CAAC"}