@usabledev/usable-chat 1.166.0 → 1.167.1
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/cli.js +17 -3
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -90993,7 +90993,7 @@ var init_data_staging_prompt = __esm({
|
|
|
90993
90993
|
"use strict";
|
|
90994
90994
|
DATA_STAGING_PROMPT = `# Staged Data \u2014 read THIS first
|
|
90995
90995
|
|
|
90996
|
-
The user can drop CSV / TSV / Parquet / XLSX / XLS / JSON / NDJSON / \`.duckdb\` files, paste
|
|
90996
|
+
The user can drop CSV / TSV / Parquet / XLSX / XLS / JSON / NDJSON / \`.duckdb\` files, paste URL, or attach a browser folder. Files stage into browser DuckDB. \`RAW\` entries have no rows/cols; host uses \`chat.data.readBytes(alias)\`.
|
|
90997
90997
|
|
|
90998
90998
|
In the actual tool list these usually appear with a \`parent_\` prefix, e.g. \`parent_data_list\`, \`parent_data_load_browser_file\`, \`parent_data_describe\`, \`parent_data_query\`. If present, call the exact \`parent_data_*\` tool; shorter \`data_*\` names below are canonical.
|
|
90999
90999
|
|
|
@@ -91001,7 +91001,7 @@ In the actual tool list these usually appear with a \`parent_\` prefix, e.g. \`p
|
|
|
91001
91001
|
|
|
91002
91002
|
Whenever the user types any of these (or anything similar): **"analyze this"**, **"what's in the file"**, **"the data"**, **"the file"**, **"this CSV / spreadsheet / parquet / dataset"**, **"summarise this"**, **"chart this"**, **"plot this"**, **"what does the data look like"** \u2014 **ALWAYS** call \`data_list\` BEFORE you reply.
|
|
91003
91003
|
|
|
91004
|
-
- If \`data_list\` returns
|
|
91004
|
+
- If \`data_list\` returns a structured file, **THAT IS WHAT THE USER MEANS**. Proceed with \`data_describe\` \u2192 tools. If only \`RAW\` matches, explain that the host app parses it.
|
|
91005
91005
|
- **NEVER** reply *"please upload a file"*, *"share the file with me"*, *"I don't have access to the file"*, or any variation when \`data_list\` returns \u2265 1 entry. The file is already staged. Just analyse it.
|
|
91006
91006
|
- **NEVER** ask the user to paste rows. They already gave you the file; query it through the tools.
|
|
91007
91007
|
- If the user names a file in the attached local folder and it is NOT in \`data_list\`, call \`parent_data_load_browser_file({ path })\` / \`data_load_browser_file({ path })\` first, then list + describe.
|
|
@@ -91432,6 +91432,20 @@ var init_parent_tools = __esm({
|
|
|
91432
91432
|
required: ["alias"]
|
|
91433
91433
|
}
|
|
91434
91434
|
},
|
|
91435
|
+
{
|
|
91436
|
+
name: "data_get_bytes",
|
|
91437
|
+
description: "Return a staged file's raw browser bytes as base64 so the embed host can parse host-specific formats (for example GPX, KML, KMZ) without Usable Chat shipping per-format parsers. Pass a parent alias from data_list; child table aliases are rejected.",
|
|
91438
|
+
parameters: {
|
|
91439
|
+
type: "object",
|
|
91440
|
+
properties: {
|
|
91441
|
+
alias: {
|
|
91442
|
+
type: "string",
|
|
91443
|
+
description: "Alias from data_list. For .duckdb files, pass the parent alias."
|
|
91444
|
+
}
|
|
91445
|
+
},
|
|
91446
|
+
required: ["alias"]
|
|
91447
|
+
}
|
|
91448
|
+
},
|
|
91435
91449
|
{
|
|
91436
91450
|
name: "data_load_remote",
|
|
91437
91451
|
description: "Fetch a CSV/TSV/Parquet/JSON/NDJSON/XLSX/.duckdb file from an HTTPS URL and stage it as if the user had uploaded it. By DEFAULT the request routes through a same-origin proxy (/api/data-proxy with RFC 7233 Range support) \u2014 this is required because the chat's CSP `connect-src` is locked to a small allowlist, so direct cross-origin fetches will fail. Only pass `useProxy: false` when the URL is on a CSP-allowlisted host (rare). Format is auto-detected from the URL extension; pass `format` explicitly when the URL has no extension (e.g. share-link APIs that return a UUID). For `.duckdb` files, multiple sub-aliases are returned \u2014 one per attached table.",
|
|
@@ -308972,7 +308986,7 @@ init_tui_select();
|
|
|
308972
308986
|
init_model_registry();
|
|
308973
308987
|
|
|
308974
308988
|
// package.json
|
|
308975
|
-
var version2 = "1.
|
|
308989
|
+
var version2 = "1.167.1";
|
|
308976
308990
|
|
|
308977
308991
|
// src/adapters/cli/model-catalog.ts
|
|
308978
308992
|
init_codex_auth();
|