@vincemakes/kiso-runtime 0.1.10 → 0.1.11

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.
Files changed (2) hide show
  1. package/dist/trust.js +17 -0
  2. package/package.json +5 -5
package/dist/trust.js CHANGED
@@ -42,6 +42,23 @@ export async function projectArtifacts(cwd) {
42
42
  throw err;
43
43
  }
44
44
  const root = await realpath(kisoDir);
45
+ // 发现#10 (P1): when cwd IS the KISO_HOME parent (the user's home
46
+ // directory), <cwd>/.kiso IS the user-level config directory itself —
47
+ // trusting your own configuration is nonsense, and the mcp merge would
48
+ // mirror the same file onto itself and loudly conflict. The home is
49
+ // never a project (KISO_HOME override respected the same way); a
50
+ // stale trust.jsonl grant for the home becomes inert — discovery
51
+ // returns null and never queries it.
52
+ const homeDir = process.env.KISO_HOME ?? join(homedir(), ".kiso");
53
+ let homeRoot = null;
54
+ try {
55
+ homeRoot = await realpath(homeDir);
56
+ }
57
+ catch {
58
+ homeRoot = null; // no home dir yet — nothing to mirror
59
+ }
60
+ if (homeRoot !== null && root === homeRoot)
61
+ return null;
45
62
  const entries = [];
46
63
  for (const f of await readdirOrEmpty(join(root, "extensions"))) {
47
64
  if (!f.endsWith(".mjs"))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincemakes/kiso-runtime",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "kiso runtime — 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.10"
24
+ "@vincemakes/kiso-core": "0.1.11"
25
25
  },
26
26
  "peerDependencies": {
27
- "@vincemakes/kiso-provider-anthropic": "0.1.10",
28
- "@vincemakes/kiso-provider-openai": "0.1.10"
27
+ "@vincemakes/kiso-provider-anthropic": "0.1.11",
28
+ "@vincemakes/kiso-provider-openai": "0.1.11"
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.10",
39
+ "@vincemakes/kiso-evals": "0.1.11",
40
40
  "@types/node": "^26.1.2",
41
41
  "typescript": "^5.7.2",
42
42
  "vitest": "^3.0.0"