@arbidocs/cli 0.4.139 → 0.4.141
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 +4 -5
- package/dist/index.js +23 -20
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## v0.4.
|
|
3
|
+
## v0.4.141
|
|
4
4
|
|
|
5
|
-
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.4.
|
|
5
|
+
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.4.139...HEAD)
|
|
6
6
|
|
|
7
|
-
###
|
|
7
|
+
### 🏡 Chore
|
|
8
8
|
|
|
9
|
-
-
|
|
10
|
-
- **notifications:** The Notifications page is the blocks ConnectedNotificationCenter ([#1697](https://github.com/arbicity/ARBI-frontend/pull/1697))
|
|
9
|
+
- Release v0.4.139 [skip ci] ([67d65939e](https://github.com/arbicity/ARBI-frontend/commit/67d65939e))
|
|
11
10
|
|
|
12
11
|
## v0.4.136
|
|
13
12
|
|
package/dist/index.js
CHANGED
|
@@ -3695,7 +3695,7 @@ function getLatestVersion(skipCache = false) {
|
|
|
3695
3695
|
}
|
|
3696
3696
|
}
|
|
3697
3697
|
function getCurrentVersion() {
|
|
3698
|
-
return "0.4.
|
|
3698
|
+
return "0.4.141";
|
|
3699
3699
|
}
|
|
3700
3700
|
function readChangelog(fromVersion, toVersion) {
|
|
3701
3701
|
try {
|
|
@@ -3748,17 +3748,17 @@ function showChangelog(fromVersion, toVersion) {
|
|
|
3748
3748
|
async function checkForUpdates(autoUpdate) {
|
|
3749
3749
|
try {
|
|
3750
3750
|
const latest = getLatestVersion();
|
|
3751
|
-
if (!latest || latest === "0.4.
|
|
3751
|
+
if (!latest || latest === "0.4.141") return;
|
|
3752
3752
|
if (autoUpdate) {
|
|
3753
3753
|
warn(`
|
|
3754
|
-
Your arbi version is out of date (${"0.4.
|
|
3754
|
+
Your arbi version is out of date (${"0.4.141"} \u2192 ${latest}). Updating...`);
|
|
3755
3755
|
child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
|
|
3756
|
-
showChangelog("0.4.
|
|
3756
|
+
showChangelog("0.4.141", latest);
|
|
3757
3757
|
console.log(`Updated to ${latest}.`);
|
|
3758
3758
|
} else {
|
|
3759
3759
|
warn(
|
|
3760
3760
|
`
|
|
3761
|
-
Your arbi version is out of date (${"0.4.
|
|
3761
|
+
Your arbi version is out of date (${"0.4.141"} \u2192 ${latest}).
|
|
3762
3762
|
Run "arbi update" to upgrade, or "arbi update auto" to always stay up to date.`
|
|
3763
3763
|
);
|
|
3764
3764
|
}
|
|
@@ -3790,10 +3790,10 @@ function markNagShown(latest) {
|
|
|
3790
3790
|
function hintUpdateOnError() {
|
|
3791
3791
|
try {
|
|
3792
3792
|
const cached = readCache();
|
|
3793
|
-
if (!cached || cached.latest === "0.4.
|
|
3793
|
+
if (!cached || cached.latest === "0.4.141") return;
|
|
3794
3794
|
if (!shouldShowNag(cached.latest)) return;
|
|
3795
3795
|
warn(
|
|
3796
|
-
`Your arbi version is out of date (${"0.4.
|
|
3796
|
+
`Your arbi version is out of date (${"0.4.141"} \u2192 ${cached.latest}). Run "arbi update".`
|
|
3797
3797
|
);
|
|
3798
3798
|
markNagShown(cached.latest);
|
|
3799
3799
|
} catch {
|
|
@@ -6841,6 +6841,9 @@ function registerUploadCommand(program2) {
|
|
|
6841
6841
|
).option("--folder <name>", "Backend folder for plain-file uploads (direct upload only)").option(
|
|
6842
6842
|
"--wp-type <type>",
|
|
6843
6843
|
"Work product type: source (default), skill, artifact, webpage. Use --wp-type skill with --folder skills/<slug> to upload a SKILL.md."
|
|
6844
|
+
).option(
|
|
6845
|
+
"--share",
|
|
6846
|
+
"With --wp-type skill: share the skill with everyone in the deployment (private otherwise)"
|
|
6844
6847
|
).option(
|
|
6845
6848
|
"--version-of <docId>",
|
|
6846
6849
|
"Upload a single file as the next version of this document (it becomes the current version)"
|
|
@@ -7008,6 +7011,8 @@ function registerUploadCommand(program2) {
|
|
|
7008
7011
|
const result = await sdk.documentsNode.uploadLocalFile(auth, filePath, {
|
|
7009
7012
|
folder: opts.folder,
|
|
7010
7013
|
wpType: opts.wpType,
|
|
7014
|
+
// A skill is the uploader's own unless --share; other documents keep the server default.
|
|
7015
|
+
shared: opts.wpType === "skill" ? Boolean(opts.share) : void 0,
|
|
7011
7016
|
versionOf: opts.versionOf
|
|
7012
7017
|
});
|
|
7013
7018
|
if (!opts.json) {
|
|
@@ -12378,7 +12383,7 @@ function registerSkillsCommand(program2) {
|
|
|
12378
12383
|
);
|
|
12379
12384
|
skills.command("install <source>").description(
|
|
12380
12385
|
"Install a skill from a URL or local path (SKILL.md). Slug derived from frontmatter unless --slug is given."
|
|
12381
|
-
).option("--slug <slug>", "Override the slug (default: derived from frontmatter name)").option("--json", "Output the upload result as JSON").action(
|
|
12386
|
+
).option("--slug <slug>", "Override the slug (default: derived from frontmatter name)").option("--share", "Share the skill with everyone in the deployment (private to you otherwise)").option("--json", "Output the upload result as JSON").action(
|
|
12382
12387
|
(source, opts) => runAction(async () => {
|
|
12383
12388
|
const ctx = await resolveWorkspace();
|
|
12384
12389
|
const authHeaders = {
|
|
@@ -12392,21 +12397,19 @@ function registerSkillsCommand(program2) {
|
|
|
12392
12397
|
);
|
|
12393
12398
|
process.exit(1);
|
|
12394
12399
|
})();
|
|
12395
|
-
const
|
|
12396
|
-
const result = await sdk.
|
|
12397
|
-
folder: `skills/${slug}`,
|
|
12398
|
-
wpType: "skill"
|
|
12399
|
-
});
|
|
12400
|
+
const shared = opts.share ?? false;
|
|
12401
|
+
const result = await sdk.assistant.uploadSkill(authHeaders, slug, body, { shared });
|
|
12400
12402
|
if (opts.json) {
|
|
12401
|
-
console.log(JSON.stringify({ slug, ...result }, null, 2));
|
|
12403
|
+
console.log(JSON.stringify({ slug, shared, ...result }, null, 2));
|
|
12402
12404
|
return;
|
|
12403
12405
|
}
|
|
12404
|
-
|
|
12405
|
-
|
|
12406
|
-
|
|
12407
|
-
|
|
12408
|
-
|
|
12406
|
+
bold(`Installed skill: ${slug}`);
|
|
12407
|
+
dim(`source: ${source}`);
|
|
12408
|
+
dim(`folder: skills/${slug}`);
|
|
12409
|
+
dim(
|
|
12410
|
+
shared ? "Shared with everyone in the deployment." : "Private to you (--share to share)."
|
|
12409
12411
|
);
|
|
12412
|
+
dim("Backend frontmatter loader picks it up on the next /v1/assistant/skills call.");
|
|
12410
12413
|
})()
|
|
12411
12414
|
);
|
|
12412
12415
|
skills.command("show <slug>").description("Show a skill's SKILL.md body (read-only)").option("--json", "Output as JSON (includes metadata)").action(
|
|
@@ -12569,7 +12572,7 @@ console.info = (...args) => {
|
|
|
12569
12572
|
_origInfo(...args);
|
|
12570
12573
|
};
|
|
12571
12574
|
var program = new commander.Command();
|
|
12572
|
-
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.4.
|
|
12575
|
+
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.4.141").showHelpAfterError(true).showSuggestionAfterError(true);
|
|
12573
12576
|
registerConfigCommand(program);
|
|
12574
12577
|
registerLoginCommand(program);
|
|
12575
12578
|
registerRegisterCommand(program);
|