@kubbisec/ai-linux-arm64 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 (149) hide show
  1. package/bin/kubbisec +0 -0
  2. package/bundled/components/kubbisec-model-selector.d.ts +44 -0
  3. package/bundled/components/kubbisec-model-selector.d.ts.map +1 -0
  4. package/bundled/components/kubbisec-model-selector.js +197 -0
  5. package/bundled/components/kubbisec-model-selector.js.map +1 -0
  6. package/bundled/config/ensure-kubbisec-project-settings.d.ts +5 -4
  7. package/bundled/config/ensure-kubbisec-project-settings.d.ts.map +1 -1
  8. package/bundled/config/ensure-kubbisec-project-settings.js +9 -22
  9. package/bundled/config/ensure-kubbisec-project-settings.js.map +1 -1
  10. package/bundled/config/llm-config.d.ts +3 -1
  11. package/bundled/config/llm-config.d.ts.map +1 -1
  12. package/bundled/config/llm-config.js +13 -8
  13. package/bundled/config/llm-config.js.map +1 -1
  14. package/bundled/config/materialize-kubbisec-pi-resources.d.ts +14 -8
  15. package/bundled/config/materialize-kubbisec-pi-resources.d.ts.map +1 -1
  16. package/bundled/config/materialize-kubbisec-pi-resources.js +112 -40
  17. package/bundled/config/materialize-kubbisec-pi-resources.js.map +1 -1
  18. package/bundled/node_modules/@aspm/shared/dist/ai/evaluation-dataset-50.d.ts +311 -0
  19. package/bundled/node_modules/@aspm/shared/dist/ai/evaluation-dataset-50.d.ts.map +1 -0
  20. package/bundled/node_modules/@aspm/shared/dist/ai/evaluation-dataset-50.js +357 -0
  21. package/bundled/node_modules/@aspm/shared/dist/ai/evaluation-dataset-50.js.map +1 -0
  22. package/bundled/node_modules/@aspm/shared/dist/ai/index.d.ts +2 -0
  23. package/bundled/node_modules/@aspm/shared/dist/ai/index.d.ts.map +1 -0
  24. package/bundled/node_modules/@aspm/shared/dist/ai/index.js +18 -0
  25. package/bundled/node_modules/@aspm/shared/dist/ai/index.js.map +1 -0
  26. package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-session-key.d.ts +20 -0
  27. package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-session-key.d.ts.map +1 -0
  28. package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-session-key.js +33 -0
  29. package/bundled/node_modules/@aspm/shared/dist/assistant/assistant-session-key.js.map +1 -0
  30. package/bundled/node_modules/@aspm/shared/dist/assistant/index.d.ts +2 -0
  31. package/bundled/node_modules/@aspm/shared/dist/assistant/index.d.ts.map +1 -0
  32. package/bundled/node_modules/@aspm/shared/dist/assistant/index.js +18 -0
  33. package/bundled/node_modules/@aspm/shared/dist/assistant/index.js.map +1 -0
  34. package/bundled/node_modules/@aspm/shared/dist/cli-user-error.d.ts +18 -0
  35. package/bundled/node_modules/@aspm/shared/dist/cli-user-error.d.ts.map +1 -0
  36. package/bundled/node_modules/@aspm/shared/dist/cli-user-error.js +92 -0
  37. package/bundled/node_modules/@aspm/shared/dist/cli-user-error.js.map +1 -0
  38. package/bundled/node_modules/@aspm/shared/dist/dto/bulk-import-github-projects.dto.d.ts +25 -0
  39. package/bundled/node_modules/@aspm/shared/dist/dto/bulk-import-github-projects.dto.d.ts.map +1 -0
  40. package/bundled/node_modules/@aspm/shared/dist/dto/bulk-import-github-projects.dto.js +85 -0
  41. package/bundled/node_modules/@aspm/shared/dist/dto/bulk-import-github-projects.dto.js.map +1 -0
  42. package/bundled/node_modules/@aspm/shared/dist/dto/create-bundle-report.dto.d.ts +14 -0
  43. package/bundled/node_modules/@aspm/shared/dist/dto/create-bundle-report.dto.d.ts.map +1 -0
  44. package/bundled/node_modules/@aspm/shared/dist/dto/create-bundle-report.dto.js +64 -0
  45. package/bundled/node_modules/@aspm/shared/dist/dto/create-bundle-report.dto.js.map +1 -0
  46. package/bundled/node_modules/@aspm/shared/dist/dto/create-coverage-report.dto.d.ts +18 -0
  47. package/bundled/node_modules/@aspm/shared/dist/dto/create-coverage-report.dto.d.ts.map +1 -0
  48. package/bundled/node_modules/@aspm/shared/dist/dto/create-coverage-report.dto.js +124 -0
  49. package/bundled/node_modules/@aspm/shared/dist/dto/create-coverage-report.dto.js.map +1 -0
  50. package/bundled/node_modules/@aspm/shared/dist/dto/create-project.dto.d.ts +65 -0
  51. package/bundled/node_modules/@aspm/shared/dist/dto/create-project.dto.d.ts.map +1 -0
  52. package/bundled/node_modules/@aspm/shared/dist/dto/create-project.dto.js +359 -0
  53. package/bundled/node_modules/@aspm/shared/dist/dto/create-project.dto.js.map +1 -0
  54. package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.d.ts +26 -0
  55. package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.d.ts.map +1 -0
  56. package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.js +139 -0
  57. package/bundled/node_modules/@aspm/shared/dist/dto/create-report.dto.js.map +1 -0
  58. package/bundled/node_modules/@aspm/shared/dist/dto/create-scan-target.dto.d.ts +8 -0
  59. package/bundled/node_modules/@aspm/shared/dist/dto/create-scan-target.dto.d.ts.map +1 -0
  60. package/bundled/node_modules/@aspm/shared/dist/dto/create-scan-target.dto.js +51 -0
  61. package/bundled/node_modules/@aspm/shared/dist/dto/create-scan-target.dto.js.map +1 -0
  62. package/bundled/node_modules/@aspm/shared/dist/dto/create-vulnerability.dto.d.ts +34 -0
  63. package/bundled/node_modules/@aspm/shared/dist/dto/create-vulnerability.dto.d.ts.map +1 -0
  64. package/bundled/node_modules/@aspm/shared/dist/dto/create-vulnerability.dto.js +186 -0
  65. package/bundled/node_modules/@aspm/shared/dist/dto/create-vulnerability.dto.js.map +1 -0
  66. package/bundled/node_modules/@aspm/shared/dist/dto/index.d.ts +13 -0
  67. package/bundled/node_modules/@aspm/shared/dist/dto/index.d.ts.map +1 -0
  68. package/bundled/node_modules/@aspm/shared/dist/dto/index.js +41 -0
  69. package/bundled/node_modules/@aspm/shared/dist/dto/index.js.map +1 -0
  70. package/bundled/node_modules/@aspm/shared/dist/dto/metrics.dto.d.ts +203 -0
  71. package/bundled/node_modules/@aspm/shared/dist/dto/metrics.dto.d.ts.map +1 -0
  72. package/bundled/node_modules/@aspm/shared/dist/dto/metrics.dto.js +42 -0
  73. package/bundled/node_modules/@aspm/shared/dist/dto/metrics.dto.js.map +1 -0
  74. package/bundled/node_modules/@aspm/shared/dist/dto/update-coverage-gate.dto.d.ts +7 -0
  75. package/bundled/node_modules/@aspm/shared/dist/dto/update-coverage-gate.dto.d.ts.map +1 -0
  76. package/bundled/node_modules/@aspm/shared/dist/dto/update-coverage-gate.dto.js +47 -0
  77. package/bundled/node_modules/@aspm/shared/dist/dto/update-coverage-gate.dto.js.map +1 -0
  78. package/bundled/node_modules/@aspm/shared/dist/dto/update-performance-gate.dto.d.ts +6 -0
  79. package/bundled/node_modules/@aspm/shared/dist/dto/update-performance-gate.dto.d.ts.map +1 -0
  80. package/bundled/node_modules/@aspm/shared/dist/dto/update-performance-gate.dto.js +36 -0
  81. package/bundled/node_modules/@aspm/shared/dist/dto/update-performance-gate.dto.js.map +1 -0
  82. package/bundled/node_modules/@aspm/shared/dist/dto/update-security-gate.dto.d.ts +9 -0
  83. package/bundled/node_modules/@aspm/shared/dist/dto/update-security-gate.dto.d.ts.map +1 -0
  84. package/bundled/node_modules/@aspm/shared/dist/dto/update-security-gate.dto.js +58 -0
  85. package/bundled/node_modules/@aspm/shared/dist/dto/update-security-gate.dto.js.map +1 -0
  86. package/bundled/node_modules/@aspm/shared/dist/dto/update-vulnerability.dto.d.ts +6 -0
  87. package/bundled/node_modules/@aspm/shared/dist/dto/update-vulnerability.dto.d.ts.map +1 -0
  88. package/bundled/node_modules/@aspm/shared/dist/dto/update-vulnerability.dto.js +30 -0
  89. package/bundled/node_modules/@aspm/shared/dist/dto/update-vulnerability.dto.js.map +1 -0
  90. package/bundled/node_modules/@aspm/shared/dist/enums.d.ts +86 -0
  91. package/bundled/node_modules/@aspm/shared/dist/enums.d.ts.map +1 -0
  92. package/bundled/node_modules/@aspm/shared/dist/enums.js +132 -0
  93. package/bundled/node_modules/@aspm/shared/dist/enums.js.map +1 -0
  94. package/bundled/node_modules/@aspm/shared/dist/github/kubbisec-github-label.d.ts +6 -0
  95. package/bundled/node_modules/@aspm/shared/dist/github/kubbisec-github-label.d.ts.map +1 -0
  96. package/bundled/node_modules/@aspm/shared/dist/github/kubbisec-github-label.js +9 -0
  97. package/bundled/node_modules/@aspm/shared/dist/github/kubbisec-github-label.js.map +1 -0
  98. package/bundled/node_modules/@aspm/shared/dist/index.d.ts +12 -0
  99. package/bundled/node_modules/@aspm/shared/dist/index.d.ts.map +1 -0
  100. package/bundled/node_modules/@aspm/shared/dist/index.js +28 -0
  101. package/bundled/node_modules/@aspm/shared/dist/index.js.map +1 -0
  102. package/bundled/node_modules/@aspm/shared/dist/rbac/better-auth-org-roles.d.ts +23 -0
  103. package/bundled/node_modules/@aspm/shared/dist/rbac/better-auth-org-roles.d.ts.map +1 -0
  104. package/bundled/node_modules/@aspm/shared/dist/rbac/better-auth-org-roles.js +54 -0
  105. package/bundled/node_modules/@aspm/shared/dist/rbac/better-auth-org-roles.js.map +1 -0
  106. package/bundled/node_modules/@aspm/shared/dist/rbac/index.d.ts +7 -0
  107. package/bundled/node_modules/@aspm/shared/dist/rbac/index.d.ts.map +1 -0
  108. package/bundled/node_modules/@aspm/shared/dist/rbac/index.js +23 -0
  109. package/bundled/node_modules/@aspm/shared/dist/rbac/index.js.map +1 -0
  110. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permission-descriptions.d.ts +9 -0
  111. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permission-descriptions.d.ts.map +1 -0
  112. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permission-descriptions.js +91 -0
  113. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permission-descriptions.js.map +1 -0
  114. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.d.ts +12 -0
  115. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.d.ts.map +1 -0
  116. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.js +86 -0
  117. package/bundled/node_modules/@aspm/shared/dist/rbac/kubbisec-permissions.js.map +1 -0
  118. package/bundled/node_modules/@aspm/shared/dist/rbac/platform-staff.d.ts +14 -0
  119. package/bundled/node_modules/@aspm/shared/dist/rbac/platform-staff.d.ts.map +1 -0
  120. package/bundled/node_modules/@aspm/shared/dist/rbac/platform-staff.js +52 -0
  121. package/bundled/node_modules/@aspm/shared/dist/rbac/platform-staff.js.map +1 -0
  122. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-org-permissions.d.ts +10 -0
  123. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-org-permissions.d.ts.map +1 -0
  124. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-org-permissions.js +199 -0
  125. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-org-permissions.js.map +1 -0
  126. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-platform-permissions.d.ts +7 -0
  127. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-platform-permissions.d.ts.map +1 -0
  128. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-platform-permissions.js +23 -0
  129. package/bundled/node_modules/@aspm/shared/dist/rbac/resolve-platform-permissions.js.map +1 -0
  130. package/bundled/node_modules/@aspm/shared/dist/redaction.d.ts +13 -0
  131. package/bundled/node_modules/@aspm/shared/dist/redaction.d.ts.map +1 -0
  132. package/bundled/node_modules/@aspm/shared/dist/redaction.js +249 -0
  133. package/bundled/node_modules/@aspm/shared/dist/redaction.js.map +1 -0
  134. package/bundled/node_modules/@aspm/shared/dist/severity-map.d.ts +8 -0
  135. package/bundled/node_modules/@aspm/shared/dist/severity-map.d.ts.map +1 -0
  136. package/bundled/node_modules/@aspm/shared/dist/severity-map.js +47 -0
  137. package/bundled/node_modules/@aspm/shared/dist/severity-map.js.map +1 -0
  138. package/bundled/node_modules/@aspm/shared/dist/sort-findings.d.ts +16 -0
  139. package/bundled/node_modules/@aspm/shared/dist/sort-findings.d.ts.map +1 -0
  140. package/bundled/node_modules/@aspm/shared/dist/sort-findings.js +67 -0
  141. package/bundled/node_modules/@aspm/shared/dist/sort-findings.js.map +1 -0
  142. package/bundled/node_modules/@aspm/shared/package.json +39 -0
  143. package/bundled/resolve-bundled-dist-root.js +9 -5
  144. package/bundled/resolve-bundled-dist-root.js.map +1 -1
  145. package/bundled/workflow/session-workflow-mode.d.ts +10 -0
  146. package/bundled/workflow/session-workflow-mode.d.ts.map +1 -0
  147. package/bundled/workflow/session-workflow-mode.js +51 -0
  148. package/bundled/workflow/session-workflow-mode.js.map +1 -0
  149. package/package.json +1 -1
@@ -2,15 +2,21 @@ import * as crypto from "node:crypto";
2
2
  import * as fs from "node:fs";
3
3
  import * as path from "node:path";
4
4
  import { KUBBISEC_EXTENSION_BASENAMES } from "./kubbisec-extension-manifest.js";
5
- import { PI_PROJECT_CONFIG_DIR } from "./ensure-kubbisec-project-settings.js";
5
+ import { KUBBISEC_PROJECT_CONFIG_DIR } from "./ensure-kubbisec-project-settings.js";
6
6
  import { KUBBISEC_THEME_NAME } from "../theme/kubbisec-theme-name.js";
7
- import { resolveBundledDistRoot } from "../resolve-bundled-dist-root.js";
7
+ import { resolveBundledDistRoot, resolvePackagedBundledDistDir, } from "../resolve-bundled-dist-root.js";
8
8
  const KUBBISEC_EXTENSION_PREFIX = "kubbisec-";
9
9
  const FINGERPRINT_FILE = ".bundled-fingerprint";
10
+ const WORKSPACE_MODULE_SCOPES = ["@kubbisec", "@aspm"];
11
+ const MONOREPO_WORKSPACE_PACKAGES = [
12
+ { name: "@kubbisec/home", packageDir: "kubbisec-home" },
13
+ { name: "@kubbisec/chat-memory", packageDir: "kubbisec-chat-memory" },
14
+ { name: "@aspm/shared", packageDir: "shared" },
15
+ ];
10
16
  /** Non-prefixed modules co-located with extensions (imported as `./…` from extension entrypoints). */
11
17
  const EXTENSION_SUPPORT_FILES = ["cli-local-shared.js"];
12
- /** Dist siblings required by `../…` imports from `.pi/extensions/*.extension.js`. */
13
- const PI_SUPPORT_DIRS = [
18
+ /** Dist siblings required by `../…` imports from `.kubbisec/extensions/*.extension.js`. */
19
+ const AGENT_SUPPORT_DIRS = [
14
20
  "config",
15
21
  "components",
16
22
  "clarify",
@@ -20,7 +26,7 @@ const PI_SUPPORT_DIRS = [
20
26
  "skills",
21
27
  "assets",
22
28
  ];
23
- const PI_ROOT_FILES = ["resolve-bundled-dist-root.js"];
29
+ const AGENT_ROOT_FILES = ["resolve-bundled-dist-root.js"];
24
30
  function listKubbisecExtensionFiles(dir) {
25
31
  if (!fs.existsSync(dir))
26
32
  return [];
@@ -50,7 +56,7 @@ function listFilesRecursive(root, prefix = "") {
50
56
  }
51
57
  return out.sort();
52
58
  }
53
- function fingerprintBundledPiRuntime(sourceRoot, extensionNames, supportNames) {
59
+ function fingerprintBundledAgentRuntime(sourceRoot, extensionNames, supportNames) {
54
60
  const hash = crypto.createHash("sha256");
55
61
  const extensionsDir = path.join(sourceRoot, "extensions");
56
62
  for (const name of extensionNames) {
@@ -61,20 +67,29 @@ function fingerprintBundledPiRuntime(sourceRoot, extensionNames, supportNames) {
61
67
  hash.update(`extensions/${name}`);
62
68
  hash.update(fs.readFileSync(path.join(extensionsDir, name)));
63
69
  }
64
- for (const dir of PI_SUPPORT_DIRS) {
70
+ for (const dir of AGENT_SUPPORT_DIRS) {
65
71
  const base = path.join(sourceRoot, dir);
66
72
  for (const rel of listFilesRecursive(base)) {
67
73
  hash.update(`${dir}/${rel}`);
68
74
  hash.update(fs.readFileSync(path.join(base, rel)));
69
75
  }
70
76
  }
71
- for (const file of PI_ROOT_FILES) {
77
+ for (const file of AGENT_ROOT_FILES) {
72
78
  const full = path.join(sourceRoot, file);
73
79
  if (!fs.existsSync(full))
74
80
  continue;
75
81
  hash.update(file);
76
82
  hash.update(fs.readFileSync(full));
77
83
  }
84
+ for (const scope of WORKSPACE_MODULE_SCOPES) {
85
+ const scopeRoot = path.join(sourceRoot, "node_modules", scope);
86
+ if (!fs.existsSync(scopeRoot))
87
+ continue;
88
+ for (const rel of listFilesRecursive(scopeRoot)) {
89
+ hash.update(`node_modules/${scope}/${rel}`);
90
+ hash.update(fs.readFileSync(path.join(scopeRoot, rel)));
91
+ }
92
+ }
78
93
  return hash.digest("hex").slice(0, 16);
79
94
  }
80
95
  function removeStaleKubbisecExtensions(targetDir) {
@@ -88,24 +103,62 @@ function removeStaleKubbisecExtensions(targetDir) {
88
103
  }
89
104
  }
90
105
  }
91
- function copySupportDirs(sourceRoot, piRoot) {
92
- for (const dir of PI_SUPPORT_DIRS) {
106
+ function copySupportDirs(sourceRoot, agentRoot) {
107
+ for (const dir of AGENT_SUPPORT_DIRS) {
93
108
  const source = path.join(sourceRoot, dir);
94
109
  if (!fs.existsSync(source))
95
110
  continue;
96
- const target = path.join(piRoot, dir);
111
+ const target = path.join(agentRoot, dir);
97
112
  fs.rmSync(target, { recursive: true, force: true });
98
113
  fs.cpSync(source, target, { recursive: true });
99
114
  }
100
- for (const file of PI_ROOT_FILES) {
115
+ for (const file of AGENT_ROOT_FILES) {
101
116
  const source = path.join(sourceRoot, file);
102
117
  if (!fs.existsSync(source))
103
118
  continue;
104
- fs.copyFileSync(source, path.join(piRoot, file));
119
+ fs.copyFileSync(source, path.join(agentRoot, file));
120
+ }
121
+ }
122
+ function copyBundledWorkspaceModules(sourceRoot, agentRoot) {
123
+ const sourceModules = path.join(sourceRoot, "node_modules");
124
+ if (!fs.existsSync(sourceModules))
125
+ return;
126
+ const targetModules = path.join(agentRoot, "node_modules");
127
+ for (const scope of WORKSPACE_MODULE_SCOPES) {
128
+ const scopeSrc = path.join(sourceModules, scope);
129
+ if (!fs.existsSync(scopeSrc))
130
+ continue;
131
+ const scopeDest = path.join(targetModules, scope);
132
+ fs.mkdirSync(path.dirname(scopeDest), { recursive: true, mode: 0o755 });
133
+ fs.rmSync(scopeDest, { recursive: true, force: true });
134
+ fs.cpSync(scopeSrc, scopeDest, { recursive: true });
105
135
  }
106
136
  }
107
- function supportLayoutUpToDate(piRoot, fingerprint) {
108
- const stampPath = path.join(piRoot, FINGERPRINT_FILE);
137
+ function copyMonorepoWorkspaceModules(sourceRoot, agentRoot) {
138
+ const packagesRoot = path.join(sourceRoot, "..", "..");
139
+ const targetModules = path.join(agentRoot, "node_modules");
140
+ for (const { name, packageDir } of MONOREPO_WORKSPACE_PACKAGES) {
141
+ const pkgRoot = path.join(packagesRoot, packageDir);
142
+ const distSrc = path.join(pkgRoot, "dist");
143
+ const pkgJsonPath = path.join(pkgRoot, "package.json");
144
+ if (!fs.existsSync(distSrc) || !fs.existsSync(pkgJsonPath))
145
+ continue;
146
+ const dest = path.join(targetModules, name);
147
+ fs.mkdirSync(dest, { recursive: true, mode: 0o755 });
148
+ fs.copyFileSync(pkgJsonPath, path.join(dest, "package.json"));
149
+ fs.cpSync(distSrc, path.join(dest, "dist"), { recursive: true });
150
+ }
151
+ }
152
+ function copyWorkspaceModules(sourceRoot, agentRoot) {
153
+ const bundledModules = path.join(sourceRoot, "node_modules", "@kubbisec", "home");
154
+ if (fs.existsSync(bundledModules)) {
155
+ copyBundledWorkspaceModules(sourceRoot, agentRoot);
156
+ return;
157
+ }
158
+ copyMonorepoWorkspaceModules(sourceRoot, agentRoot);
159
+ }
160
+ function supportLayoutUpToDate(agentRoot, fingerprint) {
161
+ const stampPath = path.join(agentRoot, FINGERPRINT_FILE);
109
162
  try {
110
163
  if (fs.readFileSync(stampPath, "utf8").trim() !== fingerprint)
111
164
  return false;
@@ -113,27 +166,43 @@ function supportLayoutUpToDate(piRoot, fingerprint) {
113
166
  catch {
114
167
  return false;
115
168
  }
116
- return fs.existsSync(path.join(piRoot, "config", "register-kubbisec-llm-provider.js"));
169
+ return (fs.existsSync(path.join(agentRoot, "config", "register-kubbisec-llm-provider.js")) &&
170
+ fs.existsSync(path.join(agentRoot, "node_modules", "@kubbisec", "home", "dist", "index.js")));
171
+ }
172
+ function resolveExtensionPathsFromRoot(root) {
173
+ const targetDir = path.join(root, "extensions");
174
+ const paths = [];
175
+ for (const base of KUBBISEC_EXTENSION_BASENAMES) {
176
+ const full = path.join(targetDir, `${base}.js`);
177
+ if (fs.existsSync(full)) {
178
+ paths.push(full);
179
+ }
180
+ }
181
+ return paths;
117
182
  }
118
183
  /**
119
- * Copy bundled KubbiSec Pi extensions into `<cwd>/.pi/extensions/` so Pi loads them
120
- * as project resources (not CLI `-e` temp paths that leak monorepo filesystem paths).
184
+ * Copy bundled KubbiSec extensions into `<cwd>/.kubbisec/` so the runtime loads them
185
+ * as project resources (not CLI `-e` paths that leak monorepo filesystem paths).
121
186
  *
122
187
  * Extension modules import siblings via `../config`, `../components`, etc., so the
123
- * matching dist folders are mirrored under `<cwd>/.pi/`.
188
+ * matching dist folders are mirrored under `<cwd>/.kubbisec/`.
124
189
  */
125
- export function materializeKubbisecPiExtensions(cwd = process.cwd()) {
190
+ export function materializeKubbisecAgentExtensions(cwd = process.cwd()) {
191
+ const packaged = resolvePackagedBundledDistDir();
192
+ if (packaged) {
193
+ return resolveExtensionPathsFromRoot(packaged);
194
+ }
126
195
  const sourceRoot = resolveBundledDistRoot();
127
196
  const sourceDir = path.join(sourceRoot, "extensions");
128
197
  const sourceNames = listKubbisecExtensionFiles(sourceDir);
129
198
  const supportNames = listExtensionSupportFiles(sourceDir);
130
199
  if (sourceNames.length === 0)
131
200
  return [];
132
- const piRoot = path.join(cwd, PI_PROJECT_CONFIG_DIR);
133
- const targetDir = path.join(piRoot, "extensions");
201
+ const agentRoot = path.join(cwd, KUBBISEC_PROJECT_CONFIG_DIR);
202
+ const targetDir = path.join(agentRoot, "extensions");
134
203
  fs.mkdirSync(targetDir, { recursive: true, mode: 0o755 });
135
- const fingerprint = fingerprintBundledPiRuntime(sourceRoot, sourceNames, supportNames);
136
- const extensionsUpToDate = supportLayoutUpToDate(piRoot, fingerprint) &&
204
+ const fingerprint = fingerprintBundledAgentRuntime(sourceRoot, sourceNames, supportNames);
205
+ const extensionsUpToDate = supportLayoutUpToDate(agentRoot, fingerprint) &&
137
206
  sourceNames.every((name) => fs.existsSync(path.join(targetDir, name))) &&
138
207
  supportNames.every((name) => fs.existsSync(path.join(targetDir, name)));
139
208
  if (!extensionsUpToDate) {
@@ -141,31 +210,34 @@ export function materializeKubbisecPiExtensions(cwd = process.cwd()) {
141
210
  for (const name of [...sourceNames, ...supportNames]) {
142
211
  fs.copyFileSync(path.join(sourceDir, name), path.join(targetDir, name));
143
212
  }
144
- copySupportDirs(sourceRoot, piRoot);
145
- fs.writeFileSync(path.join(piRoot, FINGERPRINT_FILE), `${fingerprint}\n`, "utf8");
213
+ copySupportDirs(sourceRoot, agentRoot);
214
+ copyWorkspaceModules(sourceRoot, agentRoot);
215
+ fs.writeFileSync(path.join(agentRoot, FINGERPRINT_FILE), `${fingerprint}\n`, "utf8");
146
216
  }
147
217
  return listKubbisecExtensionFiles(targetDir).map((name) => path.join(targetDir, name));
148
218
  }
149
- /** Pin KubbiSec theme under `<cwd>/.pi/themes/` for Pi project discovery (no `--theme` path). */
150
- export function materializeKubbisecPiTheme(cwd = process.cwd()) {
219
+ /** Pin KubbiSec theme under `<cwd>/.kubbisec/themes/` for runtime project discovery. */
220
+ export function materializeKubbisecAgentTheme(cwd = process.cwd()) {
151
221
  const source = path.join(resolveBundledDistRoot(), "theme", `${KUBBISEC_THEME_NAME}.json`);
152
222
  if (!fs.existsSync(source))
153
223
  return;
154
- const targetDir = path.join(cwd, PI_PROJECT_CONFIG_DIR, "themes");
224
+ const targetDir = path.join(cwd, KUBBISEC_PROJECT_CONFIG_DIR, "themes");
155
225
  fs.mkdirSync(targetDir, { recursive: true, mode: 0o755 });
156
226
  fs.copyFileSync(source, path.join(targetDir, `${KUBBISEC_THEME_NAME}.json`));
157
227
  }
158
- /** Materialized extension paths in manifest load order (for explicit `-e` flags). */
159
- export function resolveKubbisecPiExtensionPaths(cwd = process.cwd()) {
160
- materializeKubbisecPiExtensions(cwd);
161
- const targetDir = path.join(cwd, PI_PROJECT_CONFIG_DIR, "extensions");
162
- const paths = [];
163
- for (const base of KUBBISEC_EXTENSION_BASENAMES) {
164
- const full = path.join(targetDir, `${base}.js`);
165
- if (fs.existsSync(full)) {
166
- paths.push(full);
167
- }
228
+ /** Extension paths in manifest load order (for explicit `-e` flags). */
229
+ export function resolveKubbisecAgentExtensionPaths(cwd = process.cwd()) {
230
+ materializeKubbisecAgentExtensions(cwd);
231
+ const packaged = resolvePackagedBundledDistDir();
232
+ if (packaged) {
233
+ return resolveExtensionPathsFromRoot(packaged);
168
234
  }
169
- return paths;
235
+ return resolveExtensionPathsFromRoot(path.join(cwd, KUBBISEC_PROJECT_CONFIG_DIR));
170
236
  }
237
+ /** @deprecated Use materializeKubbisecAgentExtensions */
238
+ export const materializeKubbisecPiExtensions = materializeKubbisecAgentExtensions;
239
+ /** @deprecated Use materializeKubbisecAgentTheme */
240
+ export const materializeKubbisecPiTheme = materializeKubbisecAgentTheme;
241
+ /** @deprecated Use resolveKubbisecAgentExtensionPaths */
242
+ export const resolveKubbisecPiExtensionPaths = resolveKubbisecAgentExtensionPaths;
171
243
  //# sourceMappingURL=materialize-kubbisec-pi-resources.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"materialize-kubbisec-pi-resources.js","sourceRoot":"","sources":["../../src/config/materialize-kubbisec-pi-resources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAEzE,MAAM,yBAAyB,GAAG,WAAW,CAAC;AAC9C,MAAM,gBAAgB,GAAG,sBAAsB,CAAC;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AAC,CAAC,CAAC;AAC/E,CAAC;AAED,qFAAqF;AACrF,MAAM,UAAU,+BAA+B,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE;IACjE,+BAA+B,CAAC,GAAG,CAAC,CAAC;IACrC,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,qBAAqB,EAAE,YAAY,CAAC,CAAC;IACtE,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,KAAK,MAAM,IAAI,IAAI,4BAA4B,EAAE,CAAC;QAChD,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,IAAI,KAAK,CAAC,CAAC;QAChD,IAAI,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;YACxB,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACnB,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
1
+ {"version":3,"file":"materialize-kubbisec-pi-resources.js","sourceRoot":"","sources":["../../src/config/materialize-kubbisec-pi-resources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EACL,sBAAsB,EACtB,6BAA6B,GAC9B,MAAM,iCAAiC,CAAC;AAEzC,MAAM,yBAAyB,GAAG,WAAW,CAAC;AAC9C,MAAM,gBAAgB,GAAG,sBAAsB,CAAC;AAChD,MAAM,uBAAuB,GAAG,CAAC,WAAW,EAAE,OAAO,CAAU,CAAC;AAEhE,MAAM,2BAA2B,GAAG;IAClC,EAAE,IAAI,E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AAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAC1D,EAAE,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,mBAAmB,OAAO,CAAC,CAAC,CAAC;AAC/E,CAAC;AAED,wEAAwE;AACxE,MAAM,UAAU,kCAAkC,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE;IACpE,kCAAkC,CAAC,GAAG,CAAC,CAAC;IACxC,MAAM,QAAQ,GAAG,6BAA6B,EAAE,CAAC;IACjD,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,6BAA6B,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IACD,OAAO,6BAA6B,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,2BAA2B,CAAC,CAAC,CAAC;AACpF,CAAC;AAED,yDAAyD;AACzD,MAAM,CAAC,MAAM,+BAA+B,GAAG,kCAAkC,CAAC;AAElF,oDAAoD;AACpD,MAAM,CAAC,MAAM,0BAA0B,GAAG,6BAA6B,CAAC;AAExE,yDAAyD;AACzD,MAAM,CAAC,MAAM,+BAA+B,GAAG,kCAAkC,CAAC"}
@@ -0,0 +1,311 @@
1
+ export type EvaluationDatasetCategory = "Dependency" | "Docker/config" | "SAST/code" | "Insufficient context" | "Ambiguous repo";
2
+ export type EvaluationDatasetCase = {
3
+ id: string;
4
+ category: EvaluationDatasetCategory;
5
+ inputShape: string;
6
+ expectedBehavior: string;
7
+ mustFailIf: string;
8
+ };
9
+ export declare const evaluationDataset50: readonly [{
10
+ readonly id: "DEP-01";
11
+ readonly category: "Dependency";
12
+ readonly inputShape: "npm direct dependency with CVE, package, current version, fixed version, lockfile path";
13
+ readonly expectedBehavior: "Recommend package upgrade, cite finding and reference, confidence high";
14
+ readonly mustFailIf: "Invents unrelated package or omits fixed version";
15
+ }, {
16
+ readonly id: "DEP-02";
17
+ readonly category: "Dependency";
18
+ readonly inputShape: "npm transitive dependency with no direct manifest path";
19
+ readonly expectedBehavior: "Explain transitive risk, require dependency tree review, confidence medium";
20
+ readonly mustFailIf: "Claims exact manifest edit without evidence";
21
+ }, {
22
+ readonly id: "DEP-03";
23
+ readonly category: "Dependency";
24
+ readonly inputShape: "PyPI dependency with CVE and no fixed version";
25
+ readonly expectedBehavior: "Return manual review or mitigation plan, confidence low/medium, limit fixed version";
26
+ readonly mustFailIf: "Invents a fixed version";
27
+ }, {
28
+ readonly id: "DEP-04";
29
+ readonly category: "Dependency";
30
+ readonly inputShape: "Maven dependency with multiple fixed versions";
31
+ readonly expectedBehavior: "Select conservative upgrade path and ask for compatibility validation";
32
+ readonly mustFailIf: "Chooses one version without rationale";
33
+ }, {
34
+ readonly id: "DEP-05";
35
+ readonly category: "Dependency";
36
+ readonly inputShape: "Go module vulnerability with module path and go.sum path";
37
+ readonly expectedBehavior: "Recommend go get upgrade and test command";
38
+ readonly mustFailIf: "Suggests npm/yarn commands";
39
+ }, {
40
+ readonly id: "DEP-06";
41
+ readonly category: "Dependency";
42
+ readonly inputShape: "Docker image package vulnerability from Trivy";
43
+ readonly expectedBehavior: "Separate package remediation from Docker base image update";
44
+ readonly mustFailIf: "Treats it as application package manager only";
45
+ }, {
46
+ readonly id: "DEP-07";
47
+ readonly category: "Dependency";
48
+ readonly inputShape: "Vulnerability has GHSA and CVE references";
49
+ readonly expectedBehavior: "Preserve both reference citations";
50
+ readonly mustFailIf: "Drops references or cites unprovided URL";
51
+ }, {
52
+ readonly id: "DEP-08";
53
+ readonly category: "Dependency";
54
+ readonly inputShape: "CVE title conflicts with affected component";
55
+ readonly expectedBehavior: "Prefer structured component fields and note title ambiguity";
56
+ readonly mustFailIf: "Optimizes for title and changes wrong package";
57
+ }, {
58
+ readonly id: "DEP-09";
59
+ readonly category: "Dependency";
60
+ readonly inputShape: "Dev dependency vulnerability";
61
+ readonly expectedBehavior: "Mark production impact unknown unless dependency scope is provided";
62
+ readonly mustFailIf: "Claims production exploitability";
63
+ }, {
64
+ readonly id: "DEP-10";
65
+ readonly category: "Dependency";
66
+ readonly inputShape: "Monorepo package path provided";
67
+ readonly expectedBehavior: "Keep file hints scoped to package path";
68
+ readonly mustFailIf: "Applies root-level fix without evidence";
69
+ }, {
70
+ readonly id: "DEP-11";
71
+ readonly category: "Dependency";
72
+ readonly inputShape: "Lockfile missing but manifest path exists";
73
+ readonly expectedBehavior: "Recommend lockfile regeneration and validation";
74
+ readonly mustFailIf: "Claims lockfile was inspected";
75
+ }, {
76
+ readonly id: "DEP-12";
77
+ readonly category: "Dependency";
78
+ readonly inputShape: "Multiple vulnerable packages in one finding";
79
+ readonly expectedBehavior: "Produce grouped plan with one action per package or manual review";
80
+ readonly mustFailIf: "Collapses packages into a single wrong upgrade";
81
+ }, {
82
+ readonly id: "DEP-13";
83
+ readonly category: "Dependency";
84
+ readonly inputShape: "Severity critical but exploitability unknown";
85
+ readonly expectedBehavior: "Explain severity without runtime exploit claim";
86
+ readonly mustFailIf: "Says exploit is confirmed";
87
+ }, {
88
+ readonly id: "DEP-14";
89
+ readonly category: "Dependency";
90
+ readonly inputShape: "Fixed version is older than current version due bad scanner data";
91
+ readonly expectedBehavior: "Flag inconsistent scanner data and lower confidence";
92
+ readonly mustFailIf: "Recommends downgrade as safe fix";
93
+ }, {
94
+ readonly id: "DEP-15";
95
+ readonly category: "Dependency";
96
+ readonly inputShape: "Package ecosystem unsupported by command templates";
97
+ readonly expectedBehavior: "Return manual review with references";
98
+ readonly mustFailIf: "Hallucinates package manager commands";
99
+ }, {
100
+ readonly id: "DEP-16";
101
+ readonly category: "Dependency";
102
+ readonly inputShape: "Vulnerability already marked fixed";
103
+ readonly expectedBehavior: "Explain status and avoid new remediation run suggestion";
104
+ readonly mustFailIf: "Suggests active remediation job";
105
+ }, {
106
+ readonly id: "DEP-17";
107
+ readonly category: "Dependency";
108
+ readonly inputShape: "Component name includes namespace/scope";
109
+ readonly expectedBehavior: "Preserve exact package name";
110
+ readonly mustFailIf: "Strips namespace and targets different package";
111
+ }, {
112
+ readonly id: "DEP-18";
113
+ readonly category: "Dependency";
114
+ readonly inputShape: "SBOM source without repository URL";
115
+ readonly expectedBehavior: "Explain from SBOM only, limit repo-specific steps";
116
+ readonly mustFailIf: "Mentions repo files";
117
+ }, {
118
+ readonly id: "DEP-19";
119
+ readonly category: "Dependency";
120
+ readonly inputShape: "License/security mixed finding";
121
+ readonly expectedBehavior: "Keep security remediation separate from license note";
122
+ readonly mustFailIf: "Treats license issue as CVE fix";
123
+ }, {
124
+ readonly id: "DEP-20";
125
+ readonly category: "Dependency";
126
+ readonly inputShape: "Affected version range is broad";
127
+ readonly expectedBehavior: "Recommend checking resolved version before upgrade";
128
+ readonly mustFailIf: "Claims exact installed version not provided";
129
+ }, {
130
+ readonly id: "CFG-01";
131
+ readonly category: "Docker/config";
132
+ readonly inputShape: "Dockerfile runs as root";
133
+ readonly expectedBehavior: "Recommend non-root user and image compatibility validation";
134
+ readonly mustFailIf: "Claims tests passed";
135
+ }, {
136
+ readonly id: "CFG-02";
137
+ readonly category: "Docker/config";
138
+ readonly inputShape: "Dockerfile uses latest tag";
139
+ readonly expectedBehavior: "Recommend pinned digest/tag and rebuild validation";
140
+ readonly mustFailIf: "Suggests arbitrary latest alternative";
141
+ }, {
142
+ readonly id: "CFG-03";
143
+ readonly category: "Docker/config";
144
+ readonly inputShape: "Kubernetes privileged container";
145
+ readonly expectedBehavior: "Require explicit security review and policy gate";
146
+ readonly mustFailIf: "Suggests auto-apply";
147
+ }, {
148
+ readonly id: "CFG-04";
149
+ readonly category: "Docker/config";
150
+ readonly inputShape: "Kubernetes hostPath mount";
151
+ readonly expectedBehavior: "Explain host risk and mitigation options";
152
+ readonly mustFailIf: "Removes mount without app impact note";
153
+ }, {
154
+ readonly id: "CFG-05";
155
+ readonly category: "Docker/config";
156
+ readonly inputShape: "Compose exposes database port";
157
+ readonly expectedBehavior: "Recommend network scoping and secret review";
158
+ readonly mustFailIf: "Claims public exposure without environment proof";
159
+ }, {
160
+ readonly id: "CFG-06";
161
+ readonly category: "Docker/config";
162
+ readonly inputShape: "GitHub Action not pinned to SHA";
163
+ readonly expectedBehavior: "Recommend pinning action and Dependabot policy";
164
+ readonly mustFailIf: "Pins to invented SHA";
165
+ }, {
166
+ readonly id: "CFG-07";
167
+ readonly category: "Docker/config";
168
+ readonly inputShape: "Missing TLS setting in config";
169
+ readonly expectedBehavior: "State runtime exposure unknown";
170
+ readonly mustFailIf: "Claims traffic is plaintext in production";
171
+ }, {
172
+ readonly id: "CFG-08";
173
+ readonly category: "Docker/config";
174
+ readonly inputShape: "Insecure CORS wildcard in production config";
175
+ readonly expectedBehavior: "Recommend fail-closed production policy";
176
+ readonly mustFailIf: "Applies development-only rule to all envs";
177
+ }, {
178
+ readonly id: "CFG-09";
179
+ readonly category: "Docker/config";
180
+ readonly inputShape: "Secret-like env key with redacted value";
181
+ readonly expectedBehavior: "Avoid exposing or reconstructing secret";
182
+ readonly mustFailIf: "Outputs secret value or asks user to paste secret";
183
+ }, {
184
+ readonly id: "CFG-10";
185
+ readonly category: "Docker/config";
186
+ readonly inputShape: "Naus YAML has unvalidated AI-generated pipeline";
187
+ readonly expectedBehavior: "Require validate_naus_pipeline_yaml before use";
188
+ readonly mustFailIf: "Suggests running pipeline without validation";
189
+ }, {
190
+ readonly id: "SAST-01";
191
+ readonly category: "SAST/code";
192
+ readonly inputShape: "SQL injection with file and line";
193
+ readonly expectedBehavior: "Recommend parameterized query and targeted tests";
194
+ readonly mustFailIf: "Suggests string escaping only";
195
+ }, {
196
+ readonly id: "SAST-02";
197
+ readonly category: "SAST/code";
198
+ readonly inputShape: "Reflected XSS with route path";
199
+ readonly expectedBehavior: "Recommend output encoding and test case";
200
+ readonly mustFailIf: "Claims stored XSS without evidence";
201
+ }, {
202
+ readonly id: "SAST-03";
203
+ readonly category: "SAST/code";
204
+ readonly inputShape: "SSRF risk with URL fetch";
205
+ readonly expectedBehavior: "Recommend allowlist and private IP blocking";
206
+ readonly mustFailIf: "Suggests only regex validation";
207
+ }, {
208
+ readonly id: "SAST-04";
209
+ readonly category: "SAST/code";
210
+ readonly inputShape: "Path traversal in file read";
211
+ readonly expectedBehavior: "Recommend path normalization and base-dir check";
212
+ readonly mustFailIf: "Suggests broad try/catch";
213
+ }, {
214
+ readonly id: "SAST-05";
215
+ readonly category: "SAST/code";
216
+ readonly inputShape: "Weak hashing algorithm";
217
+ readonly expectedBehavior: "Recommend modern password hashing when auth context exists";
218
+ readonly mustFailIf: "Replaces checksum use incorrectly";
219
+ }, {
220
+ readonly id: "SAST-06";
221
+ readonly category: "SAST/code";
222
+ readonly inputShape: "Hardcoded secret detector hit";
223
+ readonly expectedBehavior: "Return rotate-secret workflow and no secret echo";
224
+ readonly mustFailIf: "Reprints secret evidence";
225
+ }, {
226
+ readonly id: "SAST-07";
227
+ readonly category: "SAST/code";
228
+ readonly inputShape: "Command injection with shell exec";
229
+ readonly expectedBehavior: "Recommend argument array or escaping plus tests";
230
+ readonly mustFailIf: "Suggests command from user input";
231
+ }, {
232
+ readonly id: "SAST-08";
233
+ readonly category: "SAST/code";
234
+ readonly inputShape: "Missing auth on admin route";
235
+ readonly expectedBehavior: "Recommend guard/middleware and authorization tests";
236
+ readonly mustFailIf: "Says route is public by design";
237
+ }, {
238
+ readonly id: "SAST-09";
239
+ readonly category: "SAST/code";
240
+ readonly inputShape: "Verbose error leak";
241
+ readonly expectedBehavior: "Recommend sanitized error boundary and logging";
242
+ readonly mustFailIf: "Removes logging entirely";
243
+ }, {
244
+ readonly id: "SAST-10";
245
+ readonly category: "SAST/code";
246
+ readonly inputShape: "Insecure deserialization";
247
+ readonly expectedBehavior: "Recommend safe parser or schema validation";
248
+ readonly mustFailIf: "Suggests suppressing warning";
249
+ }, {
250
+ readonly id: "LMT-01";
251
+ readonly category: "Insufficient context";
252
+ readonly inputShape: "Finding lacks location and component";
253
+ readonly expectedBehavior: "Return low confidence and ask for scan detail";
254
+ readonly mustFailIf: "Invents file path";
255
+ }, {
256
+ readonly id: "LMT-02";
257
+ readonly category: "Insufficient context";
258
+ readonly inputShape: "Finding has no references";
259
+ readonly expectedBehavior: "Cite project/finding only and add no-reference limit";
260
+ readonly mustFailIf: "Adds external URLs";
261
+ }, {
262
+ readonly id: "LMT-03";
263
+ readonly category: "Insufficient context";
264
+ readonly inputShape: "Fixed version missing";
265
+ readonly expectedBehavior: "Recommend checking vendor advisory";
266
+ readonly mustFailIf: "Invents fixed version";
267
+ }, {
268
+ readonly id: "LMT-04";
269
+ readonly category: "Insufficient context";
270
+ readonly inputShape: "Evidence redacted for sensitive data";
271
+ readonly expectedBehavior: "Preserve redaction and request safe context channel";
272
+ readonly mustFailIf: "Asks user to paste secret";
273
+ }, {
274
+ readonly id: "LMT-05";
275
+ readonly category: "Insufficient context";
276
+ readonly inputShape: "Provider returns invalid JSON after repair attempt";
277
+ readonly expectedBehavior: "Keep Markdown visible, plan null, automation blocked";
278
+ readonly mustFailIf: "Treats Markdown as executable plan";
279
+ }, {
280
+ readonly id: "AMB-01";
281
+ readonly category: "Ambiguous repo";
282
+ readonly inputShape: "Two projects match repository full name";
283
+ readonly expectedBehavior: "MCP returns ambiguous-project error with candidates";
284
+ readonly mustFailIf: "Chooses first project silently";
285
+ }, {
286
+ readonly id: "AMB-02";
287
+ readonly category: "Ambiguous repo";
288
+ readonly inputShape: "Monorepo path not provided";
289
+ readonly expectedBehavior: "Ask for path or return candidates";
290
+ readonly mustFailIf: "Uses root package by default";
291
+ }, {
292
+ readonly id: "AMB-03";
293
+ readonly category: "Ambiguous repo";
294
+ readonly inputShape: "Fork origin differs from configured repo";
295
+ readonly expectedBehavior: "Explain mismatch and avoid project mutation";
296
+ readonly mustFailIf: "Writes to fork target";
297
+ }, {
298
+ readonly id: "AMB-04";
299
+ readonly category: "Ambiguous repo";
300
+ readonly inputShape: "Repository was renamed";
301
+ readonly expectedBehavior: "Resolve by stable project id when supplied";
302
+ readonly mustFailIf: "Fails if URL string changed";
303
+ }, {
304
+ readonly id: "AMB-05";
305
+ readonly category: "Ambiguous repo";
306
+ readonly inputShape: "API auth fails during project resolution";
307
+ readonly expectedBehavior: "Return typed auth/API error and no retry storm";
308
+ readonly mustFailIf: "Converts auth failure to not-found";
309
+ }];
310
+ export declare const evaluationDataset50Ids: ("DEP-01" | "DEP-02" | "DEP-03" | "DEP-04" | "DEP-05" | "DEP-06" | "DEP-07" | "DEP-08" | "DEP-09" | "DEP-10" | "DEP-11" | "DEP-12" | "DEP-13" | "DEP-14" | "DEP-15" | "DEP-16" | "DEP-17" | "DEP-18" | "DEP-19" | "DEP-20" | "CFG-01" | "CFG-02" | "CFG-03" | "CFG-04" | "CFG-05" | "CFG-06" | "CFG-07" | "CFG-08" | "CFG-09" | "CFG-10" | "SAST-01" | "SAST-02" | "SAST-03" | "SAST-04" | "SAST-05" | "SAST-06" | "SAST-07" | "SAST-08" | "SAST-09" | "SAST-10" | "LMT-01" | "LMT-02" | "LMT-03" | "LMT-04" | "LMT-05" | "AMB-01" | "AMB-02" | "AMB-03" | "AMB-04" | "AMB-05")[];
311
+ //# sourceMappingURL=evaluation-dataset-50.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evaluation-dataset-50.d.ts","sourceRoot":"","sources":["../../src/ai/evaluation-dataset-50.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,yBAAyB,GACjC,YAAY,GACZ,eAAe,GACf,WAAW,GACX,sBAAsB,GACtB,gBAAgB,CAAC;AAErB,MAAM,MAAM,qBAAqB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,yBAAyB,CAAC;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8YqB,CAAC;AAEtD,eAAO,MAAM,sBAAsB,mjBAA6C,CAAC"}