poe-code 3.0.130 → 3.0.131

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.
@@ -732,6 +732,7 @@ var init_acp_client = __esm({
732
732
  clientProtocolVersion;
733
733
  clientCapabilities;
734
734
  clientInfo;
735
+ skipAuth;
735
736
  permissionHandler;
736
737
  fsHandler;
737
738
  terminalHandler;
@@ -759,6 +760,7 @@ var init_acp_client = __esm({
759
760
  this.clientProtocolVersion = options.protocolVersion ?? 1;
760
761
  this.clientCapabilities = options.clientCapabilities;
761
762
  this.clientInfo = options.clientInfo;
763
+ this.skipAuth = options.skipAuth ?? false;
762
764
  this.permissionHandler = options.handlers?.permission ?? options.permissionHandler;
763
765
  this.fsHandler = options.handlers?.fs ?? options.fsHandler;
764
766
  this.terminalHandler = options.handlers?.terminal ?? options.terminalHandler;
@@ -821,7 +823,8 @@ var init_acp_client = __esm({
821
823
  this.negotiatedAgentCapabilities = response.agentCapabilities;
822
824
  this.negotiatedAgentInfo = response.agentInfo;
823
825
  this.availableAuthMethods = response.authMethods ? [...response.authMethods] : [];
824
- this.lifecycleState = this.availableAuthMethods.length > 0 ? "initialized" : "ready";
826
+ const requiresAuth = this.availableAuthMethods.length > 0 && !this.skipAuth;
827
+ this.lifecycleState = requiresAuth ? "initialized" : "ready";
825
828
  return {
826
829
  protocolVersion: negotiatedProtocolVersion,
827
830
  ...this.negotiatedAgentCapabilities !== void 0 ? { agentCapabilities: this.negotiatedAgentCapabilities } : {},
@@ -1378,23 +1381,23 @@ var init_src = __esm({
1378
1381
  }
1379
1382
  });
1380
1383
 
1381
- // src/templates/python/env.hbs
1384
+ // src/templates/py-poe-spawn/env.hbs
1382
1385
  var require_env = __commonJS({
1383
- "src/templates/python/env.hbs"(exports, module) {
1386
+ "src/templates/py-poe-spawn/env.hbs"(exports, module) {
1384
1387
  module.exports = "POE_API_KEY={{apiKey}}\nPOE_BASE_URL=https://api.poe.com/v1\nMODEL={{model}}\n";
1385
1388
  }
1386
1389
  });
1387
1390
 
1388
- // src/templates/python/main.py.hbs
1391
+ // src/templates/py-poe-spawn/main.py.hbs
1389
1392
  var require_main_py = __commonJS({
1390
- "src/templates/python/main.py.hbs"(exports, module) {
1393
+ "src/templates/py-poe-spawn/main.py.hbs"(exports, module) {
1391
1394
  module.exports = 'import os\nfrom openai import OpenAI\nfrom dotenv import load_dotenv\n\nload_dotenv()\n\nclient = OpenAI(\n api_key=os.getenv("POE_API_KEY"),\n base_url=os.getenv("POE_BASE_URL")\n)\n\nresponse = client.chat.completions.create(\n model=os.getenv("MODEL", "{{model}}"),\n messages=[{"role": "user", "content": "Tell me a joke"}]\n)\n\nprint(response.choices[0].message.content)\n';
1392
1395
  }
1393
1396
  });
1394
1397
 
1395
- // src/templates/python/requirements.txt.hbs
1398
+ // src/templates/py-poe-spawn/requirements.txt.hbs
1396
1399
  var require_requirements_txt = __commonJS({
1397
- "src/templates/python/requirements.txt.hbs"(exports, module) {
1400
+ "src/templates/py-poe-spawn/requirements.txt.hbs"(exports, module) {
1398
1401
  module.exports = "openai>=1.0.0\npython-dotenv>=1.0.0\n";
1399
1402
  }
1400
1403
  });
@@ -6445,9 +6448,9 @@ async function runInstallStep(step, context) {
6445
6448
 
6446
6449
  // src/providers/create-provider.ts
6447
6450
  var templateImports = {
6448
- "python/env.hbs": () => Promise.resolve().then(() => __toESM(require_env(), 1)),
6449
- "python/main.py.hbs": () => Promise.resolve().then(() => __toESM(require_main_py(), 1)),
6450
- "python/requirements.txt.hbs": () => Promise.resolve().then(() => __toESM(require_requirements_txt(), 1)),
6451
+ "py-poe-spawn/env.hbs": () => Promise.resolve().then(() => __toESM(require_env(), 1)),
6452
+ "py-poe-spawn/main.py.hbs": () => Promise.resolve().then(() => __toESM(require_main_py(), 1)),
6453
+ "py-poe-spawn/requirements.txt.hbs": () => Promise.resolve().then(() => __toESM(require_requirements_txt(), 1)),
6451
6454
  "codex/config.toml.hbs": () => Promise.resolve().then(() => __toESM(require_config_toml(), 1))
6452
6455
  };
6453
6456
  async function loadTemplate(templateId) {