poe-code 3.0.191 → 3.0.193
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-payload.d.ts +1 -1
- package/dist/cli/commands/configure-payload.js +16 -9
- package/dist/cli/commands/configure-payload.js.map +1 -1
- package/dist/cli/commands/configure.d.ts +7 -0
- package/dist/cli/commands/configure.js +25 -5
- package/dist/cli/commands/configure.js.map +1 -1
- package/dist/cli/commands/ensure-isolated-config.js +3 -2
- package/dist/cli/commands/ensure-isolated-config.js.map +1 -1
- package/dist/cli/commands/experiment.js +38 -39
- package/dist/cli/commands/experiment.js.map +1 -1
- package/dist/cli/commands/memory.js +20 -15
- package/dist/cli/commands/memory.js.map +1 -1
- package/dist/cli/commands/pipeline-loop-agent.d.ts +1 -0
- package/dist/cli/commands/pipeline-loop-agent.js +2 -0
- package/dist/cli/commands/pipeline-loop-agent.js.map +1 -0
- package/dist/cli/commands/pipeline.js +42 -71
- package/dist/cli/commands/pipeline.js.map +1 -1
- package/dist/cli/commands/ralph.js +37 -20
- package/dist/cli/commands/ralph.js.map +1 -1
- package/dist/cli/commands/shared.d.ts +1 -0
- package/dist/cli/commands/shared.js +30 -1
- package/dist/cli/commands/shared.js.map +1 -1
- package/dist/cli/commands/test.js +5 -2
- package/dist/cli/commands/test.js.map +1 -1
- package/dist/cli/poe-code-command-runner.js +2 -7
- package/dist/cli/poe-code-command-runner.js.map +1 -1
- package/dist/cli/program.js +55 -46
- package/dist/cli/program.js.map +1 -1
- package/dist/cli/service-registry.d.ts +7 -1
- package/dist/cli/service-registry.js.map +1 -1
- package/dist/index.js +9203 -2108
- package/dist/index.js.map +4 -4
- package/dist/providers/claude-code.js +18 -1
- package/dist/providers/claude-code.js.map +3 -3
- package/dist/providers/codex.js +18 -1
- package/dist/providers/codex.js.map +3 -3
- package/dist/providers/create-provider.d.ts +1 -0
- package/dist/providers/create-provider.js +3 -0
- package/dist/providers/create-provider.js.map +1 -1
- package/dist/providers/goose.js +19 -2
- package/dist/providers/goose.js.map +3 -3
- package/dist/providers/kimi.js +18 -1
- package/dist/providers/kimi.js.map +3 -3
- package/dist/providers/opencode.js +18 -1
- package/dist/providers/opencode.js.map +3 -3
- package/dist/providers/poe-agent.js +738 -301
- package/dist/providers/poe-agent.js.map +4 -4
- package/dist/providers/tiny-http-mcp-server.d.ts +22 -0
- package/dist/providers/tiny-http-mcp-server.js +1471 -0
- package/dist/providers/tiny-http-mcp-server.js.map +7 -0
- package/dist/templates/pipeline/SKILL_plan.md +64 -52
- package/package.json +10 -2
- package/packages/memory/dist/explain.cli.d.ts +1 -2
- package/packages/memory/dist/explain.cli.js +1 -2
- package/packages/memory/dist/explain.d.ts +1 -2
- package/packages/memory/dist/explain.js +19 -12
- package/packages/memory/dist/handle.d.ts +37 -0
- package/packages/memory/dist/handle.js +41 -0
- package/packages/memory/dist/index.d.ts +3 -1
- package/packages/memory/dist/index.js +1474 -452
- package/packages/memory/dist/index.js.map +4 -4
- package/packages/memory/dist/ingest.d.ts +12 -1
- package/packages/memory/dist/ingest.js +23 -12
- package/packages/memory/dist/mcp.d.ts +4 -2
- package/packages/memory/dist/mcp.js +6 -10
- package/packages/memory/dist/query.js +2 -8
- package/packages/memory/dist/types.d.ts +0 -21
- package/packages/tiny-oauth-test-server/dist/cli.js +191 -0
- package/packages/tiny-stdio-mcp-server/dist/server.js +9 -1
- package/packages/tiny-stdio-mcp-server/dist/types.d.ts +1 -1
|
@@ -52,6 +52,20 @@ var require_config_toml = __commonJS({
|
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
|
|
55
|
+
// src/templates/tiny-http-mcp-server/server.mjs.mustache
|
|
56
|
+
var require_server_mjs = __commonJS({
|
|
57
|
+
"src/templates/tiny-http-mcp-server/server.mjs.mustache"(exports, module) {
|
|
58
|
+
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';
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
// src/templates/tiny-http-mcp-server/verify-token.mjs.mustache
|
|
63
|
+
var require_verify_token_mjs = __commonJS({
|
|
64
|
+
"src/templates/tiny-http-mcp-server/verify-token.mjs.mustache"(exports, module) {
|
|
65
|
+
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';
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
|
|
55
69
|
// src/cli/constants.ts
|
|
56
70
|
var FRONTIER_MODELS = [
|
|
57
71
|
"anthropic/claude-opus-4.7",
|
|
@@ -2239,7 +2253,9 @@ var templateImports = {
|
|
|
2239
2253
|
"py-poe-spawn/env.mustache": () => Promise.resolve().then(() => __toESM(require_env(), 1)),
|
|
2240
2254
|
"py-poe-spawn/main.py.mustache": () => Promise.resolve().then(() => __toESM(require_main_py(), 1)),
|
|
2241
2255
|
"py-poe-spawn/requirements.txt.mustache": () => Promise.resolve().then(() => __toESM(require_requirements_txt(), 1)),
|
|
2242
|
-
"codex/config.toml.mustache": () => Promise.resolve().then(() => __toESM(require_config_toml(), 1))
|
|
2256
|
+
"codex/config.toml.mustache": () => Promise.resolve().then(() => __toESM(require_config_toml(), 1)),
|
|
2257
|
+
"tiny-http-mcp-server/server.mjs.mustache": () => Promise.resolve().then(() => __toESM(require_server_mjs(), 1)),
|
|
2258
|
+
"tiny-http-mcp-server/verify-token.mjs.mustache": () => Promise.resolve().then(() => __toESM(require_verify_token_mjs(), 1))
|
|
2243
2259
|
};
|
|
2244
2260
|
async function loadTemplate(templateId) {
|
|
2245
2261
|
const loader = templateImports[templateId];
|
|
@@ -2260,6 +2276,7 @@ function createProvider(opts) {
|
|
|
2260
2276
|
disabled: opts.disabled,
|
|
2261
2277
|
supportsStdinPrompt: opts.supportsStdinPrompt,
|
|
2262
2278
|
supportsMcpSpawn: opts.supportsMcpSpawn,
|
|
2279
|
+
requiresProvider: opts.requiresProvider ?? true,
|
|
2263
2280
|
configurePrompts: opts.configurePrompts,
|
|
2264
2281
|
postConfigureMessages: opts.postConfigureMessages,
|
|
2265
2282
|
extendConfigurePayload: opts.extendConfigurePayload,
|