@hilbras/omnicode 1.2.0 → 1.2.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.
@@ -6593,7 +6593,7 @@ var GenFileWriter = class GenFileWriter {
6593
6593
  constructor(fh, magic, version) {
6594
6594
  this.fh = fh;
6595
6595
  const w = new ByteWriter(8);
6596
- for (let i = 0; i < 4; i++) w.u8(magic.codePointAt(i) ?? 0);
6596
+ for (let i = 0; i < 4; i++) w.u8(magic.charCodeAt(i));
6597
6597
  w.u32(version);
6598
6598
  const head = w.buf.subarray(0, w.off);
6599
6599
  this.chunks.push(Buffer.from(head));
@@ -6686,7 +6686,7 @@ async function readGenerationFileCheckedAsync(path, magic, version, expected) {
6686
6686
  throw new GenerationCorruptError(`generation file unreadable: ${error.code ?? String(error)}`);
6687
6687
  }
6688
6688
  if (buf.length < 12) throw new GenerationCorruptError("generation file too short");
6689
- for (let i = 0; i < 4; i++) if (buf.readUInt8(i) !== magic.codePointAt(i)) throw new GenerationCorruptError(`bad magic (want ${magic})`);
6689
+ for (let i = 0; i < 4; i++) if (buf.readUInt8(i) !== magic.charCodeAt(i)) throw new GenerationCorruptError(`bad magic (want ${magic})`);
6690
6690
  if (buf.readUInt32LE(4) !== version) throw new GenerationCorruptError(`unsupported file version (want ${version})`);
6691
6691
  const stored = buf.readUInt32LE(buf.length - 4);
6692
6692
  let crc = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hilbras/omnicode",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "The Starting Point for Next-Gen Agents",
5
5
  "license": "MIT",
6
6
  "author": "Hilbras",
@@ -34,6 +34,7 @@
34
34
  "dist",
35
35
  "dist-web",
36
36
  "native",
37
+ "CHANGELOG.md",
37
38
  "LICENSE",
38
39
  "README.md"
39
40
  ],
@@ -53,46 +54,6 @@
53
54
  "access": "public",
54
55
  "provenance": false
55
56
  },
56
- "optionalDependencies": {
57
- "@mariozechner/clipboard": "^0.3.9",
58
- "node-pty": "^1.1.0"
59
- },
60
- "devDependencies": {
61
- "@types/qrcode": "^1.5.6",
62
- "@types/semver": "^7.7.0",
63
- "@types/ws": "^8.18.0",
64
- "@types/yazl": "^2.4.6",
65
- "chalk": "^5.4.1",
66
- "cli-highlight": "^2.1.11",
67
- "commander": "^13.1.0",
68
- "jimp": "^1.6.1",
69
- "lovely-mermaid": "0.3.3",
70
- "pathe": "^2.0.3",
71
- "postject": "1.0.0-alpha.6",
72
- "semver": "^7.7.4",
73
- "smol-toml": "^1.6.1",
74
- "tsx": "^4.21.0",
75
- "yazl": "^3.3.1",
76
- "zod": "^4.3.6",
77
- "@hilbras/omnicode-auth": "^0.4.0",
78
- "@hilbras/omnicode-api": "^0.1.1",
79
- "@hilbras/omnicode-minidb": "^0.2.0",
80
- "@hilbras/omnicode-remote": "^0.0.2",
81
- "@hilbras/omnicode-migration": "^0.1.18",
82
- "@hilbras/omnicode-core": "^0.6.0",
83
- "@hilbras/omnicode-server": "^0.2.5",
84
- "@hilbras/omnicode-telemetry": "^0.2.0",
85
- "@hilbras/omnicode-tui": "^0.85.0",
86
- "@hilbras/omnicode-vis-server": "^0.1.1",
87
- "@hilbras/omnicode-vis-web": "0.1.1"
88
- },
89
- "engines": {
90
- "node": ">=22.19.0"
91
- },
92
- "dependencies": {
93
- "qrcode": "^1.5.4",
94
- "ws": "^8.18.0"
95
- },
96
57
  "scripts": {
97
58
  "build": "tsdown && tsdown --config tsdown.dist-worker.config.ts && node scripts/copy-native-assets.mjs && node scripts/check-web-assets.mjs",
98
59
  "prebuild": "node scripts/build-vis-asset.mjs",
@@ -120,5 +81,45 @@
120
81
  "test": "pnpm -w run build:packages && vitest run",
121
82
  "e2e": "pnpm -w run build:packages && OMNICODE_E2E=1 vitest run test/e2e",
122
83
  "e2e:real": "pnpm -w run build:packages && OMNICODE_E2E_REAL=1 vitest run test/e2e/real-llm-smoke.e2e.test.ts"
84
+ },
85
+ "optionalDependencies": {
86
+ "@mariozechner/clipboard": "^0.3.9",
87
+ "node-pty": "^1.1.0"
88
+ },
89
+ "devDependencies": {
90
+ "@hilbras/omnicode-api": "workspace:^",
91
+ "@hilbras/omnicode-auth": "workspace:^",
92
+ "@hilbras/omnicode-core": "workspace:^",
93
+ "@hilbras/omnicode-migration": "workspace:^",
94
+ "@hilbras/omnicode-minidb": "workspace:^",
95
+ "@hilbras/omnicode-remote": "workspace:^",
96
+ "@hilbras/omnicode-server": "workspace:^",
97
+ "@hilbras/omnicode-telemetry": "workspace:^",
98
+ "@hilbras/omnicode-tui": "workspace:^",
99
+ "@hilbras/omnicode-vis-server": "workspace:^",
100
+ "@hilbras/omnicode-vis-web": "workspace:*",
101
+ "@types/qrcode": "^1.5.6",
102
+ "@types/semver": "^7.7.0",
103
+ "@types/ws": "^8.18.0",
104
+ "@types/yazl": "^2.4.6",
105
+ "chalk": "^5.4.1",
106
+ "cli-highlight": "^2.1.11",
107
+ "commander": "^13.1.0",
108
+ "jimp": "^1.6.1",
109
+ "lovely-mermaid": "0.3.3",
110
+ "pathe": "^2.0.3",
111
+ "postject": "1.0.0-alpha.6",
112
+ "semver": "^7.7.4",
113
+ "smol-toml": "^1.6.1",
114
+ "tsx": "^4.21.0",
115
+ "yazl": "^3.3.1",
116
+ "zod": "^4.3.6"
117
+ },
118
+ "engines": {
119
+ "node": ">=22.19.0"
120
+ },
121
+ "dependencies": {
122
+ "qrcode": "^1.5.4",
123
+ "ws": "^8.18.0"
123
124
  }
124
- }
125
+ }