@vincemakes/kiso-code 0.2.1 → 0.3.0
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/builtin.js +12 -4
- package/dist/index.js +8 -2
- package/dist/state.d.ts +4 -3
- package/dist/state.js +4 -3
- package/package.json +1 -1
package/dist/builtin.js
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* R-D 0.1.45 — the built-in layer: the
|
|
3
|
-
* skills, subagent
|
|
2
|
+
* R-D 0.1.45 — the built-in layer: the three official extensions (mcp,
|
|
3
|
+
* skills, subagent), shipped in the cli package and registered by
|
|
4
4
|
* MODULE IMPORT — never a disk scan (the user layer's loadExtensions stays
|
|
5
5
|
* word-for-word untouched). The cascade, base → top: built-in → user
|
|
6
6
|
* (~/.kiso/extensions) → project (.kiso/extensions, trust-gated).
|
|
7
7
|
*
|
|
8
|
+
* E5 (the composition round, finding E5-F1/F2): the task extension left
|
|
9
|
+
* the default composition — on 13 consecutive real-provider sessions it
|
|
10
|
+
* paid its rent (system:ext:task + tool:task_set on every request) and
|
|
11
|
+
* was never called, not even on the guidance's own designed trigger. It
|
|
12
|
+
* stays an official extension, OPT-IN via the user layer: copy
|
|
13
|
+
* extensions/task/src/kiso-task.mjs into ~/.kiso/extensions/ (a user or
|
|
14
|
+
* project extension named "task" is now a plain extension — no built-in
|
|
15
|
+
* to shadow or collide with).
|
|
16
|
+
*
|
|
8
17
|
* - a user extension may SHADOW a built-in by name — the user's deliberate
|
|
9
18
|
* install wins (a built-in cannot be uninstalled), loudly, and the
|
|
10
19
|
* shadowed built-in leaves the loaded set and the banner;
|
|
@@ -15,9 +24,8 @@
|
|
|
15
24
|
import createMcp from "@vincemakes/kiso-mcp-ext";
|
|
16
25
|
import createSkills from "@vincemakes/kiso-skills-ext";
|
|
17
26
|
import createSubagent from "@vincemakes/kiso-subagent-ext";
|
|
18
|
-
import createTask from "@vincemakes/kiso-task-ext";
|
|
19
27
|
export async function builtInLayer(user, project) {
|
|
20
|
-
const all = await Promise.all([createMcp(), createSkills(), createSubagent()
|
|
28
|
+
const all = await Promise.all([createMcp(), createSkills(), createSubagent()]);
|
|
21
29
|
const shadowed = all.filter((b) => user.some((u) => u.name === b.name));
|
|
22
30
|
for (const s of shadowed) {
|
|
23
31
|
console.error(`[extensions] user extension "${s.name}" shadows the built-in — the built-in is not loaded`);
|
package/dist/index.js
CHANGED
|
@@ -200,8 +200,8 @@ function makeLineInput() {
|
|
|
200
200
|
/** R-D 0.1.45: the `[N extensions: ...]` text — the built-in column, then
|
|
201
201
|
* the user-level names, then the project-level ones marked `project:`.
|
|
202
202
|
* The built-in column is the banner's truthful face of the built-in layer:
|
|
203
|
-
* a fresh install reads `[
|
|
204
|
-
*
|
|
203
|
+
* a fresh install reads `[3 extensions: built-in: mcp, skills, subagent]`
|
|
204
|
+
* with zero disk setup (E5: the task extension is opt-in). */
|
|
205
205
|
function bannerExtensionText() {
|
|
206
206
|
const total = builtInExtensions.length + userExtensions.length + projectExtensions.length;
|
|
207
207
|
if (total === 0)
|
|
@@ -543,6 +543,12 @@ async function main() {
|
|
|
543
543
|
const session = await agent.session({ id });
|
|
544
544
|
bodyLog(`session ${id}\n`);
|
|
545
545
|
extensionsBanner(recentSessions(id, agent));
|
|
546
|
+
// finding E4-1: the same faux resolution the chat/resume cases
|
|
547
|
+
// carry (faux = currentFaux) — pre-patch the initial faux=true
|
|
548
|
+
// was passed here, so ANY provider failure in a bare-command
|
|
549
|
+
// session surfaced as "[faux mode] the scripted model failed:
|
|
550
|
+
// <real error>" (a false accusation of the keyless demo).
|
|
551
|
+
faux = currentFaux;
|
|
546
552
|
await chat(session, faux, input, autoCompactFromEnv());
|
|
547
553
|
break;
|
|
548
554
|
}
|
package/dist/state.d.ts
CHANGED
|
@@ -87,9 +87,10 @@ export declare let currentModelName: string;
|
|
|
87
87
|
export declare function setCurrentModelName(value: string): void;
|
|
88
88
|
/** E1: the extensions loaded by makeAgent — their names feed the banner. */
|
|
89
89
|
export declare let loadedExtensions: readonly KisoExtension[];
|
|
90
|
-
/** R-D 0.1.45: the BUILT-IN layer — the
|
|
91
|
-
* with the cli (module imports, never a disk scan; builtin.ts).
|
|
92
|
-
*
|
|
90
|
+
/** R-D 0.1.45: the BUILT-IN layer — the three default official extensions,
|
|
91
|
+
* shipped with the cli (module imports, never a disk scan; builtin.ts).
|
|
92
|
+
* E5: the task extension is opt-in, not built-in. The banner's marked
|
|
93
|
+
* column; a user extension may shadow a built-in. */
|
|
93
94
|
export declare let builtInExtensions: readonly KisoExtension[];
|
|
94
95
|
/** E1: the USER-level extensions alone — the banner's unmarked part (E3:
|
|
95
96
|
* loadedExtensions later includes the project-level ones too). */
|
package/dist/state.js
CHANGED
|
@@ -78,9 +78,10 @@ export function setCurrentModelName(value) {
|
|
|
78
78
|
}
|
|
79
79
|
/** E1: the extensions loaded by makeAgent — their names feed the banner. */
|
|
80
80
|
export let loadedExtensions = [];
|
|
81
|
-
/** R-D 0.1.45: the BUILT-IN layer — the
|
|
82
|
-
* with the cli (module imports, never a disk scan; builtin.ts).
|
|
83
|
-
*
|
|
81
|
+
/** R-D 0.1.45: the BUILT-IN layer — the three default official extensions,
|
|
82
|
+
* shipped with the cli (module imports, never a disk scan; builtin.ts).
|
|
83
|
+
* E5: the task extension is opt-in, not built-in. The banner's marked
|
|
84
|
+
* column; a user extension may shadow a built-in. */
|
|
84
85
|
export let builtInExtensions = [];
|
|
85
86
|
/** E1: the USER-level extensions alone — the banner's unmarked part (E3:
|
|
86
87
|
* loadedExtensions later includes the project-level ones too). */
|
package/package.json
CHANGED