@pmate/cli 0.25.5 → 0.25.7
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 +31 -0
- package/dist/index.d.ts +20 -19
- package/dist/index.js +2577 -6275
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -48,6 +48,10 @@ pmate notion create --private --title "Private Notes" --file ./notes.md
|
|
|
48
48
|
pmate notion update <page-id-or-url> --file ./notes.md --append
|
|
49
49
|
pmate vercel projects
|
|
50
50
|
pmate vercel deploys --project web --last-week
|
|
51
|
+
pmate im1 health
|
|
52
|
+
pmate im1 threads --limit 20
|
|
53
|
+
pmate im1 messages --thread "<conversationId-or-thread-name>" --limit 50
|
|
54
|
+
pmate im1 reply --source cc --thread "<conversationId-or-thread-name>" --text "hello"
|
|
51
55
|
```
|
|
52
56
|
|
|
53
57
|
Notes:
|
|
@@ -159,6 +163,33 @@ Notes:
|
|
|
159
163
|
- Platform commands such as `pmate sts`, `pmate agent`, and `pmate app` still
|
|
160
164
|
default to the `@pmate/cli` session.
|
|
161
165
|
|
|
166
|
+
## IM1 / CC messages
|
|
167
|
+
|
|
168
|
+
`pmate im1` reads CC messages through the local `cc-bot` service at
|
|
169
|
+
`http://localhost:39223` by default. Override the base URL with
|
|
170
|
+
`PMATE_IM1_BASE_URL` only when debugging another local service instance.
|
|
171
|
+
|
|
172
|
+
Useful commands:
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
pmate im1 health
|
|
176
|
+
pmate im1 threads --limit 20
|
|
177
|
+
pmate im1 threads --q Bug --limit 10
|
|
178
|
+
pmate im1 messages --thread "<conversationId-or-thread-name>" --limit 50
|
|
179
|
+
pmate im1 reply --source cc --thread "<conversationId-or-thread-name>" --text "hello"
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
`threads` and `messages` output JSON by default. Thread rows include both
|
|
183
|
+
`conversationId` and `threadKey`; prefer `conversationId` when scripting or
|
|
184
|
+
passing a thread back into `messages`/`reply`. Add `--text` for compact
|
|
185
|
+
human-readable output.
|
|
186
|
+
|
|
187
|
+
CC sync is owned by the background service in `~/dev/pcs/cc-bot`, which runs
|
|
188
|
+
under PM2, keeps TimescaleDB running, listens for new CC messages, and performs
|
|
189
|
+
bounded 3-day backfill. `pmate im1 collect sync --source cc` is intentionally
|
|
190
|
+
disabled. Legacy yelling/custom endpoint collection still uses
|
|
191
|
+
`pmate im1 collect sync --source yelling` or `--endpoint`.
|
|
192
|
+
|
|
162
193
|
## Notion config
|
|
163
194
|
|
|
164
195
|
Add a Notion integration token to `~/.pmate/config.yaml`:
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ declare enum Command {
|
|
|
11
11
|
Init = "init",
|
|
12
12
|
Delete = "delete",
|
|
13
13
|
Dev = "dev",
|
|
14
|
-
PrepareDev = "prepare-dev",
|
|
15
14
|
Env = "env",
|
|
16
15
|
Pr = "pr",
|
|
17
16
|
Commit = "commit",
|
|
@@ -100,23 +99,6 @@ type DevCommandArgs = {
|
|
|
100
99
|
devApp: string;
|
|
101
100
|
devCwd: string;
|
|
102
101
|
};
|
|
103
|
-
type PrepareDevCommandArgs = {
|
|
104
|
-
type: Command.PrepareDev;
|
|
105
|
-
action: "open";
|
|
106
|
-
repo: string;
|
|
107
|
-
note?: string;
|
|
108
|
-
envRoot?: string;
|
|
109
|
-
baseRoot?: string;
|
|
110
|
-
json: boolean;
|
|
111
|
-
} | {
|
|
112
|
-
type: Command.PrepareDev;
|
|
113
|
-
action: "close";
|
|
114
|
-
repo: string;
|
|
115
|
-
envIndex: number;
|
|
116
|
-
envRoot?: string;
|
|
117
|
-
baseRoot?: string;
|
|
118
|
-
json: boolean;
|
|
119
|
-
};
|
|
120
102
|
type EnvCommandArgs = {
|
|
121
103
|
type: Command.Env;
|
|
122
104
|
envApp: string;
|
|
@@ -564,6 +546,25 @@ type CollectCommandArgs = {
|
|
|
564
546
|
action: "sync";
|
|
565
547
|
source?: "cc" | "yelling";
|
|
566
548
|
endpoint?: string;
|
|
549
|
+
thread?: string;
|
|
550
|
+
} | {
|
|
551
|
+
type: Command.Collect;
|
|
552
|
+
action: "health";
|
|
553
|
+
json?: boolean;
|
|
554
|
+
} | {
|
|
555
|
+
type: Command.Collect;
|
|
556
|
+
action: "threads";
|
|
557
|
+
source?: "cc";
|
|
558
|
+
query?: string;
|
|
559
|
+
limit?: number;
|
|
560
|
+
json?: boolean;
|
|
561
|
+
} | {
|
|
562
|
+
type: Command.Collect;
|
|
563
|
+
action: "messages";
|
|
564
|
+
source?: "cc";
|
|
565
|
+
thread: string;
|
|
566
|
+
limit?: number;
|
|
567
|
+
json?: boolean;
|
|
567
568
|
} | {
|
|
568
569
|
type: Command.Collect;
|
|
569
570
|
action: "reply";
|
|
@@ -1103,7 +1104,7 @@ type VercelDeploysCommandArgs = {
|
|
|
1103
1104
|
lastWeek: boolean;
|
|
1104
1105
|
};
|
|
1105
1106
|
type VercelCommandArgs = VercelProjectsCommandArgs | VercelDeploysCommandArgs;
|
|
1106
|
-
type CommandArgs = NoneCommandArgs | ListCommandArgs | LoginCommandArgs | AddDnsCommandArgs | StsCommandArgs | BucketCommandArgs | DeployCommandArgs | LogCommandArgs | InitCommandArgs | DeleteCommandArgs | DevCommandArgs |
|
|
1107
|
+
type CommandArgs = NoneCommandArgs | ListCommandArgs | LoginCommandArgs | AddDnsCommandArgs | StsCommandArgs | BucketCommandArgs | DeployCommandArgs | LogCommandArgs | InitCommandArgs | DeleteCommandArgs | DevCommandArgs | EnvCommandArgs | PrCommandArgs | CommitCommandArgs | SummaryCommandArgs | QuizCommandArgs | ServiceCommandArgs | LinearCommandArgs | NotionCommandArgs | OssCommandArgs | QrcodeCommandArgs | RandomCommandArgs | CollectCommandArgs | ChatRoomCommandArgs | AgentCommandArgs | RunnerCommandArgs | NsCommandArgs | RoleCommandArgs | AccountCommandArgs | OrgCommandArgs | StoreCommandArgs | AppCommandArgs | VercelCommandArgs;
|
|
1107
1108
|
|
|
1108
1109
|
interface ParsedArgs {
|
|
1109
1110
|
help: boolean;
|