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