@arbidocs/cli 0.4.74 → 0.4.76
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/CHANGELOG.md +34 -0
- package/SKILL.md +41 -4
- package/dist/index.js +371 -80
- package/dist/index.js.map +1 -1
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.4.76
|
|
4
|
+
|
|
5
|
+
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.4.75...HEAD)
|
|
6
|
+
|
|
7
|
+
### 🚀 Enhancements
|
|
8
|
+
|
|
9
|
+
- **blocks:** Linked workflows through step signals ([25280c1e6](https://github.com/arbicity/ARBI-frontend/commit/25280c1e6))
|
|
10
|
+
|
|
11
|
+
### 💅 Refactors
|
|
12
|
+
|
|
13
|
+
- **blocks:** Use the generated TaskPlanStep.signals ([b1cfb26ec](https://github.com/arbicity/ARBI-frontend/commit/b1cfb26ec))
|
|
14
|
+
|
|
15
|
+
### 🏡 Chore
|
|
16
|
+
|
|
17
|
+
- Merge main into feat/workflow-signals ([974839985](https://github.com/arbicity/ARBI-frontend/commit/974839985))
|
|
18
|
+
- Regenerate OpenAPI schema ([ad642fedf](https://github.com/arbicity/ARBI-frontend/commit/ad642fedf))
|
|
19
|
+
|
|
20
|
+
## v0.4.75
|
|
21
|
+
|
|
22
|
+
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.4.74...HEAD)
|
|
23
|
+
|
|
24
|
+
### 🚀 Enhancements
|
|
25
|
+
|
|
26
|
+
- **databases:** Notion/Airtable-style databases page on @arbidocs/blocks ([a3ba6b7f5](https://github.com/arbicity/ARBI-frontend/commit/a3ba6b7f5))
|
|
27
|
+
- **databases:** Global Databases row behind the custom_databases experiment ([78e8f5178](https://github.com/arbicity/ARBI-frontend/commit/78e8f5178))
|
|
28
|
+
|
|
29
|
+
### 🩹 Fixes
|
|
30
|
+
|
|
31
|
+
- **databases:** Keep the add-column button in view and scroll to a new column ([cac1e5a09](https://github.com/arbicity/ARBI-frontend/commit/cac1e5a09))
|
|
32
|
+
|
|
33
|
+
### 🏡 Chore
|
|
34
|
+
|
|
35
|
+
- Update OpenAPI schema (databases) ([13ae57efd](https://github.com/arbicity/ARBI-frontend/commit/13ae57efd))
|
|
36
|
+
|
|
3
37
|
## v0.4.74
|
|
4
38
|
|
|
5
39
|
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.4.73...HEAD)
|
package/SKILL.md
CHANGED
|
@@ -61,7 +61,7 @@ Scripting notes:
|
|
|
61
61
|
|
|
62
62
|
## For Automations / AI Agents
|
|
63
63
|
|
|
64
|
-
- **Structured output (`--json`)**: supported on `status`, `config show`, `health`, `models`, `workspaces`, `workspace users`, `workspace current`, `docs`, `convo` (or `convo list`), `tags` (or `tags list`), `contacts` (or `contacts list`), `find`, `settings get`, `task list` / `task status` / `task result`, `agent list`, `session list`, `dm list`, `notifications list`, `local ls` / `local find` / `local cat` / `local tree`, `update --check`, `register --non-interactive`, `ask -b`, `upload`, `watch`. Use it whenever parsing output. `docs` also supports `--csv`, `--ids`, and `--count`. `arbi ask --json` without `-b` errors out — streaming mode is prose, not JSON; pass `-b` to get a background task ID, then `arbi task result --json`.
|
|
64
|
+
- **Structured output (`--json`)**: supported on `status`, `config show`, `health`, `models`, `workspaces`, `workspace users`, `workspace current`, `docs`, `convo` (or `convo list`), `tags` (or `tags list`), `contacts` (or `contacts list`), `find`, `settings get`, `task list` / `task status` / `task result`, `agent list`, `session list`, `dm list`, `notifications list`, `local ls` / `local find` / `local cat` / `local tree`, `update --check`, `register --non-interactive`, `ask -b`, `upload`, `watch`, `workflow list` / `create` / `run` / `update`, `run start` / `run steps` / `run step`. Use it whenever parsing output. `docs` also supports `--csv`, `--ids`, and `--count`. `arbi ask --json` without `-b` errors out — streaming mode is prose, not JSON; pass `-b` to get a background task ID, then `arbi task result --json`.
|
|
65
65
|
- **Human table output is lossy**: table rows may contain status glyphs (`●`, `🟩`, etc.) and emoji, and column widths truncate content. Never parse tables — always pass `--json`.
|
|
66
66
|
- **Exit codes**:
|
|
67
67
|
- `0` success
|
|
@@ -149,9 +149,9 @@ Footnote-style rendering at the end of the answer is currently not supported —
|
|
|
149
149
|
- **Persistent agents**: `arbi agent create --name <n> -w <ws-id>` creates a child identity the parent can delegate to (printed email+password). Share workspace IDs via `-w` rather than the interactive picker when running non-interactively.
|
|
150
150
|
- **Agent-create errors**: `agent-create` rejects non-`agent-*` emails with a clear message. If you see "No verification record found" the account probably already exists — use `arbi login` instead.
|
|
151
151
|
|
|
152
|
-
##
|
|
152
|
+
## Workflows
|
|
153
153
|
|
|
154
|
-
|
|
154
|
+
A workflow starts by hand (no trigger flags), on a schedule (`--run-at` or `--rrule`), on an event (`--event-kind`, optional `--event-filter` JSON), or after a task (`--after <con-id>`). It runs a prompt, a skill, a document action, or named steps (`--steps <file>`). `arbi automation` is an alias for `arbi workflow`. `run <wfl-id>` starts any saved workflow now. Scheduled document actions require an assistant with standing workspace access (`--agent <agt-id> --auth-mode scheduled_permanent`). Do not silently grant that access.
|
|
155
155
|
|
|
156
156
|
```bash
|
|
157
157
|
# Daily annotation review of documents currently carrying a label.
|
|
@@ -163,7 +163,44 @@ arbi automation runs wfl-example --json
|
|
|
163
163
|
arbi automation update wfl-example --file changes.json
|
|
164
164
|
```
|
|
165
165
|
|
|
166
|
-
Document actions return `execution_id` and do not require a conversation. Execution history includes status, selected documents, a run label, errors and result metadata. Annotation answers/citations remain document annotation fields; emails report delivery metadata. Chat/prompt actions retain their linked conversation history. `--overwrite` regenerates existing annotation answers; the default preserves them. Label selection is resolved at execution time rather than frozen when creating the rule. `arbi task` still refers to local background ask requests, not
|
|
166
|
+
Document actions return `execution_id` and do not require a conversation. Execution history includes status, selected documents, a run label, errors and result metadata. Annotation answers/citations remain document annotation fields; emails report delivery metadata. Chat/prompt actions retain their linked conversation history. `--overwrite` regenerates existing annotation answers; the default preserves them. Label selection is resolved at execution time rather than frozen when creating the rule. `arbi task` still refers to local background ask requests, not workflows.
|
|
167
|
+
|
|
168
|
+
### Stepped workflows (forms, agent steps, reviews)
|
|
169
|
+
|
|
170
|
+
A stepped workflow's steps are a list in the API's `TaskPlanStep` shape, in a `.json`, `.yaml` or `.yml` file (a list, or an object with `steps`). Fields: `id` (lowercase, `[a-z][a-z0-9_-]*`), `title`, `kind` (`form` | `upload` | `agent` | `review`), `after` (step ids it waits for; default the step before it, `[]` = at the start), `prompt` or `skill` (agent steps only; `{{field}}` fills from the run's inputs), `inputs` (a skill step's input templates), `branch` (agent steps), `ui` (what the app shows: a form's `fields` as `{name, type, label, required}`, a review's `instructions`). The CLI checks the file before sending it and lists every problem (`steps[1].kind: must be one of …`).
|
|
171
|
+
|
|
172
|
+
```yaml
|
|
173
|
+
# steps.yaml
|
|
174
|
+
- id: brief
|
|
175
|
+
title: Brief
|
|
176
|
+
kind: form
|
|
177
|
+
ui:
|
|
178
|
+
fields:
|
|
179
|
+
- { name: client, type: text, label: Client, required: true }
|
|
180
|
+
- { name: topic, type: longtext, label: What to cover }
|
|
181
|
+
- id: draft
|
|
182
|
+
title: Draft the note
|
|
183
|
+
kind: agent
|
|
184
|
+
prompt: Write a short client note for {{client}} about {{topic}}.
|
|
185
|
+
- id: approve
|
|
186
|
+
title: Approve the note
|
|
187
|
+
kind: review
|
|
188
|
+
ui: { instructions: Check the note before it goes out }
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
arbi workflow create --name 'Client note' --steps steps.yaml --json # add --rrule/--event-kind/--after to trigger it
|
|
193
|
+
arbi workflow update wfl-example --steps steps.yaml # replace its steps
|
|
194
|
+
arbi workflow run wfl-example # prints the run's thread id (con-…)
|
|
195
|
+
arbi run steps con-example --json # each step: pending | ready | running | done | skipped | failed
|
|
196
|
+
arbi run step con-example brief complete --input client=Acme --input topic='Q3 results'
|
|
197
|
+
arbi run steps con-example --watch --answers # poll while an agent step runs, print its answer
|
|
198
|
+
arbi run step con-example approve complete # a review: completing it approves
|
|
199
|
+
arbi run step con-example draft skip # skip any step (e.g. a failed agent step)
|
|
200
|
+
arbi run start --steps steps.yaml --title 'Acme note' --input client=Acme # a one-off run, no saved workflow
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
`arbi run steps --json` gives `waiting_on` (`person` | `agent` | `finished` | `stuck`) and per step `state`, `after`, `answer_id` (a done agent step's message in the thread) and `error`; with `--answers` each done agent step also has `answer` (its text). `--watch` polls (`--interval`, default 3s) until the run stops waiting on an agent step (`--timeout`, default 600s; `timed_out` in the JSON). A form step's required fields are checked before completing it. Agent steps run themselves: they can only be skipped.
|
|
167
204
|
|
|
168
205
|
In the terminal UI: `/automations` lists rules; `/automation view|run|runs|pause|resume|delete <wfl-id>` manages them; `/automation create <JSON>` and `/automation update <wfl-id> <JSON>` accept the same request bodies as the SDK.
|
|
169
206
|
|