@quantiya/codevibe-codex-plugin 2.0.13 → 2.0.14

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 (31) hide show
  1. package/dist/server.js +34 -32
  2. package/hooks/common.sh +21 -9
  3. package/node_modules/@iarna/toml/CHANGELOG.md +278 -0
  4. package/node_modules/@quantiya/codevibe-core/dist/__tests__/gate-ux-regressions.test.d.ts +1 -0
  5. package/node_modules/@quantiya/codevibe-core/dist/index.d.ts +1 -1
  6. package/node_modules/@quantiya/codevibe-core/dist/index.js +240 -240
  7. package/node_modules/@quantiya/codevibe-core/dist/local-executor/workspace-shadow.d.ts +7 -0
  8. package/node_modules/@quantiya/codevibe-core/dist/local-model/manager.d.ts +1 -1
  9. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/audit-runner.d.ts +2 -3
  10. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/cli.d.ts +2 -2
  11. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/cli.js +158 -28
  12. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/quorum-loop.d.ts +22 -3
  13. package/node_modules/@quantiya/codevibe-core/dist/orchestration-shell/task-progress.d.ts +3 -0
  14. package/node_modules/@quantiya/codevibe-core/dist/reduced-trust-notice.d.ts +44 -0
  15. package/node_modules/@quantiya/codevibe-core/dist/tool-activity/consolidator.d.ts +7 -0
  16. package/node_modules/@quantiya/codevibe-core/dist/tool-activity/ledger.d.ts +33 -13
  17. package/node_modules/@quantiya/codevibe-core/package.json +1 -1
  18. package/node_modules/color-convert/CHANGELOG.md +54 -0
  19. package/node_modules/deep-extend/CHANGELOG.md +46 -0
  20. package/node_modules/es-toolkit/CHANGELOG.md +810 -0
  21. package/node_modules/es-toolkit/src/compat/_internal/Equals.d.ts +1 -0
  22. package/node_modules/es-toolkit/src/compat/_internal/IsWritable.d.ts +3 -0
  23. package/node_modules/es-toolkit/src/compat/_internal/MutableList.d.ts +4 -0
  24. package/node_modules/es-toolkit/src/compat/_internal/RejectReadonly.d.ts +4 -0
  25. package/node_modules/fs-ext/build/Makefile +2 -2
  26. package/node_modules/fs-ext/build/Release/fs_ext.node +0 -0
  27. package/node_modules/fs-ext/build/Release/obj.target/fs_ext/fs-ext.o +0 -0
  28. package/node_modules/fs-ext/build/config.gypi +1 -1
  29. package/node_modules/keytar/build/Release/keytar.node +0 -0
  30. package/node_modules/which/CHANGELOG.md +166 -0
  31. package/package.json +2 -2
@@ -12,13 +12,13 @@ export declare const LedgerEntrySchema: z.ZodObject<{
12
12
  * rewind falls back to session start, which is still SAFE.
13
13
  */
14
14
  byteOffset: z.ZodNumber;
15
- state: z.ZodEnum<["durably-outboxed", "acked"]>;
15
+ state: z.ZodEnum<["durably-outboxed", "acked", "terminal"]>;
16
16
  }, "strip", z.ZodTypeAny, {
17
- state: "durably-outboxed" | "acked";
17
+ state: "terminal" | "durably-outboxed" | "acked";
18
18
  byteOffset: number;
19
19
  clientEventId: string;
20
20
  }, {
21
- state: "durably-outboxed" | "acked";
21
+ state: "terminal" | "durably-outboxed" | "acked";
22
22
  byteOffset: number;
23
23
  clientEventId: string;
24
24
  }>;
@@ -36,30 +36,37 @@ export declare const LedgerFileSchema: z.ZodObject<{
36
36
  * rewind falls back to session start, which is still SAFE.
37
37
  */
38
38
  byteOffset: z.ZodNumber;
39
- state: z.ZodEnum<["durably-outboxed", "acked"]>;
39
+ state: z.ZodEnum<["durably-outboxed", "acked", "terminal"]>;
40
40
  }, "strip", z.ZodTypeAny, {
41
- state: "durably-outboxed" | "acked";
41
+ state: "terminal" | "durably-outboxed" | "acked";
42
42
  byteOffset: number;
43
43
  clientEventId: string;
44
44
  }, {
45
- state: "durably-outboxed" | "acked";
45
+ state: "terminal" | "durably-outboxed" | "acked";
46
46
  byteOffset: number;
47
47
  clientEventId: string;
48
48
  }>>;
49
+ /**
50
+ * Permanently rejected outbox windows. Optional for backwards compatibility
51
+ * with version-1 ledgers written before per-window terminal authority existed.
52
+ */
53
+ terminalClientEventIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
49
54
  }, "strip", z.ZodTypeAny, {
50
55
  entries: Record<string, {
51
- state: "durably-outboxed" | "acked";
56
+ state: "terminal" | "durably-outboxed" | "acked";
52
57
  byteOffset: number;
53
58
  clientEventId: string;
54
59
  }>;
55
60
  version: 1;
61
+ terminalClientEventIds: string[];
56
62
  }, {
57
63
  entries: Record<string, {
58
- state: "durably-outboxed" | "acked";
64
+ state: "terminal" | "durably-outboxed" | "acked";
59
65
  byteOffset: number;
60
66
  clientEventId: string;
61
67
  }>;
62
68
  version: 1;
69
+ terminalClientEventIds?: string[] | undefined;
63
70
  }>;
64
71
  export type LedgerFile = z.infer<typeof LedgerFileSchema>;
65
72
  /**
@@ -111,7 +118,9 @@ export declare class ToolActivityLedger {
111
118
  private readonly logger;
112
119
  private readonly rootDir;
113
120
  private entries;
121
+ private terminalWindows;
114
122
  private loaded;
123
+ private mutationChain;
115
124
  constructor(opts: ToolActivityLedgerOptions);
116
125
  private filePath;
117
126
  private legacyOwnedFilePath;
@@ -133,7 +142,7 @@ export declare class ToolActivityLedger {
133
142
  * rebuildability) — used after a ledger loss so a still-pending window is not
134
143
  * re-observed as new. The outbox does not carry per-occurrence byteOffsets, so
135
144
  * they default to 0 (rewind falls back to the safe session-start bound).
136
- * Never DOWNGRADES an existing `acked` entry.
145
+ * Never DOWNGRADES an existing `acked` or `terminal` entry.
137
146
  */
138
147
  rebuildFromOutbox(outboxEntries: ToolActivityOutboxEnvelope[]): void;
139
148
  /**
@@ -168,7 +177,9 @@ export declare class ToolActivityLedger {
168
177
  * (`entries`/`owned`) deferral is permanent, so the cursor advances freely.
169
178
  */
170
179
  isLegacyInFlight(id: string): boolean;
171
- getState(id: string): 'durably-outboxed' | 'acked' | undefined;
180
+ getState(id: string): 'durably-outboxed' | 'acked' | 'terminal' | undefined;
181
+ /** True when a window has been durably settled as permanently undeliverable. */
182
+ isTerminalWindow(clientEventId: string): boolean;
172
183
  /**
173
184
  * Unique `clientEventId`s still in the `durably-outboxed` state (sealed, not yet
174
185
  * acked). The §4.5 N4 startup cross-check compares these against the surviving
@@ -192,6 +203,11 @@ export declare class ToolActivityLedger {
192
203
  markDurablyOutboxed(occurrences: OccurrenceRef[], clientEventId: string): Promise<void>;
193
204
  /** Mark every id of an acked window `acked` (retained for the pruning horizon). */
194
205
  markAcked(clientEventId: string): Promise<void>;
206
+ /**
207
+ * Mark every id of a permanently rejected window `terminal`. This must be
208
+ * persisted before its outbox file is pruned so restart cannot resend it.
209
+ */
210
+ markTerminal(clientEventId: string, invocationIds?: string[]): Promise<void>;
195
211
  /**
196
212
  * Crash-ordered repair step (2) (§4.5 V3/W2): DEMOTE/remove every mapping
197
213
  * referencing a quarantined or missing `clientEventId` so its occurrences are
@@ -265,10 +281,14 @@ export declare class ToolActivityLedger {
265
281
  /** Test/diagnostic: a snapshot of the in-memory legacy IN-FLIGHT id set. */
266
282
  legacyInFlightSnapshot(): string[];
267
283
  /**
268
- * Bound ledger growth: drop `acked` entries whose source position is strictly
269
- * BELOW a safe horizon (§4.5 — max(replay cursor, Stop turn-start)). Never
270
- * prunes `durably-outboxed` (still pending an ack). Persists if anything changed.
284
+ * Bound ledger growth: drop settled (`acked` or `terminal`) entries whose
285
+ * source position is strictly BELOW a safe horizon (§4.5 — max(replay cursor,
286
+ * Stop turn-start)). Never prunes `durably-outboxed` or a terminal tombstone
287
+ * whose outbox file still exists: the latter may be an interrupted prune and
288
+ * must remain terminal across restart. Persists if anything changed.
271
289
  */
272
290
  prune(beforeByteOffset: number): Promise<void>;
291
+ private mutateAndPersist;
292
+ private outboxEntryExists;
273
293
  private persist;
274
294
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quantiya/codevibe-core",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
4
4
  "description": "Core library for CodeVibe plugins - shared keychain, crypto, AppSync, and auth functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,54 @@
1
+ # 1.0.0 - 2016-01-07
2
+
3
+ - Removed: unused speed test
4
+ - Added: Automatic routing between previously unsupported conversions
5
+ ([#27](https://github.com/Qix-/color-convert/pull/27))
6
+ - Removed: `xxx2xxx()` and `xxx2xxxRaw()` functions
7
+ ([#27](https://github.com/Qix-/color-convert/pull/27))
8
+ - Removed: `convert()` class
9
+ ([#27](https://github.com/Qix-/color-convert/pull/27))
10
+ - Changed: all functions to lookup dictionary
11
+ ([#27](https://github.com/Qix-/color-convert/pull/27))
12
+ - Changed: `ansi` to `ansi256`
13
+ ([#27](https://github.com/Qix-/color-convert/pull/27))
14
+ - Fixed: argument grouping for functions requiring only one argument
15
+ ([#27](https://github.com/Qix-/color-convert/pull/27))
16
+
17
+ # 0.6.0 - 2015-07-23
18
+
19
+ - Added: methods to handle
20
+ [ANSI](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors) 16/256 colors:
21
+ - rgb2ansi16
22
+ - rgb2ansi
23
+ - hsl2ansi16
24
+ - hsl2ansi
25
+ - hsv2ansi16
26
+ - hsv2ansi
27
+ - hwb2ansi16
28
+ - hwb2ansi
29
+ - cmyk2ansi16
30
+ - cmyk2ansi
31
+ - keyword2ansi16
32
+ - keyword2ansi
33
+ - ansi162rgb
34
+ - ansi162hsl
35
+ - ansi162hsv
36
+ - ansi162hwb
37
+ - ansi162cmyk
38
+ - ansi162keyword
39
+ - ansi2rgb
40
+ - ansi2hsl
41
+ - ansi2hsv
42
+ - ansi2hwb
43
+ - ansi2cmyk
44
+ - ansi2keyword
45
+ ([#18](https://github.com/harthur/color-convert/pull/18))
46
+
47
+ # 0.5.3 - 2015-06-02
48
+
49
+ - Fixed: hsl2hsv does not return `NaN` anymore when using `[0,0,0]`
50
+ ([#15](https://github.com/harthur/color-convert/issues/15))
51
+
52
+ ---
53
+
54
+ Check out commit logs for older releases
@@ -0,0 +1,46 @@
1
+ Changelog
2
+ =========
3
+
4
+ v0.6.0
5
+ ------
6
+
7
+ - Updated "devDependencies" versions to fix vulnerability alerts
8
+ - Dropped support of io.js and node.js v0.12.x and lower since new versions of
9
+ "devDependencies" couldn't work with those old node.js versions
10
+ (minimal supported version of node.js now is v4.0.0)
11
+
12
+ v0.5.1
13
+ ------
14
+
15
+ - Fix prototype pollution vulnerability (thanks to @mwakerman for the PR)
16
+ - Avoid using deprecated Buffer API (thanks to @ChALkeR for the PR)
17
+
18
+ v0.5.0
19
+ ------
20
+
21
+ - Auto-testing provided by Travis CI;
22
+ - Support older Node.JS versions (`v0.11.x` and `v0.10.x`);
23
+ - Removed tests files from npm package.
24
+
25
+ v0.4.2
26
+ ------
27
+
28
+ - Fix for `null` as an argument.
29
+
30
+ v0.4.1
31
+ ------
32
+
33
+ - Removed test code from <b>npm</b> package
34
+ ([see pull request #21](https://github.com/unclechu/node-deep-extend/pull/21));
35
+ - Increased minimal version of Node from `0.4.0` to `0.12.0`
36
+ (because can't run tests on lesser version anyway).
37
+
38
+ v0.4.0
39
+ ------
40
+
41
+ - **WARNING!** Broken backward compatibility with `v0.3.x`;
42
+ - Fixed bug with extending arrays instead of cloning;
43
+ - Deep cloning for arrays;
44
+ - Check for own property;
45
+ - Fixed some documentation issues;
46
+ - Strict JS mode.