@pmate/cli 0.13.3 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -3
- package/dist/index.d.ts +52 -1
- package/dist/index.js +1009 -294
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -149,9 +149,15 @@ pmate linear pr --account work
|
|
|
149
149
|
|
|
150
150
|
## Auth session
|
|
151
151
|
|
|
152
|
-
`pmate login` stores
|
|
153
|
-
|
|
154
|
-
|
|
152
|
+
`pmate login` stores sessions in `~/.pmate/session.json`. The file now keeps a
|
|
153
|
+
multi-app session registry keyed by app id, so logging into one app no longer
|
|
154
|
+
overwrites another app's session. Use `--app <app-id>` to authenticate against
|
|
155
|
+
a specific app; the default remains `@pmate/cli`.
|
|
156
|
+
|
|
157
|
+
Notes:
|
|
158
|
+
- Existing single-session files are migrated automatically on first read.
|
|
159
|
+
- Platform commands such as `pmate sts`, `pmate agent`, and `pmate app` still
|
|
160
|
+
default to the `@pmate/cli` session.
|
|
155
161
|
|
|
156
162
|
## Notion config
|
|
157
163
|
|
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ declare enum Command {
|
|
|
21
21
|
Random = "random",
|
|
22
22
|
Collect = "collect",
|
|
23
23
|
Agent = "agent",
|
|
24
|
+
Store = "store",
|
|
24
25
|
App = "app",
|
|
25
26
|
Vercel = "vercel"
|
|
26
27
|
}
|
|
@@ -302,6 +303,56 @@ type AgentCommandArgs = {
|
|
|
302
303
|
baseUrl?: string;
|
|
303
304
|
json: boolean;
|
|
304
305
|
};
|
|
306
|
+
type StoreSharedArgs = {
|
|
307
|
+
chain: string;
|
|
308
|
+
namespace: string;
|
|
309
|
+
baseUrl?: string;
|
|
310
|
+
indexerBaseUrl?: string;
|
|
311
|
+
json: boolean;
|
|
312
|
+
};
|
|
313
|
+
type StoreCommandArgs = ({
|
|
314
|
+
type: Command.Store;
|
|
315
|
+
scope: "namespace";
|
|
316
|
+
action: "list";
|
|
317
|
+
} & StoreSharedArgs) | ({
|
|
318
|
+
type: Command.Store;
|
|
319
|
+
scope: "table";
|
|
320
|
+
action: "list";
|
|
321
|
+
name: string;
|
|
322
|
+
page: number;
|
|
323
|
+
} & StoreSharedArgs) | ({
|
|
324
|
+
type: Command.Store;
|
|
325
|
+
scope: "table";
|
|
326
|
+
action: "get" | "exists" | "delete";
|
|
327
|
+
name: string;
|
|
328
|
+
id: string;
|
|
329
|
+
} & StoreSharedArgs) | ({
|
|
330
|
+
type: Command.Store;
|
|
331
|
+
scope: "table";
|
|
332
|
+
action: "create" | "update";
|
|
333
|
+
name: string;
|
|
334
|
+
filePath: string;
|
|
335
|
+
} & StoreSharedArgs) | ({
|
|
336
|
+
type: Command.Store;
|
|
337
|
+
scope: "kv";
|
|
338
|
+
action: "list";
|
|
339
|
+
name: string;
|
|
340
|
+
page: number;
|
|
341
|
+
} & StoreSharedArgs) | ({
|
|
342
|
+
type: Command.Store;
|
|
343
|
+
scope: "kv";
|
|
344
|
+
action: "get" | "exists" | "delete";
|
|
345
|
+
name: string;
|
|
346
|
+
key: string;
|
|
347
|
+
} & StoreSharedArgs) | ({
|
|
348
|
+
type: Command.Store;
|
|
349
|
+
scope: "kv";
|
|
350
|
+
action: "set";
|
|
351
|
+
name: string;
|
|
352
|
+
key: string;
|
|
353
|
+
value?: string;
|
|
354
|
+
filePath?: string;
|
|
355
|
+
} & StoreSharedArgs);
|
|
305
356
|
type AppCommandArgs = {
|
|
306
357
|
type: Command.App;
|
|
307
358
|
action: "list";
|
|
@@ -346,7 +397,7 @@ type VercelDeploysCommandArgs = {
|
|
|
346
397
|
lastWeek: boolean;
|
|
347
398
|
};
|
|
348
399
|
type VercelCommandArgs = VercelProjectsCommandArgs | VercelDeploysCommandArgs;
|
|
349
|
-
type CommandArgs = NoneCommandArgs | ListCommandArgs | LoginCommandArgs | AddDnsCommandArgs | StsCommandArgs | BucketCommandArgs | DeployCommandArgs | LogCommandArgs | InitCommandArgs | DevCommandArgs | EnvCommandArgs | PrCommandArgs | CommitCommandArgs | SummaryCommandArgs | LinearCommandArgs | NotionCommandArgs | OssCommandArgs | QrcodeCommandArgs | RandomCommandArgs | CollectCommandArgs | AgentCommandArgs | AppCommandArgs | VercelCommandArgs;
|
|
400
|
+
type CommandArgs = NoneCommandArgs | ListCommandArgs | LoginCommandArgs | AddDnsCommandArgs | StsCommandArgs | BucketCommandArgs | DeployCommandArgs | LogCommandArgs | InitCommandArgs | DevCommandArgs | EnvCommandArgs | PrCommandArgs | CommitCommandArgs | SummaryCommandArgs | LinearCommandArgs | NotionCommandArgs | OssCommandArgs | QrcodeCommandArgs | RandomCommandArgs | CollectCommandArgs | AgentCommandArgs | StoreCommandArgs | AppCommandArgs | VercelCommandArgs;
|
|
350
401
|
|
|
351
402
|
interface ParsedArgs {
|
|
352
403
|
help: boolean;
|