@m6d/cortex-cli 0.9.0 → 0.10.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m6d/cortex-cli",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "Scaffold and operate Cortex servers",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -116,7 +116,7 @@ const toolSignatureBaseSchema = z.object({
116
116
  * binding, so the schema travels with it.
117
117
  */
118
118
  requiresApproval: z.boolean(),
119
- /** The question the widget asks before an approval-gated call runs; only such tools carry one. */
119
+ /** The action the widget's approval card names before an approval-gated call runs; only such tools carry one. */
120
120
  approvalMessage: localizedTextSchema.optional(),
121
121
  tags: z.array(z.string()),
122
122
  signature: z.string(),
@@ -142,8 +142,15 @@ export type Greeting = Record<Locale, string>;
142
142
  export type LocalizedText = Record<Locale, string>;
143
143
 
144
144
  /**
145
- * What cortex stamps on a tool-call part's `metadata.cortex`: the sentence
146
- * the widget asks with when the call needs the user's approval, in the
145
+ * Cortex's own tools whose input carries `status`: the model's one-line
146
+ * statement of the call, which the widget draws in place of a generic label.
147
+ * Any other tool's `status` is that tool's own data.
148
+ */
149
+ export const STATEMENT_TOOLS = ["executeCode", "queryDataset", "describeDataset"] as const;
150
+
151
+ /**
152
+ * What cortex stamps on a tool-call part's `metadata.cortex`: the action the
153
+ * approval card names when the call needs the user's approval, in the
147
154
  * author's words rather than the function's name.
148
155
  */
149
156
  export type ToolCallMetadata = {
@@ -27,7 +27,7 @@ export type Database = "postgres" | "mssql";
27
27
  // sync (scripts/sync-package-versions.ts) restamps it and files.test.ts holds
28
28
  // them to that.
29
29
  export const DEPENDENCIES = {
30
- "@m6d/cortex-server": "~0.9.0",
30
+ "@m6d/cortex-server": "~0.10.0",
31
31
  "@tanstack/ai": "^0.55.0",
32
32
  "@tanstack/ai-openai": "^0.22.8",
33
33
  hono: "^4.12.3",