@duvoai/cli 1.24.1 → 1.25.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/bin/duvo.js +42 -7
- package/dist/bin/duvo.js.map +4 -4
- package/package.json +1 -1
package/dist/bin/duvo.js
CHANGED
|
@@ -9986,11 +9986,6 @@ var FEATURE_FLAG_CATALOGUE = {
|
|
|
9986
9986
|
defaultValue: false,
|
|
9987
9987
|
description: "Enables minute-level granularity for scheduling agents, allowing sub-hour scheduling intervals for queue postponement."
|
|
9988
9988
|
},
|
|
9989
|
-
NEW_ORG_ONBOARDING: {
|
|
9990
|
-
key: "new_org_onboarding",
|
|
9991
|
-
defaultValue: false,
|
|
9992
|
-
description: "Gates the entire organizations feature. When disabled, org UI is hidden and org API routes return 404 so the feature appears not to exist. When enabled, users can create organizations, invite members, manage teams under orgs, and go through the org-based onboarding flow."
|
|
9993
|
-
},
|
|
9994
9989
|
NOTIFICATION_CENTER: {
|
|
9995
9990
|
key: "notification_center",
|
|
9996
9991
|
defaultValue: false,
|
|
@@ -26768,6 +26763,45 @@ function registerPulsePdf(pulse) {
|
|
|
26768
26763
|
}
|
|
26769
26764
|
__name(registerPulsePdf, "registerPulsePdf");
|
|
26770
26765
|
|
|
26766
|
+
// src/commands/pulse/refresh.ts
|
|
26767
|
+
function registerPulseRefresh(pulse) {
|
|
26768
|
+
pulse.command("refresh <id>").description(
|
|
26769
|
+
"Refresh a Pulse dashboard's data in place. The refresh runs in the background \u2014 poll `duvo pulse get` for status."
|
|
26770
|
+
).option("--json", "output raw JSON from the API").action(/* @__PURE__ */ __name(async function refreshAction(id, options) {
|
|
26771
|
+
const pulseId = trimRequired(id, "<id>");
|
|
26772
|
+
const { apiKey, apiBaseUrl } = await requireAuthenticatedConfig(this);
|
|
26773
|
+
const raw = await httpRequest({
|
|
26774
|
+
method: "POST",
|
|
26775
|
+
path: `/v2/artifacts/${encodeURIComponent(pulseId)}/refresh`,
|
|
26776
|
+
apiKey,
|
|
26777
|
+
apiBaseUrl,
|
|
26778
|
+
body: {}
|
|
26779
|
+
});
|
|
26780
|
+
if (options.json) {
|
|
26781
|
+
printJson(raw);
|
|
26782
|
+
return;
|
|
26783
|
+
}
|
|
26784
|
+
const parsed = artifactSchema.safeParse(raw);
|
|
26785
|
+
if (!parsed.success) {
|
|
26786
|
+
throw new CliError(
|
|
26787
|
+
`Unexpected response from the API: ${parsed.error.message}`
|
|
26788
|
+
);
|
|
26789
|
+
}
|
|
26790
|
+
console.log(green("Pulse refresh started."));
|
|
26791
|
+
console.log();
|
|
26792
|
+
console.log(
|
|
26793
|
+
renderKeyValue([
|
|
26794
|
+
{ label: "ID", value: parsed.data.id },
|
|
26795
|
+
{ label: "Title", value: parsed.data.title ?? "" },
|
|
26796
|
+
{ label: "Status", value: parsed.data.status }
|
|
26797
|
+
])
|
|
26798
|
+
);
|
|
26799
|
+
console.log();
|
|
26800
|
+
console.log(`Check progress with: duvo pulse get ${parsed.data.id}`);
|
|
26801
|
+
}, "refreshAction"));
|
|
26802
|
+
}
|
|
26803
|
+
__name(registerPulseRefresh, "registerPulseRefresh");
|
|
26804
|
+
|
|
26771
26805
|
// src/commands/pulse/rename.ts
|
|
26772
26806
|
var MAX_TITLE_LENGTH = 120;
|
|
26773
26807
|
function registerPulseRename(pulse) {
|
|
@@ -27094,6 +27128,7 @@ function registerPulse(program) {
|
|
|
27094
27128
|
registerPulseSnapshot(pulse);
|
|
27095
27129
|
registerPulseSendMessage(pulse);
|
|
27096
27130
|
registerPulseStop(pulse);
|
|
27131
|
+
registerPulseRefresh(pulse);
|
|
27097
27132
|
registerPulseRename(pulse);
|
|
27098
27133
|
registerPulseShare(pulse);
|
|
27099
27134
|
registerPulseDuplicate(pulse);
|
|
@@ -31229,7 +31264,7 @@ __name(resolveActiveTeamId, "resolveActiveTeamId");
|
|
|
31229
31264
|
var version = resolveVersion();
|
|
31230
31265
|
function resolveVersion() {
|
|
31231
31266
|
if (true) {
|
|
31232
|
-
return "1.
|
|
31267
|
+
return "1.25.0";
|
|
31233
31268
|
}
|
|
31234
31269
|
const packageJsonPath = join3(
|
|
31235
31270
|
dirname3(fileURLToPath2(import.meta.url)),
|
|
@@ -31423,7 +31458,7 @@ function isNewerVersion(candidate, current) {
|
|
|
31423
31458
|
__name(isNewerVersion, "isNewerVersion");
|
|
31424
31459
|
function loadPackageMeta() {
|
|
31425
31460
|
if (true) {
|
|
31426
|
-
return { name: "@duvoai/cli", version: "1.
|
|
31461
|
+
return { name: "@duvoai/cli", version: "1.25.0" };
|
|
31427
31462
|
}
|
|
31428
31463
|
const require2 = createRequire(import.meta.url);
|
|
31429
31464
|
const raw = require2("../package.json");
|