@code-yeongyu/senpi-codemode 2026.11.2-3 → 2026.11.3-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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2026.11.3-2] - 2026-11-03
|
|
4
|
+
|
|
5
|
+
### Breaking Changes
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
### Removed
|
|
14
|
+
|
|
15
|
+
## [2026.11.3-1] - 2026-11-03
|
|
16
|
+
|
|
17
|
+
### Breaking Changes
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- JS eval imports a module by `file://` URL (for example `import(pathToFileURL(p).href)`) instead of refusing it as an unsupported protocol; other schemes without a registered root are still refused ([#4111](https://github.com/code-yeongyu/senpi/issues/4111), reported by @yjacket).
|
|
26
|
+
|
|
27
|
+
### Removed
|
|
28
|
+
|
|
3
29
|
## [2026.11.2-3] - 2026-11-02
|
|
4
30
|
|
|
5
31
|
### Breaking Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code-yeongyu/senpi-codemode",
|
|
3
|
-
"version": "2026.11.2
|
|
3
|
+
"version": "2026.11.3-2",
|
|
4
4
|
"description": "Source-only senpi extension package for codemode evaluation tools",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@babel/parser": "8.0.4",
|
|
36
|
-
"@earendil-works/pi-ai": "npm:@code-yeongyu/senpi-ai@2026.11.2
|
|
36
|
+
"@earendil-works/pi-ai": "npm:@code-yeongyu/senpi-ai@2026.11.3-2",
|
|
37
37
|
"quickjs-wasi": "3.6.2",
|
|
38
38
|
"typebox": "1.3.34"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@code-yeongyu/senpi": "2026.11.2
|
|
41
|
+
"@code-yeongyu/senpi": "2026.11.3-2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@code-yeongyu/senpi": "2026.11.2
|
|
44
|
+
"@code-yeongyu/senpi": "2026.11.3-2"
|
|
45
45
|
},
|
|
46
46
|
"keywords": [
|
|
47
47
|
"senpi",
|
|
@@ -91,7 +91,11 @@ function loaderPrelude(context: RuntimeModuleContext): string {
|
|
|
91
91
|
" }",
|
|
92
92
|
" const match = /^([a-z][a-z0-9+.-]*):\\/\\/(.*)$/i.exec(specifier);",
|
|
93
93
|
" let target = specifier;",
|
|
94
|
-
|
|
94
|
+
// A file URL names an absolute module path, exactly like the absolute-path branch below, so it loads as written
|
|
95
|
+
// (senpi#4111); every other `scheme://` must map onto a registered local root.
|
|
96
|
+
" if (match && match[1].toLowerCase() === 'file') {",
|
|
97
|
+
" target = new URL(specifier).href;",
|
|
98
|
+
" } else if (match) {",
|
|
95
99
|
" const scheme = match[1].toLowerCase();",
|
|
96
100
|
" const root = context.localRootUrls[scheme];",
|
|
97
101
|
" if (!root) throw new Error('Unsupported module protocol: ' + specifier);",
|
|
@@ -113,7 +117,7 @@ function loaderPrelude(context: RuntimeModuleContext): string {
|
|
|
113
117
|
" const run = (resolved) => (options === undefined ? import(resolved) : import(resolved, options));",
|
|
114
118
|
" const load = (resolved) => (permissionLoad ? permissionLoad(() => run(resolved)) : run(resolved));",
|
|
115
119
|
" const resolvePackage = globalThis[Symbol.for('senpi.kernel.resolvePackage')];",
|
|
116
|
-
" if (target === specifier && typeof resolvePackage === 'function') {",
|
|
120
|
+
" if (!match && target === specifier && typeof resolvePackage === 'function') {",
|
|
117
121
|
" const resolved = resolvePackage(specifier, [context.cwdUrl, context.packageRootUrl]);",
|
|
118
122
|
" if (resolved !== undefined) return await load(resolved);",
|
|
119
123
|
" }",
|
|
@@ -119,33 +119,11 @@ export function buildEvalPrompt(
|
|
|
119
119
|
return {
|
|
120
120
|
description,
|
|
121
121
|
promptSnippet: "Run one incremental code cell in a persistent language kernel.",
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
"Use eval reset only when a language kernel must be wiped; reset is scoped to the selected language. A bracketed kernel memory notice in a result names the globals holding the most memory; drop the ones you no longer need.",
|
|
125
|
-
],
|
|
122
|
+
// Batching guidance lives in the per-style description above; the guideline keeps only what no schema states.
|
|
123
|
+
promptGuidelines: ["Bracketed kernel memory notice in eval result names biggest globals -> drop unneeded ones."],
|
|
126
124
|
};
|
|
127
125
|
}
|
|
128
126
|
|
|
129
|
-
/**
|
|
130
|
-
* System-prompt guideline per emphasis dialect. The default dialect carries
|
|
131
|
-
* maximum emphasis so unmapped models still batch through eval; the others are
|
|
132
|
-
* tuned to what steers that family reliably. The GPT line routes waits to the
|
|
133
|
-
* subscription when `monitor` is reachable, because a GPT model that reads
|
|
134
|
-
* "long cells detach" as the way to wait awaits a `--watch` inside a cell.
|
|
135
|
-
*/
|
|
136
|
-
const GPT_MONITOR_BATCHING_GUIDELINE =
|
|
137
|
-
"Use eval to compose tool work in one cell; a wait or a long run starts through `tool.monitor` in that cell, so no cell sits on it and nothing polls.";
|
|
138
|
-
|
|
139
|
-
const BATCHING_GUIDELINES: Record<EvalEmphasisStyle, string> = {
|
|
140
|
-
default:
|
|
141
|
-
"Prefer eval when a step's calls are independent: one cell runs them together and keeps every failure in its result; edits and result-dependent calls go one at a time, each observed before the next.",
|
|
142
|
-
claude:
|
|
143
|
-
"Prefer eval for a step's independent calls: one cell runs them together and keeps every failure in its result.",
|
|
144
|
-
codex: "Route a step's independent calls through one eval cell and inspect every result; a direct tool call is right when one call is sufficient.",
|
|
145
|
-
gpt: "Use eval to batch a step's independent tool calls in one cell and inspect every result; long cells detach on their own and notify on completion, so do not poll.",
|
|
146
|
-
kimi: "Put a step's independent calls into one eval cell with parallel(thunks) and keep every failed item in the result.",
|
|
147
|
-
};
|
|
148
|
-
|
|
149
127
|
function renderTemplate(template: string, context: Context): string {
|
|
150
128
|
let index = 0;
|
|
151
129
|
const [rendered, nextIndex] = renderUntil(template, context, index, []);
|