@aria-cli/types
Advanced tools
| {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAIpD;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAUnE;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,KAAK,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAMzE"} |
| {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AACH,MAAM,UAAU,eAAe,CAAC,GAAY;IAC1C,IAAI,GAAG,YAAY,KAAK;QAAE,OAAO,GAAG,CAAC,OAAO,CAAC;IAC7C,IAAI,OAAO,GAAG,KAAK,QAAQ;QAAE,OAAO,GAAG,CAAC;IACxC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,kBAAkB,CAAC,GAAY;IAC7C,IACE,OAAO,GAAG,KAAK,QAAQ;QACvB,GAAG,KAAK,IAAI;QACZ,YAAY,IAAI,GAAG;QACnB,OAAQ,GAA+B,CAAC,UAAU,KAAK,QAAQ,EAC/D,CAAC;QACD,OAAQ,GAA8B,CAAC,UAAU,CAAC;IACpD,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,WAAW,CAAC,GAAY;IACtC,OAAO,CACL,GAAG,YAAY,KAAK;QACpB,MAAM,IAAI,GAAG;QACb,OAAQ,GAAyB,CAAC,IAAI,KAAK,QAAQ,CACpD,CAAC;AACJ,CAAC"} |
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,GAAG,EAAE,KAAK,QAAQ,EAAE,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAC/D,YAAY,EACV,cAAc,EACd,eAAe,EACf,cAAc,EACd,kBAAkB,GACnB,MAAM,mBAAmB,CAAC"} |
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,GAAG,EAA+B,MAAM,aAAa,CAAC"} |
| {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEtE;;;GAGG;AACH,MAAM,WAAW,OAAO;IACtB,KAAK,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IAC9C,KAAK,CAAC,IAAI,IAAI,CAAC;CAChB;AA8FD,eAAO,MAAM,GAAG;mBACC,OAAO,EAAE,GAAG,IAAI;kBAGjB,OAAO,EAAE,GAAG,IAAI;kBAGhB,OAAO,EAAE,GAAG,IAAI;mBAGf,OAAO,EAAE,GAAG,IAAI;oBAGf,QAAQ,GAAG,IAAI;gBAGnB,QAAQ;IAGpB,+DAA+D;kBACjD,OAAO,GAAG,IAAI;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sB,EAAE,CAAC,CAAC;IAEtF;;;OAGG;IACH,mBAAmB,CAAC,CAClB,KAAK,EAAE,oBAAoB,GAAG,cAAc,GAAG,qBAAqB,GACnE,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAE1B;;OAEG;IACH,qBAAqB,CAAC,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAAC;IAE1E,yDAAyD;IACzD,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvB;;;;OAIG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAEpD,6CAA6C;IAC7C,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAE3B,kDAAkD;IAClD,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAEzB,4BAA4B;IAC5B,IAAI,CAAC,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;IAE5E,4DAA4D;IAC5D,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAE/C,wDAAwD;IACxD,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtD"} |
| {"version":3,"file":"memoria.js","sourceRoot":"","sources":["../src/memoria.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG"} |
| {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,aAAa,GACrB,WAAW,GACX,QAAQ,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vC,UAAU,EAAE,KAAK,GAAG,YAAY,GAAG,WAAW,GAAG,eAAe,GAAG,SAAS,CAAC;IAC7E,6BAA6B;IAC7B,KAAK,EAAE,UAAU,CAAC;IAClB,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,OAAO,EAAE,MAAM,CAAC;IAChB,kCAAkC;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;IAC3B,iFAAiF;IACjF,gBAAgB,CAAC,EAAE,OAAO,EAAE,CAAC;IAC7B,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,oEAAoE;IACpE,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACzC"} |
| {"version":3,"file":"models.js","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAyKH;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAgB;IACnD,OAAO,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC;AAClC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAgB;IACjD,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC;AAChC,CAAC"} |
| {"version":3,"file":"native-tools.d.ts","sourceRoot":"","sources":["../src/native-tools.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C;;;GAGG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAG1D;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAWxD;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,wBAAwB;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uDAAuD;IACvD,aAAa,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC/E;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC,wCAAwC;IACxC,QAAQ,EAAE,WAAW,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC5C,2DAA2D;IAC3D,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,qCAAqC;IACrC,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,kDAAkD;IAClD,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAClC,4DAA4D;IAC5D,GAAG,CAAC,EAAE,OAAO,CAAC;CACf"} |
| {"version":3,"file":"native-tools.js","sourceRoot":"","sources":["../src/native-tools.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAC,QAAkB;IAC/C,yEAAyE;IACzE,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;AACjC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,QAAkB;IAC7C,MAAM,cAAc,GAAG;QACrB,cAAc;QACd,UAAU;QACV,kBAAkB;QAClB,aAAa;QACb,MAAM;QACN,OAAO;QACP,aAAa;KACd,CAAC;IACF,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;AAC3E,CAAC"} |
| {"version":3,"file":"relaunch.d.ts","sourceRoot":"","sources":["../src/relaunch.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,eAAO,MAAM,kBAAkB,2BAA2B,CAAC;AAC3D,eAAO,MAAM,gBAAgB,sBAAsB,CAAC;AACpD,eAAO,MAAM,gBAAgB,sBAAsB,CAAC;AAEpD,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;CACnB;AAQD,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C;AAED,wBAAgB,qBAAqB,CAAC,GAAG,GAAE,MAAoB,GAAG,MAAM,CAEvE;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,CAQhE;AAED,wBAAgB,kBAAkB,CAAC,GAAG,GAAE,MAAoB,GAAG,cAAc,GAAG,IAAI,CASnF;AAED,wBAAgB,mBAAmB,CAAC,GAAG,GAAE,MAAoB,GAAG,IAAI,CAOnE"} |
| {"version":3,"file":"relaunch.js","sourceRoot":"","sources":["../src/relaunch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACzF,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAEtC;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,kBAAkB,CAAC;AAClD,MAAM,CAAC,MAAM,kBAAkB,GAAG,wBAAwB,CAAC;AAC3D,MAAM,CAAC,MAAM,gBAAgB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C,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,MAAc,OAAO,CAAC,GAAG;IAC3D,IAAI,CAAC;QACH,MAAM,UAAU,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC;QAC9C,IAAI,UAAU,CAAC,UAAU,CAAC;YAAE,UAAU,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAAC,MAAM,CAAC;QACP,cAAc;IAChB,CAAC;AACH,CAAC"} |
| {"version":3,"file":"stall-phase.d.ts","sourceRoot":"","sources":["../src/stall-phase.ts"],"names":[],"mappings":"AASA,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAIvD;AAED,wBAAgB,qBAAqB,IAAI,IAAI,CAI5C"} |
| {"version":3,"file":"stall-phase.js","sourceRoot":"","sources":["../src/stall-phase.ts"],"names":[],"mappings":"AAKA,SAAS,mBAAmB;IAC1B,OAAO,UAA8B,CAAC;AACxC,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,KAAa;IAC/C,MAAM,KAAK,GAAG,mBAAmB,EAAE,CAAC;IACpC,KAAK,CAAC,kBAAkB,GAAG,KAAK,CAAC;IACjC,KAAK,CAAC,qBAAqB,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC;AAClD,CAAC;AAED,MAAM,UAAU,qBAAqB;IACnC,MAAM,KAAK,GAAG,mBAAmB,EAAE,CAAC;IACpC,KAAK,CAAC,kBAAkB,GAAG,SAAS,CAAC;IACrC,KAAK,CAAC,qBAAqB,GAAG,SAAS,CAAC;AAC1C,CAAC"} |
| {"version":3,"file":"tool-outputs.d.ts","sourceRoot":"","sources":["../src/tool-outputs.ts"],"names":[],"mappings":"AAAA;2EAC2E;AAE3E,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,KAAK,CAAC;QACrB,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,EAAE,CAAC;KACjB,CAAC,CAAC;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,SAAS,GAAG,aAAa,GAAG,UAAU,CAAC;IAC/C,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,KAAK,CAAC;QACtB,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,EAAE,CAAC;KACjB,CAAC,CAAC;CACJ;AAGD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"} |
| {"version":3,"file":"tool-outputs.js","sourceRoot":"","sources":["../src/tool-outputs.ts"],"names":[],"mappings":"AAAA;2EAC2E"} |
+1
-28
@@ -1,28 +0,1 @@ | ||
| "use strict"; | ||
| /** | ||
| * @aria/types - Minimal shared types | ||
| */ | ||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| var desc = Object.getOwnPropertyDescriptor(m, k); | ||
| if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
| desc = { enumerable: true, get: function() { return m[k]; } }; | ||
| } | ||
| Object.defineProperty(o, k2, desc); | ||
| }) : (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| o[k2] = m[k]; | ||
| })); | ||
| var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
| for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.log = void 0; | ||
| __exportStar(require("./models.js"), exports); | ||
| __exportStar(require("./memoria.js"), exports); | ||
| __exportStar(require("./errors.js"), exports); | ||
| __exportStar(require("./native-tools.js"), exports); | ||
| __exportStar(require("./relaunch.js"), exports); | ||
| __exportStar(require("./stall-phase.js"), exports); | ||
| var logger_js_1 = require("./logger.js"); | ||
| Object.defineProperty(exports, "log", { enumerable: true, get: function () { return logger_js_1.log; } }); | ||
| "use strict";var d=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),O=d(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isFunctionToolSchema=n,e.isNativeToolSchema=a;function n(i){return i.kind==="function"}function a(i){return i.kind==="native"}}),b=d(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})}),y=d(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getErrorMessage=n,e.getErrorStatusCode=a,e.isNodeError=i;function n(t){return t instanceof Error?t.message:typeof t=="string"?t:String(t)}function a(t){if(typeof t=="object"&&t!==null&&"statusCode"in t&&typeof t.statusCode=="number")return t.statusCode}function i(t){return t instanceof Error&&"code"in t&&typeof t.code=="string"}}),h=d(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isFunctionTool=n,e.isNativeTool=a;function n(i){return!a(i)}function a(i){return["brave_search","computer","code_interpreter","text_editor","bash","dalle","file_search"].some(t=>i.name.startsWith(t))}}),N=d(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RESTART_KIND_ENV=e.RESUME_ARION_ENV=e.RESUME_SESSION_ENV=e.NO_RELAUNCH_ENV=e.RELAUNCH_EXIT_CODE=void 0,e.getRelaunchMarkerDir=_,e.getRelaunchMarkerPath=f,e.writeRelaunchMarker=p,e.readRelaunchMarker=R,e.clearRelaunchMarker=g;var n=require("node:fs"),a=require("node:os"),i=require("node:path");e.RELAUNCH_EXIT_CODE=199,e.NO_RELAUNCH_ENV="ARIA_NO_RELAUNCH",e.RESUME_SESSION_ENV="ARIA_RESUME_SESSION_ID",e.RESUME_ARION_ENV="ARIA_RESUME_ARION",e.RESTART_KIND_ENV="ARIA_RESTART_KIND";function t(){return process.env.ARIA_HOME?.trim()||(0,i.join)((0,a.homedir)(),".aria")}function _(){return(0,i.join)(t(),"relaunch-pending")}function f(c=process.pid){return(0,i.join)(_(),`${c}.json`)}function p(c){try{let s=f(c.pid);(0,n.mkdirSync)((0,i.dirname)(s),{recursive:!0}),(0,n.writeFileSync)(s,JSON.stringify(c),"utf-8")}catch{}}function R(c=process.pid){try{let s=f(c);if(!(0,n.existsSync)(s))return null;let S=(0,n.readFileSync)(s,"utf-8");return JSON.parse(S)}catch{return null}}function g(c=process.pid){try{let s=f(c);(0,n.existsSync)(s)&&(0,n.unlinkSync)(s)}catch{}}}),A=d(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setGlobalStallPhase=a,e.clearGlobalStallPhase=i;function n(){return globalThis}function a(t){let _=n();_.__aria_stall_phase=t,_.__aria_stall_phase_ts=performance.now()}function i(){let t=n();t.__aria_stall_phase=void 0,t.__aria_stall_phase_ts=void 0}}),M=d(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.log=void 0;var n="\x1B[2m\x1B[90m",a="\x1B[36m",i="\x1B[0m",t={debug:0,info:1,warn:2,error:3,silent:4};function _(){let r=typeof process<"u"?process.env.ARIA_LOG_LEVEL:void 0;return r&&r in t?r:"info"}var f=_();function p(r){return t[r]>=t[f]}function R(r){if(!r||typeof r!="object")return!1;let o=r;return o.code==="EPIPE"||o.code==="ERR_STREAM_DESTROYED"}function g(r,o){try{r(...o)}catch(u){if(R(u))return;throw u}}function c(r){if(r.length===0)return r;let[o,...u]=r;return typeof o!="string"||!o.startsWith("[")?r:[`${n}${o}${i}`,...u]}function s(r){if(r.length===0)return r;let[o,...u]=r;return typeof o!="string"||!o.startsWith("[")?r:[`${a}${o}${i}`,...u]}var S={write(r,o){let u,v;switch(r){case"debug":u=c(o),v=console.debug;break;case"info":u=s(o),v=console.info;break;case"warn":u=o,v=console.warn;break;default:u=o,v=console.error;break}g(v,u)}},l=[S];e.log={debug(...r){if(p("debug"))for(let o of l)o.write("debug",r)},info(...r){if(p("info"))for(let o of l)o.write("info",r)},warn(...r){if(p("warn"))for(let o of l)o.write("warn",r)},error(...r){if(p("error"))for(let o of l)o.write("error",r)},setLevel(r){f=r},getLevel(){return f},addSink(r){l.push(r)},removeSink(r){let o=l.indexOf(r);o>=0&&l.splice(o,1)},removeConsoleSink(){let r=l.indexOf(S);r>=0&&l.splice(r,1)}}}),m=exports&&exports.__createBinding||(Object.create?(function(e,n,a,i){i===void 0&&(i=a);var t=Object.getOwnPropertyDescriptor(n,a);(!t||("get"in t?!n.__esModule:t.writable||t.configurable))&&(t={enumerable:!0,get:function(){return n[a]}}),Object.defineProperty(e,i,t)}):(function(e,n,a,i){i===void 0&&(i=a),e[i]=n[a]})),E=exports&&exports.__exportStar||function(e,n){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(n,a)&&m(n,e,a)};Object.defineProperty(exports,"__esModule",{value:!0});exports.log=void 0;E(O(),exports);E(b(),exports);E(y(),exports);E(h(),exports);E(N(),exports);E(A(),exports);var j=M();Object.defineProperty(exports,"log",{enumerable:!0,get:function(){return j.log}}); |
+1
-0
@@ -30,1 +30,2 @@ /** | ||
| }; | ||
| //# sourceMappingURL=errors.d.ts.map |
+1
-0
@@ -12,1 +12,2 @@ /** | ||
| export type { EditFileOutput, WriteFileOutput, BashToolOutput, NotebookEditOutput, } from "./tool-outputs.js"; | ||
| //# sourceMappingURL=index.d.ts.map |
+1
-10
@@ -1,10 +0,1 @@ | ||
| /** | ||
| * @aria/types - Minimal shared types | ||
| */ | ||
| export * from "./models.js"; | ||
| export * from "./memoria.js"; | ||
| export * from "./errors.js"; | ||
| export * from "./native-tools.js"; | ||
| export * from "./relaunch.js"; | ||
| export * from "./stall-phase.js"; | ||
| export { log } from "./logger.js"; | ||
| function M(e){return e.kind==="function"}function T(e){return e.kind==="native"}function P(e){return e instanceof Error?e.message:typeof e=="string"?e:String(e)}function D(e){if(typeof e=="object"&&e!==null&&"statusCode"in e&&typeof e.statusCode=="number")return e.statusCode}function C(e){return e instanceof Error&&"code"in e&&typeof e.code=="string"}function $(e){return!_(e)}function _(e){return["brave_search","computer","code_interpreter","text_editor","bash","dalle","file_search"].some(r=>e.name.startsWith(r))}import{existsSync as a,mkdirSync as E,readFileSync as x,unlinkSync as m,writeFileSync as h}from"node:fs";import{homedir as S}from"node:os";import{dirname as R,join as s}from"node:path";var F=199,W="ARIA_NO_RELAUNCH",Y="ARIA_RESUME_SESSION_ID",J="ARIA_RESUME_ARION",K="ARIA_RESTART_KIND";function b(){let e=process.env.ARIA_HOME?.trim();return e||s(S(),".aria")}function y(){return s(b(),"relaunch-pending")}function c(e=process.pid){return s(y(),`${e}.json`)}function B(e){try{let t=c(e.pid);E(R(t),{recursive:!0}),h(t,JSON.stringify(e),"utf-8")}catch{}}function X(e=process.pid){try{let t=c(e);if(!a(t))return null;let r=x(t,"utf-8");return JSON.parse(r)}catch{return null}}function q(e=process.pid){try{let t=c(e);a(t)&&m(t)}catch{}}function l(){return globalThis}function Q(e){let t=l();t.__aria_stall_phase=e,t.__aria_stall_phase_ts=performance.now()}function Z(){let e=l();e.__aria_stall_phase=void 0,e.__aria_stall_phase_ts=void 0}var A="\x1B[2m\x1B[90m",k="\x1B[36m",p="\x1B[0m",f={debug:0,info:1,warn:2,error:3,silent:4};function N(){let e=typeof process<"u"?process.env.ARIA_LOG_LEVEL:void 0;return e&&e in f?e:"info"}var u=N();function i(e){return f[e]>=f[u]}function g(e){if(!e||typeof e!="object")return!1;let t=e;return t.code==="EPIPE"||t.code==="ERR_STREAM_DESTROYED"}function w(e,t){try{e(...t)}catch(r){if(g(r))return;throw r}}function v(e){if(e.length===0)return e;let[t,...r]=e;return typeof t!="string"||!t.startsWith("[")?e:[`${A}${t}${p}`,...r]}function I(e){if(e.length===0)return e;let[t,...r]=e;return typeof t!="string"||!t.startsWith("[")?e:[`${k}${t}${p}`,...r]}var d={write(e,t){let r,o;switch(e){case"debug":r=v(t),o=console.debug;break;case"info":r=I(t),o=console.info;break;case"warn":r=t,o=console.warn;break;default:r=t,o=console.error;break}w(o,r)}},n=[d],O={debug(...e){if(i("debug"))for(let t of n)t.write("debug",e)},info(...e){if(i("info"))for(let t of n)t.write("info",e)},warn(...e){if(i("warn"))for(let t of n)t.write("warn",e)},error(...e){if(i("error"))for(let t of n)t.write("error",e)},setLevel(e){u=e},getLevel(){return u},addSink(e){n.push(e)},removeSink(e){let t=n.indexOf(e);t>=0&&n.splice(t,1)},removeConsoleSink(){let e=n.indexOf(d);e>=0&&n.splice(e,1)}};export{W as NO_RELAUNCH_ENV,F as RELAUNCH_EXIT_CODE,K as RESTART_KIND_ENV,J as RESUME_ARION_ENV,Y as RESUME_SESSION_ENV,Z as clearGlobalStallPhase,q as clearRelaunchMarker,P as getErrorMessage,D as getErrorStatusCode,y as getRelaunchMarkerDir,c as getRelaunchMarkerPath,$ as isFunctionTool,M as isFunctionToolSchema,_ as isNativeTool,T as isNativeToolSchema,C as isNodeError,O as log,X as readRelaunchMarker,Q as setGlobalStallPhase,B as writeRelaunchMarker}; |
+1
-0
@@ -55,1 +55,2 @@ /** | ||
| }; | ||
| //# sourceMappingURL=logger.d.ts.map |
@@ -429,1 +429,2 @@ /** | ||
| } | ||
| //# sourceMappingURL=memoria.d.ts.map |
+1
-0
@@ -323,1 +323,2 @@ /** | ||
| } | ||
| //# sourceMappingURL=models.d.ts.map |
@@ -58,1 +58,2 @@ /** | ||
| } | ||
| //# sourceMappingURL=native-tools.d.ts.map |
@@ -23,1 +23,2 @@ /** | ||
| export declare function clearRelaunchMarker(pid?: number): void; | ||
| //# sourceMappingURL=relaunch.d.ts.map |
| export declare function setGlobalStallPhase(label: string): void; | ||
| export declare function clearGlobalStallPhase(): void; | ||
| //# sourceMappingURL=stall-phase.d.ts.map |
@@ -38,1 +38,2 @@ /** Canonical output shapes for tools with dedicated renderers. | ||
| } | ||
| //# sourceMappingURL=tool-outputs.d.ts.map |
+1
-1
| { | ||
| "name": "@aria-cli/types", | ||
| "version": "1.0.12", | ||
| "version": "1.0.13", | ||
| "type": "module", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
| "use strict"; | ||
| /** | ||
| * Error narrowing utilities for replacing `catch (err: any)` patterns. | ||
| * @module @aria/types/errors | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.getErrorMessage = getErrorMessage; | ||
| exports.getErrorStatusCode = getErrorStatusCode; | ||
| exports.isNodeError = isNodeError; | ||
| /** | ||
| * Extract a human-readable message from an unknown caught value. | ||
| * | ||
| * Replaces the pattern: | ||
| * `catch (err: any) { ... err.message ... }` | ||
| * with: | ||
| * `catch (err: unknown) { ... getErrorMessage(err) ... }` | ||
| */ | ||
| function getErrorMessage(err) { | ||
| if (err instanceof Error) | ||
| return err.message; | ||
| if (typeof err === "string") | ||
| return err; | ||
| return String(err); | ||
| } | ||
| /** | ||
| * Extract an HTTP-style status code from an unknown caught value. | ||
| * | ||
| * Replaces the pattern: | ||
| * `(error as any).statusCode` | ||
| * with: | ||
| * `getErrorStatusCode(error)` | ||
| */ | ||
| function getErrorStatusCode(err) { | ||
| if (typeof err === "object" && | ||
| err !== null && | ||
| "statusCode" in err && | ||
| typeof err.statusCode === "number") { | ||
| return err.statusCode; | ||
| } | ||
| return undefined; | ||
| } | ||
| /** | ||
| * Type guard: is this caught value an Error with a `.code` property? | ||
| * Common for Node.js system errors (ENOENT, ECONNREFUSED, etc.) | ||
| */ | ||
| function isNodeError(err) { | ||
| return (err instanceof Error && | ||
| "code" in err && | ||
| typeof err.code === "string"); | ||
| } |
| "use strict"; | ||
| /** | ||
| * Lightweight leveled logger for ARIA. | ||
| * | ||
| * Respects `ARIA_LOG_LEVEL` env var (debug | info | warn | error | silent). | ||
| * Default level: "info" — debug messages are suppressed in normal usage. | ||
| * | ||
| * Architecture: logs dispatch through pluggable sinks. The default console | ||
| * sink writes to stdout/stderr with ANSI styling. Execution contexts that | ||
| * lack a terminal (daemon, headless server) replace or supplement it with | ||
| * durable sinks (e.g., JSONL file sink). This decoupling makes it impossible | ||
| * for diagnostic output to silently go to /dev/null — every context | ||
| * configures the sink that matches its output channel. | ||
| * | ||
| * Usage: | ||
| * import { log } from "@aria-cli/types"; | ||
| * log.debug("[PhaseTimer] ..."); // only prints when ARIA_LOG_LEVEL=debug | ||
| * log.info("[runner] ..."); // prints at info level and above | ||
| * log.warn("[runner] ..."); // prints at warn level and above | ||
| * log.error("[runner] ..."); // always prints (unless level > error) | ||
| * | ||
| * Sink configuration (daemon example): | ||
| * import { log } from "@aria-cli/types"; | ||
| * log.addSink(myFileLogSink); | ||
| * log.removeConsoleSink(); // stdio is /dev/null in detached mode | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.log = void 0; | ||
| const DIM_GRAY = "\x1b[2m\x1b[90m"; | ||
| const CYAN = "\x1b[36m"; | ||
| const RESET = "\x1b[0m"; | ||
| const LEVEL_ORDER = { | ||
| debug: 0, | ||
| info: 1, | ||
| warn: 2, | ||
| error: 3, | ||
| silent: 4, | ||
| }; | ||
| function resolveLevel() { | ||
| const env = typeof process !== "undefined" ? process.env.ARIA_LOG_LEVEL : undefined; | ||
| if (env && env in LEVEL_ORDER) | ||
| return env; | ||
| return "info"; | ||
| } | ||
| let currentLevel = resolveLevel(); | ||
| function enabled(level) { | ||
| return LEVEL_ORDER[level] >= LEVEL_ORDER[currentLevel]; | ||
| } | ||
| function isBrokenPipeError(error) { | ||
| if (!error || typeof error !== "object") { | ||
| return false; | ||
| } | ||
| const maybe = error; | ||
| return maybe.code === "EPIPE" || maybe.code === "ERR_STREAM_DESTROYED"; | ||
| } | ||
| function writeSafely(method, args) { | ||
| try { | ||
| method(...args); | ||
| } | ||
| catch (error) { | ||
| if (isBrokenPipeError(error)) { | ||
| return; | ||
| } | ||
| throw error; | ||
| } | ||
| } | ||
| function styleSystemDebugArgs(args) { | ||
| if (args.length === 0) | ||
| return args; | ||
| const [first, ...rest] = args; | ||
| if (typeof first !== "string") | ||
| return args; | ||
| if (!first.startsWith("[")) | ||
| return args; | ||
| return [`${DIM_GRAY}${first}${RESET}`, ...rest]; | ||
| } | ||
| function styleSystemInfoArgs(args) { | ||
| if (args.length === 0) | ||
| return args; | ||
| const [first, ...rest] = args; | ||
| if (typeof first !== "string") | ||
| return args; | ||
| if (!first.startsWith("[")) | ||
| return args; | ||
| return [`${CYAN}${first}${RESET}`, ...rest]; | ||
| } | ||
| // ── Sinks ──────────────────────────────────────────────────────── | ||
| /** Default console sink — applies ANSI styling for terminal readability. */ | ||
| const consoleSink = { | ||
| write(level, args) { | ||
| let styled; | ||
| let method; | ||
| switch (level) { | ||
| case "debug": | ||
| styled = styleSystemDebugArgs(args); | ||
| method = console.debug; | ||
| break; | ||
| case "info": | ||
| styled = styleSystemInfoArgs(args); | ||
| method = console.info; | ||
| break; | ||
| case "warn": | ||
| styled = args; | ||
| method = console.warn; | ||
| break; | ||
| default: | ||
| styled = args; | ||
| method = console.error; | ||
| break; | ||
| } | ||
| writeSafely(method, styled); | ||
| }, | ||
| }; | ||
| const sinks = [consoleSink]; | ||
| // ── Public API ─────────────────────────────────────────────────── | ||
| exports.log = { | ||
| debug(...args) { | ||
| if (enabled("debug")) | ||
| for (const s of sinks) | ||
| s.write("debug", args); | ||
| }, | ||
| info(...args) { | ||
| if (enabled("info")) | ||
| for (const s of sinks) | ||
| s.write("info", args); | ||
| }, | ||
| warn(...args) { | ||
| if (enabled("warn")) | ||
| for (const s of sinks) | ||
| s.write("warn", args); | ||
| }, | ||
| error(...args) { | ||
| if (enabled("error")) | ||
| for (const s of sinks) | ||
| s.write("error", args); | ||
| }, | ||
| setLevel(level) { | ||
| currentLevel = level; | ||
| }, | ||
| getLevel() { | ||
| return currentLevel; | ||
| }, | ||
| /** Add a log sink. All subsequent log calls dispatch to it. */ | ||
| addSink(sink) { | ||
| sinks.push(sink); | ||
| }, | ||
| /** Remove a previously added sink. */ | ||
| removeSink(sink) { | ||
| const idx = sinks.indexOf(sink); | ||
| if (idx >= 0) | ||
| sinks.splice(idx, 1); | ||
| }, | ||
| /** | ||
| * Remove the built-in console sink. | ||
| * | ||
| * Use this in execution contexts where stdio is unavailable (detached | ||
| * daemon, headless server) AFTER adding a durable file sink. Prevents | ||
| * wasted console.* calls that go to /dev/null. | ||
| */ | ||
| removeConsoleSink() { | ||
| const idx = sinks.indexOf(consoleSink); | ||
| if (idx >= 0) | ||
| sinks.splice(idx, 1); | ||
| }, | ||
| }; |
| "use strict"; | ||
| /** | ||
| * Minimal IMemoria interface for consumers that need memory capabilities | ||
| * without depending on the concrete @aria/memoria package. | ||
| * | ||
| * Structural types (MemoryItem, ToolItem, RecallResult) replace bare | ||
| * `unknown` returns so consumers get usable shapes without coupling to | ||
| * the full Memoria domain model. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| "use strict"; | ||
| /** | ||
| * Types for ARIA's multi-model system | ||
| * @module @aria/types/models | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.isFunctionToolSchema = isFunctionToolSchema; | ||
| exports.isNativeToolSchema = isNativeToolSchema; | ||
| /** | ||
| * Type guard for function tools | ||
| */ | ||
| function isFunctionToolSchema(tool) { | ||
| return tool.kind === "function"; | ||
| } | ||
| /** | ||
| * Type guard for native tools | ||
| */ | ||
| function isNativeToolSchema(tool) { | ||
| return tool.kind === "native"; | ||
| } |
| "use strict"; | ||
| /** | ||
| * Native tool types and type guards for provider-native capabilities | ||
| * @module @aria/types/native-tools | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.isFunctionTool = isFunctionTool; | ||
| exports.isNativeTool = isNativeTool; | ||
| /** | ||
| * Type guard to check if a tool call is a function/custom tool | ||
| * (as opposed to a native provider tool like search or code execution) | ||
| */ | ||
| function isFunctionTool(toolCall) { | ||
| // Function tools are the default - they don't have special name prefixes | ||
| return !isNativeTool(toolCall); | ||
| } | ||
| /** | ||
| * Type guard to check if a tool call is a native provider tool | ||
| * Native tools have special name prefixes like "brave_search", "computer", etc. | ||
| */ | ||
| function isNativeTool(toolCall) { | ||
| const nativePrefixes = [ | ||
| "brave_search", | ||
| "computer", | ||
| "code_interpreter", | ||
| "text_editor", | ||
| "bash", | ||
| "dalle", | ||
| "file_search", | ||
| ]; | ||
| return nativePrefixes.some((prefix) => toolCall.name.startsWith(prefix)); | ||
| } |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.RESTART_KIND_ENV = exports.RESUME_ARION_ENV = exports.RESUME_SESSION_ENV = exports.NO_RELAUNCH_ENV = exports.RELAUNCH_EXIT_CODE = void 0; | ||
| exports.getRelaunchMarkerDir = getRelaunchMarkerDir; | ||
| exports.getRelaunchMarkerPath = getRelaunchMarkerPath; | ||
| exports.writeRelaunchMarker = writeRelaunchMarker; | ||
| exports.readRelaunchMarker = readRelaunchMarker; | ||
| exports.clearRelaunchMarker = clearRelaunchMarker; | ||
| const node_fs_1 = require("node:fs"); | ||
| const node_os_1 = require("node:os"); | ||
| const node_path_1 = require("node:path"); | ||
| /** | ||
| * Magic exit code that tells the parent supervisor to respawn the child. | ||
| */ | ||
| exports.RELAUNCH_EXIT_CODE = 199; | ||
| /** | ||
| * Environment variables used by relaunch/supervisor flows. | ||
| */ | ||
| exports.NO_RELAUNCH_ENV = "ARIA_NO_RELAUNCH"; | ||
| exports.RESUME_SESSION_ENV = "ARIA_RESUME_SESSION_ID"; | ||
| exports.RESUME_ARION_ENV = "ARIA_RESUME_ARION"; | ||
| exports.RESTART_KIND_ENV = "ARIA_RESTART_KIND"; | ||
| function getAriaDir() { | ||
| const ariaHome = process.env.ARIA_HOME?.trim(); | ||
| if (ariaHome) | ||
| return ariaHome; | ||
| return (0, node_path_1.join)((0, node_os_1.homedir)(), ".aria"); | ||
| } | ||
| function getRelaunchMarkerDir() { | ||
| return (0, node_path_1.join)(getAriaDir(), "relaunch-pending"); | ||
| } | ||
| function getRelaunchMarkerPath(pid = process.pid) { | ||
| return (0, node_path_1.join)(getRelaunchMarkerDir(), `${pid}.json`); | ||
| } | ||
| function writeRelaunchMarker(marker) { | ||
| try { | ||
| const markerPath = getRelaunchMarkerPath(marker.pid); | ||
| (0, node_fs_1.mkdirSync)((0, node_path_1.dirname)(markerPath), { recursive: true }); | ||
| (0, node_fs_1.writeFileSync)(markerPath, JSON.stringify(marker), "utf-8"); | ||
| } | ||
| catch { | ||
| // Best-effort — must never prevent restart | ||
| } | ||
| } | ||
| function readRelaunchMarker(pid = process.pid) { | ||
| try { | ||
| const markerPath = getRelaunchMarkerPath(pid); | ||
| if (!(0, node_fs_1.existsSync)(markerPath)) | ||
| return null; | ||
| const raw = (0, node_fs_1.readFileSync)(markerPath, "utf-8"); | ||
| return JSON.parse(raw); | ||
| } | ||
| catch { | ||
| return null; | ||
| } | ||
| } | ||
| function clearRelaunchMarker(pid = process.pid) { | ||
| try { | ||
| const markerPath = getRelaunchMarkerPath(pid); | ||
| if ((0, node_fs_1.existsSync)(markerPath)) | ||
| (0, node_fs_1.unlinkSync)(markerPath); | ||
| } | ||
| catch { | ||
| // Best-effort | ||
| } | ||
| } |
| "use strict"; | ||
| /** | ||
| * Error narrowing utilities for replacing `catch (err: any)` patterns. | ||
| * @module @aria-cli/types/errors | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.getErrorMessage = getErrorMessage; | ||
| exports.getErrorStatusCode = getErrorStatusCode; | ||
| exports.isNodeError = isNodeError; | ||
| /** | ||
| * Extract a human-readable message from an unknown caught value. | ||
| * | ||
| * Replaces the pattern: | ||
| * `catch (err: any) { ... err.message ... }` | ||
| * with: | ||
| * `catch (err: unknown) { ... getErrorMessage(err) ... }` | ||
| */ | ||
| function getErrorMessage(err) { | ||
| if (err instanceof Error) | ||
| return err.message; | ||
| if (typeof err === "string") | ||
| return err; | ||
| return String(err); | ||
| } | ||
| /** | ||
| * Extract an HTTP-style status code from an unknown caught value. | ||
| * | ||
| * Replaces the pattern: | ||
| * `(error as any).statusCode` | ||
| * with: | ||
| * `getErrorStatusCode(error)` | ||
| */ | ||
| function getErrorStatusCode(err) { | ||
| if (typeof err === "object" && | ||
| err !== null && | ||
| "statusCode" in err && | ||
| typeof err.statusCode === "number") { | ||
| return err.statusCode; | ||
| } | ||
| return undefined; | ||
| } | ||
| /** | ||
| * Type guard: is this caught value an Error with a `.code` property? | ||
| * Common for Node.js system errors (ENOENT, ECONNREFUSED, etc.) | ||
| */ | ||
| function isNodeError(err) { | ||
| return (err instanceof Error && | ||
| "code" in err && | ||
| typeof err.code === "string"); | ||
| } |
| "use strict"; | ||
| /** | ||
| * @aria-cli/types - Minimal shared types | ||
| */ | ||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| var desc = Object.getOwnPropertyDescriptor(m, k); | ||
| if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
| desc = { enumerable: true, get: function() { return m[k]; } }; | ||
| } | ||
| Object.defineProperty(o, k2, desc); | ||
| }) : (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| o[k2] = m[k]; | ||
| })); | ||
| var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
| for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.log = void 0; | ||
| __exportStar(require("./models.js"), exports); | ||
| __exportStar(require("./memoria.js"), exports); | ||
| __exportStar(require("./errors.js"), exports); | ||
| __exportStar(require("./native-tools.js"), exports); | ||
| __exportStar(require("./relaunch.js"), exports); | ||
| var logger_js_1 = require("./logger.js"); | ||
| Object.defineProperty(exports, "log", { enumerable: true, get: function () { return logger_js_1.log; } }); |
| "use strict"; | ||
| /** | ||
| * Lightweight leveled logger for ARIA. | ||
| * | ||
| * Respects `ARIA_LOG_LEVEL` env var (debug | info | warn | error | silent). | ||
| * Default level: "info" — debug messages are suppressed in normal usage. | ||
| * | ||
| * Usage: | ||
| * import { log } from "@aria-cli/types"; | ||
| * log.debug("[PhaseTimer] ..."); // only prints when ARIA_LOG_LEVEL=debug | ||
| * log.info("[runner] ..."); // prints at info level and above | ||
| * log.warn("[runner] ..."); // prints at warn level and above | ||
| * log.error("[runner] ..."); // always prints (unless level > error) | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.log = void 0; | ||
| const DIM_GRAY = "\x1b[2m\x1b[90m"; | ||
| const CYAN = "\x1b[36m"; | ||
| const RESET = "\x1b[0m"; | ||
| const LEVEL_ORDER = { | ||
| debug: 0, | ||
| info: 1, | ||
| warn: 2, | ||
| error: 3, | ||
| silent: 4, | ||
| }; | ||
| function resolveLevel() { | ||
| const env = typeof process !== "undefined" ? process.env.ARIA_LOG_LEVEL : undefined; | ||
| if (env && env in LEVEL_ORDER) | ||
| return env; | ||
| return "info"; | ||
| } | ||
| let currentLevel = resolveLevel(); | ||
| function enabled(level) { | ||
| return LEVEL_ORDER[level] >= LEVEL_ORDER[currentLevel]; | ||
| } | ||
| function styleSystemDebugArgs(args) { | ||
| if (args.length === 0) | ||
| return args; | ||
| const [first, ...rest] = args; | ||
| if (typeof first !== "string") | ||
| return args; | ||
| // Style internal system-style tags like "[runner] ..." while leaving | ||
| // plain debug payloads untouched. | ||
| if (!first.startsWith("[")) | ||
| return args; | ||
| return [`${DIM_GRAY}${first}${RESET}`, ...rest]; | ||
| } | ||
| function styleSystemInfoArgs(args) { | ||
| if (args.length === 0) | ||
| return args; | ||
| const [first, ...rest] = args; | ||
| if (typeof first !== "string") | ||
| return args; | ||
| // Style system-tagged info lines so users can visually distinguish | ||
| // internal operational info from assistant content. | ||
| if (!first.startsWith("[")) | ||
| return args; | ||
| return [`${CYAN}${first}${RESET}`, ...rest]; | ||
| } | ||
| exports.log = { | ||
| debug(...args) { | ||
| if (enabled("debug")) | ||
| console.debug(...styleSystemDebugArgs(args)); | ||
| }, | ||
| info(...args) { | ||
| if (enabled("info")) | ||
| console.info(...styleSystemInfoArgs(args)); | ||
| }, | ||
| warn(...args) { | ||
| if (enabled("warn")) | ||
| console.warn(...args); | ||
| }, | ||
| error(...args) { | ||
| if (enabled("error")) | ||
| console.error(...args); | ||
| }, | ||
| setLevel(level) { | ||
| currentLevel = level; | ||
| }, | ||
| getLevel() { | ||
| return currentLevel; | ||
| }, | ||
| }; |
| "use strict"; | ||
| /** | ||
| * Minimal IMemoria interface for consumers that need memory capabilities | ||
| * without depending on the concrete @aria-cli/memoria package. | ||
| * | ||
| * Structural types (MemoryItem, ToolItem, RecallResult) replace bare | ||
| * `unknown` returns so consumers get usable shapes without coupling to | ||
| * the full Memoria domain model. | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| "use strict"; | ||
| /** | ||
| * Types for ARIA's multi-model system | ||
| * @module @aria-cli/types/models | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.isFunctionToolSchema = isFunctionToolSchema; | ||
| exports.isNativeToolSchema = isNativeToolSchema; | ||
| /** | ||
| * Type guard for function tools | ||
| */ | ||
| function isFunctionToolSchema(tool) { | ||
| return tool.kind === "function"; | ||
| } | ||
| /** | ||
| * Type guard for native tools | ||
| */ | ||
| function isNativeToolSchema(tool) { | ||
| return tool.kind === "native"; | ||
| } |
| "use strict"; | ||
| /** | ||
| * Native tool types and type guards for provider-native capabilities | ||
| * @module @aria-cli/types/native-tools | ||
| */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.isFunctionTool = isFunctionTool; | ||
| exports.isNativeTool = isNativeTool; | ||
| /** | ||
| * Type guard to check if a tool call is a function/custom tool | ||
| * (as opposed to a native provider tool like search or code execution) | ||
| */ | ||
| function isFunctionTool(toolCall) { | ||
| // Function tools are the default - they don't have special name prefixes | ||
| return !isNativeTool(toolCall); | ||
| } | ||
| /** | ||
| * Type guard to check if a tool call is a native provider tool | ||
| * Native tools have special name prefixes like "brave_search", "computer", etc. | ||
| */ | ||
| function isNativeTool(toolCall) { | ||
| const nativePrefixes = [ | ||
| "brave_search", | ||
| "computer", | ||
| "code_interpreter", | ||
| "text_editor", | ||
| "bash", | ||
| "dalle", | ||
| "file_search", | ||
| ]; | ||
| return nativePrefixes.some((prefix) => toolCall.name.startsWith(prefix)); | ||
| } |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.RESTART_KIND_ENV = exports.RESUME_ARION_ENV = exports.RESUME_SESSION_ENV = exports.NO_RELAUNCH_ENV = exports.RELAUNCH_EXIT_CODE = void 0; | ||
| exports.getRelaunchMarkerDir = getRelaunchMarkerDir; | ||
| exports.getRelaunchMarkerPath = getRelaunchMarkerPath; | ||
| exports.writeRelaunchMarker = writeRelaunchMarker; | ||
| exports.readRelaunchMarker = readRelaunchMarker; | ||
| exports.clearRelaunchMarker = clearRelaunchMarker; | ||
| const node_fs_1 = require("node:fs"); | ||
| const node_os_1 = require("node:os"); | ||
| const node_path_1 = require("node:path"); | ||
| /** | ||
| * Magic exit code that tells the parent supervisor to respawn the child. | ||
| */ | ||
| exports.RELAUNCH_EXIT_CODE = 199; | ||
| /** | ||
| * Environment variables used by relaunch/supervisor flows. | ||
| */ | ||
| exports.NO_RELAUNCH_ENV = "ARIA_NO_RELAUNCH"; | ||
| exports.RESUME_SESSION_ENV = "ARIA_RESUME_SESSION_ID"; | ||
| exports.RESUME_ARION_ENV = "ARIA_RESUME_ARION"; | ||
| exports.RESTART_KIND_ENV = "ARIA_RESTART_KIND"; | ||
| function getRelaunchMarkerDir() { | ||
| return (0, node_path_1.join)((0, node_os_1.homedir)(), ".aria", "relaunch-pending"); | ||
| } | ||
| function getRelaunchMarkerPath(pid = process.pid) { | ||
| return (0, node_path_1.join)(getRelaunchMarkerDir(), `${pid}.json`); | ||
| } | ||
| function writeRelaunchMarker(marker) { | ||
| try { | ||
| const markerPath = getRelaunchMarkerPath(marker.pid); | ||
| (0, node_fs_1.mkdirSync)((0, node_path_1.dirname)(markerPath), { recursive: true }); | ||
| (0, node_fs_1.writeFileSync)(markerPath, JSON.stringify(marker), "utf-8"); | ||
| } | ||
| catch { | ||
| // Best-effort — must never prevent restart | ||
| } | ||
| } | ||
| function readRelaunchMarker(pid = process.pid) { | ||
| try { | ||
| const markerPath = getRelaunchMarkerPath(pid); | ||
| if (!(0, node_fs_1.existsSync)(markerPath)) | ||
| return null; | ||
| const raw = (0, node_fs_1.readFileSync)(markerPath, "utf-8"); | ||
| return JSON.parse(raw); | ||
| } | ||
| catch { | ||
| return null; | ||
| } | ||
| } | ||
| function clearRelaunchMarker(pid = process.pid) { | ||
| try { | ||
| const markerPath = getRelaunchMarkerPath(pid); | ||
| if ((0, node_fs_1.existsSync)(markerPath)) | ||
| (0, node_fs_1.unlinkSync)(markerPath); | ||
| } | ||
| catch { | ||
| // Best-effort | ||
| } | ||
| } |
| "use strict"; | ||
| /** Canonical output shapes for tools with dedicated renderers. | ||
| * Executors MUST return these shapes. Renderers consume them directly. */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.setGlobalStallPhase = setGlobalStallPhase; | ||
| exports.clearGlobalStallPhase = clearGlobalStallPhase; | ||
| function getGlobalPhaseStore() { | ||
| return globalThis; | ||
| } | ||
| function setGlobalStallPhase(label) { | ||
| const store = getGlobalPhaseStore(); | ||
| store.__aria_stall_phase = label; | ||
| store.__aria_stall_phase_ts = performance.now(); | ||
| } | ||
| function clearGlobalStallPhase() { | ||
| const store = getGlobalPhaseStore(); | ||
| store.__aria_stall_phase = undefined; | ||
| store.__aria_stall_phase_ts = undefined; | ||
| } |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| const vitest_1 = require("vitest"); | ||
| const logger_js_1 = require("../src/logger.js"); | ||
| (0, vitest_1.describe)("leveled logger", () => { | ||
| let originalLevel; | ||
| (0, vitest_1.beforeEach)(() => { | ||
| originalLevel = logger_js_1.log.getLevel(); | ||
| // Reset to default "info" before each test | ||
| logger_js_1.log.setLevel("info"); | ||
| }); | ||
| (0, vitest_1.afterEach)(() => { | ||
| logger_js_1.log.setLevel(originalLevel); | ||
| vitest_1.vi.restoreAllMocks(); | ||
| }); | ||
| (0, vitest_1.it)('default level is "info" — log.debug() does NOT call console.debug', () => { | ||
| const spy = vitest_1.vi.spyOn(console, "debug").mockImplementation(() => { }); | ||
| logger_js_1.log.debug("should be suppressed"); | ||
| (0, vitest_1.expect)(spy).not.toHaveBeenCalled(); | ||
| }); | ||
| (0, vitest_1.it)('default level "info" — log.info() DOES call console.info', () => { | ||
| const spy = vitest_1.vi.spyOn(console, "info").mockImplementation(() => { }); | ||
| logger_js_1.log.info("hello from info"); | ||
| (0, vitest_1.expect)(spy).toHaveBeenCalledWith("hello from info"); | ||
| }); | ||
| (0, vitest_1.it)('default level "info" — log.warn() and log.error() work', () => { | ||
| const warnSpy = vitest_1.vi.spyOn(console, "warn").mockImplementation(() => { }); | ||
| const errorSpy = vitest_1.vi.spyOn(console, "error").mockImplementation(() => { }); | ||
| logger_js_1.log.warn("a warning"); | ||
| logger_js_1.log.error("an error"); | ||
| (0, vitest_1.expect)(warnSpy).toHaveBeenCalledWith("a warning"); | ||
| (0, vitest_1.expect)(errorSpy).toHaveBeenCalledWith("an error"); | ||
| }); | ||
| (0, vitest_1.it)('after setLevel("debug") — log.debug() DOES call console.debug', () => { | ||
| logger_js_1.log.setLevel("debug"); | ||
| const spy = vitest_1.vi.spyOn(console, "debug").mockImplementation(() => { }); | ||
| logger_js_1.log.debug("debug message"); | ||
| (0, vitest_1.expect)(spy).toHaveBeenCalledWith("debug message"); | ||
| }); | ||
| (0, vitest_1.it)('after setLevel("silent") — nothing calls console methods', () => { | ||
| logger_js_1.log.setLevel("silent"); | ||
| const debugSpy = vitest_1.vi.spyOn(console, "debug").mockImplementation(() => { }); | ||
| const infoSpy = vitest_1.vi.spyOn(console, "info").mockImplementation(() => { }); | ||
| const warnSpy = vitest_1.vi.spyOn(console, "warn").mockImplementation(() => { }); | ||
| const errorSpy = vitest_1.vi.spyOn(console, "error").mockImplementation(() => { }); | ||
| logger_js_1.log.debug("nope"); | ||
| logger_js_1.log.info("nope"); | ||
| logger_js_1.log.warn("nope"); | ||
| logger_js_1.log.error("nope"); | ||
| (0, vitest_1.expect)(debugSpy).not.toHaveBeenCalled(); | ||
| (0, vitest_1.expect)(infoSpy).not.toHaveBeenCalled(); | ||
| (0, vitest_1.expect)(warnSpy).not.toHaveBeenCalled(); | ||
| (0, vitest_1.expect)(errorSpy).not.toHaveBeenCalled(); | ||
| }); | ||
| (0, vitest_1.it)("getLevel() returns the current level", () => { | ||
| (0, vitest_1.expect)(logger_js_1.log.getLevel()).toBe("info"); | ||
| logger_js_1.log.setLevel("debug"); | ||
| (0, vitest_1.expect)(logger_js_1.log.getLevel()).toBe("debug"); | ||
| logger_js_1.log.setLevel("error"); | ||
| (0, vitest_1.expect)(logger_js_1.log.getLevel()).toBe("error"); | ||
| logger_js_1.log.setLevel("silent"); | ||
| (0, vitest_1.expect)(logger_js_1.log.getLevel()).toBe("silent"); | ||
| }); | ||
| }); |
| "use strict"; | ||
| /** Canonical output shapes for tools with dedicated renderers. | ||
| * Executors MUST return these shapes. Renderers consume them directly. */ | ||
| Object.defineProperty(exports, "__esModule", { value: true }); |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| const config_1 = require("vitest/config"); | ||
| const vitest_shared_ts_1 = require("../../vitest.shared.ts"); | ||
| exports.default = (0, config_1.defineConfig)({ | ||
| test: { | ||
| ...vitest_shared_ts_1.sharedPoolConfig, | ||
| globals: true, | ||
| exclude: (0, vitest_shared_ts_1.getExcludes)(), | ||
| coverage: { | ||
| provider: "v8", | ||
| reporter: ["text", "json", "html"], | ||
| reportOnFailure: true, | ||
| include: ["src/**"], | ||
| exclude: ["**/__tests__/**", "**/*.test.ts"], | ||
| }, | ||
| }, | ||
| }); |
| /** | ||
| * Error narrowing utilities for replacing `catch (err: any)` patterns. | ||
| * @module @aria/types/errors | ||
| */ | ||
| /** | ||
| * Extract a human-readable message from an unknown caught value. | ||
| * | ||
| * Replaces the pattern: | ||
| * `catch (err: any) { ... err.message ... }` | ||
| * with: | ||
| * `catch (err: unknown) { ... getErrorMessage(err) ... }` | ||
| */ | ||
| export function getErrorMessage(err) { | ||
| if (err instanceof Error) | ||
| return err.message; | ||
| if (typeof err === "string") | ||
| return err; | ||
| return String(err); | ||
| } | ||
| /** | ||
| * Extract an HTTP-style status code from an unknown caught value. | ||
| * | ||
| * Replaces the pattern: | ||
| * `(error as any).statusCode` | ||
| * with: | ||
| * `getErrorStatusCode(error)` | ||
| */ | ||
| export function getErrorStatusCode(err) { | ||
| if (typeof err === "object" && | ||
| err !== null && | ||
| "statusCode" in err && | ||
| typeof err.statusCode === "number") { | ||
| return err.statusCode; | ||
| } | ||
| return undefined; | ||
| } | ||
| /** | ||
| * Type guard: is this caught value an Error with a `.code` property? | ||
| * Common for Node.js system errors (ENOENT, ECONNREFUSED, etc.) | ||
| */ | ||
| export function isNodeError(err) { | ||
| return (err instanceof Error && | ||
| "code" in err && | ||
| typeof err.code === "string"); | ||
| } |
-162
| /** | ||
| * Lightweight leveled logger for ARIA. | ||
| * | ||
| * Respects `ARIA_LOG_LEVEL` env var (debug | info | warn | error | silent). | ||
| * Default level: "info" — debug messages are suppressed in normal usage. | ||
| * | ||
| * Architecture: logs dispatch through pluggable sinks. The default console | ||
| * sink writes to stdout/stderr with ANSI styling. Execution contexts that | ||
| * lack a terminal (daemon, headless server) replace or supplement it with | ||
| * durable sinks (e.g., JSONL file sink). This decoupling makes it impossible | ||
| * for diagnostic output to silently go to /dev/null — every context | ||
| * configures the sink that matches its output channel. | ||
| * | ||
| * Usage: | ||
| * import { log } from "@aria-cli/types"; | ||
| * log.debug("[PhaseTimer] ..."); // only prints when ARIA_LOG_LEVEL=debug | ||
| * log.info("[runner] ..."); // prints at info level and above | ||
| * log.warn("[runner] ..."); // prints at warn level and above | ||
| * log.error("[runner] ..."); // always prints (unless level > error) | ||
| * | ||
| * Sink configuration (daemon example): | ||
| * import { log } from "@aria-cli/types"; | ||
| * log.addSink(myFileLogSink); | ||
| * log.removeConsoleSink(); // stdio is /dev/null in detached mode | ||
| */ | ||
| const DIM_GRAY = "\x1b[2m\x1b[90m"; | ||
| const CYAN = "\x1b[36m"; | ||
| const RESET = "\x1b[0m"; | ||
| const LEVEL_ORDER = { | ||
| debug: 0, | ||
| info: 1, | ||
| warn: 2, | ||
| error: 3, | ||
| silent: 4, | ||
| }; | ||
| function resolveLevel() { | ||
| const env = typeof process !== "undefined" ? process.env.ARIA_LOG_LEVEL : undefined; | ||
| if (env && env in LEVEL_ORDER) | ||
| return env; | ||
| return "info"; | ||
| } | ||
| let currentLevel = resolveLevel(); | ||
| function enabled(level) { | ||
| return LEVEL_ORDER[level] >= LEVEL_ORDER[currentLevel]; | ||
| } | ||
| function isBrokenPipeError(error) { | ||
| if (!error || typeof error !== "object") { | ||
| return false; | ||
| } | ||
| const maybe = error; | ||
| return maybe.code === "EPIPE" || maybe.code === "ERR_STREAM_DESTROYED"; | ||
| } | ||
| function writeSafely(method, args) { | ||
| try { | ||
| method(...args); | ||
| } | ||
| catch (error) { | ||
| if (isBrokenPipeError(error)) { | ||
| return; | ||
| } | ||
| throw error; | ||
| } | ||
| } | ||
| function styleSystemDebugArgs(args) { | ||
| if (args.length === 0) | ||
| return args; | ||
| const [first, ...rest] = args; | ||
| if (typeof first !== "string") | ||
| return args; | ||
| if (!first.startsWith("[")) | ||
| return args; | ||
| return [`${DIM_GRAY}${first}${RESET}`, ...rest]; | ||
| } | ||
| function styleSystemInfoArgs(args) { | ||
| if (args.length === 0) | ||
| return args; | ||
| const [first, ...rest] = args; | ||
| if (typeof first !== "string") | ||
| return args; | ||
| if (!first.startsWith("[")) | ||
| return args; | ||
| return [`${CYAN}${first}${RESET}`, ...rest]; | ||
| } | ||
| // ── Sinks ──────────────────────────────────────────────────────── | ||
| /** Default console sink — applies ANSI styling for terminal readability. */ | ||
| const consoleSink = { | ||
| write(level, args) { | ||
| let styled; | ||
| let method; | ||
| switch (level) { | ||
| case "debug": | ||
| styled = styleSystemDebugArgs(args); | ||
| method = console.debug; | ||
| break; | ||
| case "info": | ||
| styled = styleSystemInfoArgs(args); | ||
| method = console.info; | ||
| break; | ||
| case "warn": | ||
| styled = args; | ||
| method = console.warn; | ||
| break; | ||
| default: | ||
| styled = args; | ||
| method = console.error; | ||
| break; | ||
| } | ||
| writeSafely(method, styled); | ||
| }, | ||
| }; | ||
| const sinks = [consoleSink]; | ||
| // ── Public API ─────────────────────────────────────────────────── | ||
| export const log = { | ||
| debug(...args) { | ||
| if (enabled("debug")) | ||
| for (const s of sinks) | ||
| s.write("debug", args); | ||
| }, | ||
| info(...args) { | ||
| if (enabled("info")) | ||
| for (const s of sinks) | ||
| s.write("info", args); | ||
| }, | ||
| warn(...args) { | ||
| if (enabled("warn")) | ||
| for (const s of sinks) | ||
| s.write("warn", args); | ||
| }, | ||
| error(...args) { | ||
| if (enabled("error")) | ||
| for (const s of sinks) | ||
| s.write("error", args); | ||
| }, | ||
| setLevel(level) { | ||
| currentLevel = level; | ||
| }, | ||
| getLevel() { | ||
| return currentLevel; | ||
| }, | ||
| /** Add a log sink. All subsequent log calls dispatch to it. */ | ||
| addSink(sink) { | ||
| sinks.push(sink); | ||
| }, | ||
| /** Remove a previously added sink. */ | ||
| removeSink(sink) { | ||
| const idx = sinks.indexOf(sink); | ||
| if (idx >= 0) | ||
| sinks.splice(idx, 1); | ||
| }, | ||
| /** | ||
| * Remove the built-in console sink. | ||
| * | ||
| * Use this in execution contexts where stdio is unavailable (detached | ||
| * daemon, headless server) AFTER adding a durable file sink. Prevents | ||
| * wasted console.* calls that go to /dev/null. | ||
| */ | ||
| removeConsoleSink() { | ||
| const idx = sinks.indexOf(consoleSink); | ||
| if (idx >= 0) | ||
| sinks.splice(idx, 1); | ||
| }, | ||
| }; |
| /** | ||
| * Minimal IMemoria interface for consumers that need memory capabilities | ||
| * without depending on the concrete @aria/memoria package. | ||
| * | ||
| * Structural types (MemoryItem, ToolItem, RecallResult) replace bare | ||
| * `unknown` returns so consumers get usable shapes without coupling to | ||
| * the full Memoria domain model. | ||
| */ | ||
| export {}; |
| /** | ||
| * Types for ARIA's multi-model system | ||
| * @module @aria/types/models | ||
| */ | ||
| /** | ||
| * Type guard for function tools | ||
| */ | ||
| export function isFunctionToolSchema(tool) { | ||
| return tool.kind === "function"; | ||
| } | ||
| /** | ||
| * Type guard for native tools | ||
| */ | ||
| export function isNativeToolSchema(tool) { | ||
| return tool.kind === "native"; | ||
| } |
| /** | ||
| * Native tool types and type guards for provider-native capabilities | ||
| * @module @aria/types/native-tools | ||
| */ | ||
| /** | ||
| * Type guard to check if a tool call is a function/custom tool | ||
| * (as opposed to a native provider tool like search or code execution) | ||
| */ | ||
| export function isFunctionTool(toolCall) { | ||
| // Function tools are the default - they don't have special name prefixes | ||
| return !isNativeTool(toolCall); | ||
| } | ||
| /** | ||
| * Type guard to check if a tool call is a native provider tool | ||
| * Native tools have special name prefixes like "brave_search", "computer", etc. | ||
| */ | ||
| export function isNativeTool(toolCall) { | ||
| const nativePrefixes = [ | ||
| "brave_search", | ||
| "computer", | ||
| "code_interpreter", | ||
| "text_editor", | ||
| "bash", | ||
| "dalle", | ||
| "file_search", | ||
| ]; | ||
| return nativePrefixes.some((prefix) => toolCall.name.startsWith(prefix)); | ||
| } |
| import { existsSync, mkdirSync, readFileSync, unlinkSync, writeFileSync } from "node:fs"; | ||
| import { homedir } from "node:os"; | ||
| import { dirname, join } from "node:path"; | ||
| /** | ||
| * Magic exit code that tells the parent supervisor to respawn the child. | ||
| */ | ||
| export const RELAUNCH_EXIT_CODE = 199; | ||
| /** | ||
| * Environment variables used by relaunch/supervisor flows. | ||
| */ | ||
| export const NO_RELAUNCH_ENV = "ARIA_NO_RELAUNCH"; | ||
| export const RESUME_SESSION_ENV = "ARIA_RESUME_SESSION_ID"; | ||
| export const RESUME_ARION_ENV = "ARIA_RESUME_ARION"; | ||
| export const RESTART_KIND_ENV = "ARIA_RESTART_KIND"; | ||
| function getAriaDir() { | ||
| const ariaHome = process.env.ARIA_HOME?.trim(); | ||
| if (ariaHome) | ||
| return ariaHome; | ||
| return join(homedir(), ".aria"); | ||
| } | ||
| export function getRelaunchMarkerDir() { | ||
| return join(getAriaDir(), "relaunch-pending"); | ||
| } | ||
| export function getRelaunchMarkerPath(pid = process.pid) { | ||
| return join(getRelaunchMarkerDir(), `${pid}.json`); | ||
| } | ||
| export function writeRelaunchMarker(marker) { | ||
| try { | ||
| const markerPath = getRelaunchMarkerPath(marker.pid); | ||
| mkdirSync(dirname(markerPath), { recursive: true }); | ||
| writeFileSync(markerPath, JSON.stringify(marker), "utf-8"); | ||
| } | ||
| catch { | ||
| // Best-effort — must never prevent restart | ||
| } | ||
| } | ||
| export function readRelaunchMarker(pid = process.pid) { | ||
| try { | ||
| const markerPath = getRelaunchMarkerPath(pid); | ||
| if (!existsSync(markerPath)) | ||
| return null; | ||
| const raw = readFileSync(markerPath, "utf-8"); | ||
| return JSON.parse(raw); | ||
| } | ||
| catch { | ||
| return null; | ||
| } | ||
| } | ||
| export function clearRelaunchMarker(pid = process.pid) { | ||
| try { | ||
| const markerPath = getRelaunchMarkerPath(pid); | ||
| if (existsSync(markerPath)) | ||
| unlinkSync(markerPath); | ||
| } | ||
| catch { | ||
| // Best-effort | ||
| } | ||
| } |
| function getGlobalPhaseStore() { | ||
| return globalThis; | ||
| } | ||
| export function setGlobalStallPhase(label) { | ||
| const store = getGlobalPhaseStore(); | ||
| store.__aria_stall_phase = label; | ||
| store.__aria_stall_phase_ts = performance.now(); | ||
| } | ||
| export function clearGlobalStallPhase() { | ||
| const store = getGlobalPhaseStore(); | ||
| store.__aria_stall_phase = undefined; | ||
| store.__aria_stall_phase_ts = undefined; | ||
| } |
| /** Canonical output shapes for tools with dedicated renderers. | ||
| * Executors MUST return these shapes. Renderers consume them directly. */ | ||
| export {}; |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
232587
0.41%11
-15.38%53
-13.11%2878
-27.19%3
200%