@notis_ai/cli 0.2.21 → 0.2.23
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/agent-hooks/notis-agent-hook.mjs +15 -10
- package/dist/sdk/src/ui/engine/core.ts +9 -3
- package/dist/space-harness/host.js +1 -1
- package/dist/space-sdk/dist/{chunk-ZSN57ATH.js → chunk-SVZATGZB.js} +1 -1
- package/dist/space-sdk/dist/index.js +1 -1
- package/dist/space-sdk/dist/ui.js +1 -1
- package/dist/space-sdk/src/tailwind-candidates.d.ts +1 -0
- package/dist/space-sdk/src/ui/engine/core.d.ts +1 -0
- package/dist/view-renderer/dist/host.js +1 -1
- package/package.json +3 -3
- package/src/command-specs/tools.js +20 -10
|
@@ -32776,6 +32776,18 @@ function validateArguments(schema, args) {
|
|
|
32776
32776
|
}
|
|
32777
32777
|
|
|
32778
32778
|
// src/command-specs/tools.js
|
|
32779
|
+
var ROUTER_HELPERS = /* @__PURE__ */ new Set([
|
|
32780
|
+
COMPOSIO_SEARCH_TOOLS,
|
|
32781
|
+
COMPOSIO_GET_TOOL_SCHEMAS,
|
|
32782
|
+
COMPOSIO_MULTI_EXECUTE_TOOL,
|
|
32783
|
+
"COMPOSIO_MANAGE_CONNECTIONS",
|
|
32784
|
+
"COMPOSIO_WAIT_FOR_CONNECTIONS",
|
|
32785
|
+
"COMPOSIO_REMOTE_WORKBENCH",
|
|
32786
|
+
"COMPOSIO_REMOTE_BASH_TOOL"
|
|
32787
|
+
]);
|
|
32788
|
+
function executionRequest(toolName, arguments_) {
|
|
32789
|
+
return ROUTER_HELPERS.has(toolName) ? { toolName, arguments_ } : { toolName: COMPOSIO_MULTI_EXECUTE_TOOL, arguments_: { tools: [{ tool_slug: toolName, arguments: arguments_ }] } };
|
|
32790
|
+
}
|
|
32779
32791
|
async function resolveJsonInput(value, label) {
|
|
32780
32792
|
if (!value) return void 0;
|
|
32781
32793
|
if (value === "-") {
|
|
@@ -33159,10 +33171,7 @@ async function toolsExecHandler(ctx) {
|
|
|
33159
33171
|
});
|
|
33160
33172
|
const result = await runToolCommand({
|
|
33161
33173
|
runtime: ctx.runtime,
|
|
33162
|
-
|
|
33163
|
-
arguments_: {
|
|
33164
|
-
tools: [{ tool_slug: requestedToolName, arguments: args }]
|
|
33165
|
-
},
|
|
33174
|
+
...executionRequest(requestedToolName, args),
|
|
33166
33175
|
// The server is authoritative about provider/MCP effects. A tool name that
|
|
33167
33176
|
// looks like a read is not proof of read-only behavior, so generic
|
|
33168
33177
|
// executions always carry a key and use mutation-safe transport retries.
|
|
@@ -33245,8 +33254,7 @@ ${reason}`
|
|
|
33245
33254
|
ctx.output.emitProgress({ phase: "execute", message: `Applying ${requestedToolName}` });
|
|
33246
33255
|
const applied = await runToolCommand({
|
|
33247
33256
|
runtime: ctx.runtime,
|
|
33248
|
-
|
|
33249
|
-
arguments_: { tools: [{ tool_slug: requestedToolName, arguments: decision.arguments }] },
|
|
33257
|
+
...executionRequest(requestedToolName, decision.arguments),
|
|
33250
33258
|
mutating: true,
|
|
33251
33259
|
idempotencyKey: confirmKey,
|
|
33252
33260
|
fileBindings
|
|
@@ -33278,10 +33286,7 @@ async function toolsExecParallelHandler(ctx) {
|
|
|
33278
33286
|
calls.map(
|
|
33279
33287
|
(call) => runToolCommand({
|
|
33280
33288
|
runtime: ctx.runtime,
|
|
33281
|
-
|
|
33282
|
-
arguments_: {
|
|
33283
|
-
tools: [{ tool_slug: localNotisToolSlug(call.tool_name), arguments: call.arguments || {} }]
|
|
33284
|
-
},
|
|
33289
|
+
...executionRequest(localNotisToolSlug(call.tool_name), call.arguments || {}),
|
|
33285
33290
|
mutating: true,
|
|
33286
33291
|
idempotencyKey: nextIdempotencyKey(ctx.globalOptions)
|
|
33287
33292
|
}).then((r) => ({
|
|
@@ -46,9 +46,15 @@ export function detectLocale(): Locale {
|
|
|
46
46
|
return /^fr\b/i.test(lang) ? 'fr' : 'en';
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
// Bundlers replace only the literal `process.env.NODE_ENV`, so a production
|
|
50
|
+
// build drops a clashing shortcut instead of throwing and blanking the view.
|
|
51
|
+
// Where nothing replaces it and no `process` exists, stay strict.
|
|
52
|
+
export function defaultStrict(): boolean {
|
|
53
|
+
try {
|
|
54
|
+
return process.env.NODE_ENV !== 'production';
|
|
55
|
+
} catch {
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
52
58
|
}
|
|
53
59
|
|
|
54
60
|
function consume(event: KeyboardEvent, immediate = false): void {
|