noema-cli 0.0.6 → 0.0.7

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/index.d.ts CHANGED
@@ -1,4 +1,7 @@
1
- type AdapterRunner = (input: NodeJS.ReadableStream, output: NodeJS.WritableStream) => void;
1
+ type PromptRunner = (sessionId: string, prompt: string, onDelta: (delta: string) => void) => Promise<{
2
+ responseText: string;
3
+ }>;
4
+ type AdapterRunner = (input: NodeJS.ReadableStream, output: NodeJS.WritableStream, runner: PromptRunner) => void;
2
5
  declare const runMain: (runner: AdapterRunner) => void;
3
6
 
4
7
  declare const cliVersion = "0.0.1";
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{runAcpAdapter as t}from"@noema/acp-adapter";var r=e=>{e(process.stdin,process.stdout)};var n="0.0.1";import.meta.url===`file://${process.argv[1]}`&&r(t);export{n as cliVersion,r as runMain};
1
+ import{runAcpAdapter as m}from"@noema/acp-adapter";import{OpenRouterClient as s}from"@noema/api-openai";import{Core as u}from"@noema/core";var i=r=>{r(process.stdin,process.stdout,d())},d=()=>{let r=null;return async(e,n,p)=>{let t=process.env.OPENROUTER_API_KEY;if(t===void 0||t.length===0)throw new Error("OPENROUTER_API_KEY is required");let o=process.env.OPENROUTER_MODEL;if(o===void 0||o.length===0)throw new Error("OPENROUTER_MODEL is required");return r===null&&(r=new u(new s({apiKey:t,model:o}))),r.runPrompt(e,n,p)}};var f="0.0.1";import.meta.url===`file://${process.argv[1]}`&&i((r,e,n)=>{m(r,e,void 0,n)});export{f as cliVersion,i as runMain};
2
2
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noema-cli",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "bin": {