@wirecat/drive-cli 0.65.0 → 0.66.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 (204) hide show
  1. package/contracts/wirecat.json +2871 -0
  2. package/dist/bin/drive.js +2 -2
  3. package/dist/bin/drive.js.map +1 -1
  4. package/dist/browse.d.ts +1 -1
  5. package/dist/browse.d.ts.map +1 -1
  6. package/dist/browse.js +1 -1
  7. package/dist/bundle/{all-profiles-PD7GJHFA.js → all-profiles-WCQLIHUG.js} +14 -14
  8. package/dist/bundle/{anthropic-PJKFON5H.js → anthropic-5RJMB6O7.js} +20 -13
  9. package/dist/bundle/{app-server-6ELQA6FJ.js → app-server-3RGYXPKG.js} +67 -56
  10. package/dist/bundle/{bun-P54TGES2.js → bun-L34VEKGG.js} +2 -2
  11. package/dist/bundle/{bun-sqlite-TND5ZRJH.js → bun-sqlite-H6IAXQXI.js} +9 -9
  12. package/dist/bundle/{chunk-VHQYWFWV.js → chunk-2AF77WMH.js} +1 -1
  13. package/dist/bundle/{chunk-CWLL63JD.js → chunk-2S3E2HVV.js} +17 -17
  14. package/dist/bundle/{chunk-I272E6UR.js → chunk-3NYH756U.js} +49 -117
  15. package/dist/bundle/{chunk-UTNRBOEN.js → chunk-3QFUDXMQ.js} +2 -2
  16. package/dist/bundle/{chunk-RNHGQ35R.js → chunk-3SDJIMZB.js} +1 -1
  17. package/dist/bundle/{chunk-NQ5XMSLA.js → chunk-4UHBJSMI.js} +22086 -29123
  18. package/dist/bundle/{chunk-OWMZUWCM.js → chunk-5HVJK3ZJ.js} +6 -14
  19. package/dist/bundle/chunk-5K54RZBK.js +70 -0
  20. package/dist/bundle/{chunk-SIWXYB4E.js → chunk-5PLINHEY.js} +2987 -2717
  21. package/dist/bundle/{chunk-O7ZDCOZE.js → chunk-5VDVGDOC.js} +1 -1
  22. package/dist/bundle/{chunk-B2LPCHQN.js → chunk-5XLU4NN6.js} +4 -4
  23. package/dist/bundle/{chunk-5XSBCMAF.js → chunk-6UJCCOZC.js} +4 -4
  24. package/dist/bundle/{chunk-7AQGVX5O.js → chunk-6X3KUFRQ.js} +60 -29
  25. package/dist/bundle/{chunk-WRMJN6UQ.js → chunk-7EP4AU6A.js} +3 -3
  26. package/dist/bundle/{chunk-GW3LBY3T.js → chunk-7LT2G5BC.js} +146 -133
  27. package/dist/bundle/{chunk-ZILALBYQ.js → chunk-7ZGJRVBH.js} +7 -5
  28. package/dist/bundle/{chunk-PLP5527C.js → chunk-ALE67WRR.js} +5 -5
  29. package/dist/bundle/{chunk-EHU6EYGO.js → chunk-AP4MX247.js} +12 -12
  30. package/dist/bundle/{chunk-NI5PD5KM.js → chunk-BIJW6AYA.js} +14124 -12049
  31. package/dist/bundle/{chunk-54V4H6PM.js → chunk-BQXSE645.js} +12 -12
  32. package/dist/bundle/{chunk-EM7NL5ES.js → chunk-COGWKO2T.js} +3 -3
  33. package/dist/bundle/{chunk-II4S2DBJ.js → chunk-D4MIMH2N.js} +12 -6
  34. package/dist/bundle/{chunk-42G2XNPN.js → chunk-D7KOAPG6.js} +2 -2
  35. package/dist/bundle/{chunk-NQRTKYJB.js → chunk-E2F2XIX6.js} +47 -80
  36. package/dist/bundle/{chunk-VDZY3L7U.js → chunk-FA2TNA5X.js} +1 -1
  37. package/dist/bundle/{chunk-A4QNADEX.js → chunk-FHBTQPA3.js} +49 -49
  38. package/dist/bundle/{chunk-7TAP7Y2E.js → chunk-FKKPVPZR.js} +196 -112
  39. package/dist/bundle/{chunk-2AFI4KGI.js → chunk-G4TNKBDX.js} +7 -7
  40. package/dist/bundle/{chunk-ECEP4SO3.js → chunk-GVA3KTCD.js} +10 -10
  41. package/dist/bundle/{chunk-PHOL2DZM.js → chunk-GY4DAJSK.js} +34 -5
  42. package/dist/bundle/{chunk-Z2ADO6UA.js → chunk-H7XL6WTW.js} +2 -2
  43. package/dist/bundle/{chunk-SE352DBY.js → chunk-HHRJPLFO.js} +1 -1
  44. package/dist/bundle/{chunk-WRAUO5EJ.js → chunk-HPKE2GDP.js} +45 -22
  45. package/dist/bundle/{chunk-D7WB54P7.js → chunk-HPSHQVJU.js} +540 -456
  46. package/dist/bundle/{chunk-4Y5YBFMS.js → chunk-HQBLJLYH.js} +7 -7
  47. package/dist/bundle/{chunk-IMHW7VIV.js → chunk-I5R5CMQR.js} +5 -5
  48. package/dist/bundle/{chunk-ELJUBPY4.js → chunk-IIHZTV6V.js} +1 -1
  49. package/dist/bundle/{chunk-M7ELUGU6.js → chunk-IRNDYNQX.js} +4 -4
  50. package/dist/bundle/{chunk-TTP4NOP3.js → chunk-JCHF7LZT.js} +4 -4
  51. package/dist/bundle/{chunk-3HXNDF6Q.js → chunk-JHMEETXI.js} +2 -2
  52. package/dist/bundle/{chunk-4EDWLR22.js → chunk-JLCR24UM.js} +1 -1
  53. package/dist/bundle/{chunk-6DCLZLGX.js → chunk-JQXK3M5M.js} +1 -1
  54. package/dist/bundle/{chunk-EZ2OLYEK.js → chunk-KOY5HUBY.js} +14 -5
  55. package/dist/bundle/{chunk-IBO23OID.js → chunk-KRG5X5PH.js} +2 -2
  56. package/dist/bundle/{chunk-FA6JNXCC.js → chunk-LVAPSAHF.js} +8 -8
  57. package/dist/bundle/{chunk-ZR2EJPMQ.js → chunk-M7543RUJ.js} +18 -15
  58. package/dist/bundle/{chunk-A27UVLPK.js → chunk-MZWXTJ4O.js} +3 -3
  59. package/dist/bundle/{chunk-XPWZSW6Y.js → chunk-NK4GVFJH.js} +4 -4
  60. package/dist/bundle/chunk-NYECVHFH.js +10283 -0
  61. package/dist/bundle/{chunk-W2XY6C5S.js → chunk-NYZS2LKF.js} +2 -2
  62. package/dist/bundle/{chunk-4AOINPN2.js → chunk-O53WLYX3.js} +8 -2
  63. package/dist/bundle/{chunk-RX5CJ55S.js → chunk-OIF4B526.js} +1 -1
  64. package/dist/bundle/{chunk-SS4LKLD7.js → chunk-OT7SQQJK.js} +371 -362
  65. package/dist/bundle/chunk-OZOQLAWK.js +72 -0
  66. package/dist/bundle/{chunk-DA63E2UM.js → chunk-P7HQFII6.js} +18 -15
  67. package/dist/bundle/{chunk-MCPOZNWG.js → chunk-PJGOQSE5.js} +1 -1
  68. package/dist/bundle/{chunk-F56DRBGY.js → chunk-PKM55ZRR.js} +75 -20
  69. package/dist/bundle/{chunk-SNLSEYJO.js → chunk-PUMDOCAF.js} +1 -1
  70. package/dist/bundle/{chunk-LMKPP2JP.js → chunk-QF7VL4C3.js} +1 -1
  71. package/dist/bundle/{chunk-D6Z43SOG.js → chunk-QJ57PV55.js} +383 -361
  72. package/dist/bundle/{chunk-EU5MD24W.js → chunk-QSELSDWE.js} +13 -13
  73. package/dist/bundle/{chunk-TMHF4BCL.js → chunk-SOOU5WO6.js} +2 -2
  74. package/dist/bundle/{chunk-3ONWN3IA.js → chunk-SZ6JFOL4.js} +137 -45
  75. package/dist/bundle/{chunk-WVJHZIDH.js → chunk-T3ULDA7C.js} +3 -3
  76. package/dist/bundle/{chunk-XYE7XZPB.js → chunk-TAHISPDE.js} +5 -5
  77. package/dist/bundle/{chunk-HP3NT6JJ.js → chunk-TYLEICTX.js} +3 -3
  78. package/dist/bundle/{chunk-Y5PKRITX.js → chunk-UAKX6DP4.js} +5 -5
  79. package/dist/bundle/{chunk-VLXWAH5E.js → chunk-UG3GHFGY.js} +4 -4
  80. package/dist/bundle/{chunk-X7YGGWXI.js → chunk-ULXEW6FT.js} +3 -2
  81. package/dist/bundle/{chunk-JPPPLKAO.js → chunk-UNTIVT47.js} +1 -2
  82. package/dist/bundle/{chunk-SEQWBZYH.js → chunk-UQPW42HF.js} +1 -1
  83. package/dist/bundle/{chunk-JMJIH6JH.js → chunk-V2WXTILT.js} +6 -6
  84. package/dist/bundle/{chunk-TOVWMURV.js → chunk-VQKNKJYL.js} +22 -7
  85. package/dist/bundle/{chunk-OFJXHEFT.js → chunk-VR3YKXHL.js} +93 -31
  86. package/dist/bundle/{chunk-VMAMRFFC.js → chunk-VUUPFDRU.js} +26 -27
  87. package/dist/bundle/{chunk-FBHSWQU7.js → chunk-WYTYHUFH.js} +319 -102
  88. package/dist/bundle/{chunk-ZD4MB7NH.js → chunk-XLGDNI4S.js} +1 -1
  89. package/dist/bundle/{chunk-O6K2E7OA.js → chunk-XVZNFA2P.js} +1507 -1107
  90. package/dist/bundle/chunk-Y5U4HIZS.js +71 -0
  91. package/dist/bundle/chunk-YTIPTHEE.js +47 -0
  92. package/dist/bundle/cli-KW6QQVS5.js +1101 -0
  93. package/dist/bundle/command-contract-CE543JBN.js +41 -0
  94. package/dist/bundle/{command-server-entry-36JXYIJB.js → command-server-entry-OC4E4DED.js} +31 -30
  95. package/dist/bundle/{decode-T5ZW57WZ.js → decode-AH5ZLLDK.js} +8 -8
  96. package/dist/bundle/{dispatch-RMA2XFYA.js → dispatch-CDWZZ54Q.js} +9 -9
  97. package/dist/bundle/drive.js +13 -13
  98. package/dist/bundle/{echarts-KQ44LPSF.js → echarts-VC7MTXWY.js} +2 -2
  99. package/dist/bundle/{embed-Q7XST53J.js → embed-EPSQY6QG.js} +9 -9
  100. package/dist/bundle/{embedder-RWZSBVW2.js → embedder-TK4U4TJR.js} +12 -12
  101. package/dist/bundle/entry-3VN23M7M.js +25 -0
  102. package/dist/bundle/{failure-7NP4QPIN.js → failure-WSVZOPFE.js} +4 -4
  103. package/dist/bundle/first-run-7ZYJ7EB3.js +30 -0
  104. package/dist/bundle/first-screen-CZDH7QY3.js +39 -0
  105. package/dist/bundle/google-OBZMWA7J.js +45 -0
  106. package/dist/bundle/{google-api-P5DRHD7L.js → google-api-AV4X2JH3.js} +68 -63
  107. package/dist/bundle/grants-WTRLN4ZI.js +111 -0
  108. package/dist/bundle/{identity-VDV6CHRW.js → identity-CGHHF7AK.js} +8 -6
  109. package/dist/bundle/{instructions-Q45FVY6H.js → instructions-24PHDBBE.js} +1 -1
  110. package/dist/bundle/{login-XKN3NI6X.js → login-XHFESAFM.js} +73 -70
  111. package/dist/bundle/{mcp-7KQUJNFN.js → mcp-M5YCSWJJ.js} +2 -2
  112. package/dist/bundle/{node-MSW565D3.js → node-GIDULTV5.js} +2 -2
  113. package/dist/bundle/{node-sqlite-S74XVVHL.js → node-sqlite-LINBOAWK.js} +10 -10
  114. package/dist/bundle/oauth-JHUX3KE3.js +22 -0
  115. package/dist/bundle/{open-P7UQG7XJ.js → open-RYFKPNCJ.js} +8 -8
  116. package/dist/bundle/{openai-DDHJ57KZ.js → openai-Q7YYUHJF.js} +28 -21
  117. package/dist/bundle/{process-NMUB5SHK.js → process-VPIZTIJR.js} +1 -1
  118. package/dist/bundle/{program-PJNWP6JW.js → program-IUXFRBZA.js} +213 -555
  119. package/dist/bundle/{prompt-VOSMK4C2.js → prompt-LF4KX3XL.js} +8 -8
  120. package/dist/bundle/{reasons-KDAXOC5S.js → reasons-JPYOU5GV.js} +5 -5
  121. package/dist/bundle/{recognize-GZIY63HS.js → recognize-KEWTJXFH.js} +7 -7
  122. package/dist/bundle/{remote-V3YGN7LN.js → remote-HGGLB76S.js} +13 -10
  123. package/dist/bundle/{rerank-XRU6AVN7.js → rerank-TDUKETFT.js} +10 -10
  124. package/dist/bundle/{serve-NDOAFA57.js → serve-XFYMKW5W.js} +12 -12
  125. package/dist/bundle/server-BDEV3CZJ.js +74 -0
  126. package/dist/bundle/{server-BKGWJYMC.js → server-PXIPSGFP.js} +47 -45
  127. package/dist/bundle/{services-TYDMFQCA.js → services-2BOCGMJU.js} +44 -34
  128. package/dist/bundle/{sqlite-runtime-UAFJKSJR.js → sqlite-runtime-R7M5XUMW.js} +9 -9
  129. package/dist/bundle/{start-2ZLDP2OE.js → start-YRLT4MQZ.js} +7 -7
  130. package/dist/bundle/{state-6SP27J2K.js → state-NZ7WRJWH.js} +9 -9
  131. package/dist/bundle/{store-EJN27MXI.js → store-7LCVDO7G.js} +23 -21
  132. package/dist/bundle/{store-4UUY545Q.js → store-ICDGPSEN.js} +21 -19
  133. package/dist/bundle/store-maintenance-command-SJPLY6IH.js +65 -0
  134. package/dist/bundle/tokens-FGTBE7VW.js +111 -0
  135. package/dist/commands/discovery.d.ts +0 -1
  136. package/dist/commands/discovery.d.ts.map +1 -1
  137. package/dist/commands/discovery.js +6 -26
  138. package/dist/commands/discovery.js.map +1 -1
  139. package/dist/commands/knowledge.d.ts.map +1 -1
  140. package/dist/commands/knowledge.js +7 -6
  141. package/dist/commands/knowledge.js.map +1 -1
  142. package/dist/commands/search.d.ts.map +1 -1
  143. package/dist/commands/search.js +11 -8
  144. package/dist/commands/search.js.map +1 -1
  145. package/dist/config.d.ts +1 -0
  146. package/dist/config.d.ts.map +1 -1
  147. package/dist/config.js +3 -2
  148. package/dist/config.js.map +1 -1
  149. package/dist/contract-overrides.d.ts +16 -4
  150. package/dist/contract-overrides.d.ts.map +1 -1
  151. package/dist/contract-overrides.js +86 -410
  152. package/dist/contract-overrides.js.map +1 -1
  153. package/dist/errors.d.ts.map +1 -1
  154. package/dist/errors.js +4 -0
  155. package/dist/errors.js.map +1 -1
  156. package/dist/google-api.d.ts.map +1 -1
  157. package/dist/google-api.js +4 -1
  158. package/dist/google-api.js.map +1 -1
  159. package/dist/identity.d.ts +4 -0
  160. package/dist/identity.d.ts.map +1 -1
  161. package/dist/identity.js +22 -0
  162. package/dist/identity.js.map +1 -1
  163. package/dist/knowledge.js +2 -2
  164. package/dist/knowledge.js.map +1 -1
  165. package/dist/login.d.ts.map +1 -1
  166. package/dist/login.js +2 -2
  167. package/dist/login.js.map +1 -1
  168. package/dist/program.d.ts.map +1 -1
  169. package/dist/program.js +8 -6
  170. package/dist/program.js.map +1 -1
  171. package/dist/reasons.d.ts.map +1 -1
  172. package/dist/reasons.js +0 -1
  173. package/dist/reasons.js.map +1 -1
  174. package/dist/store-transition.js +2 -2
  175. package/dist/store-transition.js.map +1 -1
  176. package/dist/store.d.ts.map +1 -1
  177. package/dist/store.js +7 -7
  178. package/dist/store.js.map +1 -1
  179. package/dist/tokens.d.ts +9 -2
  180. package/dist/tokens.d.ts.map +1 -1
  181. package/dist/tokens.js +18 -15
  182. package/dist/tokens.js.map +1 -1
  183. package/dist/version.d.ts +1 -1
  184. package/dist/version.js +1 -1
  185. package/dist/wcat.d.ts +3 -0
  186. package/dist/wcat.d.ts.map +1 -0
  187. package/dist/wcat.js +4 -0
  188. package/dist/wcat.js.map +1 -0
  189. package/package.json +7 -7
  190. package/dist/bundle/chunk-CGQRZRTH.js +0 -26
  191. package/dist/bundle/chunk-IKHOIXJR.js +0 -27
  192. package/dist/bundle/chunk-SBZB7HMU.js +0 -1055
  193. package/dist/bundle/command-contract-25E4PYMD.js +0 -40
  194. package/dist/bundle/dist-PY3MVR3G.js +0 -21
  195. package/dist/bundle/entry-HPLW4QL2.js +0 -25
  196. package/dist/bundle/first-run-RL3RKYZW.js +0 -30
  197. package/dist/bundle/first-screen-NX3TM2VJ.js +0 -38
  198. package/dist/bundle/google-DPD5N6AQ.js +0 -42
  199. package/dist/bundle/grants-TX4MHLI4.js +0 -109
  200. package/dist/bundle/oauth-6R7AWAES.js +0 -22
  201. package/dist/bundle/server-QD2MUJJZ.js +0 -72
  202. package/dist/bundle/store-maintenance-command-LETURZDC.js +0 -60
  203. package/dist/bundle/tokens-MTFJPTYT.js +0 -107
  204. /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-HVJJWJYQ.js} +0 -0
@@ -1,53 +1,64 @@
1
+ import { createHash } from "node:crypto";
2
+ import { sharedContracts } from "@wirecat/cli-base/commands";
1
3
  const NOTES_REASON = "Drive notes annotate one explicitly selected imported document; document-bound arguments and receipts replace the generic note scope.";
2
4
  const SEARCH_REASON = "Drive searches imported documents and embeddings rather than live messenger messages; its default action and pagination are explicitly provider-specific.";
5
+ const canonical = (value) => Array.isArray(value)
6
+ ? value.map(canonical)
7
+ : value && typeof value === "object"
8
+ ? Object.fromEntries(Object.keys(value)
9
+ .sort()
10
+ .map((key) => [key, canonical(value[key])]))
11
+ : value;
12
+ export const fingerprint = (value) => createHash("sha256")
13
+ .update(JSON.stringify(canonical(value ?? null)))
14
+ .digest("hex")
15
+ .slice(0, 16);
16
+ /**
17
+ * The overrides cli-base checks, with Core's current value where its fingerprint is the reviewed one. A Core value
18
+ * that changed keeps the fingerprint, so the shared check still refuses it and names the new value to review.
19
+ */
20
+ export const reviewedOverrides = (reference, reviewed) => reviewed.map((override) => {
21
+ let node = reference;
22
+ for (const name of override.command.slice(1))
23
+ node = node.commands.find((child) => child.name() === name) ?? node;
24
+ const before = sharedContracts(node)[node.name()]?.[override.field] ?? null;
25
+ return { ...override, before: fingerprint(before) === override.before ? before : override.before };
26
+ });
3
27
  // Reviewed differences from Core. A changed default requires reviewing this declaration.
4
28
  export const SHELL_OVERRIDES = {
5
29
  notes: [
6
30
  {
7
31
  command: ["notes"],
8
32
  field: "description",
9
- before: "notes kept in the shared store",
33
+ before: "073d38b6d7256579",
10
34
  after: "write notes about an imported document",
11
35
  reason: NOTES_REASON,
12
36
  },
13
37
  {
14
38
  command: ["notes"],
15
39
  field: "effects",
16
- before: {
17
- remote: "none",
18
- local: "none",
19
- },
20
- after: {
21
- remote: "none",
22
- local: "read",
23
- },
40
+ before: "b98c7b06ed808dfb",
41
+ after: { remote: "none", local: "read" },
24
42
  reason: NOTES_REASON,
25
43
  },
26
44
  {
27
45
  command: ["notes"],
28
46
  field: "children",
29
- before: ["list", "show", "add", "edit", "remove"],
47
+ before: "6cfec8425c19582f",
30
48
  after: ["add", "list", "show", "edit", "remove"],
31
49
  reason: NOTES_REASON,
32
50
  },
33
51
  {
34
52
  command: ["notes", "add"],
35
53
  field: "description",
36
- before: "write a note",
54
+ before: "98b319044cba6b7f",
37
55
  after: "write a note about a document",
38
56
  reason: NOTES_REASON,
39
57
  },
40
58
  {
41
59
  command: ["notes", "add"],
42
60
  field: "arguments",
43
- before: [
44
- {
45
- name: "text",
46
- required: true,
47
- variadic: false,
48
- description: "note text",
49
- },
50
- ],
61
+ before: "d5010f078464b8d0",
51
62
  after: [
52
63
  {
53
64
  name: "document",
@@ -55,303 +66,58 @@ export const SHELL_OVERRIDES = {
55
66
  variadic: false,
56
67
  description: "Google file or folder id or URL in the local catalog, or a document:<n> ref",
57
68
  },
58
- {
59
- name: "text",
60
- required: true,
61
- variadic: false,
62
- description: "the note's text",
63
- },
69
+ { name: "text", required: true, variadic: false, description: "the note's text" },
64
70
  ],
65
71
  reason: NOTES_REASON,
66
72
  },
67
73
  {
68
74
  command: ["notes", "add"],
69
75
  field: "options",
70
- before: [
71
- {
72
- flags: "--subject <ref>",
73
- description: "stored resource the note describes",
74
- takes_value: true,
75
- mandatory: false,
76
- },
77
- ],
78
- after: [
79
- {
80
- flags: "--title <title>",
81
- description: "a title for the note",
82
- takes_value: true,
83
- mandatory: false,
84
- },
85
- ],
76
+ before: "213adb539c248d7f",
77
+ after: [{ flags: "--title <title>", description: "a title for the note", takes_value: true, mandatory: false }],
86
78
  reason: NOTES_REASON,
87
79
  },
88
80
  {
89
81
  command: ["notes", "add"],
90
82
  field: "examples",
91
- before: null,
83
+ before: "74234e98afe7498f",
92
84
  after: ['drive personal notes add DOC_ID "Check the numbers" --title Review'],
93
85
  reason: NOTES_REASON,
94
86
  },
95
87
  {
96
88
  command: ["notes", "list"],
97
89
  field: "description",
98
- before: "list stored notes",
90
+ before: "6b866a022b5e84ce",
99
91
  after: "list a document's notes",
100
92
  reason: NOTES_REASON,
101
93
  },
102
94
  {
103
95
  command: ["notes", "list"],
104
96
  field: "query",
105
- before: {
106
- entity: "note",
107
- backend: "native",
108
- fields: [
109
- {
110
- name: "ref",
111
- type: "ref",
112
- operators: ["term", "phrase"],
113
- example: 'ref:"note:42"',
114
- },
115
- {
116
- name: "kind",
117
- type: "enum",
118
- values: ["note", "document"],
119
- operators: ["term"],
120
- example: "kind:note",
121
- },
122
- {
123
- name: "provider",
124
- type: "kw",
125
- operators: ["term", "phrase", "wildcard"],
126
- example: "provider:abc",
127
- },
128
- {
129
- name: "account",
130
- type: "kw",
131
- operators: ["term", "phrase", "wildcard"],
132
- example: "account:abc",
133
- },
134
- {
135
- name: "url",
136
- type: "kw",
137
- operators: ["term", "phrase", "wildcard"],
138
- example: "url:abc",
139
- },
140
- {
141
- name: "id",
142
- type: "kw",
143
- operators: ["term", "phrase", "wildcard"],
144
- example: "id:abc",
145
- },
146
- {
147
- name: "source",
148
- type: "enum",
149
- values: ["file", "internal"],
150
- operators: ["term"],
151
- example: "source:file",
152
- },
153
- {
154
- name: "folder_id",
155
- type: "kw",
156
- operators: ["term", "phrase", "wildcard"],
157
- example: "folder_id:abc",
158
- },
159
- {
160
- name: "path",
161
- type: "kw",
162
- operators: ["term", "phrase", "wildcard"],
163
- example: "path:abc",
164
- },
165
- {
166
- name: "title",
167
- type: "kw",
168
- operators: ["term", "phrase", "wildcard"],
169
- example: "title:abc",
170
- },
171
- {
172
- name: "text",
173
- type: "kw",
174
- operators: ["term", "phrase", "wildcard"],
175
- example: "text:abc",
176
- },
177
- {
178
- name: "revision",
179
- type: "num",
180
- operators: ["term", "range"],
181
- example: "revision>0",
182
- },
183
- {
184
- name: "content_hash",
185
- type: "kw",
186
- operators: ["term", "phrase", "wildcard"],
187
- example: "content_hash:abc",
188
- },
189
- {
190
- name: "export_path",
191
- type: "kw",
192
- operators: ["term", "phrase", "wildcard"],
193
- example: "export_path:abc",
194
- },
195
- {
196
- name: "created_at",
197
- type: "time",
198
- operators: ["term", "range"],
199
- example: "created_at>=7d",
200
- },
201
- {
202
- name: "updated_at",
203
- type: "time",
204
- operators: ["term", "range"],
205
- example: "updated_at>=7d",
206
- },
207
- {
208
- name: "deleted_at",
209
- type: "time",
210
- operators: ["term", "range"],
211
- example: "deleted_at>=7d",
212
- },
213
- {
214
- name: "tags",
215
- type: "kw",
216
- operators: ["term", "phrase", "wildcard"],
217
- example: "tags:abc",
218
- },
219
- {
220
- name: "excerpt",
221
- type: "kw",
222
- operators: ["term", "phrase", "wildcard"],
223
- example: "excerpt:abc",
224
- },
225
- {
226
- name: "found_by",
227
- type: "enum",
228
- values: ["title", "words", "meaning"],
229
- operators: ["term"],
230
- example: "found_by:title",
231
- },
232
- ],
233
- },
97
+ before: "0b0517429a4f9613",
234
98
  after: {
235
99
  entity: "note",
236
100
  backend: "native",
237
101
  fields: [
238
- {
239
- name: "ref",
240
- type: "ref",
241
- operators: ["term", "phrase"],
242
- example: 'ref:"note:42"',
243
- },
244
- {
245
- name: "kind",
246
- type: "enum",
247
- values: ["note", "document"],
248
- operators: ["term"],
249
- example: "kind:note",
250
- },
251
- {
252
- name: "provider",
253
- type: "kw",
254
- operators: ["term", "phrase", "wildcard"],
255
- example: "provider:abc",
256
- },
257
- {
258
- name: "account",
259
- type: "kw",
260
- operators: ["term", "phrase", "wildcard"],
261
- example: "account:abc",
262
- },
263
- {
264
- name: "url",
265
- type: "kw",
266
- operators: ["term", "phrase", "wildcard"],
267
- example: "url:abc",
268
- },
269
- {
270
- name: "id",
271
- type: "kw",
272
- operators: ["term", "phrase", "wildcard"],
273
- example: "id:abc",
274
- },
275
- {
276
- name: "source",
277
- type: "enum",
278
- values: ["file", "internal"],
279
- operators: ["term"],
280
- example: "source:file",
281
- },
282
- {
283
- name: "folder_id",
284
- type: "kw",
285
- operators: ["term", "phrase", "wildcard"],
286
- example: "folder_id:abc",
287
- },
288
- {
289
- name: "path",
290
- type: "kw",
291
- operators: ["term", "phrase", "wildcard"],
292
- example: "path:abc",
293
- },
294
- {
295
- name: "title",
296
- type: "kw",
297
- operators: ["term", "phrase", "wildcard"],
298
- example: "title:abc",
299
- },
300
- {
301
- name: "text",
302
- type: "kw",
303
- operators: ["term", "phrase"],
304
- example: "text:review",
305
- native: true,
306
- },
307
- {
308
- name: "revision",
309
- type: "num",
310
- operators: ["term", "range"],
311
- example: "revision>0",
312
- },
313
- {
314
- name: "content_hash",
315
- type: "kw",
316
- operators: ["term", "phrase", "wildcard"],
317
- example: "content_hash:abc",
318
- },
319
- {
320
- name: "export_path",
321
- type: "kw",
322
- operators: ["term", "phrase", "wildcard"],
323
- example: "export_path:abc",
324
- },
325
- {
326
- name: "created_at",
327
- type: "time",
328
- operators: ["term", "range"],
329
- example: "created_at>=7d",
330
- },
331
- {
332
- name: "updated_at",
333
- type: "time",
334
- operators: ["term", "range"],
335
- example: "updated_at>=7d",
336
- },
337
- {
338
- name: "deleted_at",
339
- type: "time",
340
- operators: ["term", "range"],
341
- example: "deleted_at>=7d",
342
- },
343
- {
344
- name: "tags",
345
- type: "kw",
346
- operators: ["term", "phrase", "wildcard"],
347
- example: "tags:abc",
348
- },
349
- {
350
- name: "excerpt",
351
- type: "kw",
352
- operators: ["term", "phrase", "wildcard"],
353
- example: "excerpt:abc",
354
- },
102
+ { name: "ref", type: "ref", operators: ["term", "phrase"], example: 'ref:"note:42"' },
103
+ { name: "kind", type: "enum", values: ["note", "document"], operators: ["term"], example: "kind:note" },
104
+ { name: "provider", type: "kw", operators: ["term", "phrase", "wildcard"], example: "provider:abc" },
105
+ { name: "account", type: "kw", operators: ["term", "phrase", "wildcard"], example: "account:abc" },
106
+ { name: "url", type: "kw", operators: ["term", "phrase", "wildcard"], example: "url:abc" },
107
+ { name: "id", type: "kw", operators: ["term", "phrase", "wildcard"], example: "id:abc" },
108
+ { name: "source", type: "enum", values: ["file", "internal"], operators: ["term"], example: "source:file" },
109
+ { name: "folder_id", type: "kw", operators: ["term", "phrase", "wildcard"], example: "folder_id:abc" },
110
+ { name: "path", type: "kw", operators: ["term", "phrase", "wildcard"], example: "path:abc" },
111
+ { name: "title", type: "kw", operators: ["term", "phrase", "wildcard"], example: "title:abc" },
112
+ { name: "text", type: "kw", operators: ["term", "phrase"], example: "text:review", native: true },
113
+ { name: "revision", type: "num", operators: ["term", "range"], example: "revision>0" },
114
+ { name: "content_hash", type: "kw", operators: ["term", "phrase", "wildcard"], example: "content_hash:abc" },
115
+ { name: "export_path", type: "kw", operators: ["term", "phrase", "wildcard"], example: "export_path:abc" },
116
+ { name: "created_at", type: "time", operators: ["term", "range"], example: "created_at>=7d" },
117
+ { name: "updated_at", type: "time", operators: ["term", "range"], example: "updated_at>=7d" },
118
+ { name: "deleted_at", type: "time", operators: ["term", "range"], example: "deleted_at>=7d" },
119
+ { name: "tags", type: "kw", operators: ["term", "phrase", "wildcard"], example: "tags:abc" },
120
+ { name: "excerpt", type: "kw", operators: ["term", "phrase", "wildcard"], example: "excerpt:abc" },
355
121
  {
356
122
  name: "found_by",
357
123
  type: "enum",
@@ -366,14 +132,7 @@ export const SHELL_OVERRIDES = {
366
132
  {
367
133
  command: ["notes", "list"],
368
134
  field: "arguments",
369
- before: [
370
- {
371
- name: "query",
372
- required: false,
373
- variadic: true,
374
- description: "field:value terms; this list filters by none yet",
375
- },
376
- ],
135
+ before: "350998d1fcef909c",
377
136
  after: [
378
137
  {
379
138
  name: "document",
@@ -393,7 +152,7 @@ export const SHELL_OVERRIDES = {
393
152
  {
394
153
  command: ["notes", "list"],
395
154
  field: "options",
396
- before: [],
155
+ before: "4f53cda18c2baa0c",
397
156
  after: [
398
157
  {
399
158
  flags: "--limit <n>",
@@ -402,34 +161,21 @@ export const SHELL_OVERRIDES = {
402
161
  mandatory: false,
403
162
  default: 50,
404
163
  },
405
- {
406
- flags: "--page <n>",
407
- description: "which page to return",
408
- takes_value: true,
409
- mandatory: false,
410
- default: 1,
411
- },
164
+ { flags: "--page <n>", description: "which page to return", takes_value: true, mandatory: false, default: 1 },
412
165
  ],
413
166
  reason: NOTES_REASON,
414
167
  },
415
168
  {
416
169
  command: ["notes", "list"],
417
170
  field: "examples",
418
- before: null,
171
+ before: "74234e98afe7498f",
419
172
  after: ["drive personal notes list DOC_ID", "drive personal notes list DOC_ID text:review --limit 10"],
420
173
  reason: NOTES_REASON,
421
174
  },
422
175
  {
423
176
  command: ["notes", "show"],
424
177
  field: "arguments",
425
- before: [
426
- {
427
- name: "note",
428
- required: true,
429
- variadic: false,
430
- description: "stored note reference",
431
- },
432
- ],
178
+ before: "ae549d47fb4ad5ab",
433
179
  after: [
434
180
  {
435
181
  name: "document",
@@ -437,46 +183,28 @@ export const SHELL_OVERRIDES = {
437
183
  variadic: false,
438
184
  description: "Google file or folder id or URL in the local catalog, or a document:<n> ref",
439
185
  },
440
- {
441
- name: "note",
442
- required: true,
443
- variadic: false,
444
- description: "note:<id> reference, as notes list prints it",
445
- },
186
+ { name: "note", required: true, variadic: false, description: "note:<id> reference, as notes list prints it" },
446
187
  ],
447
188
  reason: NOTES_REASON,
448
189
  },
449
190
  {
450
191
  command: ["notes", "show"],
451
192
  field: "examples",
452
- before: null,
193
+ before: "74234e98afe7498f",
453
194
  after: ["drive personal notes show DOC_ID note:NOTE_ID"],
454
195
  reason: NOTES_REASON,
455
196
  },
456
197
  {
457
198
  command: ["notes", "edit"],
458
199
  field: "description",
459
- before: "change a note",
200
+ before: "e67289f2731a50ff",
460
201
  after: "replace a note's text",
461
202
  reason: NOTES_REASON,
462
203
  },
463
204
  {
464
205
  command: ["notes", "edit"],
465
206
  field: "arguments",
466
- before: [
467
- {
468
- name: "note",
469
- required: true,
470
- variadic: false,
471
- description: "stored note reference",
472
- },
473
- {
474
- name: "text",
475
- required: true,
476
- variadic: false,
477
- description: "replacement text",
478
- },
479
- ],
207
+ before: "c7d2686d3041bb14",
480
208
  after: [
481
209
  {
482
210
  name: "document",
@@ -484,25 +212,15 @@ export const SHELL_OVERRIDES = {
484
212
  variadic: false,
485
213
  description: "Google file or folder id or URL in the local catalog, or a document:<n> ref",
486
214
  },
487
- {
488
- name: "note",
489
- required: true,
490
- variadic: false,
491
- description: "note:<id> reference, as notes list prints it",
492
- },
493
- {
494
- name: "text",
495
- required: true,
496
- variadic: false,
497
- description: "the note's new text",
498
- },
215
+ { name: "note", required: true, variadic: false, description: "note:<id> reference, as notes list prints it" },
216
+ { name: "text", required: true, variadic: false, description: "the note's new text" },
499
217
  ],
500
218
  reason: NOTES_REASON,
501
219
  },
502
220
  {
503
221
  command: ["notes", "edit"],
504
222
  field: "options",
505
- before: [],
223
+ before: "4f53cda18c2baa0c",
506
224
  after: [
507
225
  {
508
226
  flags: "--revision <n>",
@@ -516,28 +234,21 @@ export const SHELL_OVERRIDES = {
516
234
  {
517
235
  command: ["notes", "edit"],
518
236
  field: "examples",
519
- before: null,
237
+ before: "74234e98afe7498f",
520
238
  after: ['drive personal notes edit DOC_ID note:NOTE_ID "Numbers checked" --revision 2'],
521
239
  reason: NOTES_REASON,
522
240
  },
523
241
  {
524
242
  command: ["notes", "remove"],
525
243
  field: "description",
526
- before: "remove a note",
244
+ before: "aa644f1603858b41",
527
245
  after: "delete one note",
528
246
  reason: NOTES_REASON,
529
247
  },
530
248
  {
531
249
  command: ["notes", "remove"],
532
250
  field: "arguments",
533
- before: [
534
- {
535
- name: "note",
536
- required: true,
537
- variadic: false,
538
- description: "stored note reference",
539
- },
540
- ],
251
+ before: "ae549d47fb4ad5ab",
541
252
  after: [
542
253
  {
543
254
  name: "document",
@@ -545,19 +256,14 @@ export const SHELL_OVERRIDES = {
545
256
  variadic: false,
546
257
  description: "Google file or folder id or URL in the local catalog, or a document:<n> ref",
547
258
  },
548
- {
549
- name: "note",
550
- required: true,
551
- variadic: false,
552
- description: "note:<id> reference, as notes list prints it",
553
- },
259
+ { name: "note", required: true, variadic: false, description: "note:<id> reference, as notes list prints it" },
554
260
  ],
555
261
  reason: NOTES_REASON,
556
262
  },
557
263
  {
558
264
  command: ["notes", "remove"],
559
265
  field: "examples",
560
- before: null,
266
+ before: "74234e98afe7498f",
561
267
  after: ["drive personal notes remove DOC_ID note:NOTE_ID"],
562
268
  reason: NOTES_REASON,
563
269
  },
@@ -566,49 +272,28 @@ export const SHELL_OVERRIDES = {
566
272
  {
567
273
  command: ["commands"],
568
274
  field: "arguments",
569
- before: [
570
- {
571
- name: "path",
572
- required: false,
573
- variadic: true,
574
- description: "one command path, for example: commands info; inspect other groups in separate calls",
575
- },
576
- ],
577
- after: [
578
- {
579
- name: "path",
580
- required: false,
581
- variadic: true,
582
- description: "only this command or group, as words",
583
- },
584
- ],
275
+ before: "2a309b1318d3ae57",
276
+ after: [{ name: "path", required: false, variadic: true, description: "only this command or group, as words" }],
585
277
  reason: "Drive binds discovery to its profile-aware usage renderer while retaining the shared command document and evidence endpoint.",
586
278
  },
587
279
  {
588
280
  command: ["commands"],
589
281
  field: "examples",
590
- before: null,
282
+ before: "74234e98afe7498f",
591
283
  after: ["drive commands", "drive commands files copy --json"],
592
284
  reason: "Drive binds discovery to its profile-aware usage renderer while retaining the shared command document and evidence endpoint.",
593
285
  },
594
286
  {
595
287
  command: ["commands", "info"],
596
288
  field: "examples",
597
- before: ["drive commands info commands"],
289
+ before: "b5111d1de1d39c3d",
598
290
  after: ["drive commands info --json"],
599
291
  reason: "Drive binds discovery to its profile-aware usage renderer while retaining the shared command document and evidence endpoint.",
600
292
  },
601
293
  {
602
294
  command: ["commands", "info"],
603
295
  field: "arguments",
604
- before: [
605
- {
606
- name: "path",
607
- required: false,
608
- variadic: true,
609
- description: "one command path; without one, export schemas, error reasons and explicit overrides",
610
- },
611
- ],
296
+ before: "51e2a792c77a31bd",
612
297
  after: [
613
298
  {
614
299
  name: "path",
@@ -624,21 +309,21 @@ export const SHELL_OVERRIDES = {
624
309
  {
625
310
  command: ["search"],
626
311
  field: "summary",
627
- before: "search the local archive",
312
+ before: "d8f6dac5b4fe912b",
628
313
  after: null,
629
314
  reason: SEARCH_REASON,
630
315
  },
631
316
  {
632
317
  command: ["search"],
633
318
  field: "description",
634
- before: "find things by text: one resource when you know it (messages, notes), or search all across messages and notes; for mail, the separate memo CLI: memo search mail",
319
+ before: "600ae3fd56e9ef36",
635
320
  after: "search imported documents by words, and by meaning when indexed",
636
321
  reason: SEARCH_REASON,
637
322
  },
638
323
  {
639
324
  command: ["search"],
640
325
  field: "arguments",
641
- before: [],
326
+ before: "4f53cda18c2baa0c",
642
327
  after: [
643
328
  {
644
329
  name: "query",
@@ -652,7 +337,7 @@ export const SHELL_OVERRIDES = {
652
337
  {
653
338
  command: ["search"],
654
339
  field: "options",
655
- before: [],
340
+ before: "4f53cda18c2baa0c",
656
341
  after: [
657
342
  {
658
343
  flags: "--limit <n>",
@@ -661,13 +346,7 @@ export const SHELL_OVERRIDES = {
661
346
  mandatory: false,
662
347
  default: 20,
663
348
  },
664
- {
665
- flags: "--page <n>",
666
- description: "which page to return",
667
- takes_value: true,
668
- mandatory: false,
669
- default: 1,
670
- },
349
+ { flags: "--page <n>", description: "which page to return", takes_value: true, mandatory: false, default: 1 },
671
350
  {
672
351
  flags: "--exact",
673
352
  description: "match the words exactly: no word forms, no meaning",
@@ -680,24 +359,21 @@ export const SHELL_OVERRIDES = {
680
359
  {
681
360
  command: ["search"],
682
361
  field: "children",
683
- before: ["all", "messages", "notes", "conversations", "runs"],
362
+ before: "595cc576273270f2",
684
363
  after: [],
685
364
  reason: SEARCH_REASON,
686
365
  },
687
366
  {
688
367
  command: ["search"],
689
368
  field: "effects",
690
- before: null,
691
- after: {
692
- remote: "none",
693
- local: "read",
694
- },
369
+ before: "74234e98afe7498f",
370
+ after: { remote: "none", local: "read" },
695
371
  reason: SEARCH_REASON,
696
372
  },
697
373
  {
698
374
  command: ["search"],
699
375
  field: "examples",
700
- before: null,
376
+ before: "74234e98afe7498f",
701
377
  after: ["drive personal search budget", 'drive personal search "quarterly plan" --exact --limit 5'],
702
378
  reason: SEARCH_REASON,
703
379
  },