@kubbisec/ai-linux-arm64 0.1.21 → 0.1.22
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/bundled/clarify/clarify-gate-state.d.ts +1 -1
- package/bundled/clarify/clarify-gate-state.js +3 -3
- package/bundled/clarify/clarify-gate.d.ts +21 -14
- package/bundled/clarify/clarify-gate.js +118 -111
- package/bundled/clarify/clarify-select-panel.d.ts +16 -9
- package/bundled/clarify/clarify-select-panel.js +65 -67
- package/bundled/clarify/clarify-ui-state.d.ts +12 -10
- package/bundled/clarify/clarify-ui-state.js +26 -26
- package/bundled/clarify/parse-clarify-answer.d.ts +29 -18
- package/bundled/clarify/parse-clarify-answer.js +39 -45
- package/bundled/clarify/question-format.d.ts +34 -23
- package/bundled/clarify/question-format.js +112 -119
- package/bundled/clarify/questionnaire-tool.d.ts +28 -17
- package/bundled/clarify/questionnaire-tool.js +180 -144
- package/bundled/clarify/scope-discovery.d.ts +8 -5
- package/bundled/clarify/scope-discovery.js +102 -110
- package/bundled/clarify/session-questionnaire.d.ts +48 -13
- package/bundled/clarify/session-questionnaire.js +304 -312
- package/bundled/clarify/session-questionnaire.types.d.ts +29 -27
- package/bundled/clarify/session-questionnaire.types.js +10 -10
- package/bundled/components/kubbisec-model-selector.d.ts +47 -34
- package/bundled/components/kubbisec-model-selector.js +187 -177
- package/bundled/config/config.d.ts +6 -6
- package/bundled/config/config.js +55 -55
- package/bundled/config/detect-local-llm-providers.d.ts +26 -16
- package/bundled/config/detect-local-llm-providers.js +130 -142
- package/bundled/config/ensure-kubbisec-project-settings.d.ts +9 -9
- package/bundled/config/ensure-kubbisec-project-settings.js +44 -48
- package/bundled/config/extended-context.d.ts +5 -6
- package/bundled/config/extended-context.js +23 -22
- package/bundled/config/feature-flags.d.ts +10 -2
- package/bundled/config/feature-flags.js +8 -2
- package/bundled/config/format-kubbisec-footer-status.d.ts +1 -1
- package/bundled/config/format-kubbisec-footer-status.js +26 -31
- package/bundled/config/kubbisec-extension-manifest.d.ts +22 -2
- package/bundled/config/kubbisec-extension-manifest.js +20 -20
- package/bundled/config/llm-config-mutations.d.ts +51 -25
- package/bundled/config/llm-config-mutations.js +173 -182
- package/bundled/config/llm-config.d.ts +54 -41
- package/bundled/config/llm-config.js +199 -199
- package/bundled/config/llm-provider-catalog.d.ts +18 -15
- package/bundled/config/llm-provider-catalog.js +45 -46
- package/bundled/config/materialize-kubbisec-pi-resources.d.ts +1 -1
- package/bundled/config/materialize-kubbisec-pi-resources.js +174 -183
- package/bundled/config/register-custom-llm-providers.d.ts +11 -5
- package/bundled/config/register-custom-llm-providers.js +17 -15
- package/bundled/config/register-kubbisec-llm-provider.d.ts +14 -10
- package/bundled/config/register-kubbisec-llm-provider.js +50 -42
- package/bundled/config/resolve-agents-context-file.d.ts +1 -1
- package/bundled/config/resolve-agents-context-file.js +33 -34
- package/bundled/config/resource-budget.d.ts +12 -12
- package/bundled/config/resource-budget.js +28 -28
- package/bundled/config/sync-kubbisec-pi-models.d.ts +6 -3
- package/bundled/config/sync-kubbisec-pi-models.js +58 -58
- package/bundled/copy/cli-reference-index.d.ts +3 -2
- package/bundled/copy/cli-reference-index.js +1 -1
- package/bundled/copy/kubbisec-shell-copy.d.ts +11 -6
- package/bundled/copy/kubbisec-shell-copy.js +1 -1
- package/bundled/extensions/cli-local-shared.d.ts +45 -26
- package/bundled/extensions/cli-local-shared.js +128 -118
- package/bundled/extensions/kubbisec-aspm-local.extension.d.ts +18 -15
- package/bundled/extensions/kubbisec-aspm-local.extension.js +118 -114
- package/bundled/extensions/kubbisec-brand.extension.d.ts +1 -1
- package/bundled/extensions/kubbisec-brand.extension.js +25 -25
- package/bundled/extensions/kubbisec-byok-provider.extension.d.ts +1 -1
- package/bundled/extensions/kubbisec-byok-provider.extension.js +2 -2
- package/bundled/extensions/kubbisec-clarify.extension.d.ts +64 -35
- package/bundled/extensions/kubbisec-clarify.extension.js +323 -305
- package/bundled/extensions/kubbisec-exit.extension.d.ts +1 -1
- package/bundled/extensions/kubbisec-exit.extension.js +29 -32
- package/bundled/extensions/kubbisec-extended-context.extension.d.ts +1 -1
- package/bundled/extensions/kubbisec-extended-context.extension.js +56 -43
- package/bundled/extensions/kubbisec-footer.extension.d.ts +14 -14
- package/bundled/extensions/kubbisec-footer.extension.js +205 -215
- package/bundled/extensions/kubbisec-github-local.extension.d.ts +26 -18
- package/bundled/extensions/kubbisec-github-local.extension.js +123 -116
- package/bundled/extensions/kubbisec-llm-config.extension.d.ts +1 -1
- package/bundled/extensions/kubbisec-llm-config.extension.js +200 -181
- package/bundled/extensions/kubbisec-memory.extension.d.ts +9 -7
- package/bundled/extensions/kubbisec-memory.extension.js +88 -95
- package/bundled/extensions/kubbisec-naus-local.extension.d.ts +18 -15
- package/bundled/extensions/kubbisec-naus-local.extension.js +132 -111
- package/bundled/extensions/kubbisec-platform-tools.extension.d.ts +31 -21
- package/bundled/extensions/kubbisec-platform-tools.extension.js +152 -152
- package/bundled/extensions/kubbisec-runtime-status.extension.d.ts +10 -8
- package/bundled/extensions/kubbisec-runtime-status.extension.js +15 -13
- package/bundled/extensions/kubbisec-scope.extension.d.ts +12 -7
- package/bundled/extensions/kubbisec-scope.extension.js +13 -13
- package/bundled/extensions/kubbisec-skill-mentions.extension.d.ts +27 -16
- package/bundled/extensions/kubbisec-skill-mentions.extension.js +73 -63
- package/bundled/extensions/kubbisec-skill-telemetry.extension.d.ts +2 -3
- package/bundled/extensions/kubbisec-skill-telemetry.extension.js +59 -64
- package/bundled/extensions/kubbisec-theme-lock.extension.d.ts +1 -1
- package/bundled/extensions/kubbisec-theme-lock.extension.js +33 -34
- package/bundled/extensions/kubbisec-ui.extension.d.ts +1 -1
- package/bundled/extensions/kubbisec-ui.extension.js +114 -109
- package/bundled/extensions/kubbisec-workflow.extension.d.ts +20 -18
- package/bundled/extensions/kubbisec-workflow.extension.js +138 -140
- package/bundled/node_modules/@aspm/shared/dist/redaction.test.d.ts +2 -0
- package/bundled/node_modules/@aspm/shared/dist/redaction.test.d.ts.map +1 -0
- package/bundled/node_modules/@aspm/shared/dist/redaction.test.js +626 -0
- package/bundled/node_modules/@aspm/shared/dist/redaction.test.js.map +1 -0
- package/bundled/resolve-bundled-dist-root.js +122 -131
- package/bundled/skills/at-path-mentions.d.ts +1 -1
- package/bundled/skills/at-path-mentions.js +146 -153
- package/bundled/skills/chat-mention-render.d.ts +2 -2
- package/bundled/skills/chat-mention-render.js +121 -126
- package/bundled/skills/chat-mentions.d.ts +17 -8
- package/bundled/skills/chat-mentions.js +76 -76
- package/bundled/skills/list-bundled-skills.d.ts +3 -3
- package/bundled/skills/list-bundled-skills.js +33 -35
- package/bundled/skills/skill-mention.d.ts +10 -2
- package/bundled/skills/skill-mention.js +10 -2
- package/bundled/theme/clear-terminal.d.ts +1 -1
- package/bundled/theme/clear-terminal.js +3 -4
- package/bundled/theme/footer-render-hook.d.ts +1 -1
- package/bundled/theme/footer-render-hook.js +3 -3
- package/bundled/theme/kubbisec-brand-fg.d.ts +1 -1
- package/bundled/theme/kubbisec-brand-fg.js +2 -2
- package/bundled/theme/kubbisec-menu-themes.d.ts +7 -7
- package/bundled/theme/kubbisec-menu-themes.js +30 -31
- package/bundled/theme/kubbisec-theme-name.d.ts +1 -1
- package/bundled/theme/kubbisec-theme-name.js +1 -1
- package/bundled/theme/patch-pi-settings-theme.runtime.d.ts +1 -1
- package/bundled/theme/patch-pi-settings-theme.runtime.js +11 -10
- package/bundled/theme/render-compact-header.d.ts +13 -5
- package/bundled/theme/render-compact-header.js +127 -129
- package/bundled/workflow/session-workflow-mode.d.ts +1 -1
- package/bundled/workflow/session-workflow-mode.js +33 -33
- package/package.json +1 -1
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
type ExtensionApi = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
registerTool: (def: {
|
|
3
|
+
name: string;
|
|
4
|
+
label: string;
|
|
5
|
+
description: string;
|
|
6
|
+
parameters: unknown;
|
|
7
|
+
execute: (
|
|
8
|
+
toolCallId: string,
|
|
9
|
+
params: Record<string, unknown>,
|
|
10
|
+
signal: AbortSignal,
|
|
11
|
+
) => Promise<{
|
|
12
|
+
content: Array<{
|
|
13
|
+
type: "text";
|
|
14
|
+
text: string;
|
|
15
|
+
}>;
|
|
16
|
+
details?: unknown;
|
|
17
|
+
}>;
|
|
18
|
+
}) => void;
|
|
15
19
|
};
|
|
16
20
|
export default function kubbisecNausLocal(api: ExtensionApi): void;
|
|
17
|
-
|
|
18
|
-
//# sourceMappingURL=kubbisec-naus-local.extension.d.ts.map
|
|
21
|
+
//# sourceMappingURL=kubbisec-naus-local.extension.d.ts.map
|
|
@@ -2,122 +2,143 @@
|
|
|
2
2
|
* Local `naus` CLI tools — only when KUBBISEC_CHAT_EXTENDED_CONTEXT=1
|
|
3
3
|
*/
|
|
4
4
|
import { Type } from "@earendil-works/pi-ai";
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
buildCliToolResult,
|
|
7
|
+
denyExtendedContextMessage,
|
|
8
|
+
execCapture,
|
|
9
|
+
extendedContextEnabled,
|
|
10
|
+
NAUS_LOCAL_RUN_TIMEOUT_MS,
|
|
11
|
+
resolvePathInWorkspace,
|
|
12
|
+
resolveWorkspace,
|
|
13
|
+
} from "./cli-local-shared.js";
|
|
14
|
+
|
|
6
15
|
function appendRepeatableFileFlag(args, flag, paths, cwd) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
args.push(flag, resolvePathInWorkspace(entry.trim(), cwd));
|
|
12
|
-
}
|
|
16
|
+
if (!Array.isArray(paths)) return;
|
|
17
|
+
for (const entry of paths) {
|
|
18
|
+
if (typeof entry === "string" && entry.trim()) {
|
|
19
|
+
args.push(flag, resolvePathInWorkspace(entry.trim(), cwd));
|
|
13
20
|
}
|
|
21
|
+
}
|
|
14
22
|
}
|
|
15
23
|
export default function kubbisecNausLocal(api) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
24
|
+
api.registerTool({
|
|
25
|
+
name: "naus_local_status",
|
|
26
|
+
label: "Naus CLI status",
|
|
27
|
+
description:
|
|
28
|
+
"Checks if `naus` is on PATH and shows help excerpt (requires kubbisec chat --extended-context).",
|
|
29
|
+
parameters: Type.Object({}),
|
|
30
|
+
async execute() {
|
|
31
|
+
if (!extendedContextEnabled()) return denyExtendedContextMessage();
|
|
32
|
+
const cwd = resolveWorkspace();
|
|
33
|
+
const parts = [`workspace: ${cwd}`];
|
|
34
|
+
const which = await execCapture("which", ["naus"], cwd);
|
|
35
|
+
if (which.code !== 0) {
|
|
36
|
+
return {
|
|
37
|
+
content: [
|
|
38
|
+
{
|
|
39
|
+
type: "text",
|
|
40
|
+
text: `${parts.join("\n")}\n\nnaus: not installed or not on PATH (npm install -g @kubbisec/naus)`,
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
details: { ok: false, exitCode: which.code, userMessage: "naus não está no PATH." },
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
const help = await execCapture("naus", ["--help"], cwd);
|
|
47
|
+
const helpResult = buildCliToolResult("naus", ["--help"], cwd, help);
|
|
48
|
+
return {
|
|
49
|
+
content: [
|
|
50
|
+
{ type: "text", text: `${parts.join("\n")}\n\n${helpResult.content[0]?.text ?? ""}` },
|
|
51
|
+
],
|
|
52
|
+
details: helpResult.details,
|
|
53
|
+
};
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
api.registerTool({
|
|
57
|
+
name: "naus_local_validate",
|
|
58
|
+
label: "Naus validate file",
|
|
59
|
+
description: "Runs `naus validate <path>` in the workspace (extended context).",
|
|
60
|
+
parameters: Type.Object({
|
|
61
|
+
path: Type.String({ description: "Pipeline YAML path relative to workspace" }),
|
|
62
|
+
}),
|
|
63
|
+
async execute(_id, params) {
|
|
64
|
+
if (!extendedContextEnabled()) return denyExtendedContextMessage();
|
|
65
|
+
const cwd = resolveWorkspace();
|
|
66
|
+
const filePath = resolvePathInWorkspace(String(params.path), cwd);
|
|
67
|
+
const result = await execCapture("naus", ["validate", filePath], cwd);
|
|
68
|
+
return buildCliToolResult("naus", ["validate", filePath], cwd, result);
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
api.registerTool({
|
|
72
|
+
name: "naus_local_plan",
|
|
73
|
+
label: "Naus plan pipeline",
|
|
74
|
+
description: "Runs `naus plan <path>` (optional mermaid format) in the workspace.",
|
|
75
|
+
parameters: Type.Object({
|
|
76
|
+
path: Type.String({ description: "Pipeline YAML path relative to workspace" }),
|
|
77
|
+
format: Type.Optional(
|
|
78
|
+
Type.Union([Type.Literal("text"), Type.Literal("mermaid")], {
|
|
79
|
+
description: "Output format (default text)",
|
|
54
80
|
}),
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
const result = await execCapture("naus", ["validate", filePath], cwd);
|
|
61
|
-
return buildCliToolResult("naus", ["validate", filePath], cwd, result);
|
|
62
|
-
},
|
|
63
|
-
});
|
|
64
|
-
api.registerTool({
|
|
65
|
-
name: "naus_local_plan",
|
|
66
|
-
label: "Naus plan pipeline",
|
|
67
|
-
description: "Runs `naus plan <path>` (optional mermaid format) in the workspace.",
|
|
68
|
-
parameters: Type.Object({
|
|
69
|
-
path: Type.String({ description: "Pipeline YAML path relative to workspace" }),
|
|
70
|
-
format: Type.Optional(Type.Union([Type.Literal("text"), Type.Literal("mermaid")], {
|
|
71
|
-
description: "Output format (default text)",
|
|
72
|
-
})),
|
|
73
|
-
envFiles: Type.Optional(Type.Array(Type.String(), {
|
|
74
|
-
description: 'Optional .env-style files (repeatable via --env-file). Example: [".env"]. Default: .env in cwd when present.',
|
|
75
|
-
})),
|
|
76
|
-
secretFiles: Type.Optional(Type.Array(Type.String(), {
|
|
77
|
-
description: 'Optional secret files (repeatable via --secret-file). Example: [".secrets"] or [".secret"]. Default: .secrets in cwd when present.',
|
|
78
|
-
})),
|
|
81
|
+
),
|
|
82
|
+
envFiles: Type.Optional(
|
|
83
|
+
Type.Array(Type.String(), {
|
|
84
|
+
description:
|
|
85
|
+
'Optional .env-style files (repeatable via --env-file). Example: [".env"]. Default: .env in cwd when present.',
|
|
79
86
|
}),
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
const fmt = params.format === "mermaid" ? "mermaid" : "text";
|
|
86
|
-
const args = ["plan", filePath, "--format", fmt];
|
|
87
|
-
appendRepeatableFileFlag(args, "--env-file", params.envFiles, cwd);
|
|
88
|
-
appendRepeatableFileFlag(args, "--secret-file", params.secretFiles, cwd);
|
|
89
|
-
const result = await execCapture("naus", args, cwd);
|
|
90
|
-
return buildCliToolResult("naus", args, cwd, result);
|
|
91
|
-
},
|
|
92
|
-
});
|
|
93
|
-
api.registerTool({
|
|
94
|
-
name: "naus_local_run",
|
|
95
|
-
label: "Naus run pipeline locally",
|
|
96
|
-
description: "Runs `naus run <path>` on this machine (up to 15 min). Optional --env-file / --secret-file (e.g. .env, .secrets). Prefer cloud `trigger_run` for KubbiSec CI.",
|
|
97
|
-
parameters: Type.Object({
|
|
98
|
-
path: Type.String({ description: "Pipeline YAML path relative to workspace" }),
|
|
99
|
-
envFiles: Type.Optional(Type.Array(Type.String(), {
|
|
100
|
-
description: 'Optional .env-style files (maps to repeated --env-file). Example: [".env"].',
|
|
101
|
-
})),
|
|
102
|
-
secretFiles: Type.Optional(Type.Array(Type.String(), {
|
|
103
|
-
description: 'Optional secret files (maps to repeated --secret-file). Example: [".secrets"] or [".secret"].',
|
|
104
|
-
})),
|
|
87
|
+
),
|
|
88
|
+
secretFiles: Type.Optional(
|
|
89
|
+
Type.Array(Type.String(), {
|
|
90
|
+
description:
|
|
91
|
+
'Optional secret files (repeatable via --secret-file). Example: [".secrets"] or [".secret"]. Default: .secrets in cwd when present.',
|
|
105
92
|
}),
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
93
|
+
),
|
|
94
|
+
}),
|
|
95
|
+
async execute(_id, params) {
|
|
96
|
+
if (!extendedContextEnabled()) return denyExtendedContextMessage();
|
|
97
|
+
const cwd = resolveWorkspace();
|
|
98
|
+
const filePath = resolvePathInWorkspace(String(params.path), cwd);
|
|
99
|
+
const fmt = params.format === "mermaid" ? "mermaid" : "text";
|
|
100
|
+
const args = ["plan", filePath, "--format", fmt];
|
|
101
|
+
appendRepeatableFileFlag(args, "--env-file", params.envFiles, cwd);
|
|
102
|
+
appendRepeatableFileFlag(args, "--secret-file", params.secretFiles, cwd);
|
|
103
|
+
const result = await execCapture("naus", args, cwd);
|
|
104
|
+
return buildCliToolResult("naus", args, cwd, result);
|
|
105
|
+
},
|
|
106
|
+
});
|
|
107
|
+
api.registerTool({
|
|
108
|
+
name: "naus_local_run",
|
|
109
|
+
label: "Naus run pipeline locally",
|
|
110
|
+
description:
|
|
111
|
+
"Runs `naus run <path>` on this machine (up to 15 min). Optional --env-file / --secret-file (e.g. .env, .secrets). Prefer cloud `trigger_run` for KubbiSec CI.",
|
|
112
|
+
parameters: Type.Object({
|
|
113
|
+
path: Type.String({ description: "Pipeline YAML path relative to workspace" }),
|
|
114
|
+
envFiles: Type.Optional(
|
|
115
|
+
Type.Array(Type.String(), {
|
|
116
|
+
description:
|
|
117
|
+
'Optional .env-style files (maps to repeated --env-file). Example: [".env"].',
|
|
118
|
+
}),
|
|
119
|
+
),
|
|
120
|
+
secretFiles: Type.Optional(
|
|
121
|
+
Type.Array(Type.String(), {
|
|
122
|
+
description:
|
|
123
|
+
'Optional secret files (maps to repeated --secret-file). Example: [".secrets"] or [".secret"].',
|
|
124
|
+
}),
|
|
125
|
+
),
|
|
126
|
+
}),
|
|
127
|
+
async execute(_id, params, signal) {
|
|
128
|
+
if (!extendedContextEnabled()) return denyExtendedContextMessage();
|
|
129
|
+
const cwd = resolveWorkspace();
|
|
130
|
+
const filePath = resolvePathInWorkspace(String(params.path), cwd);
|
|
131
|
+
const args = ["run", filePath];
|
|
132
|
+
appendRepeatableFileFlag(args, "--env-file", params.envFiles, cwd);
|
|
133
|
+
appendRepeatableFileFlag(args, "--secret-file", params.secretFiles, cwd);
|
|
134
|
+
const result = await execCapture("naus", args, cwd, {
|
|
135
|
+
signal,
|
|
136
|
+
timeoutMs: NAUS_LOCAL_RUN_TIMEOUT_MS,
|
|
137
|
+
});
|
|
138
|
+
const note =
|
|
139
|
+
"\n\nNote: for KubbiSec-hosted CI use API tool trigger_run after set_pipeline_yaml.";
|
|
140
|
+
return buildCliToolResult("naus", args, cwd, result, note);
|
|
141
|
+
},
|
|
142
|
+
});
|
|
122
143
|
}
|
|
123
|
-
//# sourceMappingURL=kubbisec-naus-local.extension.js.map
|
|
144
|
+
//# sourceMappingURL=kubbisec-naus-local.extension.js.map
|
|
@@ -2,29 +2,39 @@
|
|
|
2
2
|
* Registers KubbiSec DevSecOps assistant tools from the API catalog (session_start).
|
|
3
3
|
*/
|
|
4
4
|
type ExtensionApi = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
5
|
+
on: (
|
|
6
|
+
event: string,
|
|
7
|
+
handler: (event: unknown, ctx: ExtensionContext) => void | Promise<void>,
|
|
8
|
+
) => void;
|
|
9
|
+
registerTool: (def: {
|
|
10
|
+
name: string;
|
|
11
|
+
label: string;
|
|
12
|
+
description: string;
|
|
13
|
+
parameters: unknown;
|
|
14
|
+
execute: (
|
|
15
|
+
toolCallId: string,
|
|
16
|
+
params: Record<string, unknown>,
|
|
17
|
+
signal: AbortSignal,
|
|
18
|
+
onUpdate: unknown,
|
|
19
|
+
ctx: ExtensionContext,
|
|
20
|
+
) => Promise<{
|
|
21
|
+
content: Array<{
|
|
22
|
+
type: "text";
|
|
23
|
+
text: string;
|
|
24
|
+
}>;
|
|
25
|
+
details?: unknown;
|
|
26
|
+
}>;
|
|
27
|
+
}) => void;
|
|
19
28
|
};
|
|
20
29
|
type ExtensionContext = {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
30
|
+
ui?: {
|
|
31
|
+
notify: (message: string, level: string) => void;
|
|
32
|
+
setStatus: (key: string, text: string | undefined) => void;
|
|
33
|
+
};
|
|
25
34
|
};
|
|
26
|
-
export declare function extractVulnerabilityIdFromParams(
|
|
35
|
+
export declare function extractVulnerabilityIdFromParams(
|
|
36
|
+
params: Record<string, unknown>,
|
|
37
|
+
): string | undefined;
|
|
27
38
|
export declare function catalogParametersSchema(parameters: Record<string, unknown>): unknown;
|
|
28
39
|
export default function kubbisecPlatformTools(api: ExtensionApi): void;
|
|
29
|
-
|
|
30
|
-
//# sourceMappingURL=kubbisec-platform-tools.extension.d.ts.map
|
|
40
|
+
//# sourceMappingURL=kubbisec-platform-tools.extension.d.ts.map
|