@sulala/agent-os 0.1.12 → 0.1.13

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.
@@ -5,7 +5,7 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>vite-app</title>
8
- <script type="module" crossorigin src="/assets/index-CvFmBIcr.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-Cxz22YWf.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="/assets/index-RzMkSaIA.css">
10
10
  </head>
11
11
  <body>
package/dist/cli.js CHANGED
@@ -15638,7 +15638,16 @@ function createRoutes() {
15638
15638
  "/health": () => Response.json({ ok: true, service: "agent-os" }, { headers: CORS_HEADERS }),
15639
15639
  "/api/agents": {
15640
15640
  GET: async () => {
15641
- const agents = await loadAgents();
15641
+ let agents;
15642
+ try {
15643
+ agents = await loadAgents();
15644
+ } catch (err) {
15645
+ console.error("[sulala] GET /api/agents failed:", err);
15646
+ return jsonResponse({
15647
+ agents: [],
15648
+ error: "Agent store unavailable. Try running 'sulala onboard' again."
15649
+ }, 200);
15650
+ }
15642
15651
  return jsonResponse({
15643
15652
  agents: agents.map((a) => ({
15644
15653
  id: a.id,
package/dist/index.js CHANGED
@@ -15564,7 +15564,16 @@ function createRoutes() {
15564
15564
  "/health": () => Response.json({ ok: true, service: "agent-os" }, { headers: CORS_HEADERS }),
15565
15565
  "/api/agents": {
15566
15566
  GET: async () => {
15567
- const agents = await loadAgents();
15567
+ let agents;
15568
+ try {
15569
+ agents = await loadAgents();
15570
+ } catch (err) {
15571
+ console.error("[sulala] GET /api/agents failed:", err);
15572
+ return jsonResponse({
15573
+ agents: [],
15574
+ error: "Agent store unavailable. Try running 'sulala onboard' again."
15575
+ }, 200);
15576
+ }
15568
15577
  return jsonResponse({
15569
15578
  agents: agents.map((a) => ({
15570
15579
  id: a.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sulala/agent-os",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },