@vincemakes/kiso-runtime 0.1.0 → 0.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.
package/dist/agent.d.ts CHANGED
@@ -45,6 +45,10 @@ export interface AgentDefinition {
45
45
  readonly compaction?: {
46
46
  readonly thresholdTokens: number;
47
47
  };
48
+ /** C 区: microcompact threshold — passed through to every session. */
49
+ readonly microcompact?: {
50
+ readonly thresholdTokens: number;
51
+ };
48
52
  readonly maxRetries?: number;
49
53
  }
50
54
  export declare class AgentRuntime {
package/dist/agent.js CHANGED
@@ -57,6 +57,7 @@ export class AgentRuntime {
57
57
  ...(this.#definition.maxTokens !== undefined ? { maxTokens: this.#definition.maxTokens } : {}),
58
58
  ...(this.#definition.temperature !== undefined ? { temperature: this.#definition.temperature } : {}),
59
59
  ...(this.#definition.compaction !== undefined ? { compaction: this.#definition.compaction } : {}),
60
+ ...(this.#definition.microcompact !== undefined ? { microcompact: this.#definition.microcompact } : {}),
60
61
  ...(this.#definition.maxRetries !== undefined ? { maxRetries: this.#definition.maxRetries } : {}),
61
62
  };
62
63
  return new AgentSession(options.id, log, store, adapter, config);
package/dist/session.d.ts CHANGED
@@ -139,6 +139,10 @@ export interface SessionConfig {
139
139
  readonly compaction?: {
140
140
  readonly thresholdTokens: number;
141
141
  };
142
+ /** C 区: microcompact threshold — passed through to the loop verbatim. */
143
+ readonly microcompact?: {
144
+ readonly thresholdTokens: number;
145
+ };
142
146
  readonly maxRetries?: number;
143
147
  }
144
148
  /**
package/dist/session.js CHANGED
@@ -437,6 +437,7 @@ export class Run {
437
437
  ...(this.#config.maxTokens !== undefined ? { maxTokens: this.#config.maxTokens } : {}),
438
438
  ...(this.#config.temperature !== undefined ? { temperature: this.#config.temperature } : {}),
439
439
  ...(this.#config.compaction !== undefined ? { compaction: this.#config.compaction } : {}),
440
+ ...(this.#config.microcompact !== undefined ? { microcompact: this.#config.microcompact } : {}),
440
441
  ...(this.#config.maxRetries !== undefined ? { maxRetries: this.#config.maxRetries } : {}),
441
442
  log,
442
443
  signal,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincemakes/kiso-runtime",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "kiso runtime \u2014 durable multi-turn agent sessions: AgentDefinition, AgentRuntime, AgentSession, Run, append-only JSONL store.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -21,11 +21,11 @@
21
21
  "test": "vitest run"
22
22
  },
23
23
  "dependencies": {
24
- "@vincemakes/kiso-core": "0.1.0"
24
+ "@vincemakes/kiso-core": "0.1.2"
25
25
  },
26
26
  "peerDependencies": {
27
- "@vincemakes/kiso-provider-anthropic": "0.1.0",
28
- "@vincemakes/kiso-provider-openai": "0.1.0"
27
+ "@vincemakes/kiso-provider-anthropic": "0.1.2",
28
+ "@vincemakes/kiso-provider-openai": "0.1.2"
29
29
  },
30
30
  "peerDependenciesMeta": {
31
31
  "@vincemakes/kiso-provider-anthropic": {
@@ -36,7 +36,7 @@
36
36
  }
37
37
  },
38
38
  "devDependencies": {
39
- "@vincemakes/kiso-evals": "0.1.0",
39
+ "@vincemakes/kiso-evals": "0.1.2",
40
40
  "@types/node": "^26.1.2",
41
41
  "typescript": "^5.7.2",
42
42
  "vitest": "^3.0.0"