@feltdb/core 0.7.2 → 0.7.4
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/application-development.d.ts +76 -0
- package/dist/application-development.d.ts.map +1 -0
- package/dist/application-development.js +137 -0
- package/dist/application-manifest.d.ts +5 -1
- package/dist/application-manifest.d.ts.map +1 -1
- package/dist/application-manifest.js +10 -3
- package/dist/canonical-application.d.ts +26 -0
- package/dist/canonical-application.d.ts.map +1 -0
- package/dist/canonical-application.js +45 -0
- package/dist/cli/ai-model-config.js +97 -0
- package/dist/cli/commands.js +485 -30
- package/dist/cli/index.js +1 -1
- package/dist/cli/proposal-client.js +54 -0
- package/dist/cli/publish-engine.js +162 -0
- package/dist/cli/source-sync.js +139 -0
- package/dist/create/cli.js +1 -1
- package/dist/create/create.js +30 -6
- package/dist/create/managed-account.js +14 -7
- package/dist/create/package-versions.js +1 -1
- package/dist/create/server-source/crates/feltdb/src/application.rs +31 -1
- package/dist/create/server-source/crates/feltdb/src/authority_failover.rs +847 -0
- package/dist/create/server-source/crates/feltdb/src/bin/feltdb_node.rs +338 -29
- package/dist/create/server-source/crates/feltdb/src/distributed_transactions.rs +72 -34
- package/dist/create/server-source/crates/feltdb/src/lib.rs +1 -0
- package/dist/create/server-source/crates/feltdb-server/src/identity.rs +46 -3
- package/dist/create/server-source/crates/feltdb-server/src/main.rs +315 -16
- package/dist/create/server-source/crates/feltdb-server/src/tenancy.rs +20 -0
- package/dist/create/template/default-project/README.md +57 -0
- package/dist/create/template/default-project/agents/activity-assistant.ts +18 -0
- package/dist/create/template/default-project/agents/project-assistant.ts +19 -0
- package/dist/create/template/default-project/capabilities/activity-summary.ts +14 -0
- package/dist/create/template/default-project/capabilities/project-search.ts +16 -0
- package/dist/create/template/default-project/capabilities/project-summary.ts +15 -0
- package/dist/create/template/default-project/feltdb.flow +169 -0
- package/dist/create/template/default-project/src/App.tsx +20 -0
- package/dist/create/template/default-project/src/context/AuthContext.tsx +27 -0
- package/dist/create/template/default-project/src/feltdb.ts +87 -0
- package/dist/create/template/default-project/src/index.tsx +14 -0
- package/dist/create/template/default-project/src/pages/Activity.tsx +7 -0
- package/dist/create/template/default-project/src/pages/Agents.tsx +15 -0
- package/dist/create/template/default-project/src/pages/Dashboard.tsx +17 -0
- package/dist/create/template/default-project/src/pages/Invitations.tsx +11 -0
- package/dist/create/template/default-project/src/pages/Projects.tsx +11 -0
- package/dist/create/template/default-project/src/pages/SignIn.tsx +8 -0
- package/dist/create/template/default-project/src/pages/SignUp.tsx +8 -0
- package/dist/create/template/default-project/src/styles-application.css +21 -0
- package/dist/create/template/default-project/src/styles.css +1 -0
- package/dist/create/template/default-project/workflows/agent-assisted-summary.ts +1 -0
- package/dist/create/template/default-project/workflows/invitation.ts +30 -0
- package/dist/create/template/default-project/workflows/project-created.ts +2 -0
- package/dist/db.d.ts +49 -1
- package/dist/db.d.ts.map +1 -1
- package/dist/db.js +77 -0
- package/dist/error-codes.d.ts +20 -1
- package/dist/error-codes.d.ts.map +1 -1
- package/dist/error-codes.js +25 -0
- package/dist/flowspec.d.ts.map +1 -1
- package/dist/flowspec.js +27 -6
- package/dist/http-db.d.ts +15 -2
- package/dist/http-db.d.ts.map +1 -1
- package/dist/http-db.js +113 -5
- package/dist/index-core.d.ts +3 -0
- package/dist/index-core.d.ts.map +1 -1
- package/dist/index-core.js +3 -0
- package/dist/proposal.d.ts +85 -0
- package/dist/proposal.d.ts.map +1 -0
- package/dist/proposal.js +105 -0
- package/dist/studio/app.d.ts +5 -1
- package/dist/studio/app.d.ts.map +1 -1
- package/dist/studio/components/ApplicationDesigner.d.ts +10 -1
- package/dist/studio/components/ApplicationDesigner.d.ts.map +1 -1
- package/dist/studio/components/AskFeltDB.d.ts +20 -0
- package/dist/studio/components/AskFeltDB.d.ts.map +1 -0
- package/dist/studio/components/ProposalBrowser.d.ts +3 -0
- package/dist/studio/components/ProposalBrowser.d.ts.map +1 -0
- package/dist/studio/components/index.d.ts +2 -0
- package/dist/studio/components/index.d.ts.map +1 -1
- package/dist/studio/components/index.js +4 -4
- package/dist/studio/{components-C5p2TfIU.js → components-Bm4sjhcX.js} +531 -192
- package/dist/studio/index.js +184 -172
- package/dist/studio/studio.css +1 -1
- package/dist/studio-app/assets/dist-DA1MYSzp.js +1 -0
- package/dist/studio-app/assets/{feltdb_wasm-DVKsw75S.js → feltdb_wasm-B-Ccgccb.js} +1 -1
- package/dist/studio-app/assets/feltdb_wasm_bg-wH3enJIA.wasm +0 -0
- package/dist/studio-app/assets/{index-C1GWyazR.css → index-BRrmvaKw.css} +1 -1
- package/dist/studio-app/assets/index-CEIqowCh.js +42 -0
- package/dist/studio-app/assets/lib-B2_7fcn7.js +69 -0
- package/dist/studio-app/assets/worker-CARZ5g7K.js +69 -0
- package/dist/studio-app/index.html +2 -2
- package/dist/wasm/feltdb_wasm_bg.wasm +0 -0
- package/dist/workspace/local-development-authority.d.ts +3 -0
- package/dist/workspace/local-development-authority.d.ts.map +1 -1
- package/dist/workspace/local-development-authority.js +62 -1
- package/package.json +1 -1
- package/dist/studio-app/assets/feltdb_wasm_bg-DNyNf0yy.wasm +0 -0
- package/dist/studio-app/assets/index-C71X92EK.js +0 -28
package/dist/studio/index.js
CHANGED
|
@@ -1,324 +1,336 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { ManagedInstanceUtil as
|
|
4
|
-
import { ManagedInstancePanel as
|
|
5
|
-
import { capitalize as
|
|
6
|
-
import { useEffect as
|
|
7
|
-
import { BrowserRouter as
|
|
8
|
-
import { jsx as
|
|
9
|
-
import { parseFlowSpec as
|
|
1
|
+
import { C as e, S as t, _ as n, a as r, b as i, c as a, d as o, f as s, g as c, h as l, i as u, l as d, m as f, n as p, o as m, p as h, r as g, s as _, t as v, u as y, v as b, x, y as S } from "./components-Bm4sjhcX.js";
|
|
2
|
+
import { t as C } from "./KeyManagementPanel-DZuSeWBK.js";
|
|
3
|
+
import { ManagedInstanceUtil as w } from "./utils/managed-instance.js";
|
|
4
|
+
import { ManagedInstancePanel as T } from "./components/ManagedInstancePanel.js";
|
|
5
|
+
import { capitalize as E, fetchDashboardStats as D, fetchDiagnostics as O, fetchPeers as k, fetchProvenance as A, formatBytes as j, formatReference as M, formatRelativeTime as N, formatTime as P, searchReferences as F } from "./utils/index.js";
|
|
6
|
+
import { useEffect as I, useState as L } from "react";
|
|
7
|
+
import { BrowserRouter as R, Link as z, Route as B, Routes as V } from "react-router-dom";
|
|
8
|
+
import { Fragment as H, jsx as U, jsxs as W } from "react/jsx-runtime";
|
|
9
|
+
import { parseFlowSpec as G } from "@feltdb/core";
|
|
10
10
|
//#region src/app.tsx
|
|
11
|
-
function
|
|
12
|
-
let [
|
|
11
|
+
function K({ db: n, remoteUrl: x = "", token: w = "", namespace: T = "default", deploymentRuntime: E = "browser", applicationUrl: D = "", developmentSession: O, managedPublish: k, sourceSync: A, onConnect: j }) {
|
|
12
|
+
let [M, N] = L(null), P = S(n || null, T), F = b(n || null, M, T), { diagnostics: K } = t(n || null), ee = i(n || null), [te, ne] = L(), q = E !== "browser" || !!x, [J, Y] = L([]), [X, Z] = L([]), [Q, re] = L(0), $ = (e) => ({
|
|
13
13
|
pathname: e,
|
|
14
14
|
search: window.location.search
|
|
15
15
|
});
|
|
16
|
-
return
|
|
16
|
+
return I(() => {
|
|
17
17
|
let e = !0;
|
|
18
18
|
return fetch("/_feltdb/project", { cache: "no-store" }).then(async (t) => {
|
|
19
19
|
if (!t.ok) throw Error("No project model endpoint");
|
|
20
20
|
let n = await t.json();
|
|
21
|
-
e &&
|
|
21
|
+
e && N(G(n.source));
|
|
22
22
|
}).catch(async () => {
|
|
23
|
-
let t =
|
|
24
|
-
e && t[0]?.spec &&
|
|
23
|
+
let t = n ? await n.collection("_flow_apps").all() : [];
|
|
24
|
+
e && t[0]?.spec && N(t[0].spec);
|
|
25
25
|
}), () => {
|
|
26
26
|
e = !1;
|
|
27
27
|
};
|
|
28
|
-
}, [
|
|
29
|
-
if (!
|
|
28
|
+
}, [n]), I(() => {
|
|
29
|
+
if (!O?.sessionId) return;
|
|
30
30
|
let e = !0, t = () => void fetch("/_feltdb/runtime", { cache: "no-store" }).then((e) => e.ok ? e.json() : { runtimes: [] }).then((t) => {
|
|
31
|
-
e &&
|
|
31
|
+
e && Y(t.runtimes || []);
|
|
32
32
|
}).catch(() => {
|
|
33
|
-
e &&
|
|
33
|
+
e && Y([]);
|
|
34
34
|
});
|
|
35
35
|
t();
|
|
36
36
|
let n = window.setInterval(t, 2e3);
|
|
37
37
|
return () => {
|
|
38
38
|
e = !1, window.clearInterval(n);
|
|
39
39
|
};
|
|
40
|
-
}, [
|
|
41
|
-
let e =
|
|
40
|
+
}, [O?.sessionId]), I(() => {
|
|
41
|
+
let e = J[0]?.runtimeInstanceId;
|
|
42
42
|
if (!e) {
|
|
43
|
-
|
|
43
|
+
Z([]);
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
46
|
let t = !0, n = 0, r = () => void fetch(`/_feltdb/observations?runtimeInstanceId=${encodeURIComponent(e)}&cursor=${n}&limit=100`, { cache: "no-store" }).then((e) => e.ok ? e.json() : { observations: [] }).then((e) => {
|
|
47
|
-
t && (n = e.nextCursor ?? n,
|
|
47
|
+
t && (n = e.nextCursor ?? n, re(e.dropped || 0), Z((t) => [...t, ...e.observations || []].slice(-200)));
|
|
48
48
|
}).catch(() => void 0);
|
|
49
49
|
r();
|
|
50
50
|
let i = window.setInterval(r, 1e3);
|
|
51
51
|
return () => {
|
|
52
52
|
t = !1, window.clearInterval(i);
|
|
53
53
|
};
|
|
54
|
-
}, [
|
|
54
|
+
}, [J[0]?.runtimeInstanceId]), /* @__PURE__ */ U(R, { children: /* @__PURE__ */ W("div", {
|
|
55
55
|
className: "studio-app",
|
|
56
|
-
children: [/* @__PURE__ */
|
|
56
|
+
children: [/* @__PURE__ */ W("nav", {
|
|
57
57
|
className: "studio-nav",
|
|
58
58
|
children: [
|
|
59
|
-
/* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ W("div", {
|
|
60
60
|
className: "nav-header",
|
|
61
|
-
children: [/* @__PURE__ */
|
|
61
|
+
children: [/* @__PURE__ */ U("h1", { children: "FeltDB Studio" }), P && /* @__PURE__ */ U("div", {
|
|
62
62
|
className: "instance-info",
|
|
63
|
-
children:
|
|
63
|
+
children: P.namespace
|
|
64
64
|
})]
|
|
65
65
|
}),
|
|
66
|
-
/* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ U("div", {
|
|
67
67
|
className: "nav-search",
|
|
68
|
-
children: /* @__PURE__ */
|
|
69
|
-
db:
|
|
70
|
-
model:
|
|
68
|
+
children: /* @__PURE__ */ U(u, {
|
|
69
|
+
db: n,
|
|
70
|
+
model: M
|
|
71
71
|
})
|
|
72
72
|
}),
|
|
73
|
-
/* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ W("ul", {
|
|
74
74
|
className: "nav-menu",
|
|
75
75
|
children: [
|
|
76
|
-
/* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */ U("li", {
|
|
77
77
|
className: "nav-section",
|
|
78
78
|
children: "Design"
|
|
79
79
|
}),
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
to:
|
|
80
|
+
/* @__PURE__ */ U("li", { children: /* @__PURE__ */ U(z, {
|
|
81
|
+
to: $("/"),
|
|
82
82
|
children: "Application"
|
|
83
83
|
}) }),
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
to:
|
|
84
|
+
/* @__PURE__ */ U("li", { children: /* @__PURE__ */ U(z, {
|
|
85
|
+
to: $("/capabilities"),
|
|
86
86
|
children: "Capabilities"
|
|
87
87
|
}) }),
|
|
88
|
-
/* @__PURE__ */
|
|
89
|
-
to:
|
|
88
|
+
/* @__PURE__ */ U("li", { children: /* @__PURE__ */ U(z, {
|
|
89
|
+
to: $("/workflows"),
|
|
90
90
|
children: "Workflows"
|
|
91
91
|
}) }),
|
|
92
|
-
/* @__PURE__ */
|
|
93
|
-
to:
|
|
92
|
+
/* @__PURE__ */ U("li", { children: /* @__PURE__ */ U(z, {
|
|
93
|
+
to: $("/agents"),
|
|
94
94
|
children: "Agents"
|
|
95
95
|
}) }),
|
|
96
|
-
/* @__PURE__ */
|
|
96
|
+
/* @__PURE__ */ U("li", { children: /* @__PURE__ */ U(z, {
|
|
97
|
+
to: $("/proposals"),
|
|
98
|
+
children: "Proposals"
|
|
99
|
+
}) }),
|
|
100
|
+
/* @__PURE__ */ U("li", {
|
|
97
101
|
className: "nav-section",
|
|
98
102
|
children: "Observe"
|
|
99
103
|
}),
|
|
100
|
-
|
|
101
|
-
to:
|
|
104
|
+
O?.sessionId && /* @__PURE__ */ U("li", { children: /* @__PURE__ */ U(z, {
|
|
105
|
+
to: $("/activity"),
|
|
102
106
|
children: "Live Activity"
|
|
103
107
|
}) }),
|
|
104
|
-
|
|
105
|
-
to:
|
|
108
|
+
q && /* @__PURE__ */ U("li", { children: /* @__PURE__ */ U(z, {
|
|
109
|
+
to: $("/overview"),
|
|
106
110
|
children: "Overview"
|
|
107
111
|
}) }),
|
|
108
|
-
/* @__PURE__ */
|
|
109
|
-
to:
|
|
112
|
+
/* @__PURE__ */ U("li", { children: /* @__PURE__ */ U(z, {
|
|
113
|
+
to: $("/data"),
|
|
110
114
|
children: "Data"
|
|
111
115
|
}) }),
|
|
112
|
-
|
|
113
|
-
to:
|
|
116
|
+
q && /* @__PURE__ */ U("li", { children: /* @__PURE__ */ U(z, {
|
|
117
|
+
to: $("/references"),
|
|
114
118
|
children: "References"
|
|
115
119
|
}) }),
|
|
116
|
-
|
|
117
|
-
to:
|
|
120
|
+
q && /* @__PURE__ */ U("li", { children: /* @__PURE__ */ U(z, {
|
|
121
|
+
to: $("/operations"),
|
|
118
122
|
children: "Operations"
|
|
119
123
|
}) }),
|
|
120
|
-
|
|
121
|
-
to:
|
|
124
|
+
q && /* @__PURE__ */ U("li", { children: /* @__PURE__ */ U(z, {
|
|
125
|
+
to: $("/executions"),
|
|
122
126
|
children: "Executions"
|
|
123
127
|
}) }),
|
|
124
|
-
|
|
125
|
-
to:
|
|
128
|
+
q && /* @__PURE__ */ U("li", { children: /* @__PURE__ */ U(z, {
|
|
129
|
+
to: $("/peers"),
|
|
126
130
|
children: "Peers"
|
|
127
131
|
}) }),
|
|
128
|
-
|
|
129
|
-
to:
|
|
132
|
+
q && /* @__PURE__ */ U("li", { children: /* @__PURE__ */ U(z, {
|
|
133
|
+
to: $("/provenance"),
|
|
130
134
|
children: "Provenance"
|
|
131
135
|
}) }),
|
|
132
|
-
|
|
133
|
-
to:
|
|
136
|
+
q && /* @__PURE__ */ U("li", { children: /* @__PURE__ */ U(z, {
|
|
137
|
+
to: $("/conflicts"),
|
|
134
138
|
children: "Conflicts"
|
|
135
139
|
}) }),
|
|
136
|
-
|
|
137
|
-
to:
|
|
140
|
+
q && /* @__PURE__ */ U("li", { children: /* @__PURE__ */ U(z, {
|
|
141
|
+
to: $("/health"),
|
|
138
142
|
children: "Health"
|
|
139
143
|
}) }),
|
|
140
|
-
/* @__PURE__ */
|
|
141
|
-
to:
|
|
144
|
+
/* @__PURE__ */ U("li", { children: /* @__PURE__ */ U(z, {
|
|
145
|
+
to: $("/settings"),
|
|
142
146
|
children: "Settings"
|
|
143
147
|
}) }),
|
|
144
|
-
|
|
145
|
-
to:
|
|
148
|
+
q && /* @__PURE__ */ U("li", { children: /* @__PURE__ */ U(z, {
|
|
149
|
+
to: $("/api-keys"),
|
|
146
150
|
children: "API Keys"
|
|
147
151
|
}) })
|
|
148
152
|
]
|
|
149
153
|
})
|
|
150
154
|
]
|
|
151
|
-
}), /* @__PURE__ */
|
|
155
|
+
}), /* @__PURE__ */ W("main", {
|
|
152
156
|
className: "studio-content",
|
|
153
157
|
children: [
|
|
154
|
-
|
|
158
|
+
O?.sessionId && /* @__PURE__ */ W("div", {
|
|
155
159
|
className: "runtime-notice",
|
|
156
|
-
children: ["Application runtime: ",
|
|
160
|
+
children: ["Application runtime: ", J.length ? `Connected ✓ (${J[0].runtime}, ${J[0].namespace})` : "Not connected"]
|
|
157
161
|
}),
|
|
158
|
-
!
|
|
162
|
+
!q && /* @__PURE__ */ U("div", {
|
|
159
163
|
className: "runtime-notice",
|
|
160
164
|
children: "Browser data is read live from the generated application origin through the local Studio bridge."
|
|
161
165
|
}),
|
|
162
|
-
/* @__PURE__ */ V
|
|
163
|
-
/* @__PURE__ */ B
|
|
166
|
+
/* @__PURE__ */ W(V, { children: [
|
|
167
|
+
/* @__PURE__ */ U(B, {
|
|
164
168
|
path: "/",
|
|
165
|
-
element: /* @__PURE__ */
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
element: /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(p, {
|
|
170
|
+
configuration: A,
|
|
171
|
+
onApplied: () => window.location.reload()
|
|
172
|
+
}), /* @__PURE__ */ U(g, {
|
|
173
|
+
db: n,
|
|
174
|
+
namespace: T,
|
|
175
|
+
projectSpec: M,
|
|
176
|
+
managedPublish: k,
|
|
177
|
+
onSpecChange: N
|
|
178
|
+
})] })
|
|
171
179
|
}),
|
|
172
|
-
/* @__PURE__ */ B
|
|
180
|
+
/* @__PURE__ */ U(B, {
|
|
173
181
|
path: "/overview",
|
|
174
|
-
element: /* @__PURE__ */
|
|
182
|
+
element: /* @__PURE__ */ U(e, { stats: F })
|
|
175
183
|
}),
|
|
176
|
-
/* @__PURE__ */ B
|
|
184
|
+
/* @__PURE__ */ U(B, {
|
|
177
185
|
path: "/activity",
|
|
178
|
-
element: /* @__PURE__ */
|
|
186
|
+
element: /* @__PURE__ */ W("div", {
|
|
179
187
|
className: "runtime-activity",
|
|
180
188
|
children: [
|
|
181
|
-
/* @__PURE__ */
|
|
182
|
-
/* @__PURE__ */
|
|
183
|
-
|
|
189
|
+
/* @__PURE__ */ U("h1", { children: "Live Activity" }),
|
|
190
|
+
/* @__PURE__ */ W("p", { children: [
|
|
191
|
+
X.some((e) => Date.now() - e.timestamp < 5e3) ? "Active" : "Idle",
|
|
184
192
|
" · Runtime ",
|
|
185
|
-
|
|
193
|
+
J[0]?.runtimeInstanceId || "not connected"
|
|
186
194
|
] }),
|
|
187
|
-
|
|
195
|
+
Q > 0 && /* @__PURE__ */ W("p", {
|
|
188
196
|
className: "runtime-notice",
|
|
189
197
|
children: [
|
|
190
198
|
"Observation is incomplete: ",
|
|
191
|
-
|
|
199
|
+
Q,
|
|
192
200
|
" events dropped."
|
|
193
201
|
]
|
|
194
202
|
}),
|
|
195
|
-
/* @__PURE__ */
|
|
196
|
-
/* @__PURE__ */
|
|
197
|
-
/* @__PURE__ */
|
|
198
|
-
/* @__PURE__ */
|
|
199
|
-
/* @__PURE__ */
|
|
200
|
-
/* @__PURE__ */
|
|
201
|
-
] }) }), /* @__PURE__ */
|
|
202
|
-
/* @__PURE__ */
|
|
203
|
-
/* @__PURE__ */
|
|
204
|
-
/* @__PURE__ */
|
|
205
|
-
/* @__PURE__ */
|
|
206
|
-
/* @__PURE__ */
|
|
203
|
+
/* @__PURE__ */ W("table", { children: [/* @__PURE__ */ U("thead", { children: /* @__PURE__ */ W("tr", { children: [
|
|
204
|
+
/* @__PURE__ */ U("th", { children: "Time" }),
|
|
205
|
+
/* @__PURE__ */ U("th", { children: "Operation" }),
|
|
206
|
+
/* @__PURE__ */ U("th", { children: "Collection" }),
|
|
207
|
+
/* @__PURE__ */ U("th", { children: "Status" }),
|
|
208
|
+
/* @__PURE__ */ U("th", { children: "Duration" })
|
|
209
|
+
] }) }), /* @__PURE__ */ U("tbody", { children: [...X].reverse().map((e) => /* @__PURE__ */ W("tr", { children: [
|
|
210
|
+
/* @__PURE__ */ U("td", { children: new Date(e.timestamp).toLocaleTimeString() }),
|
|
211
|
+
/* @__PURE__ */ U("td", { children: e.operation?.type }),
|
|
212
|
+
/* @__PURE__ */ U("td", { children: e.operation?.collection || "—" }),
|
|
213
|
+
/* @__PURE__ */ U("td", { children: e.status }),
|
|
214
|
+
/* @__PURE__ */ U("td", { children: e.durationMs === void 0 ? "—" : `${e.durationMs} ms` })
|
|
207
215
|
] }, e.cursor || e.eventId)) })] })
|
|
208
216
|
]
|
|
209
217
|
})
|
|
210
218
|
}),
|
|
211
|
-
/* @__PURE__ */ B
|
|
219
|
+
/* @__PURE__ */ U(B, {
|
|
212
220
|
path: "/data",
|
|
213
|
-
element: /* @__PURE__ */
|
|
214
|
-
db:
|
|
215
|
-
model:
|
|
216
|
-
namespace:
|
|
217
|
-
applicationUrl:
|
|
218
|
-
developmentSession:
|
|
221
|
+
element: /* @__PURE__ */ U(c, {
|
|
222
|
+
db: n,
|
|
223
|
+
model: M,
|
|
224
|
+
namespace: T,
|
|
225
|
+
applicationUrl: E === "browser" ? D : "",
|
|
226
|
+
developmentSession: O
|
|
219
227
|
})
|
|
220
228
|
}),
|
|
221
|
-
/* @__PURE__ */ B
|
|
229
|
+
/* @__PURE__ */ U(B, {
|
|
222
230
|
path: "/state",
|
|
223
|
-
element: /* @__PURE__ */
|
|
224
|
-
db:
|
|
225
|
-
model:
|
|
226
|
-
namespace:
|
|
227
|
-
applicationUrl:
|
|
228
|
-
developmentSession:
|
|
231
|
+
element: /* @__PURE__ */ U(c, {
|
|
232
|
+
db: n,
|
|
233
|
+
model: M,
|
|
234
|
+
namespace: T,
|
|
235
|
+
applicationUrl: E === "browser" ? D : "",
|
|
236
|
+
developmentSession: O
|
|
229
237
|
})
|
|
230
238
|
}),
|
|
231
|
-
/* @__PURE__ */ B
|
|
239
|
+
/* @__PURE__ */ U(B, {
|
|
232
240
|
path: "/references",
|
|
233
|
-
element: /* @__PURE__ */
|
|
234
|
-
db:
|
|
235
|
-
model:
|
|
236
|
-
namespace:
|
|
241
|
+
element: /* @__PURE__ */ U(l, {
|
|
242
|
+
db: n,
|
|
243
|
+
model: M,
|
|
244
|
+
namespace: T
|
|
237
245
|
})
|
|
238
246
|
}),
|
|
239
|
-
/* @__PURE__ */ B
|
|
247
|
+
/* @__PURE__ */ U(B, {
|
|
240
248
|
path: "/operations",
|
|
241
|
-
element: /* @__PURE__ */
|
|
242
|
-
db:
|
|
243
|
-
model:
|
|
244
|
-
namespace:
|
|
249
|
+
element: /* @__PURE__ */ U(f, {
|
|
250
|
+
db: n,
|
|
251
|
+
model: M,
|
|
252
|
+
namespace: T
|
|
245
253
|
})
|
|
246
254
|
}),
|
|
247
|
-
/* @__PURE__ */ B
|
|
255
|
+
/* @__PURE__ */ U(B, {
|
|
248
256
|
path: "/peers",
|
|
249
|
-
element: /* @__PURE__ */
|
|
250
|
-
peers:
|
|
251
|
-
localInstance:
|
|
257
|
+
element: /* @__PURE__ */ U(h, {
|
|
258
|
+
peers: ee,
|
|
259
|
+
localInstance: P?.instanceId
|
|
252
260
|
})
|
|
253
261
|
}),
|
|
254
|
-
/* @__PURE__ */ B
|
|
262
|
+
/* @__PURE__ */ U(B, {
|
|
255
263
|
path: "/capabilities",
|
|
256
|
-
element: /* @__PURE__ */
|
|
257
|
-
db:
|
|
258
|
-
model:
|
|
264
|
+
element: /* @__PURE__ */ U(s, {
|
|
265
|
+
db: n,
|
|
266
|
+
model: M
|
|
259
267
|
})
|
|
260
268
|
}),
|
|
261
|
-
/* @__PURE__ */ B
|
|
269
|
+
/* @__PURE__ */ U(B, {
|
|
262
270
|
path: "/executions",
|
|
263
|
-
element: /* @__PURE__ */
|
|
264
|
-
db:
|
|
265
|
-
model:
|
|
271
|
+
element: /* @__PURE__ */ U(o, {
|
|
272
|
+
db: n,
|
|
273
|
+
model: M
|
|
266
274
|
})
|
|
267
275
|
}),
|
|
268
|
-
/* @__PURE__ */ B
|
|
276
|
+
/* @__PURE__ */ U(B, {
|
|
269
277
|
path: "/workflows",
|
|
270
|
-
element: /* @__PURE__ */
|
|
271
|
-
db:
|
|
272
|
-
model:
|
|
278
|
+
element: /* @__PURE__ */ U(d, {
|
|
279
|
+
db: n,
|
|
280
|
+
model: M
|
|
273
281
|
})
|
|
274
282
|
}),
|
|
275
|
-
/* @__PURE__ */ B
|
|
283
|
+
/* @__PURE__ */ U(B, {
|
|
276
284
|
path: "/agents",
|
|
277
|
-
element: /* @__PURE__ */
|
|
278
|
-
db:
|
|
279
|
-
model:
|
|
285
|
+
element: /* @__PURE__ */ U(a, {
|
|
286
|
+
db: n,
|
|
287
|
+
model: M
|
|
280
288
|
})
|
|
281
289
|
}),
|
|
282
|
-
/* @__PURE__ */ B
|
|
290
|
+
/* @__PURE__ */ U(B, {
|
|
291
|
+
path: "/proposals",
|
|
292
|
+
element: /* @__PURE__ */ U(v, {})
|
|
293
|
+
}),
|
|
294
|
+
/* @__PURE__ */ U(B, {
|
|
283
295
|
path: "/provenance",
|
|
284
|
-
element: /* @__PURE__ */
|
|
285
|
-
db:
|
|
286
|
-
model:
|
|
287
|
-
namespace:
|
|
288
|
-
reference:
|
|
296
|
+
element: /* @__PURE__ */ U(_, {
|
|
297
|
+
db: n,
|
|
298
|
+
model: M,
|
|
299
|
+
namespace: T,
|
|
300
|
+
reference: te
|
|
289
301
|
})
|
|
290
302
|
}),
|
|
291
|
-
/* @__PURE__ */ B
|
|
303
|
+
/* @__PURE__ */ U(B, {
|
|
292
304
|
path: "/conflicts",
|
|
293
|
-
element: /* @__PURE__ */
|
|
294
|
-
db:
|
|
295
|
-
diagnostics:
|
|
305
|
+
element: /* @__PURE__ */ U(y, {
|
|
306
|
+
db: n,
|
|
307
|
+
diagnostics: K
|
|
296
308
|
})
|
|
297
309
|
}),
|
|
298
|
-
/* @__PURE__ */ B
|
|
310
|
+
/* @__PURE__ */ U(B, {
|
|
299
311
|
path: "/health",
|
|
300
|
-
element: /* @__PURE__ */
|
|
301
|
-
diagnostics:
|
|
302
|
-
model:
|
|
312
|
+
element: /* @__PURE__ */ U(m, {
|
|
313
|
+
diagnostics: K,
|
|
314
|
+
model: M
|
|
303
315
|
})
|
|
304
316
|
}),
|
|
305
|
-
/* @__PURE__ */ B
|
|
317
|
+
/* @__PURE__ */ U(B, {
|
|
306
318
|
path: "/settings",
|
|
307
|
-
element: /* @__PURE__ */
|
|
308
|
-
db:
|
|
309
|
-
remoteUrl:
|
|
310
|
-
token:
|
|
311
|
-
onConnect:
|
|
319
|
+
element: /* @__PURE__ */ U(r, {
|
|
320
|
+
db: n,
|
|
321
|
+
remoteUrl: x,
|
|
322
|
+
token: w,
|
|
323
|
+
onConnect: j
|
|
312
324
|
})
|
|
313
325
|
}),
|
|
314
|
-
/* @__PURE__ */ B
|
|
326
|
+
/* @__PURE__ */ U(B, {
|
|
315
327
|
path: "/api-keys",
|
|
316
|
-
element: /* @__PURE__ */
|
|
328
|
+
element: /* @__PURE__ */ W("div", {
|
|
317
329
|
style: { padding: "2rem" },
|
|
318
|
-
children: [/* @__PURE__ */
|
|
319
|
-
apiUrl:
|
|
320
|
-
token:
|
|
321
|
-
namespace:
|
|
330
|
+
children: [/* @__PURE__ */ U("h1", { children: "API Key Management" }), /* @__PURE__ */ U(C, {
|
|
331
|
+
apiUrl: x,
|
|
332
|
+
token: w,
|
|
333
|
+
namespace: T,
|
|
322
334
|
onConfigure: () => window.location.assign("/settings")
|
|
323
335
|
})]
|
|
324
336
|
})
|
|
@@ -329,4 +341,4 @@ function U({ db: s, remoteUrl: b = "", token: S = "", namespace: C = "default",
|
|
|
329
341
|
}) });
|
|
330
342
|
}
|
|
331
343
|
//#endregion
|
|
332
|
-
export {
|
|
344
|
+
export { a as AgentExplorer, g as ApplicationDesigner, p as AskFeltDB, s as CapabilityExplorer, y as ConflictExplorer, o as ExecutionViewer, u as GlobalSearch, m as HealthCenter, C as KeyManagementPanel, T as ManagedInstancePanel, w as ManagedInstanceUtil, f as OperationsExplorer, e as OverviewDashboard, h as PeerMap, v as ProposalBrowser, _ as ProvenanceViewer, l as ReferenceExplorer, r as SettingsPanel, c as StateExplorer, K as StudioApp, d as WorkflowVisualizer, E as capitalize, D as fetchDashboardStats, O as fetchDiagnostics, k as fetchPeers, A as fetchProvenance, j as formatBytes, M as formatReference, N as formatRelativeTime, P as formatTime, F as searchReferences, n as useCollection, b as useDashboardStats, S as useFeltDB, i as usePeers, x as useProvenance, t as useRuntimeDiagnostics };
|