@easybits.cloud/cli 0.9.0 → 0.9.1
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/README.md +1 -1
- package/dist/index.js +8 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -90,7 +90,7 @@ easybits agents mcp get|set helper [--file servers.json|-] # set replaces the
|
|
|
90
90
|
easybits agents restart helper
|
|
91
91
|
easybits agents try helper "who are you?" # one full turn as text: verify what you set up
|
|
92
92
|
easybits agents logs helper --since "10 min ago"
|
|
93
|
-
easybits agents doctor helper # exits 1 on a problem
|
|
93
|
+
easybits agents doctor helper # exits 1 on a problem; status "error" shows why it did not start
|
|
94
94
|
easybits agents export helper --out helper.json [--show-secrets] [--with-files]
|
|
95
95
|
easybits agents create --like helper --name helper-2 [--copy-files] --dry-run # clone its setup, never its env
|
|
96
96
|
easybits agents create --from helper.json --name helper-3
|
package/dist/index.js
CHANGED
|
@@ -1803,6 +1803,7 @@ var GET_FIELDS = [
|
|
|
1803
1803
|
"name",
|
|
1804
1804
|
"template",
|
|
1805
1805
|
"status",
|
|
1806
|
+
"lastError",
|
|
1806
1807
|
"sandboxId",
|
|
1807
1808
|
"agentUrl",
|
|
1808
1809
|
"embedToken",
|
|
@@ -1890,11 +1891,14 @@ ${rec.systemPrompt.trimEnd()}`);
|
|
|
1890
1891
|
});
|
|
1891
1892
|
}
|
|
1892
1893
|
};
|
|
1894
|
+
var startError = (a) => a.status === "error" ? a.lastError ?? null : null;
|
|
1893
1895
|
function printAgent(a) {
|
|
1894
1896
|
console.log(`ID: ${a.agentId}`);
|
|
1895
1897
|
if (a.name) console.log(`Name: ${a.name}`);
|
|
1896
1898
|
console.log(`Template: ${a.template}`);
|
|
1897
1899
|
console.log(`Status: ${a.status}`);
|
|
1900
|
+
const reason = startError(a);
|
|
1901
|
+
if (reason) console.log(`Error: ${reason}`);
|
|
1898
1902
|
console.log(`Sandbox: ${a.sandboxId}`);
|
|
1899
1903
|
console.log(`URL: ${a.agentUrl}`);
|
|
1900
1904
|
console.log(`Token: ${maskSecret(a.embedToken ?? "")} (full value: --fields embedToken --json)`);
|
|
@@ -2267,7 +2271,8 @@ var doctor = {
|
|
|
2267
2271
|
add({
|
|
2268
2272
|
check: "status",
|
|
2269
2273
|
ok: a.status === "running" || a.status === "suspended",
|
|
2270
|
-
detail: a.status,
|
|
2274
|
+
detail: startError(a) ? `error: ${startError(a)}` : a.status,
|
|
2275
|
+
...a.status === "error" ? { hint: `Its runtime did not start. Fix the cause, then: easybits agents restart ${id}` } : {},
|
|
2271
2276
|
...a.status === "lost" ? { hint: `Its sandbox is gone. Destroy it (easybits agents destroy ${id}) or recreate it (easybits agents create --from <export.json>).` } : {}
|
|
2272
2277
|
});
|
|
2273
2278
|
if (a.expiresAt) {
|
|
@@ -2681,7 +2686,7 @@ async function updateNotice(current) {
|
|
|
2681
2686
|
}
|
|
2682
2687
|
|
|
2683
2688
|
// src/commands/doctor.ts
|
|
2684
|
-
var VERSION = true ? "0.9.
|
|
2689
|
+
var VERSION = true ? "0.9.1" : "dev";
|
|
2685
2690
|
var doctor2 = {
|
|
2686
2691
|
name: "doctor",
|
|
2687
2692
|
group: "Account",
|
|
@@ -2941,7 +2946,7 @@ function normalizeArgs(input) {
|
|
|
2941
2946
|
}
|
|
2942
2947
|
|
|
2943
2948
|
// src/index.ts
|
|
2944
|
-
var VERSION2 = true ? "0.9.
|
|
2949
|
+
var VERSION2 = true ? "0.9.1" : "dev";
|
|
2945
2950
|
var GLOBAL_OPTIONS = {
|
|
2946
2951
|
json: { type: "boolean" },
|
|
2947
2952
|
token: { type: "string" },
|
package/package.json
CHANGED