@wirecat/drive-cli 0.28.0 → 0.29.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/README.md +2 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +10 -5
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/discovery.d.ts +3 -1
- package/dist/commands/discovery.d.ts.map +1 -1
- package/dist/commands/discovery.js +25 -4
- package/dist/commands/discovery.js.map +1 -1
- package/dist/commands/doctor.d.ts +3 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +20 -3
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/knowledge.d.ts +3 -1
- package/dist/commands/knowledge.d.ts.map +1 -1
- package/dist/commands/knowledge.js +27 -18
- package/dist/commands/knowledge.js.map +1 -1
- package/dist/commands/mcp.d.ts +3 -1
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +45 -7
- package/dist/commands/mcp.js.map +1 -1
- package/dist/commands/mirrors.d.ts.map +1 -1
- package/dist/commands/mirrors.js +25 -6
- package/dist/commands/mirrors.js.map +1 -1
- package/dist/commands/remote.d.ts.map +1 -1
- package/dist/commands/remote.js +7 -6
- package/dist/commands/remote.js.map +1 -1
- package/dist/commands/search.d.ts +3 -1
- package/dist/commands/search.d.ts.map +1 -1
- package/dist/commands/search.js +18 -3
- package/dist/commands/search.js.map +1 -1
- package/dist/commands/skill.d.ts +3 -1
- package/dist/commands/skill.d.ts.map +1 -1
- package/dist/commands/skill.js +13 -3
- package/dist/commands/skill.js.map +1 -1
- package/dist/contract-overrides.d.ts +10 -0
- package/dist/contract-overrides.d.ts.map +1 -0
- package/dist/contract-overrides.js +821 -0
- package/dist/contract-overrides.js.map +1 -0
- package/dist/download.js +1 -1
- package/dist/download.js.map +1 -1
- package/dist/failure.d.ts.map +1 -1
- package/dist/failure.js +1 -0
- package/dist/failure.js.map +1 -1
- package/dist/mcp.d.ts +11 -0
- package/dist/mcp.d.ts.map +1 -1
- package/dist/mcp.js +56 -17
- package/dist/mcp.js.map +1 -1
- package/dist/mirror-docs.d.ts +17 -7
- package/dist/mirror-docs.d.ts.map +1 -1
- package/dist/mirror-docs.js +130 -29
- package/dist/mirror-docs.js.map +1 -1
- package/dist/mirror-images.d.ts +29 -0
- package/dist/mirror-images.d.ts.map +1 -0
- package/dist/mirror-images.js +118 -0
- package/dist/mirror-images.js.map +1 -0
- package/dist/mirror-target.d.ts +2 -1
- package/dist/mirror-target.d.ts.map +1 -1
- package/dist/mirror-target.js +3 -3
- package/dist/mirror-target.js.map +1 -1
- package/dist/policy.d.ts +14 -0
- package/dist/policy.d.ts.map +1 -1
- package/dist/policy.js +17 -0
- package/dist/policy.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +42 -5
- package/dist/program.js.map +1 -1
- package/dist/public-url.d.ts +4 -0
- package/dist/public-url.d.ts.map +1 -0
- package/dist/public-url.js +31 -0
- package/dist/public-url.js.map +1 -0
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +2 -0
- package/dist/registry.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/scenarios/agent-access.md +3 -3
|
@@ -0,0 +1,821 @@
|
|
|
1
|
+
// Reviewed differences from Core. A changed default requires reviewing this declaration.
|
|
2
|
+
export const SHELL_OVERRIDES = {
|
|
3
|
+
skill: [
|
|
4
|
+
{
|
|
5
|
+
command: ["skill"],
|
|
6
|
+
field: "effects",
|
|
7
|
+
before: null,
|
|
8
|
+
after: {
|
|
9
|
+
remote: "none",
|
|
10
|
+
local: "none",
|
|
11
|
+
},
|
|
12
|
+
reason: "Drive binds agent installation to its own output renderer and provider skill locations.",
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
command: ["skill", "show"],
|
|
16
|
+
field: "summary",
|
|
17
|
+
before: "print the tool's instructions for AI agents",
|
|
18
|
+
after: "print drive's SKILL.md",
|
|
19
|
+
reason: "Drive binds agent installation to its own output renderer and provider skill locations.",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
command: ["skill", "show"],
|
|
23
|
+
field: "effects",
|
|
24
|
+
before: {
|
|
25
|
+
remote: "none",
|
|
26
|
+
local: "read",
|
|
27
|
+
},
|
|
28
|
+
after: {
|
|
29
|
+
remote: "none",
|
|
30
|
+
local: "none",
|
|
31
|
+
},
|
|
32
|
+
reason: "Drive binds agent installation to its own output renderer and provider skill locations.",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
command: ["skill", "show"],
|
|
36
|
+
field: "examples",
|
|
37
|
+
before: ["drive skill show", "drive skill show follow-ups"],
|
|
38
|
+
after: ["drive skill show"],
|
|
39
|
+
reason: "Drive binds agent installation to its own output renderer and provider skill locations.",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
command: ["skill", "show"],
|
|
43
|
+
field: "arguments",
|
|
44
|
+
before: [
|
|
45
|
+
{
|
|
46
|
+
name: "name",
|
|
47
|
+
required: false,
|
|
48
|
+
variadic: false,
|
|
49
|
+
description: "one of the skills shipped for a task: follow-ups, link-conversations",
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
after: [],
|
|
53
|
+
reason: "Drive binds agent installation to its own output renderer and provider skill locations.",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
command: ["skill", "install"],
|
|
57
|
+
field: "summary",
|
|
58
|
+
before: "install the tool's instructions for AI agents",
|
|
59
|
+
after: "put SKILL.md where Claude Code, Codex and Gemini CLI look",
|
|
60
|
+
reason: "Drive binds agent installation to its own output renderer and provider skill locations.",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
command: ["skill", "install"],
|
|
64
|
+
field: "examples",
|
|
65
|
+
before: ["drive skill install --for agents"],
|
|
66
|
+
after: ["drive skill install --for all"],
|
|
67
|
+
reason: "Drive binds agent installation to its own output renderer and provider skill locations.",
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
doctor: [
|
|
71
|
+
{
|
|
72
|
+
command: ["doctor"],
|
|
73
|
+
field: "description",
|
|
74
|
+
before: "the state this installation is in, without connecting unless --online",
|
|
75
|
+
after: "check this installation: config, profiles, paths; no keyring, store or network",
|
|
76
|
+
reason: "Drive diagnoses public OAuth configuration and local paths without opening a keyring, database or Google connection.",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
command: ["doctor"],
|
|
80
|
+
field: "effects",
|
|
81
|
+
before: {
|
|
82
|
+
remote: "read",
|
|
83
|
+
local: "read",
|
|
84
|
+
},
|
|
85
|
+
after: {
|
|
86
|
+
remote: "none",
|
|
87
|
+
local: "read",
|
|
88
|
+
},
|
|
89
|
+
reason: "Drive diagnoses public OAuth configuration and local paths without opening a keyring, database or Google connection.",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
command: ["doctor"],
|
|
93
|
+
field: "runnable",
|
|
94
|
+
before: true,
|
|
95
|
+
after: null,
|
|
96
|
+
reason: "Drive diagnoses public OAuth configuration and local paths without opening a keyring, database or Google connection.",
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
command: ["doctor"],
|
|
100
|
+
field: "options",
|
|
101
|
+
before: [
|
|
102
|
+
{
|
|
103
|
+
flags: "--online",
|
|
104
|
+
description: "also connect once and read the account; sends nothing",
|
|
105
|
+
takes_value: false,
|
|
106
|
+
mandatory: false,
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
after: [],
|
|
110
|
+
reason: "Drive diagnoses public OAuth configuration and local paths without opening a keyring, database or Google connection.",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
command: ["doctor"],
|
|
114
|
+
field: "children",
|
|
115
|
+
before: ["reports"],
|
|
116
|
+
after: [],
|
|
117
|
+
reason: "Drive diagnoses public OAuth configuration and local paths without opening a keyring, database or Google connection.",
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
command: ["doctor"],
|
|
121
|
+
field: "examples",
|
|
122
|
+
before: null,
|
|
123
|
+
after: ["drive doctor", "drive doctor --json"],
|
|
124
|
+
reason: "Drive diagnoses public OAuth configuration and local paths without opening a keyring, database or Google connection.",
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
mcp: [
|
|
128
|
+
{
|
|
129
|
+
command: ["mcp"],
|
|
130
|
+
field: "summary",
|
|
131
|
+
before: "serve this profile's commands to an AI agent",
|
|
132
|
+
after: null,
|
|
133
|
+
reason: "Drive exposes Google document tools over stdio and HTTP using OAuth grants and its document permission adapter; its tool listing and command catalogue replace the messenger setup commands.",
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
command: ["mcp"],
|
|
137
|
+
field: "description",
|
|
138
|
+
before: "serve this profile to an agent over MCP, on stdin and stdout — `claude mcp add drive -- drive <profile> mcp`",
|
|
139
|
+
after: "serve drive's commands to an agent over MCP: search, then read or write",
|
|
140
|
+
reason: "Drive exposes Google document tools over stdio and HTTP using OAuth grants and its document permission adapter; its tool listing and command catalogue replace the messenger setup commands.",
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
command: ["mcp"],
|
|
144
|
+
field: "runnable",
|
|
145
|
+
before: true,
|
|
146
|
+
after: null,
|
|
147
|
+
reason: "Drive exposes Google document tools over stdio and HTTP using OAuth grants and its document permission adapter; its tool listing and command catalogue replace the messenger setup commands.",
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
command: ["mcp"],
|
|
151
|
+
field: "options",
|
|
152
|
+
before: [
|
|
153
|
+
{
|
|
154
|
+
flags: "--permission <key=level>",
|
|
155
|
+
description: "make a permission stricter for this server only, like messages.send=deny; it never loosens the profile; repeat for more keys",
|
|
156
|
+
takes_value: true,
|
|
157
|
+
mandatory: false,
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
flags: "--http",
|
|
161
|
+
description: "serve over HTTP on 127.0.0.1 for ChatGPT and Claude in the browser, behind your tunnel; the profile's permissions decide",
|
|
162
|
+
takes_value: false,
|
|
163
|
+
mandatory: false,
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
flags: "--port <port>",
|
|
167
|
+
description: "the local port for --http (default 8765)",
|
|
168
|
+
takes_value: true,
|
|
169
|
+
mandatory: false,
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
flags: "--public-url <url>",
|
|
173
|
+
description: "the tunnel's https address the browser apps use, e.g. https://<name>.ts.net",
|
|
174
|
+
takes_value: true,
|
|
175
|
+
mandatory: false,
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
flags: "--revoke",
|
|
179
|
+
description: "forget every login given to a browser app; each must log in again",
|
|
180
|
+
takes_value: false,
|
|
181
|
+
mandatory: false,
|
|
182
|
+
},
|
|
183
|
+
],
|
|
184
|
+
after: [
|
|
185
|
+
{
|
|
186
|
+
flags: "--tools",
|
|
187
|
+
description: "list the commands the server offers instead of starting it",
|
|
188
|
+
takes_value: false,
|
|
189
|
+
mandatory: false,
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
flags: "--http",
|
|
193
|
+
description: "serve over HTTP on 127.0.0.1 for ChatGPT and Claude in the browser, behind your tunnel; the profile's permissions decide",
|
|
194
|
+
takes_value: false,
|
|
195
|
+
mandatory: false,
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
flags: "--port <port>",
|
|
199
|
+
description: "the local port for --http (default 8765)",
|
|
200
|
+
takes_value: true,
|
|
201
|
+
mandatory: false,
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
flags: "--public-url <url>",
|
|
205
|
+
description: "the tunnel's https address the browser apps use, e.g. https://<name>.ts.net",
|
|
206
|
+
takes_value: true,
|
|
207
|
+
mandatory: false,
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
flags: "--revoke",
|
|
211
|
+
description: "forget every login given to a browser app; each must log in again",
|
|
212
|
+
takes_value: false,
|
|
213
|
+
mandatory: false,
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
reason: "Drive exposes Google document tools over stdio and HTTP using OAuth grants and its document permission adapter; its tool listing and command catalogue replace the messenger setup commands.",
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
command: ["mcp"],
|
|
220
|
+
field: "children",
|
|
221
|
+
before: ["config", "add", "check"],
|
|
222
|
+
after: [],
|
|
223
|
+
reason: "Drive exposes Google document tools over stdio and HTTP using OAuth grants and its document permission adapter; its tool listing and command catalogue replace the messenger setup commands.",
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
command: ["mcp"],
|
|
227
|
+
field: "examples",
|
|
228
|
+
before: null,
|
|
229
|
+
after: [
|
|
230
|
+
"drive personal mcp",
|
|
231
|
+
"drive personal mcp --http --public-url https://<name>.ts.net",
|
|
232
|
+
"drive personal mcp --revoke",
|
|
233
|
+
],
|
|
234
|
+
reason: "Drive exposes Google document tools over stdio and HTTP using OAuth grants and its document permission adapter; its tool listing and command catalogue replace the messenger setup commands.",
|
|
235
|
+
},
|
|
236
|
+
],
|
|
237
|
+
notes: [
|
|
238
|
+
{
|
|
239
|
+
command: ["notes"],
|
|
240
|
+
field: "description",
|
|
241
|
+
before: "notes kept in the shared store",
|
|
242
|
+
after: "write notes about an imported document",
|
|
243
|
+
reason: "Drive notes annotate one explicitly selected imported document; document-bound arguments and receipts replace the generic note scope.",
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
command: ["notes"],
|
|
247
|
+
field: "effects",
|
|
248
|
+
before: {
|
|
249
|
+
remote: "none",
|
|
250
|
+
local: "none",
|
|
251
|
+
},
|
|
252
|
+
after: {
|
|
253
|
+
remote: "none",
|
|
254
|
+
local: "read",
|
|
255
|
+
},
|
|
256
|
+
reason: "Drive notes annotate one explicitly selected imported document; document-bound arguments and receipts replace the generic note scope.",
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
command: ["notes"],
|
|
260
|
+
field: "children",
|
|
261
|
+
before: ["list", "show", "add", "edit", "remove"],
|
|
262
|
+
after: ["add", "list", "show", "edit", "remove"],
|
|
263
|
+
reason: "Drive notes annotate one explicitly selected imported document; document-bound arguments and receipts replace the generic note scope.",
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
command: ["notes", "add"],
|
|
267
|
+
field: "description",
|
|
268
|
+
before: "write a note",
|
|
269
|
+
after: "write a note about a document",
|
|
270
|
+
reason: "Drive notes annotate one explicitly selected imported document; document-bound arguments and receipts replace the generic note scope.",
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
command: ["notes", "add"],
|
|
274
|
+
field: "arguments",
|
|
275
|
+
before: [
|
|
276
|
+
{
|
|
277
|
+
name: "text",
|
|
278
|
+
required: true,
|
|
279
|
+
variadic: false,
|
|
280
|
+
description: "note text",
|
|
281
|
+
},
|
|
282
|
+
],
|
|
283
|
+
after: [
|
|
284
|
+
{
|
|
285
|
+
name: "document",
|
|
286
|
+
required: true,
|
|
287
|
+
variadic: false,
|
|
288
|
+
description: "Google file or folder id or URL in the local catalog",
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
name: "text",
|
|
292
|
+
required: true,
|
|
293
|
+
variadic: false,
|
|
294
|
+
description: "the note's text",
|
|
295
|
+
},
|
|
296
|
+
],
|
|
297
|
+
reason: "Drive notes annotate one explicitly selected imported document; document-bound arguments and receipts replace the generic note scope.",
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
command: ["notes", "add"],
|
|
301
|
+
field: "options",
|
|
302
|
+
before: [
|
|
303
|
+
{
|
|
304
|
+
flags: "--subject <ref>",
|
|
305
|
+
description: "stored resource the note describes",
|
|
306
|
+
takes_value: true,
|
|
307
|
+
mandatory: false,
|
|
308
|
+
},
|
|
309
|
+
],
|
|
310
|
+
after: [
|
|
311
|
+
{
|
|
312
|
+
flags: "--title <title>",
|
|
313
|
+
description: "a title for the note",
|
|
314
|
+
takes_value: true,
|
|
315
|
+
mandatory: false,
|
|
316
|
+
},
|
|
317
|
+
],
|
|
318
|
+
reason: "Drive notes annotate one explicitly selected imported document; document-bound arguments and receipts replace the generic note scope.",
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
command: ["notes", "add"],
|
|
322
|
+
field: "examples",
|
|
323
|
+
before: null,
|
|
324
|
+
after: ['drive personal notes add DOC_ID "Check the numbers" --title Review'],
|
|
325
|
+
reason: "Drive notes annotate one explicitly selected imported document; document-bound arguments and receipts replace the generic note scope.",
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
command: ["notes", "list"],
|
|
329
|
+
field: "description",
|
|
330
|
+
before: "list stored notes",
|
|
331
|
+
after: "list a document's notes",
|
|
332
|
+
reason: "Drive notes annotate one explicitly selected imported document; document-bound arguments and receipts replace the generic note scope.",
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
command: ["notes", "list"],
|
|
336
|
+
field: "query",
|
|
337
|
+
before: {
|
|
338
|
+
entity: "note",
|
|
339
|
+
backend: "native",
|
|
340
|
+
fields: [
|
|
341
|
+
{
|
|
342
|
+
name: "ref",
|
|
343
|
+
type: "ref",
|
|
344
|
+
operators: ["term", "phrase"],
|
|
345
|
+
example: 'ref:"note:42"',
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
name: "kind",
|
|
349
|
+
type: "enum",
|
|
350
|
+
values: ["note", "document"],
|
|
351
|
+
operators: ["term"],
|
|
352
|
+
example: "kind:note",
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
name: "provider",
|
|
356
|
+
type: "kw",
|
|
357
|
+
operators: ["term", "phrase", "wildcard"],
|
|
358
|
+
example: "provider:abc",
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
name: "account",
|
|
362
|
+
type: "kw",
|
|
363
|
+
operators: ["term", "phrase", "wildcard"],
|
|
364
|
+
example: "account:abc",
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
name: "url",
|
|
368
|
+
type: "kw",
|
|
369
|
+
operators: ["term", "phrase", "wildcard"],
|
|
370
|
+
example: "url:abc",
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
name: "id",
|
|
374
|
+
type: "kw",
|
|
375
|
+
operators: ["term", "phrase", "wildcard"],
|
|
376
|
+
example: "id:abc",
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
name: "source",
|
|
380
|
+
type: "enum",
|
|
381
|
+
values: ["file", "internal"],
|
|
382
|
+
operators: ["term"],
|
|
383
|
+
example: "source:file",
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
name: "folder_id",
|
|
387
|
+
type: "kw",
|
|
388
|
+
operators: ["term", "phrase", "wildcard"],
|
|
389
|
+
example: "folder_id:abc",
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
name: "path",
|
|
393
|
+
type: "kw",
|
|
394
|
+
operators: ["term", "phrase", "wildcard"],
|
|
395
|
+
example: "path:abc",
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
name: "title",
|
|
399
|
+
type: "kw",
|
|
400
|
+
operators: ["term", "phrase", "wildcard"],
|
|
401
|
+
example: "title:abc",
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
name: "text",
|
|
405
|
+
type: "kw",
|
|
406
|
+
operators: ["term", "phrase", "wildcard"],
|
|
407
|
+
example: "text:abc",
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
name: "revision",
|
|
411
|
+
type: "num",
|
|
412
|
+
operators: ["term", "range"],
|
|
413
|
+
example: "revision>0",
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
name: "content_hash",
|
|
417
|
+
type: "kw",
|
|
418
|
+
operators: ["term", "phrase", "wildcard"],
|
|
419
|
+
example: "content_hash:abc",
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
name: "export_path",
|
|
423
|
+
type: "kw",
|
|
424
|
+
operators: ["term", "phrase", "wildcard"],
|
|
425
|
+
example: "export_path:abc",
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
name: "created_at",
|
|
429
|
+
type: "time",
|
|
430
|
+
operators: ["term", "range"],
|
|
431
|
+
example: "created_at>=7d",
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
name: "updated_at",
|
|
435
|
+
type: "time",
|
|
436
|
+
operators: ["term", "range"],
|
|
437
|
+
example: "updated_at>=7d",
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
name: "deleted_at",
|
|
441
|
+
type: "time",
|
|
442
|
+
operators: ["term", "range"],
|
|
443
|
+
example: "deleted_at>=7d",
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
name: "tags",
|
|
447
|
+
type: "kw",
|
|
448
|
+
operators: ["term", "phrase", "wildcard"],
|
|
449
|
+
example: "tags:abc",
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
name: "excerpt",
|
|
453
|
+
type: "kw",
|
|
454
|
+
operators: ["term", "phrase", "wildcard"],
|
|
455
|
+
example: "excerpt:abc",
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
name: "found_by",
|
|
459
|
+
type: "enum",
|
|
460
|
+
values: ["title", "words", "meaning"],
|
|
461
|
+
operators: ["term"],
|
|
462
|
+
example: "found_by:title",
|
|
463
|
+
},
|
|
464
|
+
],
|
|
465
|
+
},
|
|
466
|
+
after: {
|
|
467
|
+
entity: "note",
|
|
468
|
+
backend: "native",
|
|
469
|
+
fields: [
|
|
470
|
+
{
|
|
471
|
+
name: "text",
|
|
472
|
+
type: "txt",
|
|
473
|
+
operators: ["term", "phrase"],
|
|
474
|
+
example: "text:review",
|
|
475
|
+
native: true,
|
|
476
|
+
},
|
|
477
|
+
],
|
|
478
|
+
},
|
|
479
|
+
reason: "Drive notes annotate one explicitly selected imported document; document-bound arguments and receipts replace the generic note scope.",
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
command: ["notes", "list"],
|
|
483
|
+
field: "arguments",
|
|
484
|
+
before: [
|
|
485
|
+
{
|
|
486
|
+
name: "query",
|
|
487
|
+
required: false,
|
|
488
|
+
variadic: true,
|
|
489
|
+
description: "field:value terms; this list filters by none yet",
|
|
490
|
+
},
|
|
491
|
+
],
|
|
492
|
+
after: [
|
|
493
|
+
{
|
|
494
|
+
name: "document",
|
|
495
|
+
required: true,
|
|
496
|
+
variadic: false,
|
|
497
|
+
description: "Google file or folder id or URL in the local catalog",
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
name: "query",
|
|
501
|
+
required: false,
|
|
502
|
+
variadic: true,
|
|
503
|
+
description: 'text:word or text:"a phrase" a note must contain',
|
|
504
|
+
},
|
|
505
|
+
],
|
|
506
|
+
reason: "Drive notes annotate one explicitly selected imported document; document-bound arguments and receipts replace the generic note scope.",
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
command: ["notes", "list"],
|
|
510
|
+
field: "options",
|
|
511
|
+
before: [],
|
|
512
|
+
after: [
|
|
513
|
+
{
|
|
514
|
+
flags: "--limit <n>",
|
|
515
|
+
description: "how many notes to return",
|
|
516
|
+
takes_value: true,
|
|
517
|
+
mandatory: false,
|
|
518
|
+
default: 50,
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
flags: "--page <n>",
|
|
522
|
+
description: "which page to return",
|
|
523
|
+
takes_value: true,
|
|
524
|
+
mandatory: false,
|
|
525
|
+
default: 1,
|
|
526
|
+
},
|
|
527
|
+
],
|
|
528
|
+
reason: "Drive notes annotate one explicitly selected imported document; document-bound arguments and receipts replace the generic note scope.",
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
command: ["notes", "list"],
|
|
532
|
+
field: "examples",
|
|
533
|
+
before: null,
|
|
534
|
+
after: ["drive personal notes list DOC_ID", "drive personal notes list DOC_ID text:review --limit 10"],
|
|
535
|
+
reason: "Drive notes annotate one explicitly selected imported document; document-bound arguments and receipts replace the generic note scope.",
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
command: ["notes", "show"],
|
|
539
|
+
field: "arguments",
|
|
540
|
+
before: [
|
|
541
|
+
{
|
|
542
|
+
name: "note",
|
|
543
|
+
required: true,
|
|
544
|
+
variadic: false,
|
|
545
|
+
description: "stored note reference",
|
|
546
|
+
},
|
|
547
|
+
],
|
|
548
|
+
after: [
|
|
549
|
+
{
|
|
550
|
+
name: "document",
|
|
551
|
+
required: true,
|
|
552
|
+
variadic: false,
|
|
553
|
+
description: "Google file or folder id or URL in the local catalog",
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
name: "note",
|
|
557
|
+
required: true,
|
|
558
|
+
variadic: false,
|
|
559
|
+
description: "note:<id> reference, as notes list prints it",
|
|
560
|
+
},
|
|
561
|
+
],
|
|
562
|
+
reason: "Drive notes annotate one explicitly selected imported document; document-bound arguments and receipts replace the generic note scope.",
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
command: ["notes", "show"],
|
|
566
|
+
field: "examples",
|
|
567
|
+
before: null,
|
|
568
|
+
after: ["drive personal notes show DOC_ID note:NOTE_ID"],
|
|
569
|
+
reason: "Drive notes annotate one explicitly selected imported document; document-bound arguments and receipts replace the generic note scope.",
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
command: ["notes", "edit"],
|
|
573
|
+
field: "description",
|
|
574
|
+
before: "change a note",
|
|
575
|
+
after: "replace a note's text",
|
|
576
|
+
reason: "Drive notes annotate one explicitly selected imported document; document-bound arguments and receipts replace the generic note scope.",
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
command: ["notes", "edit"],
|
|
580
|
+
field: "arguments",
|
|
581
|
+
before: [
|
|
582
|
+
{
|
|
583
|
+
name: "note",
|
|
584
|
+
required: true,
|
|
585
|
+
variadic: false,
|
|
586
|
+
description: "stored note reference",
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
name: "text",
|
|
590
|
+
required: true,
|
|
591
|
+
variadic: false,
|
|
592
|
+
description: "replacement text",
|
|
593
|
+
},
|
|
594
|
+
],
|
|
595
|
+
after: [
|
|
596
|
+
{
|
|
597
|
+
name: "document",
|
|
598
|
+
required: true,
|
|
599
|
+
variadic: false,
|
|
600
|
+
description: "Google file or folder id or URL in the local catalog",
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
name: "note",
|
|
604
|
+
required: true,
|
|
605
|
+
variadic: false,
|
|
606
|
+
description: "note:<id> reference, as notes list prints it",
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
name: "text",
|
|
610
|
+
required: true,
|
|
611
|
+
variadic: false,
|
|
612
|
+
description: "the note's new text",
|
|
613
|
+
},
|
|
614
|
+
],
|
|
615
|
+
reason: "Drive notes annotate one explicitly selected imported document; document-bound arguments and receipts replace the generic note scope.",
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
command: ["notes", "edit"],
|
|
619
|
+
field: "options",
|
|
620
|
+
before: [],
|
|
621
|
+
after: [
|
|
622
|
+
{
|
|
623
|
+
flags: "--revision <n>",
|
|
624
|
+
description: "revision from notes show; a newer note is not overwritten",
|
|
625
|
+
takes_value: true,
|
|
626
|
+
mandatory: true,
|
|
627
|
+
},
|
|
628
|
+
],
|
|
629
|
+
reason: "Drive notes annotate one explicitly selected imported document; document-bound arguments and receipts replace the generic note scope.",
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
command: ["notes", "edit"],
|
|
633
|
+
field: "examples",
|
|
634
|
+
before: null,
|
|
635
|
+
after: ['drive personal notes edit DOC_ID note:NOTE_ID "Numbers checked" --revision 2'],
|
|
636
|
+
reason: "Drive notes annotate one explicitly selected imported document; document-bound arguments and receipts replace the generic note scope.",
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
command: ["notes", "remove"],
|
|
640
|
+
field: "description",
|
|
641
|
+
before: "remove a note",
|
|
642
|
+
after: "delete one note",
|
|
643
|
+
reason: "Drive notes annotate one explicitly selected imported document; document-bound arguments and receipts replace the generic note scope.",
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
command: ["notes", "remove"],
|
|
647
|
+
field: "arguments",
|
|
648
|
+
before: [
|
|
649
|
+
{
|
|
650
|
+
name: "note",
|
|
651
|
+
required: true,
|
|
652
|
+
variadic: false,
|
|
653
|
+
description: "stored note reference",
|
|
654
|
+
},
|
|
655
|
+
],
|
|
656
|
+
after: [
|
|
657
|
+
{
|
|
658
|
+
name: "document",
|
|
659
|
+
required: true,
|
|
660
|
+
variadic: false,
|
|
661
|
+
description: "Google file or folder id or URL in the local catalog",
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
name: "note",
|
|
665
|
+
required: true,
|
|
666
|
+
variadic: false,
|
|
667
|
+
description: "note:<id> reference, as notes list prints it",
|
|
668
|
+
},
|
|
669
|
+
],
|
|
670
|
+
reason: "Drive notes annotate one explicitly selected imported document; document-bound arguments and receipts replace the generic note scope.",
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
command: ["notes", "remove"],
|
|
674
|
+
field: "examples",
|
|
675
|
+
before: null,
|
|
676
|
+
after: ["drive personal notes remove DOC_ID note:NOTE_ID"],
|
|
677
|
+
reason: "Drive notes annotate one explicitly selected imported document; document-bound arguments and receipts replace the generic note scope.",
|
|
678
|
+
},
|
|
679
|
+
],
|
|
680
|
+
commands: [
|
|
681
|
+
{
|
|
682
|
+
command: ["commands"],
|
|
683
|
+
field: "arguments",
|
|
684
|
+
before: [
|
|
685
|
+
{
|
|
686
|
+
name: "path",
|
|
687
|
+
required: false,
|
|
688
|
+
variadic: true,
|
|
689
|
+
description: "one command path, for example: search messages; inspect other groups in separate calls",
|
|
690
|
+
},
|
|
691
|
+
],
|
|
692
|
+
after: [
|
|
693
|
+
{
|
|
694
|
+
name: "path",
|
|
695
|
+
required: false,
|
|
696
|
+
variadic: true,
|
|
697
|
+
description: "only this command or group, as words",
|
|
698
|
+
},
|
|
699
|
+
],
|
|
700
|
+
reason: "Drive binds discovery to its profile-aware usage renderer while retaining the shared command document and evidence endpoint.",
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
command: ["commands"],
|
|
704
|
+
field: "examples",
|
|
705
|
+
before: null,
|
|
706
|
+
after: ["drive commands", "drive commands files copy --json"],
|
|
707
|
+
reason: "Drive binds discovery to its profile-aware usage renderer while retaining the shared command document and evidence endpoint.",
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
command: ["commands", "info"],
|
|
711
|
+
field: "examples",
|
|
712
|
+
before: ["drive commands info messages list"],
|
|
713
|
+
after: ["drive commands info --json"],
|
|
714
|
+
reason: "Drive binds discovery to its profile-aware usage renderer while retaining the shared command document and evidence endpoint.",
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
command: ["commands", "info"],
|
|
718
|
+
field: "arguments",
|
|
719
|
+
before: [
|
|
720
|
+
{
|
|
721
|
+
name: "path",
|
|
722
|
+
required: false,
|
|
723
|
+
variadic: true,
|
|
724
|
+
description: "one command path; without one, export schemas, error reasons and explicit overrides",
|
|
725
|
+
},
|
|
726
|
+
],
|
|
727
|
+
after: [
|
|
728
|
+
{
|
|
729
|
+
name: "path",
|
|
730
|
+
required: false,
|
|
731
|
+
variadic: true,
|
|
732
|
+
description: "one command path; without one, schemas, error reasons and explicit overrides",
|
|
733
|
+
},
|
|
734
|
+
],
|
|
735
|
+
reason: "Drive binds discovery to its profile-aware usage renderer while retaining the shared command document and evidence endpoint.",
|
|
736
|
+
},
|
|
737
|
+
],
|
|
738
|
+
search: [
|
|
739
|
+
{
|
|
740
|
+
command: ["search"],
|
|
741
|
+
field: "summary",
|
|
742
|
+
before: "search the local archive",
|
|
743
|
+
after: null,
|
|
744
|
+
reason: "Drive searches imported documents and embeddings rather than live messenger messages; its default action and pagination are explicitly provider-specific.",
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
command: ["search"],
|
|
748
|
+
field: "description",
|
|
749
|
+
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",
|
|
750
|
+
after: "search imported documents by words, and by meaning when indexed",
|
|
751
|
+
reason: "Drive searches imported documents and embeddings rather than live messenger messages; its default action and pagination are explicitly provider-specific.",
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
command: ["search"],
|
|
755
|
+
field: "arguments",
|
|
756
|
+
before: [],
|
|
757
|
+
after: [
|
|
758
|
+
{
|
|
759
|
+
name: "query",
|
|
760
|
+
required: true,
|
|
761
|
+
variadic: false,
|
|
762
|
+
description: "words to look for",
|
|
763
|
+
},
|
|
764
|
+
],
|
|
765
|
+
reason: "Drive searches imported documents and embeddings rather than live messenger messages; its default action and pagination are explicitly provider-specific.",
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
command: ["search"],
|
|
769
|
+
field: "options",
|
|
770
|
+
before: [],
|
|
771
|
+
after: [
|
|
772
|
+
{
|
|
773
|
+
flags: "--limit <n>",
|
|
774
|
+
description: "how many results to return",
|
|
775
|
+
takes_value: true,
|
|
776
|
+
mandatory: false,
|
|
777
|
+
default: 20,
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
flags: "--page <n>",
|
|
781
|
+
description: "which page to return",
|
|
782
|
+
takes_value: true,
|
|
783
|
+
mandatory: false,
|
|
784
|
+
default: 1,
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
flags: "--exact",
|
|
788
|
+
description: "match the words exactly: no word forms, no meaning",
|
|
789
|
+
takes_value: false,
|
|
790
|
+
mandatory: false,
|
|
791
|
+
},
|
|
792
|
+
],
|
|
793
|
+
reason: "Drive searches imported documents and embeddings rather than live messenger messages; its default action and pagination are explicitly provider-specific.",
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
command: ["search"],
|
|
797
|
+
field: "children",
|
|
798
|
+
before: ["all", "messages", "notes", "conversations", "runs"],
|
|
799
|
+
after: [],
|
|
800
|
+
reason: "Drive searches imported documents and embeddings rather than live messenger messages; its default action and pagination are explicitly provider-specific.",
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
command: ["search"],
|
|
804
|
+
field: "effects",
|
|
805
|
+
before: null,
|
|
806
|
+
after: {
|
|
807
|
+
remote: "none",
|
|
808
|
+
local: "read",
|
|
809
|
+
},
|
|
810
|
+
reason: "Drive searches imported documents and embeddings rather than live messenger messages; its default action and pagination are explicitly provider-specific.",
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
command: ["search"],
|
|
814
|
+
field: "examples",
|
|
815
|
+
before: null,
|
|
816
|
+
after: ["drive personal search budget", 'drive personal search "quarterly plan" --exact --limit 5'],
|
|
817
|
+
reason: "Drive searches imported documents and embeddings rather than live messenger messages; its default action and pagination are explicitly provider-specific.",
|
|
818
|
+
},
|
|
819
|
+
],
|
|
820
|
+
};
|
|
821
|
+
//# sourceMappingURL=contract-overrides.js.map
|