@yukino.js/yukino 0.0.12 → 0.0.13-dev

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/main.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __yukinoCreateRequire } from "node:module";
3
3
  const require = __yukinoCreateRequire(import.meta.url);
4
- import{a as l,b as g,c as h}from"./chunk-PWLFGDME.js";import{a as s}from"./chunk-SYKQXO6W.js";import{C as u}from"./chunk-W4GMCNWF.js";import"./chunk-7MKA3SHV.js";import{execFile as C,spawn as x}from"child_process";import{readFileSync as E,realpathSync as w}from"fs";import{dirname as i,isAbsolute as S,join as b,relative as A,sep as N}from"path";import{fileURLToPath as M}from"url";function y(e,n,o=process.platform){return o!=="win32"?{command:e,args:n}:{command:"powershell.exe",args:["-NoProfile","-NonInteractive","-Command",`$ErrorActionPreference = 'Stop'; [Console]::OutputEncoding = [System.Text.UTF8Encoding]::new($false); & ${[e,...n].map(r=>`'${r.replaceAll("'","''")}'`).join(" ")}; exit $LASTEXITCODE`]}}function T(){let e=i(M(import.meta.url));for(;;){try{let o=JSON.parse(E(b(e,"package.json"),"utf8"));if(u.object({name:u.string()}).safeParse(o).data?.name===l)return e}catch{}let n=i(e);if(n===e)throw new Error("Could not locate the Yukino installation.");e=n}}function Y(e,n){try{let o=A(w(n),w(e));return o!==""&&o!==".."&&!o.startsWith(`..${N}`)&&!S(o)}catch{return!1}}async function $(e,n=T()){let o=n.replaceAll("\\","/").toLowerCase(),t=/\/(?:\.pnpm|pnpm)\//u.test(o)?"pnpm":/\/(?:\.yarn|yarn)\//u.test(o)?"yarn":"npm",r=y(t,t==="yarn"?["global","dir"]:["root","-g"]),a="";try{a=await new Promise((c,v)=>{C(r.command,r.args,{encoding:"utf8",timeout:1e4,windowsHide:!0},(d,P)=>{d?v(new Error(d.message,{cause:d})):c(P.trim())})})}catch{}let m=i(i(n)),p=t==="npm"&&o.endsWith(`/lib/node_modules/${l}`)?i(i(m)):void 0,f=[a,...p?[m]:[]];if(t==="pnpm"&&a&&f.push(i(a)),!f.some(c=>c&&Y(n,c)))throw new Error("This Yukino installation is not managed by global npm, yarn, or pnpm. Update the source checkout or reinstall using yukino-code/install.sh or yukino-code/install.ps1.");return{command:t,args:[...t==="yarn"?["global","add"]:["install","-g"],...p?["--prefix",p]:[],`${l}@${e}`,"--registry=https://registry.npmjs.org/"]}}async function k(e){let n=y(e.command,e.args);await new Promise((o,t)=>{let r=x(n.command,n.args,{stdio:"inherit"});r.once("error",t),r.once("close",(a,m)=>{a===0?o():t(new Error(m?`${e.command} was terminated by ${m}.`:`${e.command} exited with code ${a??"unknown"}.`))})})}async function U(e){if(e.length===1&&["--version","-v"].includes(e[0]))return console.log(s),!0;if(e[0]!=="update")return!1;if(e.length===2&&["--help","-h"].includes(e[1]))return console.log(`Usage: yukino update
4
+ import{a as l,b as g,c as h}from"./chunk-UGX62ZSO.js";import{a as s}from"./chunk-SZXXASVH.js";import{C as u}from"./chunk-W4GMCNWF.js";import"./chunk-7MKA3SHV.js";import{execFile as C,spawn as x}from"child_process";import{readFileSync as E,realpathSync as w}from"fs";import{dirname as i,isAbsolute as S,join as b,relative as A,sep as N}from"path";import{fileURLToPath as M}from"url";function y(e,n,o=process.platform){return o!=="win32"?{command:e,args:n}:{command:"powershell.exe",args:["-NoProfile","-NonInteractive","-Command",`$ErrorActionPreference = 'Stop'; [Console]::OutputEncoding = [System.Text.UTF8Encoding]::new($false); & ${[e,...n].map(r=>`'${r.replaceAll("'","''")}'`).join(" ")}; exit $LASTEXITCODE`]}}function T(){let e=i(M(import.meta.url));for(;;){try{let o=JSON.parse(E(b(e,"package.json"),"utf8"));if(u.object({name:u.string()}).safeParse(o).data?.name===l)return e}catch{}let n=i(e);if(n===e)throw new Error("Could not locate the Yukino installation.");e=n}}function Y(e,n){try{let o=A(w(n),w(e));return o!==""&&o!==".."&&!o.startsWith(`..${N}`)&&!S(o)}catch{return!1}}async function $(e,n=T()){let o=n.replaceAll("\\","/").toLowerCase(),t=/\/(?:\.pnpm|pnpm)\//u.test(o)?"pnpm":/\/(?:\.yarn|yarn)\//u.test(o)?"yarn":"npm",r=y(t,t==="yarn"?["global","dir"]:["root","-g"]),a="";try{a=await new Promise((c,v)=>{C(r.command,r.args,{encoding:"utf8",timeout:1e4,windowsHide:!0},(d,P)=>{d?v(new Error(d.message,{cause:d})):c(P.trim())})})}catch{}let m=i(i(n)),p=t==="npm"&&o.endsWith(`/lib/node_modules/${l}`)?i(i(m)):void 0,f=[a,...p?[m]:[]];if(t==="pnpm"&&a&&f.push(i(a)),!f.some(c=>c&&Y(n,c)))throw new Error("This Yukino installation is not managed by global npm, yarn, or pnpm. Update the source checkout or reinstall using yukino-code/install.sh or yukino-code/install.ps1.");return{command:t,args:[...t==="yarn"?["global","add"]:["install","-g"],...p?["--prefix",p]:[],`${l}@${e}`,"--registry=https://registry.npmjs.org/"]}}async function k(e){let n=y(e.command,e.args);await new Promise((o,t)=>{let r=x(n.command,n.args,{stdio:"inherit"});r.once("error",t),r.once("close",(a,m)=>{a===0?o():t(new Error(m?`${e.command} was terminated by ${m}.`:`${e.command} exited with code ${a??"unknown"}.`))})})}async function U(e){if(e.length===1&&["--version","-v"].includes(e[0]))return console.log(s),!0;if(e[0]!=="update")return!1;if(e.length===2&&["--help","-h"].includes(e[1]))return console.log(`Usage: yukino update
5
5
 
6
- Update Yukino to the latest npm release.`),!0;try{if(e.length!==1)throw new Error("Usage: yukino update");let n=await h();if(!g(n,s))return console.log(`Yukino is already up to date (v${s}).`),!0;let o=await $(n);console.log(`Updating Yukino from v${s} to v${n} with ${o.command}...`),await k(o),console.log(`Updated Yukino from v${s} to v${n}.`)}catch(n){console.error(`Update failed: ${n instanceof Error?n.message:String(n)}`),process.exitCode=1}return!0}if(!await U(process.argv.slice(2))){let{runCli:e}=await import("./main-L3JP6JDZ.js");await e()}
6
+ Update Yukino to the latest npm release.`),!0;try{if(e.length!==1)throw new Error("Usage: yukino update");let n=await h();if(!g(n,s))return console.log(`Yukino is already up to date (v${s}).`),!0;let o=await $(n);console.log(`Updating Yukino from v${s} to v${n} with ${o.command}...`),await k(o),console.log(`Updated Yukino from v${s} to v${n}.`)}catch(n){console.error(`Update failed: ${n instanceof Error?n.message:String(n)}`),process.exitCode=1}return!0}if(!await U(process.argv.slice(2))){let{runCli:e}=await import("./main-IA22XMQR.js");await e()}
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __yukinoCreateRequire } from "node:module";
3
3
  const require = __yukinoCreateRequire(import.meta.url);
4
- import{a,b}from"./chunk-IX65B3M7.js";import"./chunk-OI2W6R6H.js";import"./chunk-JFKC4VCA.js";import"./chunk-LCWNSYZU.js";import"./chunk-SYKQXO6W.js";import"./chunk-W4GMCNWF.js";import"./chunk-HMZQYFYG.js";import"./chunk-3QL446GD.js";import"./chunk-AGSYLE4E.js";import"./chunk-CU3IISCC.js";import"./chunk-VCIRD267.js";import"./chunk-7MKA3SHV.js";export{b as createTelemetryRuntime,a as parseExporterTypes};
4
+ import{a,b}from"./chunk-BDLFNDC4.js";import"./chunk-OI2W6R6H.js";import"./chunk-JFKC4VCA.js";import"./chunk-LCWNSYZU.js";import"./chunk-SZXXASVH.js";import"./chunk-W4GMCNWF.js";import"./chunk-HMZQYFYG.js";import"./chunk-3QL446GD.js";import"./chunk-AGSYLE4E.js";import"./chunk-CU3IISCC.js";import"./chunk-VCIRD267.js";import"./chunk-7MKA3SHV.js";export{b as createTelemetryRuntime,a as parseExporterTypes};
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __yukinoCreateRequire } from "node:module";
3
3
  const require = __yukinoCreateRequire(import.meta.url);
4
- import{g as a,h as b}from"./chunk-7TZ52NFW.js";import"./chunk-V7Q2SA7H.js";import"./chunk-HTLXOBAC.js";import"./chunk-4CLD7LEU.js";import"./chunk-D4MZQCMB.js";import"./chunk-33HUTVDG.js";import"./chunk-MQAQBW7F.js";import"./chunk-WGFROGUC.js";import"./chunk-VU3JWAJR.js";import"./chunk-IX65B3M7.js";import"./chunk-OI2W6R6H.js";import"./chunk-JFKC4VCA.js";import"./chunk-KJJYW5IY.js";import"./chunk-I74AL3PF.js";import"./chunk-LCWNSYZU.js";import"./chunk-SYKQXO6W.js";import"./chunk-W4GMCNWF.js";import"./chunk-VM4YKTHC.js";import"./chunk-HMZQYFYG.js";import"./chunk-3QL446GD.js";import"./chunk-AGSYLE4E.js";import"./chunk-CU3IISCC.js";import"./chunk-VCIRD267.js";import"./chunk-7MKA3SHV.js";export{b as RemoteServer,a as createRemoteAgent};
4
+ import{g as a,h as b}from"./chunk-IWMCIYOG.js";import"./chunk-COHBT6M7.js";import"./chunk-5DK2M7VI.js";import"./chunk-4CLD7LEU.js";import"./chunk-CW5XFH7H.js";import"./chunk-AZQD75PX.js";import"./chunk-MQAQBW7F.js";import"./chunk-WGFROGUC.js";import"./chunk-VU3JWAJR.js";import"./chunk-BDLFNDC4.js";import"./chunk-OI2W6R6H.js";import"./chunk-JFKC4VCA.js";import"./chunk-KJJYW5IY.js";import"./chunk-I74AL3PF.js";import"./chunk-LCWNSYZU.js";import"./chunk-SZXXASVH.js";import"./chunk-W4GMCNWF.js";import"./chunk-VM4YKTHC.js";import"./chunk-HMZQYFYG.js";import"./chunk-3QL446GD.js";import"./chunk-AGSYLE4E.js";import"./chunk-CU3IISCC.js";import"./chunk-VCIRD267.js";import"./chunk-7MKA3SHV.js";export{b as RemoteServer,a as createRemoteAgent};
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __yukinoCreateRequire } from "node:module";
3
3
  const require = __yukinoCreateRequire(import.meta.url);
4
- import{$ as e,X as a,Y as b,Z as c,_ as d,aa as f,ba as g}from"./chunk-D4MZQCMB.js";import"./chunk-33HUTVDG.js";import"./chunk-MQAQBW7F.js";import"./chunk-OI2W6R6H.js";import"./chunk-LCWNSYZU.js";import"./chunk-W4GMCNWF.js";import"./chunk-7MKA3SHV.js";export{c as ASYNC_AGENT_ALLOWED_TOOLS,e as FORK_QUERY_SOURCE,a as MAIN_AGENT_ONLY_TOOLS,b as SUBAGENT_DISALLOWED_TOOLS,g as cloneRegistryForFork,f as cloneRegistryForTeammate,d as filterToolsForAgent};
4
+ import{$ as e,X as a,Y as b,Z as c,_ as d,aa as f,ba as g}from"./chunk-CW5XFH7H.js";import"./chunk-AZQD75PX.js";import"./chunk-MQAQBW7F.js";import"./chunk-OI2W6R6H.js";import"./chunk-LCWNSYZU.js";import"./chunk-W4GMCNWF.js";import"./chunk-7MKA3SHV.js";export{c as ASYNC_AGENT_ALLOWED_TOOLS,e as FORK_QUERY_SOURCE,a as MAIN_AGENT_ONLY_TOOLS,b as SUBAGENT_DISALLOWED_TOOLS,g as cloneRegistryForFork,f as cloneRegistryForTeammate,d as filterToolsForAgent};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yukino.js/yukino",
3
- "version": "0.0.12",
3
+ "version": "0.0.13-dev",
4
4
  "description": "Yukino is a terminal-based AI coding agent. It provides an interactive UI (terminal user interface) for conversing with large language models, executing code, manipulating files, and orchestrating multi-agent workflows, all from the command line.",
5
5
  "keywords": [
6
6
  "a2a",