@vincemakes/kiso-core 0.1.26 → 0.1.28
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 +0 -1
- package/dist/index.js +0 -1
- package/dist/tools/registry.js +22 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ export * from "./kernel/mode.js";
|
|
|
8
8
|
export * from "./kernel/permission.js";
|
|
9
9
|
export * from "./kernel/loop.js";
|
|
10
10
|
export * from "./kernel/compaction.js";
|
|
11
|
-
export * from "./kernel/summarize.js";
|
|
12
11
|
export * from "./kernel/project.js";
|
|
13
12
|
export * from "./kernel/ledger.js";
|
|
14
13
|
export * from "./governance/delivery.js";
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,6 @@ export * from "./kernel/mode.js";
|
|
|
8
8
|
export * from "./kernel/permission.js";
|
|
9
9
|
export * from "./kernel/loop.js";
|
|
10
10
|
export * from "./kernel/compaction.js";
|
|
11
|
-
export * from "./kernel/summarize.js";
|
|
12
11
|
export * from "./kernel/project.js";
|
|
13
12
|
export * from "./kernel/ledger.js";
|
|
14
13
|
export * from "./governance/delivery.js";
|
package/dist/tools/registry.js
CHANGED
|
@@ -47,7 +47,28 @@ export class ToolRegistry {
|
|
|
47
47
|
return undefined;
|
|
48
48
|
}
|
|
49
49
|
list() {
|
|
50
|
-
|
|
50
|
+
// The registered map WINS a name collision against a live source —
|
|
51
|
+
// the same rule get()/has() already follow, applied here too
|
|
52
|
+
// (0.1.27 失格调查: the agent eagerly registers a sync extension's
|
|
53
|
+
// tools AND registers its live source — a skills/subagent/MCP status
|
|
54
|
+
// tool appeared twice in toSpecs() and the real API answered
|
|
55
|
+
// "400 Tool names must be unique"; the identity is the same object,
|
|
56
|
+
// so the dedup changes nothing behaviorally).
|
|
57
|
+
const seen = new Set();
|
|
58
|
+
const out = [];
|
|
59
|
+
for (const t of this.#tools.values()) {
|
|
60
|
+
seen.add(t.name);
|
|
61
|
+
out.push(t);
|
|
62
|
+
}
|
|
63
|
+
for (const src of this.#live) {
|
|
64
|
+
for (const t of src()) {
|
|
65
|
+
if (!seen.has(t.name)) {
|
|
66
|
+
seen.add(t.name);
|
|
67
|
+
out.push(t);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return out;
|
|
51
72
|
}
|
|
52
73
|
has(name) {
|
|
53
74
|
if (this.#tools.has(name))
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vincemakes/kiso-core",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "kiso(
|
|
3
|
+
"version": "0.1.28",
|
|
4
|
+
"description": "kiso(基礎) core — protocol, event log, loop, hooks, modes, permissions, compaction, delivery truth. The 2,000-line kernel at the bottom of the kiso framework.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"exports": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"openai"
|
|
34
34
|
],
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@vincemakes/kiso-evals": "0.1.
|
|
36
|
+
"@vincemakes/kiso-evals": "0.1.28",
|
|
37
37
|
"@types/node": "^26.1.2",
|
|
38
38
|
"typescript": "^5.7.2",
|
|
39
39
|
"vitest": "^3.0.0"
|