@vpxa/aikit 0.1.254 → 0.1.255
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 +1 -1
- package/packages/blocks-core/dist/index.mjs +36 -33
- package/packages/cli/dist/index.js +1 -1
- package/packages/present/dist/index.html +65 -60
- package/packages/server/dist/bin.js +1 -1
- package/packages/server/dist/index.js +1 -1
- package/packages/server/dist/{server-ChEvZr2j.js → server-BLnAc-VG.js} +139 -141
- package/packages/server/dist/{server-D9p9FSoB.js → server-BZ8LFTKm.js} +139 -141
- package/packages/tools/dist/index.d.ts +17 -8
- package/packages/tools/dist/index.js +61 -61
- package/scaffold/dist/definitions/protocols.mjs +3 -3
- package/scaffold/dist/definitions/skills/aikit.mjs +2 -2
|
@@ -419,15 +419,23 @@ declare class FileCache {
|
|
|
419
419
|
}
|
|
420
420
|
//#endregion
|
|
421
421
|
//#region packages/tools/src/compact.d.ts
|
|
422
|
-
|
|
423
|
-
/** The text to compress
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
422
|
+
type CompactInputOptions = {
|
|
423
|
+
/** The text to compress. */text: string; /** The focus query — what are we trying to understand? */
|
|
424
|
+
query: string;
|
|
425
|
+
path?: never;
|
|
426
|
+
ref?: never;
|
|
427
|
+
} | {
|
|
428
|
+
/** File path to read server-side — avoids read_file round-trip. */path: string; /** The focus query — what are we trying to understand? */
|
|
429
|
+
query: string;
|
|
430
|
+
text?: never;
|
|
431
|
+
ref?: never;
|
|
432
|
+
} | {
|
|
433
|
+
/** Cached reversible ref from compact/digest/search/find/knowledge output. */ref: string; /** Optional focus query when re-compacting a cached artifact. */
|
|
430
434
|
query?: string;
|
|
435
|
+
text?: never;
|
|
436
|
+
path?: never;
|
|
437
|
+
};
|
|
438
|
+
interface CompactSharedOptions {
|
|
431
439
|
/** Target output size in characters (default: 3000) */
|
|
432
440
|
maxChars?: number;
|
|
433
441
|
/** Token budget — when set, overrides maxChars (approx 4 chars per token) */
|
|
@@ -447,6 +455,7 @@ interface CompactOptions {
|
|
|
447
455
|
*/
|
|
448
456
|
mode?: 'full' | 'delta';
|
|
449
457
|
}
|
|
458
|
+
type CompactOptions = CompactInputOptions & CompactSharedOptions;
|
|
450
459
|
interface CompactResult {
|
|
451
460
|
/** The compressed text */
|
|
452
461
|
text: string;
|