poe-code 2.0.6 → 2.0.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 +6 -1
- package/dist/cli/telemetry.d.ts +1 -1
- package/dist/cli/telemetry.js +3 -18
- package/dist/cli/telemetry.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -51,6 +51,12 @@ npx poe-code@latest remove codex
|
|
|
51
51
|
|
|
52
52
|
Removes the Codex settings previously applied by `npx poe-code@latest configure codex`.
|
|
53
53
|
|
|
54
|
+
### Test Configuration
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
npx poe-code@latest test codex
|
|
58
|
+
```
|
|
59
|
+
|
|
54
60
|
### Spawn a coding agent
|
|
55
61
|
|
|
56
62
|
```bash
|
|
@@ -61,5 +67,4 @@ npx poe-code@latest spawn claude-code "Explain this error message"
|
|
|
61
67
|
### Optional Flags
|
|
62
68
|
|
|
63
69
|
- `--dry-run` – show every mutation without touching disk.
|
|
64
|
-
- `--verbose` – print shell commands as they run.
|
|
65
70
|
- `--yes` – accept defaults for prompts.
|
package/dist/cli/telemetry.d.ts
CHANGED
|
@@ -12,4 +12,4 @@ export interface TelemetryClient {
|
|
|
12
12
|
record(event: TelemetryEvent): void;
|
|
13
13
|
wrap<T>(service: string, operation: ProviderOperation, task: () => Promise<T>): Promise<T>;
|
|
14
14
|
}
|
|
15
|
-
export declare function createTelemetryClient(
|
|
15
|
+
export declare function createTelemetryClient(_logger: ScopedLogger): TelemetryClient;
|
package/dist/cli/telemetry.js
CHANGED
|
@@ -1,21 +1,6 @@
|
|
|
1
|
-
export function createTelemetryClient(
|
|
2
|
-
const record = (
|
|
3
|
-
|
|
4
|
-
const suffix = event.status === "success"
|
|
5
|
-
? `completed in ${event.durationMs.toFixed(0)}ms`
|
|
6
|
-
: `failed in ${event.durationMs.toFixed(0)}ms`;
|
|
7
|
-
const message = `${prefix} ${suffix}`;
|
|
8
|
-
if (event.status === "success") {
|
|
9
|
-
logger.verbose(message);
|
|
10
|
-
}
|
|
11
|
-
else {
|
|
12
|
-
logger.error(message);
|
|
13
|
-
if (event.error) {
|
|
14
|
-
logger.error(event.error instanceof Error
|
|
15
|
-
? event.error.message
|
|
16
|
-
: String(event.error));
|
|
17
|
-
}
|
|
18
|
-
}
|
|
1
|
+
export function createTelemetryClient(_logger) {
|
|
2
|
+
const record = (_event) => {
|
|
3
|
+
// Telemetry events are recorded but not logged
|
|
19
4
|
};
|
|
20
5
|
const wrap = async (service, operation, task) => {
|
|
21
6
|
const start = Date.now();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../src/cli/telemetry.ts"],"names":[],"mappings":"AA4BA,MAAM,UAAU,qBAAqB,CAAC,
|
|
1
|
+
{"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../src/cli/telemetry.ts"],"names":[],"mappings":"AA4BA,MAAM,UAAU,qBAAqB,CAAC,OAAqB;IACzD,MAAM,MAAM,GAAG,CAAC,MAAsB,EAAQ,EAAE;QAC9C,+CAA+C;IACjD,CAAC,CAAC;IAEF,MAAM,IAAI,GAAG,KAAK,EAChB,OAAe,EACf,SAA4B,EAC5B,IAAsB,EACV,EAAE;QACd,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,IAAI,EAAE,CAAC;YAC5B,MAAM,CAAC;gBACL,OAAO;gBACP,SAAS;gBACT,MAAM,EAAE,SAAS;gBACjB,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK;aAC/B,CAAC,CAAC;YACH,OAAO,MAAM,CAAC;QAChB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC;gBACL,OAAO;gBACP,SAAS;gBACT,MAAM,EAAE,SAAS;gBACjB,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK;gBAC9B,KAAK;aACN,CAAC,CAAC;YACH,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;AAC1B,CAAC"}
|