poe-code 3.0.190 → 3.0.192

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.
Files changed (74) hide show
  1. package/dist/cli/commands/auth.js +34 -0
  2. package/dist/cli/commands/auth.js.map +1 -1
  3. package/dist/cli/commands/configure-payload.d.ts +1 -1
  4. package/dist/cli/commands/configure-payload.js +16 -9
  5. package/dist/cli/commands/configure-payload.js.map +1 -1
  6. package/dist/cli/commands/configure.d.ts +7 -0
  7. package/dist/cli/commands/configure.js +57 -21
  8. package/dist/cli/commands/configure.js.map +1 -1
  9. package/dist/cli/commands/ensure-isolated-config.js +3 -2
  10. package/dist/cli/commands/ensure-isolated-config.js.map +1 -1
  11. package/dist/cli/commands/experiment.js +38 -39
  12. package/dist/cli/commands/experiment.js.map +1 -1
  13. package/dist/cli/commands/memory.js +20 -15
  14. package/dist/cli/commands/memory.js.map +1 -1
  15. package/dist/cli/commands/pipeline-loop-agent.d.ts +1 -0
  16. package/dist/cli/commands/pipeline-loop-agent.js +2 -0
  17. package/dist/cli/commands/pipeline-loop-agent.js.map +1 -0
  18. package/dist/cli/commands/pipeline.js +42 -71
  19. package/dist/cli/commands/pipeline.js.map +1 -1
  20. package/dist/cli/commands/provider.js +2 -15
  21. package/dist/cli/commands/provider.js.map +1 -1
  22. package/dist/cli/commands/ralph.js +37 -20
  23. package/dist/cli/commands/ralph.js.map +1 -1
  24. package/dist/cli/commands/shared.d.ts +3 -0
  25. package/dist/cli/commands/shared.js +46 -2
  26. package/dist/cli/commands/shared.js.map +1 -1
  27. package/dist/cli/commands/test.js +5 -2
  28. package/dist/cli/commands/test.js.map +1 -1
  29. package/dist/cli/poe-code-command-runner.js +2 -7
  30. package/dist/cli/poe-code-command-runner.js.map +1 -1
  31. package/dist/cli/program.js +55 -46
  32. package/dist/cli/program.js.map +1 -1
  33. package/dist/cli/service-registry.d.ts +7 -1
  34. package/dist/cli/service-registry.js.map +1 -1
  35. package/dist/index.js +9109 -1974
  36. package/dist/index.js.map +4 -4
  37. package/dist/providers/claude-code.js +18 -1
  38. package/dist/providers/claude-code.js.map +3 -3
  39. package/dist/providers/codex.js +18 -1
  40. package/dist/providers/codex.js.map +3 -3
  41. package/dist/providers/create-provider.d.ts +1 -0
  42. package/dist/providers/create-provider.js +3 -0
  43. package/dist/providers/create-provider.js.map +1 -1
  44. package/dist/providers/goose.js +19 -2
  45. package/dist/providers/goose.js.map +3 -3
  46. package/dist/providers/kimi.js +18 -1
  47. package/dist/providers/kimi.js.map +3 -3
  48. package/dist/providers/opencode.js +18 -1
  49. package/dist/providers/opencode.js.map +3 -3
  50. package/dist/providers/poe-agent.js +723 -300
  51. package/dist/providers/poe-agent.js.map +4 -4
  52. package/dist/providers/tiny-http-mcp-server.d.ts +22 -0
  53. package/dist/providers/tiny-http-mcp-server.js +1471 -0
  54. package/dist/providers/tiny-http-mcp-server.js.map +7 -0
  55. package/dist/templates/pipeline/SKILL_plan.md +64 -52
  56. package/package.json +10 -2
  57. package/packages/memory/dist/explain.cli.d.ts +1 -2
  58. package/packages/memory/dist/explain.cli.js +1 -2
  59. package/packages/memory/dist/explain.d.ts +1 -2
  60. package/packages/memory/dist/explain.js +19 -12
  61. package/packages/memory/dist/handle.d.ts +37 -0
  62. package/packages/memory/dist/handle.js +41 -0
  63. package/packages/memory/dist/index.d.ts +3 -1
  64. package/packages/memory/dist/index.js +1474 -452
  65. package/packages/memory/dist/index.js.map +4 -4
  66. package/packages/memory/dist/ingest.d.ts +12 -1
  67. package/packages/memory/dist/ingest.js +23 -12
  68. package/packages/memory/dist/mcp.d.ts +4 -2
  69. package/packages/memory/dist/mcp.js +6 -10
  70. package/packages/memory/dist/query.js +2 -8
  71. package/packages/memory/dist/types.d.ts +0 -21
  72. package/packages/tiny-oauth-test-server/dist/cli.js +191 -0
  73. package/packages/tiny-stdio-mcp-server/dist/server.js +9 -1
  74. 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
  // packages/agent-spawn/src/run-command.ts
56
70
  import { spawn } from "node:child_process";
57
71
 
@@ -2242,7 +2256,9 @@ var templateImports = {
2242
2256
  "py-poe-spawn/env.mustache": () => Promise.resolve().then(() => __toESM(require_env(), 1)),
2243
2257
  "py-poe-spawn/main.py.mustache": () => Promise.resolve().then(() => __toESM(require_main_py(), 1)),
2244
2258
  "py-poe-spawn/requirements.txt.mustache": () => Promise.resolve().then(() => __toESM(require_requirements_txt(), 1)),
2245
- "codex/config.toml.mustache": () => Promise.resolve().then(() => __toESM(require_config_toml(), 1))
2259
+ "codex/config.toml.mustache": () => Promise.resolve().then(() => __toESM(require_config_toml(), 1)),
2260
+ "tiny-http-mcp-server/server.mjs.mustache": () => Promise.resolve().then(() => __toESM(require_server_mjs(), 1)),
2261
+ "tiny-http-mcp-server/verify-token.mjs.mustache": () => Promise.resolve().then(() => __toESM(require_verify_token_mjs(), 1))
2246
2262
  };
2247
2263
  async function loadTemplate(templateId) {
2248
2264
  const loader = templateImports[templateId];
@@ -2263,6 +2279,7 @@ function createProvider(opts) {
2263
2279
  disabled: opts.disabled,
2264
2280
  supportsStdinPrompt: opts.supportsStdinPrompt,
2265
2281
  supportsMcpSpawn: opts.supportsMcpSpawn,
2282
+ requiresProvider: opts.requiresProvider ?? true,
2266
2283
  configurePrompts: opts.configurePrompts,
2267
2284
  postConfigureMessages: opts.postConfigureMessages,
2268
2285
  extendConfigurePayload: opts.extendConfigurePayload,