@vincemakes/kiso-runtime 0.54.0 → 0.54.1
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/index.d.ts +2 -0
- package/dist/index.js +4 -0
- package/dist/provider/metadata.js +4 -0
- package/dist/session.d.ts +1 -1
- package/dist/session.js +1 -1
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -45,3 +45,5 @@ export type { ProjectArtifact, ProjectArtifacts, TrustDecision, TrustRecord } fr
|
|
|
45
45
|
export { runsACheck } from "./compaction-policy.js";
|
|
46
46
|
export { canonicalizeUsage } from "./usage/canonical.js";
|
|
47
47
|
export { estimateTokens } from "./estimate-tokens.js";
|
|
48
|
+
export { lookupContextWindow } from "./provider/metadata.js";
|
|
49
|
+
export type { ContextWindowSource, ResolvedContextWindow } from "./provider/metadata.js";
|
package/dist/index.js
CHANGED
|
@@ -56,3 +56,7 @@ export { canonicalizeUsage } from "./usage/canonical.js";
|
|
|
56
56
|
// policy, not a kernel primitive — it moved here unchanged from the core
|
|
57
57
|
// package, which never called it.
|
|
58
58
|
export { estimateTokens } from "./estimate-tokens.js";
|
|
59
|
+
// The context window a host needs for a model and route (a child session's window, a display): the same
|
|
60
|
+
// resolution the runtime uses — the route's row, the upstream's, every row of the model, then the release snapshot.
|
|
61
|
+
// Promoted from ./internal on the three products' request (2026-11-14): hosts import from the root only.
|
|
62
|
+
export { lookupContextWindow } from "./provider/metadata.js";
|
|
@@ -582,6 +582,10 @@ const MODEL_ALIASES = {
|
|
|
582
582
|
// The pricing table: `deepseek-flash` IS DeepSeek-V4.1-Flash. Gateways
|
|
583
583
|
// serve it by the version name (`deepseek-v4.1-flash`).
|
|
584
584
|
"deepseek-v4.1-flash": { is: "deepseek-flash", asOf: "2026-09-17", source: "https://api-docs.deepseek.com/quick_start/pricing/" },
|
|
585
|
+
// OpenRouter's dated snapshot: "the October 17, 2026 snapshot of DeepSeek V4.1 Flash, served by DeepSeek under the
|
|
586
|
+
// `deepseek-flash` API model name" (its model entry, read 2026-11-14). The window is then DeepSeek's own 1,000,000, not
|
|
587
|
+
// the gateway's 1,048,576 the release snapshot carried; without the alias the three products' writer on it read that.
|
|
588
|
+
"deepseek-v4.1-flash-1017": { is: "deepseek-flash", asOf: "2026-11-14", source: "https://openrouter.ai/deepseek/deepseek-v4.1-flash-1017" },
|
|
585
589
|
// OpenRouter spells the 5.5 line with a dot; the vendor's ids carry dashes
|
|
586
590
|
// (the models overview, read 2026-10-17). Same weights.
|
|
587
591
|
"claude-opus-5.5": { is: "claude-opus-5-5", asOf: "2026-10-17", source: "https://platform.claude.com/docs/en/models/overview" },
|
package/dist/session.d.ts
CHANGED
|
@@ -101,7 +101,7 @@ export interface CompactInfo {
|
|
|
101
101
|
}
|
|
102
102
|
/** The follow-up's built-in ask (Session.followUp with no `ask`): the line the person may send next. No language is
|
|
103
103
|
* named: without the clause, Chinese conversations still gave Chinese lines (measured, owner 2026-11-03). */
|
|
104
|
-
export declare const FOLLOW_UP_ASK = "Write the one message the person is most likely to send you next, as they would type it, and nothing else. If the work is done and nothing naturally follows, answer with nothing.";
|
|
104
|
+
export declare const FOLLOW_UP_ASK = "Write the one message the person is most likely to send you next, as they would type it, and nothing else. Write it in their voice, as their reply to you: in it, \"I\" is the person and \"you\" is you. If the work is done and nothing naturally follows, answer with nothing.";
|
|
105
105
|
/** The built-in follow-up's answer as a line: its first non-empty line, without quotes around it; "" for none, and ""
|
|
106
106
|
* for a line over 200 characters (a cut message is not one the person would send, so it is dropped, not shortened). */
|
|
107
107
|
export declare function followUpLine(text: string): string;
|
package/dist/session.js
CHANGED
|
@@ -94,7 +94,7 @@ function summaryReasoning(model, baseUrl) {
|
|
|
94
94
|
}
|
|
95
95
|
/** The follow-up's built-in ask (Session.followUp with no `ask`): the line the person may send next. No language is
|
|
96
96
|
* named: without the clause, Chinese conversations still gave Chinese lines (measured, owner 2026-11-03). */
|
|
97
|
-
export const FOLLOW_UP_ASK = "Write the one message the person is most likely to send you next, as they would type it, and nothing else. If the work is done and nothing naturally follows, answer with nothing.";
|
|
97
|
+
export const FOLLOW_UP_ASK = "Write the one message the person is most likely to send you next, as they would type it, and nothing else. Write it in their voice, as their reply to you: in it, \"I\" is the person and \"you\" is you. If the work is done and nothing naturally follows, answer with nothing.";
|
|
98
98
|
/** The built-in follow-up's answer as a line: its first non-empty line, without quotes around it; "" for none, and ""
|
|
99
99
|
* for a line over 200 characters (a cut message is not one the person would send, so it is dropped, not shortened). */
|
|
100
100
|
export function followUpLine(text) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vincemakes/kiso-runtime",
|
|
3
|
-
"version": "0.54.
|
|
3
|
+
"version": "0.54.1",
|
|
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",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"test": "vitest run"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@vincemakes/kiso-core": "0.54.
|
|
28
|
+
"@vincemakes/kiso-core": "0.54.1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@vincemakes/kiso-provider-anthropic": "0.54.
|
|
32
|
-
"@vincemakes/kiso-provider-openai": "0.54.
|
|
33
|
-
"@vincemakes/kiso-provider-openai-responses": "0.54.
|
|
31
|
+
"@vincemakes/kiso-provider-anthropic": "0.54.1",
|
|
32
|
+
"@vincemakes/kiso-provider-openai": "0.54.1",
|
|
33
|
+
"@vincemakes/kiso-provider-openai-responses": "0.54.1"
|
|
34
34
|
},
|
|
35
35
|
"peerDependenciesMeta": {
|
|
36
36
|
"@vincemakes/kiso-provider-anthropic": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@vincemakes/kiso-evals": "0.54.
|
|
47
|
+
"@vincemakes/kiso-evals": "0.54.1",
|
|
48
48
|
"@types/node": "^26.1.2",
|
|
49
49
|
"typescript": "^5.7.2",
|
|
50
50
|
"vitest": "^3.0.0"
|