@polylogicai/polycode 1.1.1 → 1.1.2

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/bin/polycode.mjs +6 -1
  2. package/package.json +1 -1
package/bin/polycode.mjs CHANGED
@@ -19,6 +19,11 @@ import { existsSync, mkdirSync, readFileSync, statSync, writeFileSync } from 'no
19
19
  import { homedir } from 'node:os';
20
20
  import { join, dirname, resolve } from 'node:path';
21
21
  import { randomUUID, createHash } from 'node:crypto';
22
+ import { fileURLToPath } from 'node:url';
23
+
24
+ const __filename = fileURLToPath(import.meta.url);
25
+ const __dirname = dirname(__filename);
26
+ const PACKAGE_JSON = JSON.parse(readFileSync(join(__dirname, '..', 'package.json'), 'utf8'));
22
27
  import * as readline from 'node:readline/promises';
23
28
  import { stdin, stdout, exit, argv, env, cwd as getCwd } from 'node:process';
24
29
  import 'dotenv/config';
@@ -137,7 +142,7 @@ function loadRules() {
137
142
  return {};
138
143
  }
139
144
 
140
- const VERSION = '1.1.0';
145
+ const VERSION = PACKAGE_JSON.version;
141
146
  const DOCS_URL = 'https://polylogicai.com/polycode';
142
147
 
143
148
  const BANNER = `${C.bold}${C.amber}polycode v${VERSION}${C.reset}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polylogicai/polycode",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "An agentic coding CLI. Runs on your machine with your keys. Every turn is appended to a SHA-256 chained session log, so your history is auditable, replayable, and portable.",
5
5
  "type": "module",
6
6
  "main": "bin/polycode.mjs",