@foleo/cli 0.1.36 → 0.1.48

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.
@@ -0,0 +1,13 @@
1
+ /** Keep in step with infra/publish/src/managed-workspaces/contracts.ts. */
2
+ export declare function secretFileName(value: string): boolean;
3
+ export declare const WORKSPACE_HELP = "Foleo workspace (explicit workspace grant required):\n foleo workspace list [--json]\n foleo workspace items <workspaceId> [--parent <id>] [--state live|trashed] [--cursor <cursor>] [--limit <1-100>] [--json]\n foleo workspace get <workspaceId> <itemId> [--json]\n foleo workspace read <workspaceId> <itemId> --output <path> [--revision <id>] [--json]\n foleo workspace history <workspaceId> <itemId> [--cursor <cursor>] [--limit <1-100>] [--json]\n foleo workspace search <workspaceId> <query> [--limit <1-50>] [--state live|trashed] [--json]\n foleo workspace status <workspaceId> [--json]\n foleo workspace watch <workspaceId> [--timeout <seconds>] [--json]\n foleo workspace capabilities [--json]\n foleo capabilities [--json]\n foleo workspace create <name> [--mutation-id <id>] [--json]\n foleo workspace put <workspaceId> <path> (--parent <id> [--name <name>] | --item <id> --expected-revision <revisionId>) [--mutation-id <id>] [--json]\n --expected-revision is the revisionId you read (from get/read); a newer save is refused, never overwritten.\n foleo workspace mkdir <workspaceId> --parent <id> --name <name> [--mutation-id <id>] [--json]\n foleo workspace move <workspaceId> <itemId> --parent <id> --name <name> [--mutation-id <id>] [--acknowledge-access-widening] [--json]\n foleo workspace trash <workspaceId> <itemId> [--mutation-id <id>] [--json]\n foleo workspace restore <workspaceId> <itemId> --parent <id> --name <name> [--mutation-id <id>] [--acknowledge-access-widening] [--json]\n foleo workspace commit <workspaceId> --input <json-file> [--json]\n foleo workspace commit-status <workspaceId> <mutationId> [--json]\n foleo workspace upload-status <workspaceId> <uploadId> [--json]\n foleo workspace upload-cancel <workspaceId> <uploadId> [--json]\n foleo workspace share get <workspaceId> <itemId> [--json]\n foleo workspace share set <workspaceId> <itemId> --mode private|link|password|public|inherit [--password-stdin] [--mutation-id <id>] [--acknowledge-access-widening] [--json]\n foleo approval get <approvalId> [--json]\n foleo approval commit <approvalId> --idempotency-key <key> [--json]\nWrites require workspaces:read + workspaces:write. Sharing requires workspaces:read + workspaces:share.\nNew items are Private. Narrowing applies immediately.\nBefore widening who can see a file, ask the human in chat and get a clear yes; then retry with the acknowledgement. Never acknowledge on the human's behalf.\nWith an API key, link and password widenings need --acknowledge-access-widening (otherwise acknowledgement_required); public always needs approval in Foleo, then approval commit.\nUndo a widening with share set <workspaceId> <itemId> --mode private. In commit JSON, the acknowledgement is top-level accessWideningAcknowledged: true.\nHash-first put uploads zero bytes when unchanged (32 MiB/file). Batches accept eight operations.\nOn response loss retry the exact commit payload and mutation ID, or use commit-status. Never mint a new ID just because a response was lost.\nSaves do not publish files or change sharing.\n";
4
+ type WorkspaceDeps = {
5
+ request(path: string, init?: RequestInit): Promise<Response>;
6
+ stdout(value: string): void;
7
+ readStdin?(): Promise<string>;
8
+ openSocket?(url: string): WebSocket;
9
+ };
10
+ /** Read-only adapters; the server owns authorization, pagination and bytes. */
11
+ export declare function workspaceCommand(args: string[], deps: WorkspaceDeps): Promise<number>;
12
+ export {};
13
+ //# sourceMappingURL=workspaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../src/workspaces.ts"],"names":[],"mappings":"AAUA,2EAA2E;AAC3E,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAcrD;AAED,eAAO,MAAM,cAAc,ohGAkC1B,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC7D,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,SAAS,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAC9B,UAAU,CAAC,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,+EAA+E;AAC/E,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,aAAa,mBAqPzE"}