busa-cli 0.54.0 → 0.60.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/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{run-CFGp5vuO.js → run-bQ1VIBLc.js} +34 -8
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { i as checkForUpdate, n as pkgVersion, r as runCli } from "./run-
|
|
2
|
+
import { i as checkForUpdate, n as pkgVersion, r as runCli } from "./run-bQ1VIBLc.js";
|
|
3
3
|
//#region src/cli.ts
|
|
4
4
|
const exitCode = await runCli(process.argv.slice(2));
|
|
5
5
|
const notice = await checkForUpdate("busabase-cli", pkgVersion());
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as render, i as checkForUpdate, n as pkgVersion, r as runCli, t as HELP } from "./run-
|
|
1
|
+
import { a as render, i as checkForUpdate, n as pkgVersion, r as runCli, t as HELP } from "./run-bQ1VIBLc.js";
|
|
2
2
|
import { DEFAULT_BASE_URL, createBusabaseClient, normalizeBaseUrl } from "busabase-sdk";
|
|
3
3
|
export { DEFAULT_BASE_URL, HELP, checkForUpdate, createBusabaseClient, normalizeBaseUrl, pkgVersion, render, runCli };
|
|
@@ -121,17 +121,17 @@ const iStringParse = (str, lang = "en") => {
|
|
|
121
121
|
//#endregion
|
|
122
122
|
//#region ../../packages/busabase-contract/src/contract/node-agent-prompt-schemas.ts
|
|
123
123
|
/**
|
|
124
|
-
* Per-node custom scenario prompts (`node.
|
|
124
|
+
* Per-node custom scenario prompts (`node.agentPrompts`) — the single
|
|
125
125
|
* schema shared by BOTH write and read paths, per the node-agent-prompts
|
|
126
126
|
* design (v2) §7.3:
|
|
127
127
|
*
|
|
128
128
|
* - Write: `busabase-cli nodes set-agent-prompts` validates a file against this
|
|
129
|
-
* schema client-side, before calling `nodes.
|
|
130
|
-
* never reaches the network.
|
|
129
|
+
* schema client-side, before calling `nodes.updateAgentPrompts` — a malformed
|
|
130
|
+
* file never reaches the network.
|
|
131
131
|
* - Read: `buildNodeAgentPrompts` (`packages/busabase-core/.../node-agent-prompts.ts`)
|
|
132
|
-
* `.safeParse`s whatever is stored in `
|
|
133
|
-
*
|
|
134
|
-
*
|
|
132
|
+
* `.safeParse`s whatever is stored in the node's `agentPrompts` column and
|
|
133
|
+
* ignores invalid custom entries, so a bad write (or a manual jsonb edit) can
|
|
134
|
+
* never crash the Agent Prompts dialog or hide its built-in scenarios.
|
|
135
135
|
*
|
|
136
136
|
* One schema, one place to edit the limits — do not duplicate this validation on
|
|
137
137
|
* either side.
|
|
@@ -181,7 +181,7 @@ const customPromptDefSchema = z.object({
|
|
|
181
181
|
body: customPromptBodySchema
|
|
182
182
|
});
|
|
183
183
|
/**
|
|
184
|
-
* The full `
|
|
184
|
+
* The full `agentPrompts` array. `.max` bounds the list; the
|
|
185
185
|
* `superRefine` catches duplicate keys with an issue path pointing at the
|
|
186
186
|
* offending entry, so a CLI/server validation error names which entry and
|
|
187
187
|
* which key collided instead of a bare "keys must be unique".
|
|
@@ -6849,7 +6849,16 @@ const searchResultSchema = z.object({
|
|
|
6849
6849
|
body: z.string(),
|
|
6850
6850
|
eyebrow: z.string(),
|
|
6851
6851
|
href: z.string(),
|
|
6852
|
-
updatedAt: z.string().nullable()
|
|
6852
|
+
updatedAt: z.string().nullable(),
|
|
6853
|
+
/**
|
|
6854
|
+
* The actor that created this, or null when the source cannot say.
|
|
6855
|
+
*
|
|
6856
|
+
* Present so a result can SHOW its author and so the author filter can be
|
|
6857
|
+
* driven by clicking one — you can only filter by a creator you can actually
|
|
6858
|
+
* see, which beats a free-text box you have to guess the spelling of. Null is
|
|
6859
|
+
* rendered as "unknown", never as a person.
|
|
6860
|
+
*/
|
|
6861
|
+
createdBy: z.string().nullable().default(null)
|
|
6853
6862
|
});
|
|
6854
6863
|
z.object({
|
|
6855
6864
|
query: z.string(),
|
|
@@ -7116,6 +7125,23 @@ z.object({
|
|
|
7116
7125
|
updatedAfter: z.string().datetime({ offset: true }).optional().describe("Inclusive lower bound, ISO 8601. A UTC `Z` or an explicit offset; not a bare local time."),
|
|
7117
7126
|
updatedBefore: z.string().datetime({ offset: true }).optional().describe("Inclusive upper bound, ISO 8601. A UTC `Z` or an explicit offset; not a bare local time."),
|
|
7118
7127
|
/**
|
|
7128
|
+
* Restrict to what one actor created.
|
|
7129
|
+
*
|
|
7130
|
+
* Every source answers from a real column, which is what made this filter
|
|
7131
|
+
* shippable: records and assets carry their own `created_by`, node CONTENT
|
|
7132
|
+
* reads `busabase_nodes.created_by` (added with this change, backfilled from
|
|
7133
|
+
* each node's `node_create` commit), and Bases resolve through the owning
|
|
7134
|
+
* node the Base query already joins for its dates and sort.
|
|
7135
|
+
*
|
|
7136
|
+
* A free-form actor id, not a user id — agents and API keys create things
|
|
7137
|
+
* too, and filtering by "user" would silently drop everything an agent made.
|
|
7138
|
+
*
|
|
7139
|
+
* Nodes whose creating commit is gone have a NULL `created_by` and match no
|
|
7140
|
+
* author. That is deliberate: "this row cannot tell" must not render as
|
|
7141
|
+
* "nobody made it".
|
|
7142
|
+
*/
|
|
7143
|
+
createdBy: z.string().optional().describe("Restrict to one creator. Matches the actor id, which may be an agent or API key."),
|
|
7144
|
+
/**
|
|
7119
7145
|
* Restrict to a subtree: this node and everything beneath it.
|
|
7120
7146
|
*
|
|
7121
7147
|
* Resolved by walking the tree in application code (`collectSubtreeIds`),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "busa-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.60.0",
|
|
4
4
|
"description": "Command-line client for the Busabase OpenAPI REST API. Talks to a local or remote `busabase server`. Short-name alias for busabase-cli.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/busabase/busabase/tree/main/apps/busabase-cli",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@zip.js/zip.js": "^2.8.20",
|
|
35
35
|
"busabase-package": "workspace:*",
|
|
36
|
-
"busabase-sdk": "0.
|
|
36
|
+
"busabase-sdk": "0.60.0",
|
|
37
37
|
"commander": "^14.0.0",
|
|
38
38
|
"qrcode": "^1.5.4",
|
|
39
39
|
"tar-stream": "^3.1.7",
|