shipr-agent 0.1.3 → 0.1.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 (2) hide show
  1. package/dist/index.js +13 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -101829,6 +101829,9 @@ ${BRAND_BOLD(" ╚══════╝╚═╝ ╚═╝╚═╝╚═╝
101829
101829
  `;
101830
101830
  });
101831
101831
 
101832
+ // src/index.ts
101833
+ import { createRequire as createRequire2 } from "module";
101834
+
101832
101835
  // node_modules/commander/esm.mjs
101833
101836
  var import__ = __toESM(require_commander(), 1);
101834
101837
  var {
@@ -103278,13 +103281,22 @@ async function findActiveMission(cwd2) {
103278
103281
  }
103279
103282
 
103280
103283
  // src/index.ts
103284
+ function getVersion() {
103285
+ try {
103286
+ const require2 = createRequire2(import.meta.url);
103287
+ const pkg = require2("../package.json");
103288
+ return pkg.version;
103289
+ } catch {
103290
+ return "0.1.4";
103291
+ }
103292
+ }
103281
103293
  var hasArgs = process.argv.length > 2;
103282
103294
  if (!hasArgs) {
103283
103295
  const { startRepl: startRepl2 } = await init_repl().then(() => exports_repl);
103284
103296
  await startRepl2();
103285
103297
  } else {
103286
103298
  const program2 = new Command;
103287
- program2.name("shipr").version("0.1.1").description("Fully autonomous terminal-based coding agent");
103299
+ program2.name("shipr").version(getVersion()).description("Fully autonomous terminal-based coding agent");
103288
103300
  registerRunCommand(program2);
103289
103301
  registerNewCommand(program2);
103290
103302
  registerResumeCommand(program2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shipr-agent",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Fully autonomous terminal-based coding agent",
5
5
  "type": "module",
6
6
  "bin": {
@@ -14,7 +14,7 @@
14
14
  ],
15
15
  "scripts": {
16
16
  "dev": "bun src/index.ts",
17
- "build": "bun build src/index.ts --outdir dist --target node --format esm && node -e \"const fs=require('fs');const f='dist/index.js';let c=fs.readFileSync(f,'utf8');c=c.replace('#!/usr/bin/env bun','#!/usr/bin/env node');fs.writeFileSync(f,c)\"",
17
+ "build": "bun build src/index.ts --outdir dist --target node --format esm && node -e \"const fs=require('fs');const f='dist/index.js';const pkg=JSON.parse(fs.readFileSync('package.json','utf8'));let c=fs.readFileSync(f,'utf8');c=c.replace('#!/usr/bin/env bun','#!/usr/bin/env node');c=c.replace('__SHIPR_VERSION__',pkg.version);fs.writeFileSync(f,c)\"",
18
18
  "build:bin": "bun build src/index.ts --compile --outfile shipr",
19
19
  "typecheck": "bunx tsc --noEmit",
20
20
  "lint": "bunx biome check src/",