@skrr-ai/cli 0.1.169 → 0.1.170

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.
@@ -0,0 +1,33 @@
1
+ /**
2
+ * localSessionImportLimits.ts — how much of one native session a local session import carries.
3
+ *
4
+ * The daemon reads a session on a person's computer and the server stores what it read. Each used
5
+ * to declare its own copy of these numbers (twelve files, each with a `MAX_EVENTS` of 10,000 and a
6
+ * `MAX_PAGES` of 400), and a number that must agree across the wire cannot be left to twelve
7
+ * declarations: raise one and the import still stops at the next, with an error that does not say
8
+ * which. They are declared here, once, and both sides import them.
9
+ *
10
+ * The values are sized from measurement, not from a guess. The twelve largest Codex sessions on one
11
+ * heavy user's machine (96 to 279 MB of rollout) project to at most 36,043 events, 80.0 MB of history
12
+ * and 361 pages, and reading one of them end to end takes under a second with 125 MB of memory. Each
13
+ * limit below is several times that, so it is a bound on what one import may cost the server, not a
14
+ * ceiling a real session is near:
15
+ *
16
+ * - events: 250,000, about 7x the largest measured;
17
+ * - bytes: 512 MiB of projected history, about 6x;
18
+ * - pages: 4,000, about 11x, and never fewer than `maxEvents / 100` (a page holds at most 100
19
+ * events), which the test pins so one cannot be raised without the other.
20
+ *
21
+ * These bound the history that is published. What the daemon will read from disk to produce it
22
+ * (file size, record count, the longest record) is the daemon's own business and stays there.
23
+ */
24
+ export declare const LOCAL_SESSION_HISTORY_LIMITS: Readonly<{
25
+ /** The most events (one per completed item) one session's history may hold. */
26
+ maxEvents: 250000;
27
+ /** The most bytes of projected history one session may hold, as the pages serialize it. */
28
+ maxBytes: number;
29
+ /** The most history pages one session may take. */
30
+ maxPages: 4000;
31
+ }>;
32
+ /** A history page holds at most this many events (the daemon's `sourcePageLimit`). */
33
+ export declare const LOCAL_SESSION_HISTORY_PAGE_EVENTS = 100;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var localSessionImportLimits_exports = {};
20
+ __export(localSessionImportLimits_exports, {
21
+ LOCAL_SESSION_HISTORY_LIMITS: () => LOCAL_SESSION_HISTORY_LIMITS,
22
+ LOCAL_SESSION_HISTORY_PAGE_EVENTS: () => LOCAL_SESSION_HISTORY_PAGE_EVENTS
23
+ });
24
+ module.exports = __toCommonJS(localSessionImportLimits_exports);
25
+ const LOCAL_SESSION_HISTORY_LIMITS = Object.freeze({
26
+ /** The most events (one per completed item) one session's history may hold. */
27
+ maxEvents: 25e4,
28
+ /** The most bytes of projected history one session may hold, as the pages serialize it. */
29
+ maxBytes: 512 * 1024 * 1024,
30
+ /** The most history pages one session may take. */
31
+ maxPages: 4e3
32
+ });
33
+ const LOCAL_SESSION_HISTORY_PAGE_EVENTS = 100;
34
+ // Annotate the CommonJS export names for ESM import in node:
35
+ 0 && (module.exports = {
36
+ LOCAL_SESSION_HISTORY_LIMITS,
37
+ LOCAL_SESSION_HISTORY_PAGE_EVENTS
38
+ });
@@ -0,0 +1,33 @@
1
+ /**
2
+ * localSessionImportLimits.ts — how much of one native session a local session import carries.
3
+ *
4
+ * The daemon reads a session on a person's computer and the server stores what it read. Each used
5
+ * to declare its own copy of these numbers (twelve files, each with a `MAX_EVENTS` of 10,000 and a
6
+ * `MAX_PAGES` of 400), and a number that must agree across the wire cannot be left to twelve
7
+ * declarations: raise one and the import still stops at the next, with an error that does not say
8
+ * which. They are declared here, once, and both sides import them.
9
+ *
10
+ * The values are sized from measurement, not from a guess. The twelve largest Codex sessions on one
11
+ * heavy user's machine (96 to 279 MB of rollout) project to at most 36,043 events, 80.0 MB of history
12
+ * and 361 pages, and reading one of them end to end takes under a second with 125 MB of memory. Each
13
+ * limit below is several times that, so it is a bound on what one import may cost the server, not a
14
+ * ceiling a real session is near:
15
+ *
16
+ * - events: 250,000, about 7x the largest measured;
17
+ * - bytes: 512 MiB of projected history, about 6x;
18
+ * - pages: 4,000, about 11x, and never fewer than `maxEvents / 100` (a page holds at most 100
19
+ * events), which the test pins so one cannot be raised without the other.
20
+ *
21
+ * These bound the history that is published. What the daemon will read from disk to produce it
22
+ * (file size, record count, the longest record) is the daemon's own business and stays there.
23
+ */
24
+ export declare const LOCAL_SESSION_HISTORY_LIMITS: Readonly<{
25
+ /** The most events (one per completed item) one session's history may hold. */
26
+ maxEvents: 250000;
27
+ /** The most bytes of projected history one session may hold, as the pages serialize it. */
28
+ maxBytes: number;
29
+ /** The most history pages one session may take. */
30
+ maxPages: 4000;
31
+ }>;
32
+ /** A history page holds at most this many events (the daemon's `sourcePageLimit`). */
33
+ export declare const LOCAL_SESSION_HISTORY_PAGE_EVENTS = 100;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * localSessionImportLimits.ts — how much of one native session a local session import carries.
3
+ *
4
+ * The daemon reads a session on a person's computer and the server stores what it read. Each used
5
+ * to declare its own copy of these numbers (twelve files, each with a `MAX_EVENTS` of 10,000 and a
6
+ * `MAX_PAGES` of 400), and a number that must agree across the wire cannot be left to twelve
7
+ * declarations: raise one and the import still stops at the next, with an error that does not say
8
+ * which. They are declared here, once, and both sides import them.
9
+ *
10
+ * The values are sized from measurement, not from a guess. The twelve largest Codex sessions on one
11
+ * heavy user's machine (96 to 279 MB of rollout) project to at most 36,043 events, 80.0 MB of history
12
+ * and 361 pages, and reading one of them end to end takes under a second with 125 MB of memory. Each
13
+ * limit below is several times that, so it is a bound on what one import may cost the server, not a
14
+ * ceiling a real session is near:
15
+ *
16
+ * - events: 250,000, about 7x the largest measured;
17
+ * - bytes: 512 MiB of projected history, about 6x;
18
+ * - pages: 4,000, about 11x, and never fewer than `maxEvents / 100` (a page holds at most 100
19
+ * events), which the test pins so one cannot be raised without the other.
20
+ *
21
+ * These bound the history that is published. What the daemon will read from disk to produce it
22
+ * (file size, record count, the longest record) is the daemon's own business and stays there.
23
+ */
24
+ export const LOCAL_SESSION_HISTORY_LIMITS = Object.freeze({
25
+ /** The most events (one per completed item) one session's history may hold. */
26
+ maxEvents: 250_000,
27
+ /** The most bytes of projected history one session may hold, as the pages serialize it. */
28
+ maxBytes: 512 * 1024 * 1024,
29
+ /** The most history pages one session may take. */
30
+ maxPages: 4_000,
31
+ });
32
+ /** A history page holds at most this many events (the daemon's `sourcePageLimit`). */
33
+ export const LOCAL_SESSION_HISTORY_PAGE_EVENTS = 100;
@@ -357,6 +357,16 @@
357
357
  "types": "./dist/cjs/toolOperationOutcome.d.ts",
358
358
  "default": "./dist/cjs/toolOperationOutcome.js"
359
359
  }
360
+ },
361
+ "./local-session-import-limits": {
362
+ "import": {
363
+ "types": "./dist/esm/localSessionImportLimits.d.ts",
364
+ "default": "./dist/esm/localSessionImportLimits.js"
365
+ },
366
+ "require": {
367
+ "types": "./dist/cjs/localSessionImportLimits.d.ts",
368
+ "default": "./dist/cjs/localSessionImportLimits.js"
369
+ }
360
370
  }
361
371
  },
362
372
  "dependencies": {
@@ -150213,5 +150213,5 @@
150213
150213
  ]
150214
150214
  }
150215
150215
  },
150216
- "version": "0.1.169"
150216
+ "version": "0.1.170"
150217
150217
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skrr-ai/cli",
3
- "version": "0.1.169",
3
+ "version": "0.1.170",
4
4
  "description": "Command-line interface for skrr",
5
5
  "license": "ISC",
6
6
  "author": "skrr",
@@ -701,5 +701,5 @@
701
701
  "engines": {
702
702
  "node": ">=20.0.0"
703
703
  },
704
- "gitHead": "21f9a6412ef7799ec3b71e13ce5e4323775b27cc"
704
+ "gitHead": "3aba8d349fe6824a5e11ac2d66b47e0ed37d6f65"
705
705
  }