@arbidocs/cli 0.5.132 → 0.5.133
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 +10 -0
- package/SKILL.md +1 -1
- package/dist/index.js +13 -21
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.5.133
|
|
4
|
+
|
|
5
|
+
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.5.132...HEAD)
|
|
6
|
+
|
|
7
|
+
### ✅ Tests
|
|
8
|
+
|
|
9
|
+
- **e2e:** Use landscape generation and close Word editing menu ([03ed6b475](https://github.com/arbicity/ARBI-frontend/commit/03ed6b475))
|
|
10
|
+
- Reopen Word layout menu after choosing margins ([224e223fb](https://github.com/arbicity/ARBI-frontend/commit/224e223fb))
|
|
11
|
+
- **docx:** Leaving Word right after Save version saves after it, never refused ([b91c3e3f5](https://github.com/arbicity/ARBI-frontend/commit/b91c3e3f5))
|
|
12
|
+
|
|
3
13
|
## v0.5.132
|
|
4
14
|
|
|
5
15
|
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.5.131...HEAD)
|
package/SKILL.md
CHANGED
|
@@ -38,7 +38,7 @@ Common moves:
|
|
|
38
38
|
- Create: `arbi workspace create "My WS"` — does NOT auto-select. Use `--select` to create + select in one go, `--json` for scripts
|
|
39
39
|
- Rename / edit: `arbi workspace update '{"name":"New Name"}'` (add `--json` for scripts)
|
|
40
40
|
- Delete: `arbi workspace delete [id-or-name]` — prompts for confirmation in interactive shells. In non-TTY shells you **must** pass `-y/--yes` (otherwise the command refuses to delete). If you delete the active workspace, the selection is cleared. `--json` outputs `{id, deleted}`
|
|
41
|
-
- Share: `arbi workspace add-user <email> -r <role>` where role is `owner|collaborator|
|
|
41
|
+
- Share: `arbi workspace add-user <email> -r <role>` where role is `owner|collaborator|viewer` (`viewer` is stored as `guest`; legacy `guest` and `read-only` inputs are accepted too) (plan-limited — free tier has 0 collaborator slots)
|
|
42
42
|
- List members: `arbi workspace users [--json]`
|
|
43
43
|
- Remove member: `arbi workspace remove-user <user-id>`
|
|
44
44
|
- Copy docs between workspaces: `arbi workspace copy <target-ws-id> <doc-id>...` — only copies documents that have finished indexing; partial/failed copies exit non-zero
|
package/dist/index.js
CHANGED
|
@@ -3689,7 +3689,7 @@ function getLatestVersion(skipCache = false) {
|
|
|
3689
3689
|
}
|
|
3690
3690
|
}
|
|
3691
3691
|
function getCurrentVersion() {
|
|
3692
|
-
return "0.5.
|
|
3692
|
+
return "0.5.133";
|
|
3693
3693
|
}
|
|
3694
3694
|
function readChangelog(fromVersion, toVersion) {
|
|
3695
3695
|
try {
|
|
@@ -3742,17 +3742,17 @@ function showChangelog(fromVersion, toVersion) {
|
|
|
3742
3742
|
async function checkForUpdates(autoUpdate) {
|
|
3743
3743
|
try {
|
|
3744
3744
|
const latest = getLatestVersion();
|
|
3745
|
-
if (!latest || latest === "0.5.
|
|
3745
|
+
if (!latest || latest === "0.5.133") return;
|
|
3746
3746
|
if (autoUpdate) {
|
|
3747
3747
|
warn(`
|
|
3748
|
-
Your arbi version is out of date (${"0.5.
|
|
3748
|
+
Your arbi version is out of date (${"0.5.133"} \u2192 ${latest}). Updating...`);
|
|
3749
3749
|
child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
|
|
3750
|
-
showChangelog("0.5.
|
|
3750
|
+
showChangelog("0.5.133", latest);
|
|
3751
3751
|
console.log(`Updated to ${latest}.`);
|
|
3752
3752
|
} else {
|
|
3753
3753
|
warn(
|
|
3754
3754
|
`
|
|
3755
|
-
Your arbi version is out of date (${"0.5.
|
|
3755
|
+
Your arbi version is out of date (${"0.5.133"} \u2192 ${latest}).
|
|
3756
3756
|
Run "arbi update" to upgrade, or "arbi update auto" to always stay up to date.`
|
|
3757
3757
|
);
|
|
3758
3758
|
}
|
|
@@ -3784,10 +3784,10 @@ function markNagShown(latest) {
|
|
|
3784
3784
|
function hintUpdateOnError() {
|
|
3785
3785
|
try {
|
|
3786
3786
|
const cached = readCache();
|
|
3787
|
-
if (!cached || cached.latest === "0.5.
|
|
3787
|
+
if (!cached || cached.latest === "0.5.133") return;
|
|
3788
3788
|
if (!shouldShowNag(cached.latest)) return;
|
|
3789
3789
|
warn(
|
|
3790
|
-
`Your arbi version is out of date (${"0.5.
|
|
3790
|
+
`Your arbi version is out of date (${"0.5.133"} \u2192 ${cached.latest}). Run "arbi update".`
|
|
3791
3791
|
);
|
|
3792
3792
|
markNagShown(cached.latest);
|
|
3793
3793
|
} catch {
|
|
@@ -5207,7 +5207,7 @@ init_prompts();
|
|
|
5207
5207
|
function requireWorkspaceRole(input2) {
|
|
5208
5208
|
const role = sdk.workspaces.parseWorkspaceRole(input2);
|
|
5209
5209
|
if (!role) {
|
|
5210
|
-
throw new Error(`Unknown role "${input2}" \u2014 use owner, collaborator or
|
|
5210
|
+
throw new Error(`Unknown role "${input2}" \u2014 use owner, collaborator or viewer`);
|
|
5211
5211
|
}
|
|
5212
5212
|
return role;
|
|
5213
5213
|
}
|
|
@@ -5552,11 +5552,7 @@ function registerWorkspacesCommand(program2) {
|
|
|
5552
5552
|
);
|
|
5553
5553
|
})()
|
|
5554
5554
|
);
|
|
5555
|
-
workspace.command("add-user <emails...>").description("Add users to the active workspace").option("-w, --workspace <id>", "Workspace ID (defaults to selected workspace)").option(
|
|
5556
|
-
"-r, --role <role>",
|
|
5557
|
-
"Role: owner, collaborator, guest (read only; also read-only)",
|
|
5558
|
-
"collaborator"
|
|
5559
|
-
).action(
|
|
5555
|
+
workspace.command("add-user <emails...>").description("Add users to the active workspace").option("-w, --workspace <id>", "Workspace ID (defaults to selected workspace)").option("-r, --role <role>", "Role: owner, collaborator, viewer", "collaborator").action(
|
|
5560
5556
|
(emails, opts) => runAction(async () => {
|
|
5561
5557
|
const { arbi } = await resolveWorkspace(opts.workspace);
|
|
5562
5558
|
const role = requireWorkspaceRole(opts.role ?? "collaborator");
|
|
@@ -5660,7 +5656,7 @@ Try: arbi contacts add ${owner.includes("@") ? owner : "<their-email>"}`
|
|
|
5660
5656
|
success(`Left workspace "${target.ws.name}" (${target.id}).`);
|
|
5661
5657
|
})()
|
|
5662
5658
|
);
|
|
5663
|
-
workspace.command("set-role <role> <user-ids...>").description("Update user roles (owner, collaborator,
|
|
5659
|
+
workspace.command("set-role <role> <user-ids...>").description("Update user roles (owner, collaborator, viewer)").option("-w, --workspace <id>", "Workspace ID (defaults to selected workspace)").action(
|
|
5664
5660
|
(role, userIds, opts) => runAction(async () => {
|
|
5665
5661
|
const { arbi } = await resolveWorkspace(opts.workspace);
|
|
5666
5662
|
const data = await sdk.workspaces.setUserRole(arbi, userIds, requireWorkspaceRole(role));
|
|
@@ -10373,11 +10369,7 @@ function registerAgentCommand(program2) {
|
|
|
10373
10369
|
);
|
|
10374
10370
|
agent.command("create").description(
|
|
10375
10371
|
"Create a child persistent agent owned by the current user (different from `arbi agent-create`, which is a SUPPORT_API_KEY bot-account flow)"
|
|
10376
|
-
).option("--name <name>", "Agent name (letters, digits, hyphens, underscores)").option("-w, --workspace <ids...>", "Workspace IDs to share with the agent").option(
|
|
10377
|
-
"--role <role>",
|
|
10378
|
-
"Workspace role: collaborator or guest (read only; also read-only)",
|
|
10379
|
-
"collaborator"
|
|
10380
|
-
).action(
|
|
10372
|
+
).option("--name <name>", "Agent name (letters, digits, hyphens, underscores)").option("-w, --workspace <ids...>", "Workspace IDs to share with the agent").option("--role <role>", "Workspace role: collaborator or viewer", "collaborator").action(
|
|
10381
10373
|
(opts) => runAction(async () => {
|
|
10382
10374
|
const { arbi, loginResult } = await resolveAuth();
|
|
10383
10375
|
const creds = store.requireCredentials();
|
|
@@ -10388,7 +10380,7 @@ function registerAgentCommand(program2) {
|
|
|
10388
10380
|
}
|
|
10389
10381
|
const agentRole = sdk.workspaces.parseWorkspaceRole(opts.role ?? "collaborator");
|
|
10390
10382
|
if (agentRole !== "collaborator" && agentRole !== "guest") {
|
|
10391
|
-
throw new Error(`Unknown role "${opts.role}" \u2014 use collaborator or
|
|
10383
|
+
throw new Error(`Unknown role "${opts.role}" \u2014 use collaborator or viewer`);
|
|
10392
10384
|
}
|
|
10393
10385
|
let workspaceIds = opts.workspace ?? [];
|
|
10394
10386
|
if (workspaceIds.length === 0) {
|
|
@@ -12680,7 +12672,7 @@ console.info = (...args) => {
|
|
|
12680
12672
|
_origInfo(...args);
|
|
12681
12673
|
};
|
|
12682
12674
|
var program = new commander.Command();
|
|
12683
|
-
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.5.
|
|
12675
|
+
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.5.133").showHelpAfterError(true).showSuggestionAfterError(true);
|
|
12684
12676
|
registerConfigCommand(program);
|
|
12685
12677
|
registerLoginCommand(program);
|
|
12686
12678
|
registerRegisterCommand(program);
|