poe-code 3.0.44 → 3.0.46
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/dist/cli/commands/test.d.ts +0 -2
- package/dist/cli/commands/test.js +26 -91
- package/dist/cli/commands/test.js.map +1 -1
- package/dist/index.js +26 -118
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
|
@@ -3,6 +3,4 @@ import type { CliContainer } from "../container.js";
|
|
|
3
3
|
export declare function registerTestCommand(program: Command, container: CliContainer): Command;
|
|
4
4
|
export declare function executeTest(program: Command, container: CliContainer, service: string, options?: {
|
|
5
5
|
isolated?: boolean;
|
|
6
|
-
stdin?: boolean;
|
|
7
|
-
model?: string;
|
|
8
6
|
}): Promise<void>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { buildProviderContext, createExecutionResources, resolveCommandFlags, resolveServiceAdapter, formatServiceList } from "./shared.js";
|
|
2
2
|
import { resolveServiceArgument } from "./configure.js";
|
|
3
3
|
import { resolveIsolatedEnvDetails } from "../isolated-env.js";
|
|
4
|
-
import { formatCommandRunnerResult, stdoutMatchesExpected } from "../../utils/command-checks.js";
|
|
5
|
-
import { spawn as agentSpawn, getSpawnConfig } from "@poe-code/agent-spawn";
|
|
6
4
|
import { withSpinner } from "@poe-code/design-system";
|
|
7
5
|
export function registerTestCommand(program, container) {
|
|
8
6
|
const serviceNames = container.registry
|
|
@@ -13,17 +11,13 @@ export function registerTestCommand(program, container) {
|
|
|
13
11
|
return program
|
|
14
12
|
.command("test")
|
|
15
13
|
.description("Run agent health checks.")
|
|
16
|
-
.option("--stdin", "Verify stdin prompt support via spawn")
|
|
17
|
-
.option("--model <model>", "Model identifier override (requires --stdin)")
|
|
18
14
|
.argument("[agent]", serviceDescription)
|
|
19
15
|
.option("--isolated", "Run the health check using isolated configuration.")
|
|
20
16
|
.action(async function (service) {
|
|
21
17
|
const resolved = await resolveServiceArgument(program, container, service, { action: "test" });
|
|
22
18
|
const opts = this.opts();
|
|
23
19
|
await executeTest(this, container, resolved, {
|
|
24
|
-
isolated: Boolean(opts.isolated)
|
|
25
|
-
stdin: Boolean(opts.stdin),
|
|
26
|
-
model: opts.model
|
|
20
|
+
isolated: Boolean(opts.isolated)
|
|
27
21
|
});
|
|
28
22
|
});
|
|
29
23
|
}
|
|
@@ -34,9 +28,6 @@ export async function executeTest(program, container, service, options = {}) {
|
|
|
34
28
|
const resources = createExecutionResources(container, flags, `test:${canonicalService}`);
|
|
35
29
|
resources.logger.intro(`test ${canonicalService}`);
|
|
36
30
|
const providerContext = buildProviderContext(container, adapter, resources);
|
|
37
|
-
if (options.model && !options.stdin) {
|
|
38
|
-
throw new Error("The --model option requires --stdin.");
|
|
39
|
-
}
|
|
40
31
|
const isolatedDetails = options.isolated && adapter.isolatedEnv
|
|
41
32
|
? await resolveIsolatedEnvDetails(container.env, adapter.isolatedEnv, adapter.name, container.fs)
|
|
42
33
|
: null;
|
|
@@ -49,89 +40,33 @@ export async function executeTest(program, container, service, options = {}) {
|
|
|
49
40
|
flags
|
|
50
41
|
});
|
|
51
42
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
useStdin: true,
|
|
73
|
-
model: options.model
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
return container.registry.invoke(canonicalService, "spawn", async (entry) => {
|
|
77
|
-
if (!entry.spawn) {
|
|
78
|
-
throw new Error(`Agent "${canonicalService}" does not support spawn.`);
|
|
43
|
+
await withSpinner({
|
|
44
|
+
message: `Testing ${adapter.label}...`,
|
|
45
|
+
fn: () => container.registry.invoke(canonicalService, "test", async (entry) => {
|
|
46
|
+
if (!entry.test) {
|
|
47
|
+
throw new Error(`Agent "${canonicalService}" does not support test.`);
|
|
48
|
+
}
|
|
49
|
+
const activeContext = isolatedDetails
|
|
50
|
+
? {
|
|
51
|
+
...providerContext,
|
|
52
|
+
runCheck: async (check) => {
|
|
53
|
+
await check.run({
|
|
54
|
+
isDryRun: providerContext.logger.context.dryRun,
|
|
55
|
+
runCommand: (command, args) => resources.context.runCommand("poe-code", [
|
|
56
|
+
"wrap",
|
|
57
|
+
canonicalService,
|
|
58
|
+
"--",
|
|
59
|
+
...args
|
|
60
|
+
]),
|
|
61
|
+
logDryRun: (message) => providerContext.logger.dryRun(message)
|
|
62
|
+
});
|
|
79
63
|
}
|
|
80
|
-
const output = await entry.spawn(providerContext, {
|
|
81
|
-
prompt,
|
|
82
|
-
useStdin: true,
|
|
83
|
-
model: options.model
|
|
84
|
-
});
|
|
85
|
-
return output;
|
|
86
|
-
});
|
|
87
|
-
},
|
|
88
|
-
stopMessage: () => `${adapter.label} stdin test`
|
|
89
|
-
});
|
|
90
|
-
if (!result) {
|
|
91
|
-
throw new Error(`Stdin spawn test for ${adapter.label} did not return command output.`);
|
|
92
|
-
}
|
|
93
|
-
if (result.exitCode !== 0) {
|
|
94
|
-
throw new Error([
|
|
95
|
-
`Stdin spawn test for ${adapter.label} failed with exit code ${result.exitCode}.`,
|
|
96
|
-
formatCommandRunnerResult(result)
|
|
97
|
-
].join("\n"));
|
|
98
|
-
}
|
|
99
|
-
if (!stdoutMatchesExpected(result.stdout, expectedOutput)) {
|
|
100
|
-
throw new Error([
|
|
101
|
-
`Stdin spawn test for ${adapter.label} failed: expected "${expectedOutput}" but received "${result.stdout.trim()}".`,
|
|
102
|
-
formatCommandRunnerResult(result)
|
|
103
|
-
].join("\n"));
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
else {
|
|
107
|
-
await withSpinner({
|
|
108
|
-
message: `Testing ${adapter.label}...`,
|
|
109
|
-
fn: () => container.registry.invoke(canonicalService, "test", async (entry) => {
|
|
110
|
-
if (!entry.test) {
|
|
111
|
-
throw new Error(`Agent "${canonicalService}" does not support test.`);
|
|
112
64
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
isDryRun: providerContext.logger.context.dryRun,
|
|
119
|
-
runCommand: (command, args) => resources.context.runCommand("poe-code", [
|
|
120
|
-
"wrap",
|
|
121
|
-
canonicalService,
|
|
122
|
-
"--",
|
|
123
|
-
...args
|
|
124
|
-
]),
|
|
125
|
-
logDryRun: (message) => providerContext.logger.dryRun(message)
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
: providerContext;
|
|
130
|
-
await entry.test(activeContext);
|
|
131
|
-
}),
|
|
132
|
-
stopMessage: () => `${adapter.label} health check`
|
|
133
|
-
});
|
|
134
|
-
}
|
|
65
|
+
: providerContext;
|
|
66
|
+
await entry.test(activeContext);
|
|
67
|
+
}),
|
|
68
|
+
stopMessage: () => `${adapter.label} health check`
|
|
69
|
+
});
|
|
135
70
|
const dryMessage = canonicalService === "claude-code"
|
|
136
71
|
? `${adapter.label} test (dry run)`
|
|
137
72
|
: `Dry run: would test ${adapter.label}.`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../src/cli/commands/test.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../src/cli/commands/test.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EAClB,M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;oBACE,GAAG,eAAe;oBAClB,QAAQ,EAAE,KAAK,EAAE,KAAmB,EAAE,EAAE;wBACtC,MAAM,KAAK,CAAC,GAAG,CAAC;4BACd,QAAQ,EAAE,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM;4BAC/C,UAAU,EAAE,CAAC,OAAe,EAAE,IAAc,EAAE,EAAE,CAC9C,SAAS,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE;gCACvC,MAAM;gCACN,gBAAgB;gCAChB,IAAI;gCACJ,GAAG,IAAI;6BACR,CAAC;4BACJ,SAAS,EAAE,CAAC,OAAe,EAAE,EAAE,CAC7B,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC;yBACzC,CAAC,CAAC;oBACL,CAAC;iBACF;gBACH,CAAC,CAAC,eAAe,CAAC;YAEtB,MAAM,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAClC,CAAC,CAAC;QACJ,WAAW,EAAE,GAAG,EAAE,CAAC,GAAG,OAAO,CAAC,KAAK,eAAe;KACnD,CAAC,CAAC;IAEH,MAAM,UAAU,GACd,gBAAgB,KAAK,aAAa;QAChC,CAAC,CAAC,GAAG,OAAO,CAAC,KAAK,iBAAiB;QACnC,CAAC,CAAC,uBAAuB,OAAO,CAAC,KAAK,GAAG,CAAC;IAE9C,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC;QACzB,OAAO,EAAE,UAAU,OAAO,CAAC,KAAK,GAAG;QACnC,GAAG,EAAE,UAAU;KAChB,CAAC,CAAC;IAEH,SAAS,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;AAC/B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -17071,28 +17071,6 @@ ${stdout}
|
|
|
17071
17071
|
stderr:
|
|
17072
17072
|
${stderr}`;
|
|
17073
17073
|
}
|
|
17074
|
-
function stdoutMatchesExpected(stdout, expected) {
|
|
17075
|
-
const trimmed = stdout.trim();
|
|
17076
|
-
if (trimmed === expected) {
|
|
17077
|
-
return true;
|
|
17078
|
-
}
|
|
17079
|
-
const lines = stdout.split(/\r?\n/).map((line) => line.trim()).filter((line) => line.length > 0);
|
|
17080
|
-
if (lines.some((line) => line === expected)) {
|
|
17081
|
-
return true;
|
|
17082
|
-
}
|
|
17083
|
-
for (const line of lines) {
|
|
17084
|
-
if (line[0] !== "{") continue;
|
|
17085
|
-
try {
|
|
17086
|
-
const parsed = JSON.parse(line);
|
|
17087
|
-
if (parsed.type === "result" && parsed.result === expected) {
|
|
17088
|
-
return true;
|
|
17089
|
-
}
|
|
17090
|
-
} catch {
|
|
17091
|
-
continue;
|
|
17092
|
-
}
|
|
17093
|
-
}
|
|
17094
|
-
return false;
|
|
17095
|
-
}
|
|
17096
17074
|
function createSpawnHealthCheck(agentId, options) {
|
|
17097
17075
|
const prompt = `Output exactly: ${options.expectedOutput}`;
|
|
17098
17076
|
const { binaryName, args } = buildSpawnArgs(agentId, {
|
|
@@ -19220,7 +19198,7 @@ init_isolated_env();
|
|
|
19220
19198
|
function registerTestCommand(program, container) {
|
|
19221
19199
|
const serviceNames = container.registry.list().filter((service) => typeof service.test === "function").map((service) => service.name);
|
|
19222
19200
|
const serviceDescription = `Agent to test${formatServiceList(serviceNames)}`;
|
|
19223
|
-
return program.command("test").description("Run agent health checks.").
|
|
19201
|
+
return program.command("test").description("Run agent health checks.").argument(
|
|
19224
19202
|
"[agent]",
|
|
19225
19203
|
serviceDescription
|
|
19226
19204
|
).option("--isolated", "Run the health check using isolated configuration.").action(async function(service) {
|
|
@@ -19232,9 +19210,7 @@ function registerTestCommand(program, container) {
|
|
|
19232
19210
|
);
|
|
19233
19211
|
const opts = this.opts();
|
|
19234
19212
|
await executeTest(this, container, resolved, {
|
|
19235
|
-
isolated: Boolean(opts.isolated)
|
|
19236
|
-
stdin: Boolean(opts.stdin),
|
|
19237
|
-
model: opts.model
|
|
19213
|
+
isolated: Boolean(opts.isolated)
|
|
19238
19214
|
});
|
|
19239
19215
|
});
|
|
19240
19216
|
}
|
|
@@ -19253,9 +19229,6 @@ async function executeTest(program, container, service, options = {}) {
|
|
|
19253
19229
|
adapter,
|
|
19254
19230
|
resources
|
|
19255
19231
|
);
|
|
19256
|
-
if (options.model && !options.stdin) {
|
|
19257
|
-
throw new Error("The --model option requires --stdin.");
|
|
19258
|
-
}
|
|
19259
19232
|
const isolatedDetails = options.isolated && adapter.isolatedEnv ? await resolveIsolatedEnvDetails(
|
|
19260
19233
|
container.env,
|
|
19261
19234
|
adapter.isolatedEnv,
|
|
@@ -19271,96 +19244,31 @@ async function executeTest(program, container, service, options = {}) {
|
|
|
19271
19244
|
flags
|
|
19272
19245
|
});
|
|
19273
19246
|
}
|
|
19274
|
-
|
|
19275
|
-
|
|
19276
|
-
|
|
19277
|
-
|
|
19278
|
-
|
|
19279
|
-
|
|
19280
|
-
|
|
19281
|
-
|
|
19282
|
-
|
|
19283
|
-
|
|
19284
|
-
|
|
19285
|
-
|
|
19286
|
-
|
|
19287
|
-
|
|
19288
|
-
|
|
19289
|
-
|
|
19290
|
-
|
|
19291
|
-
|
|
19292
|
-
return spawn2(canonicalService, {
|
|
19293
|
-
prompt,
|
|
19294
|
-
useStdin: true,
|
|
19295
|
-
model: options.model
|
|
19247
|
+
await withSpinner({
|
|
19248
|
+
message: `Testing ${adapter.label}...`,
|
|
19249
|
+
fn: () => container.registry.invoke(canonicalService, "test", async (entry) => {
|
|
19250
|
+
if (!entry.test) {
|
|
19251
|
+
throw new Error(`Agent "${canonicalService}" does not support test.`);
|
|
19252
|
+
}
|
|
19253
|
+
const activeContext = isolatedDetails ? {
|
|
19254
|
+
...providerContext,
|
|
19255
|
+
runCheck: async (check2) => {
|
|
19256
|
+
await check2.run({
|
|
19257
|
+
isDryRun: providerContext.logger.context.dryRun,
|
|
19258
|
+
runCommand: (command, args) => resources.context.runCommand("poe-code", [
|
|
19259
|
+
"wrap",
|
|
19260
|
+
canonicalService,
|
|
19261
|
+
"--",
|
|
19262
|
+
...args
|
|
19263
|
+
]),
|
|
19264
|
+
logDryRun: (message) => providerContext.logger.dryRun(message)
|
|
19296
19265
|
});
|
|
19297
19266
|
}
|
|
19298
|
-
|
|
19299
|
-
|
|
19300
|
-
|
|
19301
|
-
|
|
19302
|
-
|
|
19303
|
-
throw new Error(`Agent "${canonicalService}" does not support spawn.`);
|
|
19304
|
-
}
|
|
19305
|
-
const output = await entry.spawn(providerContext, {
|
|
19306
|
-
prompt,
|
|
19307
|
-
useStdin: true,
|
|
19308
|
-
model: options.model
|
|
19309
|
-
});
|
|
19310
|
-
return output;
|
|
19311
|
-
}
|
|
19312
|
-
);
|
|
19313
|
-
},
|
|
19314
|
-
stopMessage: () => `${adapter.label} stdin test`
|
|
19315
|
-
});
|
|
19316
|
-
if (!result) {
|
|
19317
|
-
throw new Error(
|
|
19318
|
-
`Stdin spawn test for ${adapter.label} did not return command output.`
|
|
19319
|
-
);
|
|
19320
|
-
}
|
|
19321
|
-
if (result.exitCode !== 0) {
|
|
19322
|
-
throw new Error(
|
|
19323
|
-
[
|
|
19324
|
-
`Stdin spawn test for ${adapter.label} failed with exit code ${result.exitCode}.`,
|
|
19325
|
-
formatCommandRunnerResult(result)
|
|
19326
|
-
].join("\n")
|
|
19327
|
-
);
|
|
19328
|
-
}
|
|
19329
|
-
if (!stdoutMatchesExpected(result.stdout, expectedOutput)) {
|
|
19330
|
-
throw new Error(
|
|
19331
|
-
[
|
|
19332
|
-
`Stdin spawn test for ${adapter.label} failed: expected "${expectedOutput}" but received "${result.stdout.trim()}".`,
|
|
19333
|
-
formatCommandRunnerResult(result)
|
|
19334
|
-
].join("\n")
|
|
19335
|
-
);
|
|
19336
|
-
}
|
|
19337
|
-
} else {
|
|
19338
|
-
await withSpinner({
|
|
19339
|
-
message: `Testing ${adapter.label}...`,
|
|
19340
|
-
fn: () => container.registry.invoke(canonicalService, "test", async (entry) => {
|
|
19341
|
-
if (!entry.test) {
|
|
19342
|
-
throw new Error(`Agent "${canonicalService}" does not support test.`);
|
|
19343
|
-
}
|
|
19344
|
-
const activeContext = isolatedDetails ? {
|
|
19345
|
-
...providerContext,
|
|
19346
|
-
runCheck: async (check2) => {
|
|
19347
|
-
await check2.run({
|
|
19348
|
-
isDryRun: providerContext.logger.context.dryRun,
|
|
19349
|
-
runCommand: (command, args) => resources.context.runCommand("poe-code", [
|
|
19350
|
-
"wrap",
|
|
19351
|
-
canonicalService,
|
|
19352
|
-
"--",
|
|
19353
|
-
...args
|
|
19354
|
-
]),
|
|
19355
|
-
logDryRun: (message) => providerContext.logger.dryRun(message)
|
|
19356
|
-
});
|
|
19357
|
-
}
|
|
19358
|
-
} : providerContext;
|
|
19359
|
-
await entry.test(activeContext);
|
|
19360
|
-
}),
|
|
19361
|
-
stopMessage: () => `${adapter.label} health check`
|
|
19362
|
-
});
|
|
19363
|
-
}
|
|
19267
|
+
} : providerContext;
|
|
19268
|
+
await entry.test(activeContext);
|
|
19269
|
+
}),
|
|
19270
|
+
stopMessage: () => `${adapter.label} health check`
|
|
19271
|
+
});
|
|
19364
19272
|
const dryMessage = canonicalService === "claude-code" ? `${adapter.label} test (dry run)` : `Dry run: would test ${adapter.label}.`;
|
|
19365
19273
|
resources.context.complete({
|
|
19366
19274
|
success: `Tested ${adapter.label}.`,
|
|
@@ -36367,7 +36275,7 @@ function registerModelsCommand(program, container) {
|
|
|
36367
36275
|
// package.json
|
|
36368
36276
|
var package_default = {
|
|
36369
36277
|
name: "poe-code",
|
|
36370
|
-
version: "3.0.
|
|
36278
|
+
version: "3.0.46",
|
|
36371
36279
|
description: "CLI tool to configure Poe API for developer workflows.",
|
|
36372
36280
|
type: "module",
|
|
36373
36281
|
workspaces: [
|