poe-code 3.0.197 → 3.0.198
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/configure.d.ts +0 -7
- package/dist/cli/commands/configure.js +11 -14
- package/dist/cli/commands/configure.js.map +1 -1
- package/dist/cli/commands/provider.js +8 -1
- package/dist/cli/commands/provider.js.map +1 -1
- package/dist/index.js +221 -262
- package/dist/index.js.map +4 -4
- package/dist/providers/claude-code.js +6 -20
- package/dist/providers/claude-code.js.map +3 -3
- package/dist/providers/codex.js +6 -20
- package/dist/providers/codex.js.map +3 -3
- package/dist/providers/create-provider.js +0 -2
- package/dist/providers/create-provider.js.map +1 -1
- package/dist/providers/goose.js +14 -25
- package/dist/providers/goose.js.map +3 -3
- package/dist/providers/kimi.js +6 -20
- package/dist/providers/kimi.js.map +3 -3
- package/dist/providers/opencode.js +6 -20
- package/dist/providers/opencode.js.map +3 -3
- package/dist/providers/poe-agent.js +66 -84
- package/dist/providers/poe-agent.js.map +4 -4
- package/dist/utils/command-checks.d.ts +2 -1
- package/dist/utils/command-checks.js +3 -1
- package/dist/utils/command-checks.js.map +1 -1
- package/package.json +4 -1
- package/packages/memory/dist/cache.js +1 -1
- package/packages/memory/dist/explain.js +1 -1
- package/packages/memory/dist/index.js +9 -7
- package/packages/memory/dist/index.js.map +3 -3
- package/packages/memory/dist/query.js +1 -1
- package/packages/memory/dist/tokens.js +1 -1
- package/packages/superintendent/dist/cli.d.ts +2 -0
- package/packages/superintendent/dist/cli.js +41 -0
- package/packages/superintendent/dist/commands/builder-group.d.ts +52 -0
- package/packages/superintendent/dist/commands/builder-group.js +73 -0
- package/packages/superintendent/dist/commands/complete.d.ts +19 -0
- package/packages/superintendent/dist/commands/complete.js +54 -0
- package/packages/superintendent/dist/commands/index.d.ts +4 -0
- package/packages/superintendent/dist/commands/index.js +4 -0
- package/packages/superintendent/dist/commands/inspector-group.d.ts +115 -0
- package/packages/superintendent/dist/commands/inspector-group.js +133 -0
- package/packages/superintendent/dist/commands/install.d.ts +31 -0
- package/packages/superintendent/dist/commands/install.js +148 -0
- package/packages/superintendent/dist/commands/plan-path.d.ts +9 -0
- package/packages/superintendent/dist/commands/plan-path.js +40 -0
- package/packages/superintendent/dist/commands/poe-agent-runner.d.ts +5 -0
- package/packages/superintendent/dist/commands/poe-agent-runner.js +27 -0
- package/packages/superintendent/dist/commands/run.d.ts +86 -0
- package/packages/superintendent/dist/commands/run.js +945 -0
- package/packages/superintendent/dist/commands/superintendent-group.d.ts +325 -0
- package/packages/superintendent/dist/commands/superintendent-group.js +238 -0
- package/packages/superintendent/dist/config-scope.d.ts +8 -0
- package/packages/superintendent/dist/config-scope.js +9 -0
- package/packages/superintendent/dist/direct-execution.d.ts +1 -0
- package/packages/superintendent/dist/direct-execution.js +20 -0
- package/packages/superintendent/dist/document/parse.d.ts +59 -0
- package/packages/superintendent/dist/document/parse.js +409 -0
- package/packages/superintendent/dist/document/tasks.d.ts +12 -0
- package/packages/superintendent/dist/document/tasks.js +96 -0
- package/packages/superintendent/dist/document/write.d.ts +6 -0
- package/packages/superintendent/dist/document/write.js +156 -0
- package/packages/superintendent/dist/index.d.ts +12 -0
- package/packages/superintendent/dist/index.js +15 -0
- package/packages/superintendent/dist/mcp.d.ts +24 -0
- package/packages/superintendent/dist/mcp.js +202 -0
- package/packages/superintendent/dist/runtime/agentic-tools.d.ts +33 -0
- package/packages/superintendent/dist/runtime/agentic-tools.js +74 -0
- package/packages/superintendent/dist/runtime/loop.d.ts +88 -0
- package/packages/superintendent/dist/runtime/loop.js +446 -0
- package/packages/superintendent/dist/runtime/resolve-cwd.d.ts +2 -0
- package/packages/superintendent/dist/runtime/resolve-cwd.js +10 -0
- package/packages/superintendent/dist/runtime/run-builder.d.ts +13 -0
- package/packages/superintendent/dist/runtime/run-builder.js +102 -0
- package/packages/superintendent/dist/runtime/run-inspector.d.ts +16 -0
- package/packages/superintendent/dist/runtime/run-inspector.js +119 -0
- package/packages/superintendent/dist/runtime/run-owner-review.d.ts +18 -0
- package/packages/superintendent/dist/runtime/run-owner-review.js +208 -0
- package/packages/superintendent/dist/runtime/run-superintendent.d.ts +13 -0
- package/packages/superintendent/dist/runtime/run-superintendent.js +208 -0
- package/packages/superintendent/dist/runtime/system-prompt.d.ts +17 -0
- package/packages/superintendent/dist/runtime/system-prompt.js +54 -0
- package/packages/superintendent/dist/runtime/templates.d.ts +22 -0
- package/packages/superintendent/dist/runtime/templates.js +23 -0
- package/packages/superintendent/dist/runtime/types.d.ts +4 -0
- package/packages/superintendent/dist/runtime/types.js +1 -0
- package/packages/superintendent/dist/runtime/workflow-tool.d.ts +29 -0
- package/packages/superintendent/dist/runtime/workflow-tool.js +83 -0
- package/packages/superintendent/dist/state/machine.d.ts +14 -0
- package/packages/superintendent/dist/state/machine.js +53 -0
- package/packages/superintendent/dist/templates/SKILL_superintendent.md +193 -0
- package/packages/superintendent/dist/testing/index.d.ts +2 -0
- package/packages/superintendent/dist/testing/index.js +1 -0
- package/packages/superintendent/dist/testing/simulation.d.ts +57 -0
- package/packages/superintendent/dist/testing/simulation.js +346 -0
- package/dist/providers/tiny-http-mcp-server.d.ts +0 -22
- package/dist/providers/tiny-http-mcp-server.js +0 -1471
- package/dist/providers/tiny-http-mcp-server.js.map +0 -7
|
@@ -1392,20 +1392,6 @@ var require_config_toml = __commonJS({
|
|
|
1392
1392
|
}
|
|
1393
1393
|
});
|
|
1394
1394
|
|
|
1395
|
-
// src/templates/tiny-http-mcp-server/server.mjs.mustache
|
|
1396
|
-
var require_server_mjs = __commonJS({
|
|
1397
|
-
"src/templates/tiny-http-mcp-server/server.mjs.mustache"(exports, module) {
|
|
1398
|
-
module.exports = 'import path from "node:path";\nimport { readFile } from "node:fs/promises";\nimport { fileURLToPath, pathToFileURL } from "node:url";\nimport { createHttpServer } from "tiny-http-mcp-server";\n\nfunction isWindowsAbsolutePath(value) {\n if (value.length < 3) {\n return false;\n }\n\n const drive = value.charCodeAt(0);\n const separator = value[2];\n const isLetter =\n (drive >= 65 && drive <= 90) || (drive >= 97 && drive <= 122);\n\n return isLetter && value[1] === ":" && (separator === "\\\\" || separator === "/");\n}\n\nfunction resolveModuleSpecifier(baseDir, value) {\n if (value.startsWith("file:")) {\n return value;\n }\n\n if (value.startsWith(".") || value.startsWith("/") || isWindowsAbsolutePath(value)) {\n const resolvedPath = path.isAbsolute(value)\n ? value\n : path.resolve(baseDir, value);\n return pathToFileURL(resolvedPath).href;\n }\n\n return value;\n}\n\nconst directory = path.dirname(fileURLToPath(import.meta.url));\nconst config = JSON.parse(\n await readFile(new URL("./config.json", import.meta.url), "utf8")\n);\n\nconst verifierModule = await import(\n resolveModuleSpecifier(directory, config.oauth.verifierModule)\n);\nconst verifier = verifierModule[config.oauth.verifierExport ?? "default"];\n\nif (!verifier || typeof verifier.verify !== "function") {\n throw new Error("Verifier module must export an object with a verify() method.");\n}\n\nconst server = createHttpServer({\n name: config.name,\n version: config.version,\n oauth: {\n resource: config.oauth.resource,\n authorizationServers: config.oauth.authorizationServers,\n requiredScopes: config.oauth.requiredScopes,\n scopesSupported: config.oauth.scopesSupported,\n bearerMethodsSupported: config.oauth.bearerMethodsSupported,\n verifier,\n },\n});\n\nconst handle = await server.listenHttp(config.listen);\n\nconsole.log(handle.url);\n\nconst shutdown = async () => {\n await handle.close();\n process.exit(0);\n};\n\nprocess.once("SIGINT", () => {\n void shutdown();\n});\n\nprocess.once("SIGTERM", () => {\n void shutdown();\n});\n';
|
|
1399
|
-
}
|
|
1400
|
-
});
|
|
1401
|
-
|
|
1402
|
-
// src/templates/tiny-http-mcp-server/verify-token.mjs.mustache
|
|
1403
|
-
var require_verify_token_mjs = __commonJS({
|
|
1404
|
-
"src/templates/tiny-http-mcp-server/verify-token.mjs.mustache"(exports, module) {
|
|
1405
|
-
module.exports = 'import { TokenVerificationError } from "tiny-http-mcp-server";\n\nexport default {\n async verify(_input) {\n throw new TokenVerificationError({\n error: "invalid_token",\n errorDescription: "Replace ~/.poe-code/tiny-http-mcp-server/verify-token.mjs with your token verifier.",\n });\n },\n};\n';
|
|
1406
|
-
}
|
|
1407
|
-
});
|
|
1408
|
-
|
|
1409
1395
|
// packages/poe-agent/src/runtime/config.ts
|
|
1410
1396
|
function cloneStringArray(values) {
|
|
1411
1397
|
if (!values) {
|
|
@@ -7272,61 +7258,61 @@ var init_agent_host = __esm({
|
|
|
7272
7258
|
}
|
|
7273
7259
|
});
|
|
7274
7260
|
|
|
7275
|
-
// packages/mcp-oauth/
|
|
7261
|
+
// packages/mcp-oauth/dist/resource-indicator.js
|
|
7276
7262
|
var init_resource_indicator = __esm({
|
|
7277
|
-
"packages/mcp-oauth/
|
|
7263
|
+
"packages/mcp-oauth/dist/resource-indicator.js"() {
|
|
7278
7264
|
"use strict";
|
|
7279
7265
|
}
|
|
7280
7266
|
});
|
|
7281
7267
|
|
|
7282
|
-
// packages/mcp-oauth/
|
|
7268
|
+
// packages/mcp-oauth/dist/client/auth-store-session-store.js
|
|
7283
7269
|
import crypto from "node:crypto";
|
|
7284
7270
|
import path12 from "node:path";
|
|
7285
7271
|
var init_auth_store_session_store = __esm({
|
|
7286
|
-
"packages/mcp-oauth/
|
|
7272
|
+
"packages/mcp-oauth/dist/client/auth-store-session-store.js"() {
|
|
7287
7273
|
"use strict";
|
|
7288
7274
|
init_src2();
|
|
7289
7275
|
init_resource_indicator();
|
|
7290
7276
|
}
|
|
7291
7277
|
});
|
|
7292
7278
|
|
|
7293
|
-
// packages/mcp-oauth/
|
|
7279
|
+
// packages/mcp-oauth/dist/client/authorization-state.js
|
|
7294
7280
|
import crypto2 from "node:crypto";
|
|
7295
7281
|
var init_authorization_state = __esm({
|
|
7296
|
-
"packages/mcp-oauth/
|
|
7282
|
+
"packages/mcp-oauth/dist/client/authorization-state.js"() {
|
|
7297
7283
|
"use strict";
|
|
7298
7284
|
}
|
|
7299
7285
|
});
|
|
7300
7286
|
|
|
7301
|
-
// packages/mcp-oauth/
|
|
7287
|
+
// packages/mcp-oauth/dist/client/loopback-authorization.js
|
|
7302
7288
|
import http from "node:http";
|
|
7303
7289
|
var init_loopback_authorization = __esm({
|
|
7304
|
-
"packages/mcp-oauth/
|
|
7290
|
+
"packages/mcp-oauth/dist/client/loopback-authorization.js"() {
|
|
7305
7291
|
"use strict";
|
|
7306
7292
|
init_authorization_state();
|
|
7307
7293
|
}
|
|
7308
7294
|
});
|
|
7309
7295
|
|
|
7310
|
-
// packages/mcp-oauth/
|
|
7296
|
+
// packages/mcp-oauth/dist/client/pkce.js
|
|
7311
7297
|
import crypto3 from "node:crypto";
|
|
7312
7298
|
var init_pkce = __esm({
|
|
7313
|
-
"packages/mcp-oauth/
|
|
7299
|
+
"packages/mcp-oauth/dist/client/pkce.js"() {
|
|
7314
7300
|
"use strict";
|
|
7315
7301
|
}
|
|
7316
7302
|
});
|
|
7317
7303
|
|
|
7318
|
-
// packages/mcp-oauth/
|
|
7304
|
+
// packages/mcp-oauth/dist/client/token-endpoint.js
|
|
7319
7305
|
var init_token_endpoint = __esm({
|
|
7320
|
-
"packages/mcp-oauth/
|
|
7306
|
+
"packages/mcp-oauth/dist/client/token-endpoint.js"() {
|
|
7321
7307
|
"use strict";
|
|
7322
7308
|
init_resource_indicator();
|
|
7323
7309
|
}
|
|
7324
7310
|
});
|
|
7325
7311
|
|
|
7326
|
-
// packages/mcp-oauth/
|
|
7312
|
+
// packages/mcp-oauth/dist/client/default-oauth-client-provider.js
|
|
7327
7313
|
import { URL as URL2 } from "node:url";
|
|
7328
7314
|
var init_default_oauth_client_provider = __esm({
|
|
7329
|
-
"packages/mcp-oauth/
|
|
7315
|
+
"packages/mcp-oauth/dist/client/default-oauth-client-provider.js"() {
|
|
7330
7316
|
"use strict";
|
|
7331
7317
|
init_auth_store_session_store();
|
|
7332
7318
|
init_loopback_authorization();
|
|
@@ -7337,23 +7323,18 @@ var init_default_oauth_client_provider = __esm({
|
|
|
7337
7323
|
}
|
|
7338
7324
|
});
|
|
7339
7325
|
|
|
7340
|
-
// packages/mcp-oauth/
|
|
7341
|
-
import {
|
|
7342
|
-
decodeProtectedHeader,
|
|
7343
|
-
errors,
|
|
7344
|
-
importJWK,
|
|
7345
|
-
jwtVerify
|
|
7346
|
-
} from "jose";
|
|
7326
|
+
// packages/mcp-oauth/dist/server/jwks-token-verifier.js
|
|
7327
|
+
import { decodeProtectedHeader, errors, importJWK, jwtVerify } from "jose";
|
|
7347
7328
|
var init_jwks_token_verifier = __esm({
|
|
7348
|
-
"packages/mcp-oauth/
|
|
7329
|
+
"packages/mcp-oauth/dist/server/jwks-token-verifier.js"() {
|
|
7349
7330
|
"use strict";
|
|
7350
7331
|
init_resource_indicator();
|
|
7351
7332
|
}
|
|
7352
7333
|
});
|
|
7353
7334
|
|
|
7354
|
-
// packages/mcp-oauth/
|
|
7355
|
-
var
|
|
7356
|
-
"packages/mcp-oauth/
|
|
7335
|
+
// packages/mcp-oauth/dist/index.js
|
|
7336
|
+
var init_dist = __esm({
|
|
7337
|
+
"packages/mcp-oauth/dist/index.js"() {
|
|
7357
7338
|
"use strict";
|
|
7358
7339
|
init_auth_store_session_store();
|
|
7359
7340
|
init_default_oauth_client_provider();
|
|
@@ -7369,7 +7350,7 @@ var init_src3 = __esm({
|
|
|
7369
7350
|
var init_oauth_discovery = __esm({
|
|
7370
7351
|
"packages/tiny-mcp-client/src/oauth-discovery.ts"() {
|
|
7371
7352
|
"use strict";
|
|
7372
|
-
|
|
7353
|
+
init_dist();
|
|
7373
7354
|
}
|
|
7374
7355
|
});
|
|
7375
7356
|
|
|
@@ -7548,10 +7529,10 @@ var MCP_PROTOCOL_VERSION, McpClient, ERROR_PARSE, ERROR_INVALID_REQUEST, ERROR_M
|
|
|
7548
7529
|
var init_internal = __esm({
|
|
7549
7530
|
"packages/tiny-mcp-client/src/internal.ts"() {
|
|
7550
7531
|
"use strict";
|
|
7551
|
-
|
|
7532
|
+
init_dist();
|
|
7552
7533
|
init_oauth_discovery();
|
|
7553
7534
|
init_oauth_discovery();
|
|
7554
|
-
|
|
7535
|
+
init_dist();
|
|
7555
7536
|
MCP_PROTOCOL_VERSION = "2025-03-26";
|
|
7556
7537
|
McpClient = class {
|
|
7557
7538
|
currentState = "disconnected";
|
|
@@ -8298,7 +8279,7 @@ var init_internal = __esm({
|
|
|
8298
8279
|
});
|
|
8299
8280
|
|
|
8300
8281
|
// packages/tiny-mcp-client/src/index.ts
|
|
8301
|
-
var
|
|
8282
|
+
var init_src3 = __esm({
|
|
8302
8283
|
"packages/tiny-mcp-client/src/index.ts"() {
|
|
8303
8284
|
"use strict";
|
|
8304
8285
|
init_internal();
|
|
@@ -8369,7 +8350,7 @@ var DEFAULT_MCP_CLIENT_INFO, PluginApiImpl;
|
|
|
8369
8350
|
var init_plugin_api_impl = __esm({
|
|
8370
8351
|
"packages/poe-agent/src/runtime/plugin-api-impl.ts"() {
|
|
8371
8352
|
"use strict";
|
|
8372
|
-
|
|
8353
|
+
init_src3();
|
|
8373
8354
|
init_hooks();
|
|
8374
8355
|
init_config();
|
|
8375
8356
|
init_tool_results();
|
|
@@ -9521,7 +9502,7 @@ var init_specifier = __esm({
|
|
|
9521
9502
|
});
|
|
9522
9503
|
|
|
9523
9504
|
// packages/agent-defs/src/index.ts
|
|
9524
|
-
var
|
|
9505
|
+
var init_src4 = __esm({
|
|
9525
9506
|
"packages/agent-defs/src/index.ts"() {
|
|
9526
9507
|
"use strict";
|
|
9527
9508
|
init_agents();
|
|
@@ -9760,11 +9741,12 @@ var init_kimi2 = __esm({
|
|
|
9760
9741
|
});
|
|
9761
9742
|
|
|
9762
9743
|
// packages/agent-spawn/src/configs/goose.ts
|
|
9763
|
-
var gooseSpawnConfig, gooseAcpSpawnConfig;
|
|
9744
|
+
var gooseFileSecretsEnv, gooseSpawnConfig, gooseAcpSpawnConfig;
|
|
9764
9745
|
var init_goose2 = __esm({
|
|
9765
9746
|
"packages/agent-spawn/src/configs/goose.ts"() {
|
|
9766
9747
|
"use strict";
|
|
9767
9748
|
init_mcp();
|
|
9749
|
+
gooseFileSecretsEnv = { GOOSE_DISABLE_KEYRING: "1" };
|
|
9768
9750
|
gooseSpawnConfig = {
|
|
9769
9751
|
kind: "cli",
|
|
9770
9752
|
agentId: "goose",
|
|
@@ -9777,9 +9759,9 @@ var init_goose2 = __esm({
|
|
|
9777
9759
|
mcpArgs: serializeGooseMcpArgs,
|
|
9778
9760
|
mcpArgsPosition: "beforePrompt",
|
|
9779
9761
|
modes: {
|
|
9780
|
-
yolo: { env: { GOOSE_MODE: "auto" } },
|
|
9781
|
-
edit: { env: { GOOSE_MODE: "smart_approve" } },
|
|
9782
|
-
read: { env: { GOOSE_MODE: "chat" } }
|
|
9762
|
+
yolo: { env: { ...gooseFileSecretsEnv, GOOSE_MODE: "auto" } },
|
|
9763
|
+
edit: { env: { ...gooseFileSecretsEnv, GOOSE_MODE: "smart_approve" } },
|
|
9764
|
+
read: { env: { ...gooseFileSecretsEnv, GOOSE_MODE: "chat" } }
|
|
9783
9765
|
},
|
|
9784
9766
|
stdinMode: {
|
|
9785
9767
|
omitPrompt: true,
|
|
@@ -9795,6 +9777,7 @@ var init_goose2 = __esm({
|
|
|
9795
9777
|
kind: "acp",
|
|
9796
9778
|
agentId: "goose",
|
|
9797
9779
|
acpArgs: ["acp"],
|
|
9780
|
+
env: gooseFileSecretsEnv,
|
|
9798
9781
|
skipAuth: true
|
|
9799
9782
|
};
|
|
9800
9783
|
}
|
|
@@ -9822,7 +9805,7 @@ var allSpawnConfigs, lookup2, acpLookup;
|
|
|
9822
9805
|
var init_configs = __esm({
|
|
9823
9806
|
"packages/agent-spawn/src/configs/index.ts"() {
|
|
9824
9807
|
"use strict";
|
|
9825
|
-
|
|
9808
|
+
init_src4();
|
|
9826
9809
|
init_claude_code2();
|
|
9827
9810
|
init_codex2();
|
|
9828
9811
|
init_opencode2();
|
|
@@ -9863,7 +9846,7 @@ function resolveConfig(agentId) {
|
|
|
9863
9846
|
var init_resolve_config = __esm({
|
|
9864
9847
|
"packages/agent-spawn/src/configs/resolve-config.ts"() {
|
|
9865
9848
|
"use strict";
|
|
9866
|
-
|
|
9849
|
+
init_src4();
|
|
9867
9850
|
init_configs();
|
|
9868
9851
|
}
|
|
9869
9852
|
});
|
|
@@ -16582,7 +16565,7 @@ var init_static = __esm({
|
|
|
16582
16565
|
});
|
|
16583
16566
|
|
|
16584
16567
|
// packages/design-system/src/index.ts
|
|
16585
|
-
var
|
|
16568
|
+
var init_src5 = __esm({
|
|
16586
16569
|
"packages/design-system/src/index.ts"() {
|
|
16587
16570
|
"use strict";
|
|
16588
16571
|
init_tokens();
|
|
@@ -16706,7 +16689,7 @@ async function renderAcpStream(events) {
|
|
|
16706
16689
|
var init_renderer2 = __esm({
|
|
16707
16690
|
"packages/agent-spawn/src/acp/renderer.ts"() {
|
|
16708
16691
|
"use strict";
|
|
16709
|
-
|
|
16692
|
+
init_src5();
|
|
16710
16693
|
init_session_update_converter();
|
|
16711
16694
|
}
|
|
16712
16695
|
});
|
|
@@ -17418,7 +17401,7 @@ var init_spawn2 = __esm({
|
|
|
17418
17401
|
var init_spawn_acp = __esm({
|
|
17419
17402
|
"packages/agent-spawn/src/acp/spawn-acp.ts"() {
|
|
17420
17403
|
"use strict";
|
|
17421
|
-
|
|
17404
|
+
init_src4();
|
|
17422
17405
|
init_src();
|
|
17423
17406
|
init_configs();
|
|
17424
17407
|
init_session_update_converter();
|
|
@@ -17739,7 +17722,7 @@ var init_spawn_log = __esm({
|
|
|
17739
17722
|
});
|
|
17740
17723
|
|
|
17741
17724
|
// packages/agent-spawn/src/index.ts
|
|
17742
|
-
var
|
|
17725
|
+
var init_src6 = __esm({
|
|
17743
17726
|
"packages/agent-spawn/src/index.ts"() {
|
|
17744
17727
|
"use strict";
|
|
17745
17728
|
init_run_command();
|
|
@@ -17768,7 +17751,7 @@ var gitContext, poe_agent_plugin_git_context_default;
|
|
|
17768
17751
|
var init_poe_agent_plugin_git_context = __esm({
|
|
17769
17752
|
"packages/poe-agent/src/plugins/poe-agent-plugin-git-context.ts"() {
|
|
17770
17753
|
"use strict";
|
|
17771
|
-
|
|
17754
|
+
init_src6();
|
|
17772
17755
|
gitContext = (cwd) => ({
|
|
17773
17756
|
name: "git-context",
|
|
17774
17757
|
async prompt(ctx) {
|
|
@@ -18007,7 +17990,7 @@ __export(src_exports, {
|
|
|
18007
17990
|
systemPromptPlugin: () => poe_agent_plugin_system_prompt_default,
|
|
18008
17991
|
webPlugin: () => poe_agent_plugin_web_default
|
|
18009
17992
|
});
|
|
18010
|
-
var
|
|
17993
|
+
var init_src7 = __esm({
|
|
18011
17994
|
"packages/poe-agent/src/index.ts"() {
|
|
18012
17995
|
"use strict";
|
|
18013
17996
|
init_agent();
|
|
@@ -19851,9 +19834,7 @@ var templateImports = {
|
|
|
19851
19834
|
"py-poe-spawn/env.mustache": () => Promise.resolve().then(() => __toESM(require_env(), 1)),
|
|
19852
19835
|
"py-poe-spawn/main.py.mustache": () => Promise.resolve().then(() => __toESM(require_main_py(), 1)),
|
|
19853
19836
|
"py-poe-spawn/requirements.txt.mustache": () => Promise.resolve().then(() => __toESM(require_requirements_txt(), 1)),
|
|
19854
|
-
"codex/config.toml.mustache": () => Promise.resolve().then(() => __toESM(require_config_toml(), 1))
|
|
19855
|
-
"tiny-http-mcp-server/server.mjs.mustache": () => Promise.resolve().then(() => __toESM(require_server_mjs(), 1)),
|
|
19856
|
-
"tiny-http-mcp-server/verify-token.mjs.mustache": () => Promise.resolve().then(() => __toESM(require_verify_token_mjs(), 1))
|
|
19837
|
+
"codex/config.toml.mustache": () => Promise.resolve().then(() => __toESM(require_config_toml(), 1))
|
|
19857
19838
|
};
|
|
19858
19839
|
async function loadTemplate(templateId) {
|
|
19859
19840
|
const loader = templateImports[templateId];
|
|
@@ -19928,7 +19909,7 @@ function createInstallRunner(definition) {
|
|
|
19928
19909
|
|
|
19929
19910
|
// src/services/config.ts
|
|
19930
19911
|
import path29 from "node:path";
|
|
19931
|
-
|
|
19912
|
+
init_src7();
|
|
19932
19913
|
|
|
19933
19914
|
// packages/superintendent/src/document/parse.ts
|
|
19934
19915
|
import path17 from "node:path";
|
|
@@ -20282,7 +20263,7 @@ function formatFrontmatter(serialized, lineBreak) {
|
|
|
20282
20263
|
}
|
|
20283
20264
|
|
|
20284
20265
|
// packages/superintendent/src/document/tasks.ts
|
|
20285
|
-
|
|
20266
|
+
init_src5();
|
|
20286
20267
|
function parseTaskBoard(body) {
|
|
20287
20268
|
const sectionNodes = readTaskBoardSection(body);
|
|
20288
20269
|
const tasks = [];
|
|
@@ -20399,18 +20380,19 @@ function resolveWorkflowPath(inputPath, cwd, homeDir) {
|
|
|
20399
20380
|
}
|
|
20400
20381
|
|
|
20401
20382
|
// packages/agent-harness-tools/src/participant.ts
|
|
20402
|
-
|
|
20383
|
+
init_src4();
|
|
20403
20384
|
|
|
20404
20385
|
// packages/agent-harness-tools/src/select-agent.ts
|
|
20405
|
-
|
|
20406
|
-
var
|
|
20386
|
+
init_src4();
|
|
20387
|
+
var loopAgents = allAgents.filter(
|
|
20388
|
+
(agent2) => agent2.binaryName !== void 0 || agent2.id === "poe-agent"
|
|
20389
|
+
);
|
|
20390
|
+
var supportedAgents = loopAgents.map((agent2) => agent2.id).join(", ");
|
|
20407
20391
|
function resolveSelectedAgent(agent2) {
|
|
20408
20392
|
const specifier = parseAgentSpecifier(agent2);
|
|
20409
20393
|
const resolvedAgentId = resolveAgentId(specifier.agent);
|
|
20410
|
-
if (!resolvedAgentId) {
|
|
20411
|
-
throw new Error(
|
|
20412
|
-
`Unsupported agent "${agent2}". Supported agents: ${supportedAgents}`
|
|
20413
|
-
);
|
|
20394
|
+
if (!resolvedAgentId || !loopAgents.some((agent3) => agent3.id === resolvedAgentId)) {
|
|
20395
|
+
throw new Error(`Unsupported agent "${agent2}". Supported agents: ${supportedAgents}`);
|
|
20414
20396
|
}
|
|
20415
20397
|
return {
|
|
20416
20398
|
agent: specifier.model ? `${resolvedAgentId}:${specifier.model}` : resolvedAgentId
|
|
@@ -20434,7 +20416,7 @@ async function resolveLoopAgent(input) {
|
|
|
20434
20416
|
}
|
|
20435
20417
|
const selectedAgent = await input.select({
|
|
20436
20418
|
message: input.message,
|
|
20437
|
-
options:
|
|
20419
|
+
options: loopAgents.map((agent2) => ({
|
|
20438
20420
|
value: agent2.id,
|
|
20439
20421
|
label: agent2.label,
|
|
20440
20422
|
hint: agent2.summary
|
|
@@ -20711,7 +20693,7 @@ Write the plan file to \`<plan-directory>/<name>.md\`.`;
|
|
|
20711
20693
|
}
|
|
20712
20694
|
|
|
20713
20695
|
// packages/superintendent/src/runtime/loop.ts
|
|
20714
|
-
|
|
20696
|
+
init_src6();
|
|
20715
20697
|
|
|
20716
20698
|
// packages/superintendent/src/state/machine.ts
|
|
20717
20699
|
var DEFAULT_MAX_ROUNDS = 100;
|
|
@@ -20727,7 +20709,7 @@ function createLoopState(doc) {
|
|
|
20727
20709
|
}
|
|
20728
20710
|
|
|
20729
20711
|
// packages/superintendent/src/runtime/run-builder.ts
|
|
20730
|
-
|
|
20712
|
+
init_src6();
|
|
20731
20713
|
|
|
20732
20714
|
// packages/superintendent/src/runtime/resolve-cwd.ts
|
|
20733
20715
|
import path21 from "node:path";
|
|
@@ -20862,7 +20844,7 @@ function readString2(value) {
|
|
|
20862
20844
|
}
|
|
20863
20845
|
|
|
20864
20846
|
// packages/superintendent/src/runtime/run-inspector.ts
|
|
20865
|
-
|
|
20847
|
+
init_src6();
|
|
20866
20848
|
|
|
20867
20849
|
// packages/superintendent/src/runtime/system-prompt.ts
|
|
20868
20850
|
function buildSuperintendentSystemPrompt(input) {
|
|
@@ -21048,7 +21030,7 @@ function readString3(value) {
|
|
|
21048
21030
|
}
|
|
21049
21031
|
|
|
21050
21032
|
// packages/superintendent/src/runtime/run-owner-review.ts
|
|
21051
|
-
|
|
21033
|
+
init_src6();
|
|
21052
21034
|
|
|
21053
21035
|
// packages/superintendent/src/runtime/workflow-tool.ts
|
|
21054
21036
|
function createWorkflowTool(role, state) {
|
|
@@ -21343,7 +21325,7 @@ function isRecord6(value) {
|
|
|
21343
21325
|
}
|
|
21344
21326
|
|
|
21345
21327
|
// packages/superintendent/src/runtime/run-superintendent.ts
|
|
21346
|
-
|
|
21328
|
+
init_src6();
|
|
21347
21329
|
var SUPERINTENDENT_TOOLS_SERVER_NAME = "superintendent-tools";
|
|
21348
21330
|
var SUPERINTENDENT_TOOLS_SERVER_COMMAND = "poe-superintendent-mcp";
|
|
21349
21331
|
var SUPERINTENDENT_TOOLS_SERVER_SUBCOMMAND = "superintendent-tools";
|
|
@@ -22485,7 +22467,7 @@ function defineGroup(config) {
|
|
|
22485
22467
|
}
|
|
22486
22468
|
|
|
22487
22469
|
// packages/superintendent/src/commands/builder-group.ts
|
|
22488
|
-
|
|
22470
|
+
init_src5();
|
|
22489
22471
|
var builderRunParams = S.Object({
|
|
22490
22472
|
path: S.String({ description: "Path to the superintendent markdown document" })
|
|
22491
22473
|
});
|
|
@@ -22561,7 +22543,7 @@ import { readFile as readFile5, stat as stat4, mkdir as mkdir4, writeFile as wri
|
|
|
22561
22543
|
import { fileURLToPath as fileURLToPath5 } from "node:url";
|
|
22562
22544
|
|
|
22563
22545
|
// packages/agent-skill-config/src/configs.ts
|
|
22564
|
-
|
|
22546
|
+
init_src4();
|
|
22565
22547
|
import os3 from "node:os";
|
|
22566
22548
|
import path24 from "node:path";
|
|
22567
22549
|
var agentSkillConfigs = {
|
|
@@ -22936,7 +22918,7 @@ function hasCode3(error2, code) {
|
|
|
22936
22918
|
}
|
|
22937
22919
|
|
|
22938
22920
|
// packages/superintendent/src/commands/superintendent-group.ts
|
|
22939
|
-
|
|
22921
|
+
init_src5();
|
|
22940
22922
|
|
|
22941
22923
|
// packages/superintendent/src/commands/complete.ts
|
|
22942
22924
|
var completeParams = S.Object({
|
|
@@ -23036,12 +23018,12 @@ function resolveAbsoluteDirectory2(dir, cwd, homeDir) {
|
|
|
23036
23018
|
import path28 from "node:path";
|
|
23037
23019
|
import * as fsPromises7 from "node:fs/promises";
|
|
23038
23020
|
import { spawn as nodeSpawn, spawnSync as nodeSpawnSync } from "node:child_process";
|
|
23039
|
-
|
|
23040
|
-
|
|
23021
|
+
init_src6();
|
|
23022
|
+
init_src4();
|
|
23041
23023
|
|
|
23042
23024
|
// packages/superintendent/src/commands/poe-agent-runner.ts
|
|
23043
|
-
|
|
23044
|
-
|
|
23025
|
+
init_src4();
|
|
23026
|
+
init_src7();
|
|
23045
23027
|
async function executePoeAgent(agentSpec, input, createAgent = agent) {
|
|
23046
23028
|
const { model } = parseAgentSpecifier(agentSpec);
|
|
23047
23029
|
if (!model) {
|
|
@@ -23058,7 +23040,7 @@ async function executePoeAgent(agentSpec, input, createAgent = agent) {
|
|
|
23058
23040
|
}
|
|
23059
23041
|
|
|
23060
23042
|
// packages/superintendent/src/commands/run.ts
|
|
23061
|
-
|
|
23043
|
+
init_src5();
|
|
23062
23044
|
|
|
23063
23045
|
// packages/superintendent/src/config-scope.ts
|
|
23064
23046
|
var superintendentConfigScope = defineScope("superintendent", {
|
|
@@ -24661,7 +24643,7 @@ function createInMemoryAcpTransport2(options) {
|
|
|
24661
24643
|
}
|
|
24662
24644
|
if (method === "session/new") {
|
|
24663
24645
|
const request = params;
|
|
24664
|
-
const { createAgentSession: createAgentSession2 } = await Promise.resolve().then(() => (
|
|
24646
|
+
const { createAgentSession: createAgentSession2 } = await Promise.resolve().then(() => (init_src7(), src_exports));
|
|
24665
24647
|
const session = await createAgentSession2({
|
|
24666
24648
|
model: options.model,
|
|
24667
24649
|
cwd: request.cwd || options.cwd,
|