@oracle-agent/oracle 0.24.2 → 0.24.4

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 (38) hide show
  1. package/dist/assets/protocols/templates/safe-erc20/README.md +9 -0
  2. package/dist/assets/protocols/templates/safe-erc20/SECURITY.md +16 -0
  3. package/dist/assets/protocols/templates/safe-erc20/foundry.toml +12 -0
  4. package/dist/assets/protocols/templates/safe-erc20/remappings.txt +2 -0
  5. package/dist/assets/protocols/templates/safe-erc20/src/SafeERC20.sol +53 -0
  6. package/dist/assets/protocols/templates/safe-erc20/test/SafeERC20.t.sol +72 -0
  7. package/dist/assets/protocols/templates/safe-erc721-drop/README.md +3 -0
  8. package/dist/assets/protocols/templates/safe-erc721-drop/SECURITY.md +3 -0
  9. package/dist/assets/protocols/templates/safe-erc721-drop/foundry.toml +11 -0
  10. package/dist/assets/protocols/templates/safe-erc721-drop/remappings.txt +2 -0
  11. package/dist/assets/protocols/templates/safe-erc721-drop/src/SafeERC721Drop.sol +55 -0
  12. package/dist/assets/protocols/templates/safe-erc721-drop/test/SafeERC721Drop.t.sol +58 -0
  13. package/dist/assets/protocols/templates/safe-vesting/README.md +3 -0
  14. package/dist/assets/protocols/templates/safe-vesting/SECURITY.md +3 -0
  15. package/dist/assets/protocols/templates/safe-vesting/foundry.toml +11 -0
  16. package/dist/assets/protocols/templates/safe-vesting/remappings.txt +2 -0
  17. package/dist/assets/protocols/templates/safe-vesting/src/SafeVesting.sol +19 -0
  18. package/dist/assets/protocols/templates/safe-vesting/test/SafeVesting.t.sol +72 -0
  19. package/dist/assets/skills/oracle-desk-product/SKILL.md +1 -1
  20. package/dist/assets/skills/oracle-harness/SKILL.md +3 -0
  21. package/dist/bin/desk-server.mjs +13 -13
  22. package/dist/bin/oracle-gateway.mjs +18 -15
  23. package/dist/cli/commands/auth.mjs +2 -2
  24. package/dist/cli/commands/chat.mjs +87 -79
  25. package/dist/cli/commands/doctor.mjs +1 -1
  26. package/dist/cli/commands/eval.mjs +1 -1
  27. package/dist/cli/commands/harness.mjs +1 -1
  28. package/dist/cli/commands/model.mjs +92 -84
  29. package/dist/cli/commands/setup.mjs +2 -2
  30. package/dist/data/desk-data.mjs +14 -14
  31. package/dist/index.mjs +19 -19
  32. package/package.json +1 -1
  33. package/public/install.ps1 +102 -0
  34. package/public/install.sh +1 -1
  35. package/public/oracle-splash/downloads/index.html +2 -0
  36. package/public/oracle-splash/index.html +1 -0
  37. package/public/oracle-splash/install.ps1 +102 -0
  38. package/public/oracle-splash/install.sh +1 -1
@@ -1,4 +1,4 @@
1
- import k from"node:fs";import m from"node:path";var s=Object.freeze([{id:"oracle",label:"Oracle Native",kind:"oracle",bins:["oracle"],website:!0,detect:!0},{id:"hermes",label:"Hermes Agent",kind:"mcp",bins:["hermes"],mcpTarget:"generic",configKey:"hermes",website:!0,detect:!0},{id:"claude",label:"Claude Code",kind:"mcp",bins:["claude"],mcpTarget:"claude-code",configKey:"claudeCode",website:!0,detect:!0},{id:"claude-desktop",label:"Claude Desktop",kind:"mcp",bins:[],mcpTarget:"claude-desktop",configKey:"claudeDesktop",website:!0,detect:!1},{id:"chatgpt",label:"ChatGPT",kind:"mcp",bins:[],mcpTarget:"chatgpt",configKey:"chatgpt",website:!0,detect:!1},{id:"codex",label:"OpenAI Codex",kind:"mcp",bins:["codex"],mcpTarget:"codex",configKey:"codex",website:!0,detect:!0},{id:"cursor",label:"Cursor",kind:"mcp",bins:["cursor","cursor-agent"],mcpTarget:"cursor",configKey:"cursor",website:!0,detect:!0},{id:"windsurf",label:"Windsurf",kind:"mcp",bins:["windsurf"],mcpTarget:"vscode",configKey:"windsurf",website:!0,detect:!0},{id:"vscode",label:"VS Code / Copilot",kind:"mcp",bins:["code","code-insiders"],mcpTarget:"vscode",configKey:"vscode",website:!0,detect:!0},{id:"openclaw",label:"OpenClaw",kind:"mcp",bins:["openclaw","claw"],mcpTarget:"generic",configKey:"openclaw",website:!0,detect:!0},{id:"perplexity",label:"Perplexity",kind:"mcp",bins:["perplexity","pplx"],mcpTarget:"generic",configKey:"perplexity",website:!0,detect:!0},{id:"manus",label:"Manus",kind:"mcp",bins:["manus"],mcpTarget:"generic",configKey:"manus",website:!0,detect:!0},{id:"prime",label:"Prime Intellect Agent",kind:"mcp",bins:["prime-agent","prime"],mcpTarget:"generic",configKey:"prime",website:!1,detect:!0},{id:"opencode",label:"OpenCode",kind:"mcp",bins:["opencode"],mcpTarget:"generic",configKey:"opencode",website:!1,detect:!0},{id:"aider",label:"Aider",kind:"mcp",bins:["aider"],mcpTarget:"generic",configKey:"aider",website:!1,detect:!0},{id:"continue",label:"Continue",kind:"mcp",bins:["continue"],mcpTarget:"vscode",configKey:"continue",website:!1,detect:!0},{id:"goose",label:"Goose",kind:"mcp",bins:["goose"],mcpTarget:"generic",configKey:"goose",website:!1,detect:!0},{id:"amp",label:"Amp",kind:"mcp",bins:["amp"],mcpTarget:"generic",configKey:"amp",website:!1,detect:!0},{id:"generic",label:"Generic MCP",kind:"mcp",bins:[],mcpTarget:"generic",configKey:"genericMcp",website:!0,detect:!1}]);function c(){return s.filter(e=>e.website)}function d(){return s.filter(e=>e.detect!==!1&&(e.bins?.length||e.kind==="oracle"))}function l(e){return s.find(r=>r.id===e)?.mcpTarget||"generic"}function p(e){return e==="oracle"?"oracle chat":`oracle mcp install ${l(e)}`}var I=Object.freeze({openrouter:{key:"OPENROUTER_API_KEY",baseUrl:"https://openrouter.ai/api/v1",model:"openrouter/auto"},openai:{key:"OPENAI_API_KEY",baseUrl:"https://api.openai.com/v1",model:"gpt-4.1-mini"},anthropic:{key:"ANTHROPIC_API_KEY",baseUrl:"https://api.anthropic.com/v1",model:"claude-sonnet-4-6",protocol:"anthropic-messages"},xai:{key:"XAI_API_KEY",baseUrl:"https://api.x.ai/v1",model:"grok-4.5"},deepseek:{key:"DEEPSEEK_API_KEY",baseUrl:"https://api.deepseek.com/v1",model:"deepseek-chat"},gemini:{key:"GEMINI_API_KEY",alternateKey:"GOOGLE_API_KEY",baseUrl:"https://generativelanguage.googleapis.com/v1beta/openai",model:"gemini-2.5-flash"},kimi:{key:"MOONSHOT_API_KEY",alternateKey:"KIMI_API_KEY",baseUrl:"https://api.moonshot.ai/v1",model:"kimi-k3",protocol:"openai-chat"},mistral:{key:"MISTRAL_API_KEY",baseUrl:"https://api.mistral.ai/v1",model:"mistral-large-latest",protocol:"openai-chat"}}),L=Object.freeze({"anthropic-oauth":{key:"ANTHROPIC_API_KEY",baseUrl:"https://api.anthropic.com/v1",model:"claude-sonnet-4-20250514",protocol:"anthropic-messages"},"openai-codex":{key:"OPENAI_API_KEY",baseUrl:"https://chatgpt.com/backend-api/codex",model:"gpt-5.4",protocol:"responses"},"xai-oauth":{key:"XAI_API_KEY",baseUrl:"https://api.x.ai/v1",model:"grok-4-latest",protocol:"responses"}});function A(){return d().map(e=>({name:e.id,bin:e.bins?.[0]||e.id,label:e.label,kind:e.kind,altBins:(e.bins||[]).slice(1)}))}function f(e){for(let o of(process.env.PATH||"").split(m.delimiter)){let r=m.join(o,e);try{if(k.existsSync(r))return r}catch{}}return null}function w(e){let o=[e.bin,...e.altBins||[]].filter(Boolean);for(let r of o){let n=f(r);if(n)return n}return null}function h(e=process.env){let o=[];for(let n of A()){if(n.kind==="oracle"||n.name==="oracle"){o.push({...n,path:process.argv[1]||"oracle"});continue}let a=w(n);a&&o.push({name:n.name,bin:n.bin,label:n.label,kind:n.kind,path:a})}let r=String(e.ORACLE_HARNESS_EXTRA||"").split(",").map(n=>n.trim()).filter(Boolean);for(let n of r){if(o.some(t=>t.bin===n||t.name===n))continue;let a=f(n);a&&o.push({name:n,bin:n,label:n,kind:"mcp",path:a})}return o}function O(e){if(e.kind==="oracle"||e.name==="oracle")return{...e,direction:"native",integrate:"oracle chat",outbound:"oracle chat",inbound:null,plugins:null,backendEnv:null,note:"Oracle native harness. Default. No external client required."};let o=l(e.name)||"generic",r=e.name==="hermes"?"hermes":e.name;return{...e,direction:"client",integrate:`oracle mcp install ${o}`,outbound:`oracle chat --backend ${r}`,inbound:`oracle mcp install ${o}`,plugins:"oracle plugins install <path|git-url>",backendEnv:`ORACLE_CHAT_BACKEND=${r}`,note:"Use through Oracle (`oracle chat --backend \u2026`) or wire Oracle into this client (`oracle mcp install`). Detection never auto-selects."}}function _(e){let o=e.map(O),r=o.find(i=>i.direction==="native"),n=o.filter(i=>i.direction!=="native"),a=c().filter(i=>i.kind==="mcp"),t=[];if(t.push(""),t.push("Three ways to run Oracle:"),t.push(` 1) Oracle native ${r?r.path:"oracle"}`),t.push(" oracle setup model && oracle chat"),t.push(" 2) Through Oracle attach Hermes / Claude / Codex as the engine"),t.push(" oracle chat --backend hermes"),t.push(" 3) Into your client wire Oracle MCP into the agent you already use"),t.push(" oracle mcp install <target> | oracle plugins install <path>"),t.push(""),t.push("Native is default. Detection never auto-selects another harness."),t.push(""),t.push("Detected on this machine:"),n.length===0)t.push(" (none \u2014 Oracle native is enough)");else for(let i of n)t.push(` ${i.label.padEnd(22)} ${i.path}`),t.push(` ${" ".repeat(22)} \u2192 through Oracle: ${i.outbound}`),t.push(` ${" ".repeat(22)} into client: ${i.inbound}`);t.push(""),t.push("Website harness roster (MCP install targets):");for(let i of a){let b=p(i.id),g=n.find(E=>E.name===i.id);t.push(` ${i.label.padEnd(22)} ${b}${g?" [detected]":""}`)}return t.push(""),t.push("Also:"),t.push(" oracle mcp print --target generic"),t.push(" oracle plugins list"),t.push(" ORACLE_HARNESS_EXTRA=foo,bar # detect extra bins"),t.push(""),t.push("Models on the site (Grok, Gemini, DeepSeek, Qwen, Kimi) are providers for"),t.push("Oracle native \u2014 configure with oracle setup model / oracle auth, not as harnesses."),t.join(`
1
+ import k from"node:fs";import m from"node:path";var s=Object.freeze([{id:"oracle",label:"Oracle Native",kind:"oracle",bins:["oracle"],website:!0,detect:!0},{id:"hermes",label:"Hermes Agent",kind:"mcp",bins:["hermes"],mcpTarget:"generic",configKey:"hermes",website:!0,detect:!0},{id:"claude",label:"Claude Code",kind:"mcp",bins:["claude"],mcpTarget:"claude-code",configKey:"claudeCode",website:!0,detect:!0},{id:"claude-desktop",label:"Claude Desktop",kind:"mcp",bins:[],mcpTarget:"claude-desktop",configKey:"claudeDesktop",website:!0,detect:!1},{id:"chatgpt",label:"ChatGPT",kind:"mcp",bins:[],mcpTarget:"chatgpt",configKey:"chatgpt",website:!0,detect:!1},{id:"codex",label:"OpenAI Codex",kind:"mcp",bins:["codex"],mcpTarget:"codex",configKey:"codex",website:!0,detect:!0},{id:"cursor",label:"Cursor",kind:"mcp",bins:["cursor","cursor-agent"],mcpTarget:"cursor",configKey:"cursor",website:!0,detect:!0},{id:"windsurf",label:"Windsurf",kind:"mcp",bins:["windsurf"],mcpTarget:"vscode",configKey:"windsurf",website:!0,detect:!0},{id:"vscode",label:"VS Code / Copilot",kind:"mcp",bins:["code","code-insiders"],mcpTarget:"vscode",configKey:"vscode",website:!0,detect:!0},{id:"openclaw",label:"OpenClaw",kind:"mcp",bins:["openclaw","claw"],mcpTarget:"generic",configKey:"openclaw",website:!0,detect:!0},{id:"perplexity",label:"Perplexity",kind:"mcp",bins:["perplexity","pplx"],mcpTarget:"generic",configKey:"perplexity",website:!0,detect:!0},{id:"manus",label:"Manus",kind:"mcp",bins:["manus"],mcpTarget:"generic",configKey:"manus",website:!0,detect:!0},{id:"prime",label:"Prime Intellect Agent",kind:"mcp",bins:["prime-agent","prime"],mcpTarget:"generic",configKey:"prime",website:!1,detect:!0},{id:"opencode",label:"OpenCode",kind:"mcp",bins:["opencode"],mcpTarget:"generic",configKey:"opencode",website:!1,detect:!0},{id:"aider",label:"Aider",kind:"mcp",bins:["aider"],mcpTarget:"generic",configKey:"aider",website:!1,detect:!0},{id:"continue",label:"Continue",kind:"mcp",bins:["continue"],mcpTarget:"vscode",configKey:"continue",website:!1,detect:!0},{id:"goose",label:"Goose",kind:"mcp",bins:["goose"],mcpTarget:"generic",configKey:"goose",website:!1,detect:!0},{id:"amp",label:"Amp",kind:"mcp",bins:["amp"],mcpTarget:"generic",configKey:"amp",website:!1,detect:!0},{id:"generic",label:"Generic MCP",kind:"mcp",bins:[],mcpTarget:"generic",configKey:"genericMcp",website:!0,detect:!1}]);function c(){return s.filter(e=>e.website)}function d(){return s.filter(e=>e.detect!==!1&&(e.bins?.length||e.kind==="oracle"))}function l(e){return s.find(r=>r.id===e)?.mcpTarget||"generic"}function p(e){return e==="oracle"?"oracle chat":`oracle mcp install ${l(e)}`}var I=Object.freeze({openrouter:{key:"OPENROUTER_API_KEY",baseUrl:"https://openrouter.ai/api/v1",model:"openrouter/auto"},openai:{key:"OPENAI_API_KEY",baseUrl:"https://api.openai.com/v1",model:"gpt-4.1-mini"},anthropic:{key:"ANTHROPIC_API_KEY",baseUrl:"https://api.anthropic.com/v1",model:"claude-sonnet-4-6",protocol:"anthropic-messages"},xai:{key:"XAI_API_KEY",baseUrl:"https://api.x.ai/v1",model:"grok-4.6"},deepseek:{key:"DEEPSEEK_API_KEY",baseUrl:"https://api.deepseek.com/v1",model:"deepseek-chat"},gemini:{key:"GEMINI_API_KEY",alternateKey:"GOOGLE_API_KEY",baseUrl:"https://generativelanguage.googleapis.com/v1beta/openai",model:"gemini-2.5-flash"},kimi:{key:"MOONSHOT_API_KEY",alternateKey:"KIMI_API_KEY",baseUrl:"https://api.moonshot.ai/v1",model:"kimi-k3",protocol:"openai-chat"},mistral:{key:"MISTRAL_API_KEY",baseUrl:"https://api.mistral.ai/v1",model:"mistral-large-latest",protocol:"openai-chat"}}),L=Object.freeze({"anthropic-oauth":{key:"ANTHROPIC_API_KEY",baseUrl:"https://api.anthropic.com/v1",model:"claude-sonnet-4-20250514",protocol:"anthropic-messages"},"openai-codex":{key:"OPENAI_API_KEY",baseUrl:"https://chatgpt.com/backend-api/codex",model:"gpt-5.4",protocol:"responses"},"xai-oauth":{key:"XAI_API_KEY",baseUrl:"https://api.x.ai/v1",model:"grok-4.6",protocol:"responses"}});function A(){return d().map(e=>({name:e.id,bin:e.bins?.[0]||e.id,label:e.label,kind:e.kind,altBins:(e.bins||[]).slice(1)}))}function f(e){for(let o of(process.env.PATH||"").split(m.delimiter)){let r=m.join(o,e);try{if(k.existsSync(r))return r}catch{}}return null}function w(e){let o=[e.bin,...e.altBins||[]].filter(Boolean);for(let r of o){let n=f(r);if(n)return n}return null}function h(e=process.env){let o=[];for(let n of A()){if(n.kind==="oracle"||n.name==="oracle"){o.push({...n,path:process.argv[1]||"oracle"});continue}let a=w(n);a&&o.push({name:n.name,bin:n.bin,label:n.label,kind:n.kind,path:a})}let r=String(e.ORACLE_HARNESS_EXTRA||"").split(",").map(n=>n.trim()).filter(Boolean);for(let n of r){if(o.some(t=>t.bin===n||t.name===n))continue;let a=f(n);a&&o.push({name:n,bin:n,label:n,kind:"mcp",path:a})}return o}function O(e){if(e.kind==="oracle"||e.name==="oracle")return{...e,direction:"native",integrate:"oracle chat",outbound:"oracle chat",inbound:null,plugins:null,backendEnv:null,note:"Oracle native harness. Default. No external client required."};let o=l(e.name)||"generic",r=e.name==="hermes"?"hermes":e.name;return{...e,direction:"client",integrate:`oracle mcp install ${o}`,outbound:`oracle chat --backend ${r}`,inbound:`oracle mcp install ${o}`,plugins:"oracle plugins install <path|git-url>",backendEnv:`ORACLE_CHAT_BACKEND=${r}`,note:"Use through Oracle (`oracle chat --backend \u2026`) or wire Oracle into this client (`oracle mcp install`). Detection never auto-selects."}}function _(e){let o=e.map(O),r=o.find(i=>i.direction==="native"),n=o.filter(i=>i.direction!=="native"),a=c().filter(i=>i.kind==="mcp"),t=[];if(t.push(""),t.push("Three ways to run Oracle:"),t.push(` 1) Oracle native ${r?r.path:"oracle"}`),t.push(" oracle setup model && oracle chat"),t.push(" 2) Through Oracle attach Hermes / Claude / Codex as the engine"),t.push(" oracle chat --backend hermes"),t.push(" 3) Into your client wire Oracle MCP into the agent you already use"),t.push(" oracle mcp install <target> | oracle plugins install <path>"),t.push(""),t.push("Native is default. Detection never auto-selects another harness."),t.push(""),t.push("Detected on this machine:"),n.length===0)t.push(" (none \u2014 Oracle native is enough)");else for(let i of n)t.push(` ${i.label.padEnd(22)} ${i.path}`),t.push(` ${" ".repeat(22)} \u2192 through Oracle: ${i.outbound}`),t.push(` ${" ".repeat(22)} into client: ${i.inbound}`);t.push(""),t.push("Website harness roster (MCP install targets):");for(let i of a){let b=p(i.id),g=n.find(E=>E.name===i.id);t.push(` ${i.label.padEnd(22)} ${b}${g?" [detected]":""}`)}return t.push(""),t.push("Also:"),t.push(" oracle mcp print --target generic"),t.push(" oracle plugins list"),t.push(" ORACLE_HARNESS_EXTRA=foo,bar # detect extra bins"),t.push(""),t.push("Models on the site (Grok, Gemini, DeepSeek, Qwen, Kimi) are providers for"),t.push("Oracle native \u2014 configure with oracle setup model / oracle auth, not as harnesses."),t.join(`
2
2
  `)}function u(){return["oracle harness \u2014 detect installed agent clients",""," oracle harness detect scan PATH + show website harness roster"," oracle harness list alias of detect","","Modes:"," Oracle native oracle chat"," Through Oracle oracle chat --backend hermes|claude|codex|\u2026"," Into the client oracle mcp install <target>","",`Website roster: ${c().map(o=>o.id).join(", ")}`,"Extra bins: ORACLE_HARNESS_EXTRA=foo,bar","","Detection never selects a backend."].join(`
3
3
  `)}var M={name:"harness",summary:"detect agent clients; use Oracle native or wire MCP into them",usage:u,async run(e,o){let r=e[0];if(r==="help"||r==="--help"||r==="-h")return process.stdout.write(u()+`
4
4
  `),0;if(r&&r!=="detect"&&r!=="list")return process.stderr.write(`oracle harness: unknown subcommand '${r}'