@pithosai/pithosai 1.0.3 → 1.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pithosai/pithosai",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Pithos AI CLI — multi-role coding and product agents (bundled distribution).",
5
5
  "keywords": [
6
6
  "ai",
@@ -22,27 +22,22 @@
22
22
  "email-monitor": "./dist/heartbeat.mjs",
23
23
  "wrsai": "./dist/wrsai.mjs",
24
24
  "render-markdown": "./dist/render-markdown.mjs",
25
- "pithosai-init-db": "./dist/init-pithosai-db.mjs"
25
+ "init": "./dist/init.mjs"
26
26
  },
27
27
  "files": [
28
28
  "LICENSE",
29
29
  "dist",
30
30
  "shims",
31
- "pithosai.sql",
32
31
  "scripts/npm-global-install.js",
33
- "scripts/postinstall-init-db.js"
32
+ "scripts/postinstall-init.js"
34
33
  ],
35
34
  "scripts": {
36
- "build": "rm -rf dist && rspack build --config rspack.config.cjs && npm run finalize-dist",
37
- "finalize-dist": "node scripts/prefix-bin-shebang.js",
38
- "prepublishOnly": "npm run build",
39
- "test": "vitest run",
40
- "test:watch": "vitest",
41
- "postinstall": "node scripts/postinstall-init-db.js",
35
+ "postinstall": "node scripts/postinstall-init.js",
42
36
  "playwright:install": "playwright install chromium"
43
37
  },
44
38
  "dependencies": {
45
39
  "@clack/prompts": "^1.0.1",
40
+ "@journeyapps/sqlcipher": "^5.3.1",
46
41
  "@mariozechner/pi-agent-core": "^0.52.5",
47
42
  "@mariozechner/pi-coding-agent": "^0.52.7",
48
43
  "@mariozechner/pi-tui": "^0.52.12",
@@ -13,7 +13,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
13
13
  function main() {
14
14
  if (!isNpmGlobalInstall()) return;
15
15
  const root = path.join(__dirname, "..");
16
- const initCli = path.join(root, "dist", "init-pithosai-db.mjs");
16
+ const initCli = path.join(root, "dist", "init.mjs");
17
17
  if (!fs.existsSync(initCli)) return;
18
18
  const r = spawnSync(process.execPath, [initCli], { stdio: "inherit", cwd: root });
19
19
  if (r.status !== 0) process.exit(r.status ?? 1);
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * Resolves the npm package install root (directory containing this package's package.json).
5
- * Parent of shims/ — keeps dist/*.cjs able to locate assets with `join(__dirname, "..", "shims", ...)` → `require(this)`.
5
+ * Parent of shims/ — lets bundled `dist/*.mjs` resolve the install root via `paths.js` (`createRequire` of this file).
6
6
  */
7
7
  const path = require("node:path");
8
8
 
package/dist/475.mjs DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export const __rspack_esm_id="475";export const __rspack_esm_ids=["475"];export const __webpack_modules__={7414(o){o.exports=import("@silvia-odwyer/photon-node").then(function(o){return o})}};
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- import{createRequire as r}from"node:module";let e=r(import.meta.url);var t,o,a,n,s,i,p,c={3529(r){r.exports=import("better-sqlite3").then(function(r){return r})},3024(r){r.exports=e("node:fs")},8161(r){r.exports=e("node:os")},6760(r){r.exports=e("node:path")},3136(r){r.exports=e("node:url")},9244(r,e,t){t.a(r,async function(r,e){try{var o=t(6760),a=t(3136),n=t(2880),s=r([n]);n=(s.then?(await s)():s)[0];let i="u">typeof __dirname?__dirname:(0,o.dirname)((0,a.fileURLToPath)("file:///Users/lidh04/Projects/scripts/pithosai/scripts/init-pithosai-db.js")),p=(0,o.join)(i,"..","pithosai.sql");try{(0,n.A)({sqlPath:p})}catch(r){console.error(r instanceof Error?r.message:String(r)),process.exit(1)}e()}catch(r){e(r)}})},2880(r,e,t){t.a(r,async function(r,o){try{t.d(e,{A:()=>c});var a=t(3024),n=t(6760),s=t(8161),i=t(3529),p=r([i]);function c(r){let e=r.dbPath??(0,n.join)((0,s.homedir)(),".pithosai","pithosai.db");if((0,a.existsSync)(e))return{skipped:!0,dbPath:e};(0,a.mkdirSync)((0,n.dirname)(e),{recursive:!0});let t=(0,a.readFileSync)(r.sqlPath,"utf8"),o=new i.default(e);try{o.exec(t)}finally{o.close()}return{skipped:!1,dbPath:e}}i=(p.then?(await p)():p)[0],o()}catch(r){o(r)}})}},d={};function u(r){var e=d[r];if(void 0!==e)return e.exports;var t=d[r]={exports:{}};return c[r](t,t.exports,u),t.exports}o=(t="function"==typeof Symbol)?Symbol("rspack queues"):"__rspack_queues",a=u.aE=t?Symbol("rspack exports"):"__webpack_exports__",n=t?Symbol("rspack error"):"__rspack_error",s=t?Symbol("rspack done"):"__rspack_done",i=u.zS=t?Symbol("rspack defer"):"__rspack_defer",p=r=>{r&&r.d<1&&(r.d=1,r.forEach(r=>r.r--),r.forEach(r=>r.r--?r.r++:r()))},u.a=(r,e,t)=>{t&&((c=[]).d=-1);var c,f,l,h,m=new Set,y=r.exports,_=new Promise((r,e)=>{h=e,l=r});_[a]=y,_[o]=r=>{c&&r(c),m.forEach(r),_.catch(()=>{})},r.exports=_,e(r=>{f=r.map(r=>{if(null!==r&&"object"==typeof r){if(!r[o]&&r[i]){var e=r[i];if(!e.some(r=>{var e=d[r];return!e||!1===e[s]}))return r;var t=r;r={then(r){Promise.all(e.map(u)).then(()=>r(t))}}}if(r[o])return r;if(r.then){var c=[];c.d=0,r.then(r=>{f[a]=r,p(c)},r=>{f[n]=r,p(c)});var f={};return f[i]=!1,f[o]=r=>r(c),f}}var l={};return l[o]=()=>{},l[a]=r,l});var e,t=()=>f.map(r=>{if(r[i])return r;if(r[n])throw r[n];return r[a]}),l=new Promise(r=>{(e=()=>r(t)).r=0;var a=r=>r!==c&&!m.has(r)&&(m.add(r),r&&!r.d&&(e.r++,r.push(e)));f.map(r=>r[i]||r[o](a))});return e.r?l:t()},r=>(r?h(_[n]=r):l(y),p(c),_[s]=!0)),c&&c.d<0&&(c.d=0)},u.d=(r,e)=>{for(var t in e)u.o(e,t)&&!u.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:e[t]})},u.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),u.rv=()=>"1.7.6",u.ruid="bundler=rspack@1.7.6",u(9244);