@arbidocs/cli 0.3.64 → 0.3.65
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 +8 -0
- package/dist/index.js +13 -46
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.3.65
|
|
4
|
+
|
|
5
|
+
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.64...HEAD)
|
|
6
|
+
|
|
7
|
+
### 🩹 Fixes
|
|
8
|
+
|
|
9
|
+
- **tsc:** Zero typecheck errors across all four packages ([#752](https://github.com/arbicity/ARBI-frontend/pull/752))
|
|
10
|
+
|
|
3
11
|
## v0.3.64
|
|
4
12
|
|
|
5
13
|
[compare changes](https://github.com/arbicity/ARBI-frontend/compare/v0.3.63...HEAD)
|
package/dist/index.js
CHANGED
|
@@ -3694,7 +3694,7 @@ function getLatestVersion(skipCache = false) {
|
|
|
3694
3694
|
}
|
|
3695
3695
|
}
|
|
3696
3696
|
function getCurrentVersion() {
|
|
3697
|
-
return "0.3.
|
|
3697
|
+
return "0.3.65";
|
|
3698
3698
|
}
|
|
3699
3699
|
function readChangelog(fromVersion, toVersion) {
|
|
3700
3700
|
try {
|
|
@@ -3747,17 +3747,17 @@ function showChangelog(fromVersion, toVersion) {
|
|
|
3747
3747
|
async function checkForUpdates(autoUpdate) {
|
|
3748
3748
|
try {
|
|
3749
3749
|
const latest = getLatestVersion();
|
|
3750
|
-
if (!latest || latest === "0.3.
|
|
3750
|
+
if (!latest || latest === "0.3.65") return;
|
|
3751
3751
|
if (autoUpdate) {
|
|
3752
3752
|
warn(`
|
|
3753
|
-
Your arbi version is out of date (${"0.3.
|
|
3753
|
+
Your arbi version is out of date (${"0.3.65"} \u2192 ${latest}). Updating...`);
|
|
3754
3754
|
child_process.execSync("npm install -g @arbidocs/cli@latest", { stdio: "inherit" });
|
|
3755
|
-
showChangelog("0.3.
|
|
3755
|
+
showChangelog("0.3.65", latest);
|
|
3756
3756
|
console.log(`Updated to ${latest}.`);
|
|
3757
3757
|
} else {
|
|
3758
3758
|
warn(
|
|
3759
3759
|
`
|
|
3760
|
-
Your arbi version is out of date (${"0.3.
|
|
3760
|
+
Your arbi version is out of date (${"0.3.65"} \u2192 ${latest}).
|
|
3761
3761
|
Run "arbi update" to upgrade, or "arbi update auto" to always stay up to date.`
|
|
3762
3762
|
);
|
|
3763
3763
|
}
|
|
@@ -3789,10 +3789,10 @@ function markNagShown(latest) {
|
|
|
3789
3789
|
function hintUpdateOnError() {
|
|
3790
3790
|
try {
|
|
3791
3791
|
const cached = readCache();
|
|
3792
|
-
if (!cached || cached.latest === "0.3.
|
|
3792
|
+
if (!cached || cached.latest === "0.3.65") return;
|
|
3793
3793
|
if (!shouldShowNag(cached.latest)) return;
|
|
3794
3794
|
warn(
|
|
3795
|
-
`Your arbi version is out of date (${"0.3.
|
|
3795
|
+
`Your arbi version is out of date (${"0.3.65"} \u2192 ${cached.latest}). Run "arbi update".`
|
|
3796
3796
|
);
|
|
3797
3797
|
markNagShown(cached.latest);
|
|
3798
3798
|
} catch {
|
|
@@ -7884,7 +7884,7 @@ function registerDmCommand(program2) {
|
|
|
7884
7884
|
(opts) => runAction(async () => {
|
|
7885
7885
|
const { arbi, crypto: crypto2 } = await resolveDmCrypto();
|
|
7886
7886
|
const all = await sdk.dm.listDecryptedDMs(arbi, crypto2);
|
|
7887
|
-
const myExtId = arbi.session.getState().userExtId;
|
|
7887
|
+
const myExtId = arbi.session.getState().userExtId ?? void 0;
|
|
7888
7888
|
const dms = all.filter((r) => r.type === "user_message");
|
|
7889
7889
|
const filterOpts = {
|
|
7890
7890
|
unread: Boolean(opts.unread),
|
|
@@ -9839,7 +9839,7 @@ function registerFilesCommand(program2) {
|
|
|
9839
9839
|
);
|
|
9840
9840
|
files.command("upload <path>").description("Upload a file (file ID is returned for use with arbi ask -b --attach)").option("--purpose <name>", "OpenAI purpose tag (default: assistants)", "assistants").action(
|
|
9841
9841
|
(path7, opts) => runAction(async () => {
|
|
9842
|
-
const {
|
|
9842
|
+
const { loginResult, config } = await resolveWorkspace();
|
|
9843
9843
|
const filePath = path5.resolve(path7);
|
|
9844
9844
|
let bytes;
|
|
9845
9845
|
try {
|
|
@@ -9851,7 +9851,7 @@ function registerFilesCommand(program2) {
|
|
|
9851
9851
|
const blob = new Blob([new Uint8Array(bytes)]);
|
|
9852
9852
|
const data = await sdk.files.uploadFile(
|
|
9853
9853
|
{
|
|
9854
|
-
baseUrl:
|
|
9854
|
+
baseUrl: config.baseUrl,
|
|
9855
9855
|
accessToken: loginResult.accessToken
|
|
9856
9856
|
},
|
|
9857
9857
|
blob,
|
|
@@ -9881,10 +9881,10 @@ function registerFilesCommand(program2) {
|
|
|
9881
9881
|
);
|
|
9882
9882
|
files.command("content <id>").description("Fetch a file's raw bytes (writes to disk or stdout)").option("-o, --output <path>", 'Output file path (use "-" for stdout)').action(
|
|
9883
9883
|
(id, opts) => runAction(async () => {
|
|
9884
|
-
const {
|
|
9884
|
+
const { loginResult, config } = await resolveWorkspace();
|
|
9885
9885
|
const res = await sdk.files.getFileContent(
|
|
9886
9886
|
{
|
|
9887
|
-
baseUrl:
|
|
9887
|
+
baseUrl: config.baseUrl,
|
|
9888
9888
|
accessToken: loginResult.accessToken
|
|
9889
9889
|
},
|
|
9890
9890
|
id
|
|
@@ -9940,7 +9940,6 @@ function registerUsageCommand(program2) {
|
|
|
9940
9940
|
await usage.commands.find((c) => c.name() === "today").parseAsync(tail, { from: "user" });
|
|
9941
9941
|
});
|
|
9942
9942
|
}
|
|
9943
|
-
init_prompts();
|
|
9944
9943
|
function registerAuthCommand(program2) {
|
|
9945
9944
|
const auth = program2.command("auth").description("Self-service account ops: profile, change-email, delete-account, sso-config");
|
|
9946
9945
|
auth.command("profile").description("Show or update your display profile (given/family name, picture)").option("--name <given>", "New given name").option("--family <family>", "New family name (empty string clears it)").option(
|
|
@@ -10015,38 +10014,6 @@ function registerAuthCommand(program2) {
|
|
|
10015
10014
|
success(`Email changed to ${opts.newEmail}.`);
|
|
10016
10015
|
})()
|
|
10017
10016
|
);
|
|
10018
|
-
auth.command("delete-account").description("Request account deletion (30-day grace window \u2014 use cancel-deletion to undo)").option("-y, --yes", "Skip confirmation (required in non-TTY shells)").option("--dry-run", "Preview the deletion request (no SDK call)").action(
|
|
10019
|
-
(opts) => runAction(async () => {
|
|
10020
|
-
const { arbi } = await resolveAuth();
|
|
10021
|
-
if (opts.dryRun) {
|
|
10022
|
-
const email = arbi.session.getState().userExtId ?? "(unknown)";
|
|
10023
|
-
dryRun("request account deletion (30-day grace)", email);
|
|
10024
|
-
return;
|
|
10025
|
-
}
|
|
10026
|
-
if (!opts.yes) {
|
|
10027
|
-
requireInteractive("Pass -y/--yes to confirm in non-TTY shells.");
|
|
10028
|
-
const confirmed = await promptConfirm(
|
|
10029
|
-
"Request deletion of this account (30-day grace)?",
|
|
10030
|
-
false
|
|
10031
|
-
);
|
|
10032
|
-
if (!confirmed) {
|
|
10033
|
-
console.log("Cancelled.");
|
|
10034
|
-
return;
|
|
10035
|
-
}
|
|
10036
|
-
}
|
|
10037
|
-
const res = await arbi.fetch.POST("/v1/user/request-deletion", { body: {} });
|
|
10038
|
-
if (res.error) throw new Error(`request-deletion failed: ${JSON.stringify(res.error)}`);
|
|
10039
|
-
success("Deletion requested. You have 30 days to cancel with: arbi auth cancel-deletion");
|
|
10040
|
-
})()
|
|
10041
|
-
);
|
|
10042
|
-
auth.command("cancel-deletion").description("Cancel an in-flight account deletion request").action(
|
|
10043
|
-
() => runAction(async () => {
|
|
10044
|
-
const { arbi } = await resolveAuth();
|
|
10045
|
-
const res = await arbi.fetch.POST("/v1/user/cancel-deletion", { body: {} });
|
|
10046
|
-
if (res.error) throw new Error(`cancel-deletion failed: ${JSON.stringify(res.error)}`);
|
|
10047
|
-
success("Deletion cancelled. Account is active.");
|
|
10048
|
-
})()
|
|
10049
|
-
);
|
|
10050
10017
|
auth.command("sso-config").description("Show SSO config for this deployment (sso_enabled, Auth0 domain, audience)").option("--json", "Output as JSON").action(
|
|
10051
10018
|
(opts) => runAction(async () => {
|
|
10052
10019
|
const { arbi } = await resolveAuth();
|
|
@@ -10083,7 +10050,7 @@ console.info = (...args) => {
|
|
|
10083
10050
|
_origInfo(...args);
|
|
10084
10051
|
};
|
|
10085
10052
|
var program = new commander.Command();
|
|
10086
|
-
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.
|
|
10053
|
+
program.name("arbi").description("ARBI CLI \u2014 interact with ARBI from the terminal").version("0.3.65").showHelpAfterError(true).showSuggestionAfterError(true);
|
|
10087
10054
|
registerConfigCommand(program);
|
|
10088
10055
|
registerLoginCommand(program);
|
|
10089
10056
|
registerRegisterCommand(program);
|