@coreframe/dashboard 0.4.0-next.4 → 3.0.0-beta.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.
Files changed (119) hide show
  1. package/README.md +23 -21
  2. package/dist/browser/api/client.js +1 -0
  3. package/dist/browser/api/contract.js +1 -0
  4. package/dist/browser/api/error-mapping.js +1 -0
  5. package/dist/browser/api/errors.js +1 -0
  6. package/dist/browser/api/paths.js +1 -0
  7. package/dist/browser/api/rouzer.js +1 -0
  8. package/dist/browser/api/validation.js +1 -0
  9. package/dist/{package → browser}/app-client.d.ts +4 -4
  10. package/dist/browser/app-client.js +1 -0
  11. package/dist/browser/plugins/diagnostics/api/contract.js +1 -0
  12. package/dist/browser/plugins/diagnostics/web/queries.js +1 -0
  13. package/dist/browser/plugins/diagnostics/web.d.ts +4 -0
  14. package/dist/browser/plugins/diagnostics/web.js +1 -0
  15. package/dist/browser/web/dashboard/dashboard-page.js +1 -0
  16. package/dist/browser/web/dashboard/dashboard-section.js +1 -0
  17. package/dist/browser/web/dashboard/dashboard.style.js +1 -0
  18. package/dist/browser/web/dashboard/deployed-dashboard-page.js +1 -0
  19. package/dist/browser/web/dashboard/findings.js +1 -0
  20. package/dist/browser/web/dashboard/worker-environment.js +1 -0
  21. package/dist/browser/web/root.style.js +1 -0
  22. package/dist/browser/web/styled-system/css/css.js +1 -0
  23. package/dist/browser/web/styled-system/css/cx.js +1 -0
  24. package/dist/browser/web/styled-system/css/merge-css.js +1 -0
  25. package/dist/browser/web/styled-system/helpers.js +1 -0
  26. package/dist/browser/web/styled-system/recipes/dashboard-button.js +1 -0
  27. package/dist/browser/web/styled-system/recipes/dashboard-confirm-dialog.js +1 -0
  28. package/dist/browser/web/styled-system/recipes/dashboard-empty-state.js +1 -0
  29. package/dist/browser/web/styled-system/recipes/dashboard-error-state.js +1 -0
  30. package/dist/browser/web/styled-system/recipes/dashboard-field.js +1 -0
  31. package/dist/browser/web/styled-system/recipes/dashboard-page.js +1 -0
  32. package/dist/browser/web/styled-system/recipes/dashboard-section.js +1 -0
  33. package/dist/browser/web/styled-system/recipes/dashboard-status.js +1 -0
  34. package/dist/browser/web/styled-system/recipes/dashboard-tabs.js +1 -0
  35. package/dist/{package → browser}/web/ui/index.d.ts +28 -14
  36. package/dist/browser/web/ui/index.js +1 -0
  37. package/dist/compiled/api/client.js +23 -0
  38. package/dist/compiled/api/contract.js +13 -0
  39. package/dist/compiled/api/error-mapping.js +12 -0
  40. package/dist/compiled/api/errors.js +18 -0
  41. package/dist/compiled/api/paths.js +9 -0
  42. package/dist/compiled/api/rouzer.js +22 -0
  43. package/dist/compiled/api/validation.js +22 -0
  44. package/dist/compiled/app/main.js +17 -0
  45. package/dist/compiled/app-client.js +179 -0
  46. package/dist/compiled/bamboo.css +2 -0
  47. package/dist/compiled/compiled-styles.js +1 -0
  48. package/dist/compiled/octane-client-build.json +8 -0
  49. package/dist/compiled/plugins/diagnostics/api/contract.js +10 -0
  50. package/dist/compiled/plugins/diagnostics/web/queries.js +12 -0
  51. package/dist/compiled/plugins/diagnostics/web.js +56 -0
  52. package/dist/compiled/web/dashboard/dashboard-page.js +356 -0
  53. package/dist/compiled/web/dashboard/dashboard-section.js +61 -0
  54. package/dist/compiled/web/dashboard/dashboard.style.js +50 -0
  55. package/dist/compiled/web/dashboard/deployed-dashboard-page.js +376 -0
  56. package/dist/compiled/web/dashboard/findings.js +393 -0
  57. package/dist/compiled/web/dashboard/worker-environment.js +187 -0
  58. package/dist/compiled/web/root.style.js +9 -0
  59. package/dist/compiled/web/styled-system/css/cx.js +41 -0
  60. package/dist/compiled/web/ui/index.js +1825 -0
  61. package/dist/compiled/web-shell/index.js +2 -0
  62. package/dist/compiled/web-shell/shell.js +335 -0
  63. package/dist/package/app/main.js +1 -0
  64. package/dist/package/build.d.ts +6 -23
  65. package/dist/package/build.js +3 -2
  66. package/dist/package/config.d.ts +3 -10
  67. package/dist/package/plugins/diagnostics/api/contract.d.ts +1 -1
  68. package/dist/package/plugins/diagnostics/api/contract.js +1 -1
  69. package/dist/package/shell.css +1 -0
  70. package/dist/package/web-shell/index.d.ts +2 -2
  71. package/dist/package/web-shell/index.js +1 -1
  72. package/dist/package/web-shell/shell.d.ts +12 -7
  73. package/dist/package/web-shell/shell.js +1 -1
  74. package/dist/package/worker.js +1 -1
  75. package/package.json +26 -26
  76. package/dist/package/app/empty.d.ts +0 -2
  77. package/dist/package/app/empty.js +0 -1
  78. package/dist/package/app/entry.client.js +0 -1
  79. package/dist/package/app/index-route.d.ts +0 -4
  80. package/dist/package/app/index-route.js +0 -1
  81. package/dist/package/app/index.d.ts +0 -5
  82. package/dist/package/app/index.js +0 -1
  83. package/dist/package/app/not-found.d.ts +0 -4
  84. package/dist/package/app/not-found.js +0 -1
  85. package/dist/package/app/root.d.ts +0 -12
  86. package/dist/package/app/root.js +0 -1
  87. package/dist/package/app/routes.d.ts +0 -6
  88. package/dist/package/app/routes.js +0 -1
  89. package/dist/package/app/shell.d.ts +0 -6
  90. package/dist/package/app/shell.js +0 -1
  91. package/dist/package/app-client.js +0 -1
  92. package/dist/package/plugins/diagnostics/web/queries.js +0 -1
  93. package/dist/package/plugins/diagnostics/web.d.ts +0 -4
  94. package/dist/package/plugins/diagnostics/web.js +0 -1
  95. package/dist/package/styled-css.js +0 -1
  96. package/dist/package/web/dashboard/dashboard-page.js +0 -1
  97. package/dist/package/web/dashboard/dashboard-section.js +0 -1
  98. package/dist/package/web/dashboard/dashboard.style.js +0 -1
  99. package/dist/package/web/dashboard/deployed-dashboard-page.js +0 -1
  100. package/dist/package/web/dashboard/findings.js +0 -1
  101. package/dist/package/web/dashboard/worker-environment.js +0 -1
  102. package/dist/package/web/root.style.js +0 -1
  103. package/dist/package/web/styled-system/css/conditions.js +0 -1
  104. package/dist/package/web/styled-system/css/css.js +0 -1
  105. package/dist/package/web/styled-system/css/cx.js +0 -1
  106. package/dist/package/web/styled-system/helpers.js +0 -1
  107. package/dist/package/web/styled-system/recipes/dashboard-button.js +0 -1
  108. package/dist/package/web/styled-system/recipes/dashboard-confirm-dialog.js +0 -1
  109. package/dist/package/web/styled-system/recipes/dashboard-empty-state.js +0 -1
  110. package/dist/package/web/styled-system/recipes/dashboard-error-state.js +0 -1
  111. package/dist/package/web/styled-system/recipes/dashboard-field.js +0 -1
  112. package/dist/package/web/styled-system/recipes/dashboard-page.js +0 -1
  113. package/dist/package/web/styled-system/recipes/dashboard-section.js +0 -1
  114. package/dist/package/web/styled-system/recipes/dashboard-status.js +0 -1
  115. package/dist/package/web/styled-system/recipes/dashboard-tabs.js +0 -1
  116. package/dist/package/web/styled-system/recipes/runtime.js +0 -1
  117. package/dist/package/web/ui/index.js +0 -1
  118. package/dist/package/web/ui/styles.js +0 -1
  119. /package/dist/package/app/{entry.client.d.ts → main.d.ts} +0 -0
@@ -0,0 +1,393 @@
1
+ import e from "./dashboard.style.js";
2
+ import { EmptyState as t, SectionHeader as n } from "./dashboard-section.js";
3
+ import { __s as r, bag3 as i, bag5 as a, bag7 as o, bag8 as s, bag9 as c, bagOf as l, child as u, childTextHole as d, clone as f, createScopedElement as p, createScopedValue as m, fastMapSlot as h, htext as ee, ifBlock as g, mapSlot as _, positionalChildren as v, setAriaAttribute as y, setClassName as b, setText as te, sibling as x, template as S } from "octane";
4
+ import { bagChildHole as C, bagDone as w, bagHole as T, bagRecord as E, commitHole as D, createElementFromConfig as O, createHostElement as k, deferRecord as A, enableHostDescriptors as j, isRenderCall as M, setURLAttribute as N } from "octane/internal/client";
5
+ //#region src/web/dashboard/findings.tsx
6
+ j();
7
+ var ne = /* @__PURE__ */ S("<section><!><!>"), re = /* @__PURE__ */ S("<li><div><span aria-hidden=true></span><span></span><h3></h3><span></span></div><p></p><!><!>"), ie = /* @__PURE__ */ S("<div><dt></dt><dd> "), ae = /* @__PURE__ */ S("<dl><!>"), P = /* @__PURE__ */ S("<div><!>"), F = /* @__PURE__ */ S("<li><a rel=noreferrer target=_blank><span></span><span aria-hidden=true>→"), I = /* @__PURE__ */ S("<section aria-labelledby=links-title><!><ul><!>");
8
+ function L(e, t) {
9
+ let n;
10
+ (n = t[0]) !== e && (b(e.b, n), e.a = n), (n = t[1]) !== e && (y(e.b, "aria-labelledby", n), e.c = n), (n = t[2]) !== e && (e.e = D(e, t[3], e.e, n), e.f = n), (n = t[4]) !== e && (e.h = D(e, t[5], e.h, n), e.i = n);
11
+ }
12
+ var R = /* @__PURE__ */ r(function(e, t, n) {
13
+ let r = t.slots[0], i = null;
14
+ if (r === void 0) {
15
+ let n, i, a = f(ne), o = u(a);
16
+ n = o, i = x(o), r = c(t, a, void 0, a, void 0, n, null, t, i, null, t, 6, L);
17
+ {
18
+ let t = e.h0;
19
+ b(r.b, t), r.a = t;
20
+ }
21
+ {
22
+ let t = e.h1;
23
+ y(r.b, "aria-labelledby", t), r.c = t;
24
+ }
25
+ } else {
26
+ let n = r.$ > 255;
27
+ {
28
+ let a = e.h0;
29
+ (a !== r.a || n) && (i = E(t, i, 0, a, r.a));
30
+ }
31
+ {
32
+ let a = e.h1;
33
+ (a !== r.c || n) && (i = E(t, i, 1, a, r.c));
34
+ }
35
+ }
36
+ r.$ >> 8 == 1 && (w(t, r), r.$ < 256 && (i = null)), i = T(r, i, 2, e.h2, r.f, r.e, t, 1, r.b, r.d, !0), i = T(r, i, 4, e.h3, r.i, r.h, t, 2, r.b, r.g, !0), r.$ >> 8 == 1 && w(t, r);
37
+ });
38
+ function z(r, i, a, o, s, c, l, u) {
39
+ return O("r:", R, {
40
+ h0: e.section,
41
+ h1: `${u}-title`,
42
+ h2: O("c:baec0d1a", n, {
43
+ title: u,
44
+ description: a
45
+ }),
46
+ h3: c.length === 0 ? m(() => O("c:33ea3e21", t, {
47
+ title: s,
48
+ message: o
49
+ })) : m(() => p("ul", { className: e.list }, () => c.map((e) => O("c:0b10185d", Z, {
50
+ key: e.id,
51
+ finding: e,
52
+ copiedAction: r,
53
+ copyError: i,
54
+ onCopy: l
55
+ }))))
56
+ });
57
+ }
58
+ function B(e, t) {
59
+ let n;
60
+ (n = t[0]) !== e && (b(e.b, n), e.a = n), (n = t[1]) !== e && (b(e.d, n), e.c = n), (n = t[2]) !== e && (b(e.f, n), e.e = n), (n = t[3]) !== e && (b(e.h, n), e.g = n), (n = t[4]) !== e && (b(e.j, n), e.i = n), (n = t[5]) !== e && (b(e.l, n), e.k = n), (n = t[6]) !== e && (e.m = D(e, t[7], e.m, n), e.n = n), (n = t[8]) !== e && (e.p = D(e, t[9], e.p, n), e.q = n), (n = t[10]) !== e && (e.r = D(e, t[11], e.r, n), e.s = n), (n = t[12]) !== e && (e.t = D(e, t[13], e.t, n), e.u = n), (n = t[14]) !== e && (e.w = D(e, t[15], e.w, n), e.x = n), (n = t[16]) !== e && (e.z = D(e, t[17], e.z, n), e.A = n);
61
+ }
62
+ var V = /* @__PURE__ */ r(function(e, t, n) {
63
+ let r = t.slots[0], i = null;
64
+ if (r === void 0) {
65
+ let n, i, a = f(re), o = u(a), s = u(o), c = x(s), d = x(c, 2), p = x(o), m = x(c), h = x(p);
66
+ n = h, i = x(h), r = l(t, a, {
67
+ a: void 0,
68
+ b: a,
69
+ c: void 0,
70
+ d: o,
71
+ e: void 0,
72
+ f: s,
73
+ g: void 0,
74
+ h: c,
75
+ i: void 0,
76
+ j: d,
77
+ k: void 0,
78
+ l: p,
79
+ m: null,
80
+ n: t,
81
+ o: m,
82
+ p: null,
83
+ q: t,
84
+ r: null,
85
+ s: t,
86
+ t: null,
87
+ u: t,
88
+ v: n,
89
+ w: null,
90
+ x: t,
91
+ y: i,
92
+ z: null,
93
+ A: t,
94
+ $: 18,
95
+ next: B
96
+ });
97
+ {
98
+ let t = e.h0;
99
+ b(r.b, t), r.a = t;
100
+ }
101
+ {
102
+ let t = e.h1;
103
+ b(r.d, t), r.c = t;
104
+ }
105
+ {
106
+ let t = e.h2;
107
+ b(r.f, t), r.e = t;
108
+ }
109
+ {
110
+ let t = e.h3;
111
+ b(r.h, t), r.g = t;
112
+ }
113
+ {
114
+ let t = e.h6;
115
+ b(r.j, t), r.i = t;
116
+ }
117
+ {
118
+ let t = e.h8;
119
+ b(r.l, t), r.k = t;
120
+ }
121
+ } else {
122
+ let n = r.$ > 255;
123
+ {
124
+ let a = e.h0;
125
+ (a !== r.a || n) && (i = E(t, i, 0, a, r.a));
126
+ }
127
+ {
128
+ let a = e.h1;
129
+ (a !== r.c || n) && (i = E(t, i, 1, a, r.c));
130
+ }
131
+ {
132
+ let a = e.h2;
133
+ (a !== r.e || n) && (i = E(t, i, 2, a, r.e));
134
+ }
135
+ {
136
+ let a = e.h3;
137
+ (a !== r.g || n) && (i = E(t, i, 3, a, r.g));
138
+ }
139
+ {
140
+ let a = e.h6;
141
+ (a !== r.i || n) && (i = E(t, i, 4, a, r.i));
142
+ }
143
+ {
144
+ let a = e.h8;
145
+ (a !== r.k || n) && (i = E(t, i, 5, a, r.k));
146
+ }
147
+ }
148
+ r.$ >> 8 == 1 && (w(t, r), r.$ < 256 && (i = null)), i = C(r, i, 6, e.h4, r.n, r.m, t, 1, r.h), i = C(r, i, 8, e.h5, r.q, r.p, t, 2, r.o), i = C(r, i, 10, e.h7, r.s, r.r, t, 3, r.j), i = C(r, i, 12, e.h9, r.u, r.t, t, 4, r.l), i = T(r, i, 14, e.h10, r.x, r.w, t, 5, r.b, r.v, !0), i = T(r, i, 16, e.h11, r.A, r.z, t, 6, r.b, r.y, !0), r.$ >> 8 == 1 && w(t, r);
149
+ });
150
+ function H(t, n, r, i) {
151
+ return O("r:", V, {
152
+ h0: e.findingRow,
153
+ h1: e.findingTitle,
154
+ h2: ge(r.status),
155
+ h3: e.findingArea,
156
+ h4: ve(r.area),
157
+ h5: r.title,
158
+ h6: $(r.status),
159
+ h7: _e(r.status),
160
+ h8: e.muted,
161
+ h9: r.summary,
162
+ h10: O("c:1954ffb8", me, { evidence: r.evidence }),
163
+ h11: O("c:227bd542", he, {
164
+ actions: r.actions,
165
+ actionPrefix: r.id,
166
+ copiedAction: t,
167
+ copyError: n,
168
+ onCopy: i
169
+ })
170
+ });
171
+ }
172
+ function U(e, t, n) {}
173
+ var W = (e) => e.label;
174
+ function G(e, t) {
175
+ let n;
176
+ (n = t[0]) !== e && (te(e.a, n), e.b = n), (n = t[1]) !== e && (e.d = D(e, t[2], e.d, n), e.e = n);
177
+ }
178
+ function K(e, t, n) {
179
+ let r = t.slots[0], i = null;
180
+ if (r === void 0) {
181
+ let n, i, o = f(ie);
182
+ n = ee(x(u(o)), i = String(e.value), 1);
183
+ let s = u(o);
184
+ r = a(t, o, n, i, s, null, t, 3, G);
185
+ } else {
186
+ let n = r.$ > 255;
187
+ {
188
+ let a = String(e.value);
189
+ (a !== r.b || n) && (i = E(t, i, 0, a, r.b));
190
+ }
191
+ }
192
+ r.$ >> 8 == 1 && (w(t, r), r.$ < 256 && (i = null)), i = C(r, i, 1, e.label, r.e, r.d, t, 1, r.c), r.$ >> 8 == 1 && w(t, r);
193
+ }
194
+ function q(e, t) {
195
+ let n;
196
+ (n = t[0]) !== e && (b(e.b, n), e.a = n);
197
+ }
198
+ function J(t, n, r) {
199
+ let a, o = r[0], s = n.slots[0], c = null;
200
+ if (s === void 0) {
201
+ let t, r = f(ae);
202
+ t = u(r), s = i(n, r, void 0, r, t, 1, q);
203
+ {
204
+ let t = e.evidence;
205
+ b(s.b, t), s.a = t;
206
+ }
207
+ } else {
208
+ let t = s.$ > 255;
209
+ {
210
+ let r = e.evidence;
211
+ (r !== s.a || t) && (c = E(n, c, 0, r, s.a));
212
+ }
213
+ }
214
+ s.$ >> 8 == 1 && w(n, s), _(n, 1, s.b, (a = o.map, o), a, (e) => p("div", { key: e.label }, () => v([p("dt", {}, () => e.label), p("dd", {}, () => String(e.value))])), W, K, 26, void 0, s.c, 1);
215
+ }
216
+ function oe(e, t, n) {}
217
+ function se(e, t) {
218
+ let n;
219
+ (n = t[0]) !== e && (b(e.b, n), e.a = n), (n = t[1]) !== e && (e.d = D(e, t[2], e.d, n), e.e = n);
220
+ }
221
+ function ce(t, n, r) {
222
+ let { 0: i, 1: o, 2: s, 3: c, 4: l } = r, d = n.slots[0], h = null;
223
+ if (d === void 0) {
224
+ let t, r = f(P);
225
+ t = u(r), d = a(n, r, void 0, r, t, null, n, 3, se);
226
+ {
227
+ let t = e.actions;
228
+ b(d.b, t), d.a = t;
229
+ }
230
+ } else {
231
+ let t = d.$ > 255;
232
+ {
233
+ let r = e.actions;
234
+ (r !== d.a || t) && (h = E(n, h, 0, r, d.a));
235
+ }
236
+ }
237
+ d.$ >> 8 == 1 && (w(n, d), d.$ < 256 && (h = null)), h = T(d, h, 1, o.map((t, n) => {
238
+ let r = `${i}-${n}`;
239
+ if (t.kind === "link") return p("a", {
240
+ key: r,
241
+ href: t.href,
242
+ rel: "noreferrer",
243
+ target: "_blank"
244
+ }, () => t.label);
245
+ let a = t.kind === "agent_prompt" ? t.prompt : t.command;
246
+ return p("div", {
247
+ className: e.action,
248
+ key: r
249
+ }, () => v([
250
+ p("span", {}, () => t.label),
251
+ m(() => p("button", {
252
+ className: e.smallButton,
253
+ onClick: () => void l(r, a)
254
+ }, () => s === r ? "Copied" : t.kind === "agent_prompt" ? "Copy task for agent" : "Copy command")),
255
+ c === r ? m(() => k("span", { className: e.error }, "Copy unavailable")) : null
256
+ ]));
257
+ }), d.e, d.d, n, 1, d.b, d.c, !0), d.$ >> 8 == 1 && w(n, d);
258
+ }
259
+ var le = (e) => e.id;
260
+ function ue(e, t) {
261
+ let n;
262
+ (n = t[0]) !== e && (b(e.b, n), e.a = n), (n = t[1]) !== e && (N(e.d, "href", n), e.c = n), (n = t[2]) !== e && (e.f = D(e, t[3], e.f, n), e.g = n);
263
+ }
264
+ function de(t, n, r) {
265
+ let i = n.slots[0], a = null;
266
+ if (i === void 0) {
267
+ let r = f(F), a = u(r);
268
+ i = o(n, r, void 0, r, void 0, a, u(a), null, n, 4, ue);
269
+ {
270
+ let t = e.linkRow;
271
+ b(i.b, t), i.a = t;
272
+ }
273
+ {
274
+ let e = t.href;
275
+ N(i.d, "href", e), i.c = e;
276
+ }
277
+ } else {
278
+ let r = i.$ > 255;
279
+ {
280
+ let t = e.linkRow;
281
+ (t !== i.a || r) && (a = E(n, a, 0, t, i.a));
282
+ }
283
+ {
284
+ let e = t.href;
285
+ (e !== i.c || r) && (a = E(n, a, 1, e, i.c));
286
+ }
287
+ }
288
+ i.$ >> 8 == 1 && (w(n, i), i.$ < 256 && (a = null));
289
+ {
290
+ let e = t.label;
291
+ (e !== null && (typeof e == "object" || typeof e == "function") || i.g !== e || (a === null ? i.$ > 255 : a[2] !== i)) && (i.g === n ? (i.f = d(n, 1, i.e, e, null), i.g = e) : a = C(i, a, 2, e, i.g, i.f, n, 1, i.e));
292
+ }
293
+ i.$ >> 8 == 1 && w(n, i);
294
+ }
295
+ function fe(e, t) {
296
+ let n;
297
+ (n = t[0]) !== e && (b(e.b, n), e.a = n), (n = t[1]) !== e && (b(e.d, n), e.c = n), (n = t[2]) !== e && (e.g = D(e, t[3], e.g, n), e.h = n);
298
+ }
299
+ var pe = /* @__PURE__ */ r(function(e, t, n) {
300
+ let r = t.slots[0], i = null;
301
+ if (r === void 0) {
302
+ let n, i, a = f(I), o = x(u(a));
303
+ n = u(o), i = u(a), r = s(t, a, void 0, a, void 0, o, n, i, null, t, 4, fe);
304
+ {
305
+ let t = e.h0;
306
+ b(r.b, t), r.a = t;
307
+ }
308
+ {
309
+ let t = e.h2;
310
+ b(r.d, t), r.c = t;
311
+ }
312
+ } else {
313
+ let n = r.$ > 255;
314
+ {
315
+ let a = e.h0;
316
+ (a !== r.a || n) && (i = E(t, i, 0, a, r.a));
317
+ }
318
+ {
319
+ let a = e.h2;
320
+ (a !== r.c || n) && (i = E(t, i, 1, a, r.c));
321
+ }
322
+ }
323
+ r.$ >> 8 == 1 && (w(t, r), r.$ < 256 && (i = null)), h(t, 1, r.d, e.h3, e.h4, e.h5, le, de, 27, void 0, r.e, 1), i = T(r, i, 2, e.h1, r.h, r.g, t, 2, r.b, r.f, !0), r.$ >> 8 == 1 && w(t, r);
324
+ });
325
+ function Y(t) {
326
+ return O("r:", pe, {
327
+ h0: e.section,
328
+ h1: O("c:1f34bb75", n, {
329
+ title: "Helpful links",
330
+ description: "Configured tools for deeper project detail."
331
+ }),
332
+ h2: e.list,
333
+ h3: t,
334
+ h4: t.map,
335
+ h5: (t) => p("li", {
336
+ className: e.linkRow,
337
+ key: t.id
338
+ }, () => m(() => p("a", {
339
+ href: t.href,
340
+ rel: "noreferrer",
341
+ target: "_blank"
342
+ }, () => v([p("span", {}, () => t.label), k("span", { "aria-hidden": "true" }, "→")]))))
343
+ });
344
+ }
345
+ function X({ title: e, description: t, findings: n, emptyTitle: r, emptyMessage: i, copiedAction: a, copyError: o, onCopy: s }, c = void 0) {
346
+ return M(c) ? z(a, o, t, i, r, n, s, e) : A(z, a, o, t, i, r, n, s, e);
347
+ }
348
+ function Z({ finding: e, copiedAction: t, copyError: n, onCopy: r }, i = void 0) {
349
+ return M(i) ? H(t, n, e, r) : A(H, t, n, e, r);
350
+ }
351
+ function me({ evidence: e }, t, n) {
352
+ let r = t.block;
353
+ g(t, 0, r.parentNode, !e?.length, U, J, r.endMarker, [e], 9);
354
+ }
355
+ function he({ actions: e, actionPrefix: t, copiedAction: n, copyError: r, onCopy: i }, a, o) {
356
+ let s = a.block;
357
+ g(a, 0, s.parentNode, !e.length, oe, ce, s.endMarker, [
358
+ t,
359
+ e,
360
+ n,
361
+ r,
362
+ i
363
+ ], 11);
364
+ }
365
+ function Q({ links: e }, t = void 0) {
366
+ return M(t) ? Y(e) : A(Y, e);
367
+ }
368
+ function ge(t) {
369
+ return `${e.dot} ${t === "ok" ? e.successDot : t === "blocked" ? e.dangerDot : e.warningDot}`;
370
+ }
371
+ function $(t) {
372
+ return `${e.findingStatus} ${t === "ok" ? e.success : t === "blocked" ? e.danger : t === "needs_action" ? e.warning : e.neutral}`;
373
+ }
374
+ function _e(e) {
375
+ return {
376
+ ok: "Complete",
377
+ needs_action: "Needs action",
378
+ blocked: "Blocked",
379
+ unknown: "Unknown"
380
+ }[e];
381
+ }
382
+ function ve(e) {
383
+ switch (e) {
384
+ case "launch": return "Release scope";
385
+ case "product": return "Product identity";
386
+ case "legal": return "Legal and privacy";
387
+ case "local_dev": return "Local development";
388
+ default: return `${e[0].toUpperCase()}${e.slice(1)}`;
389
+ }
390
+ }
391
+ X.$$singleRoot = !0, Z.$$singleRoot = !0, Q.$$singleRoot = !0;
392
+ //#endregion
393
+ export { X as FindingSection, Q as LinksSection };
@@ -0,0 +1,187 @@
1
+ import e from "./dashboard.style.js";
2
+ import { __s as t, bag12 as n, bag14 as r, bag4 as i, bag5 as a, child as o, childTextHole as s, clone as c, componentSlotFunction as l, createScopedElement as u, createScopedValue as d, fastMapSlot as f, htext as p, ifBlock as m, mapSlot as h, positionalChildren as g, setClassName as _, setText as v, sibling as y, template as b } from "octane";
3
+ import { bagChildHole as x, bagDone as S, bagHole as C, bagRecord as w, commitHole as T, createElementFromConfig as E, deferRecord as D, isRenderCall as O } from "octane/internal/client";
4
+ //#region src/web/dashboard/worker-environment.tsx
5
+ var k = /* @__PURE__ */ b("<p>"), A = /* @__PURE__ */ b("<tr><th scope=row><code></code><span></span></th><td></td><td> </td><!><!>"), j = /* @__PURE__ */ b("<p>Cloudflare also contains undeclared secrets: <!>."), M = /* @__PURE__ */ b("<section aria-labelledby=worker-environment-title><header><h2 id=worker-environment-title>Worker environment</h2><p>Local values are optional overrides of built-in defaults. Secret changes are queued until the next deploy; ordinary variables remain owned by project and deploy configuration.</p></header><!><div><table><thead><tr><th scope=col>Name</th><th scope=col>Kind</th><th scope=col>Local</th><th scope=col>Staging</th><th scope=col>Production</th></tr></thead><tbody><!></tbody></table></div><!>"), N = /* @__PURE__ */ b("<td><span>");
6
+ function P(e, t, n) {}
7
+ var F = (e) => e;
8
+ function I(e, t) {
9
+ let n;
10
+ (n = t[0]) !== e && (_(e.b, n), e.a = n), (n = t[1]) !== e && (e.c = T(e, t[2], e.c, n), e.d = n);
11
+ }
12
+ function L(t, n, r) {
13
+ let a = n.slots[0], o = null;
14
+ if (a === void 0) {
15
+ let t = c(k);
16
+ a = i(n, t, void 0, t, null, n, 3, I);
17
+ {
18
+ let t = e.environmentNotice;
19
+ _(a.b, t), a.a = t;
20
+ }
21
+ } else {
22
+ let t = a.$ > 255;
23
+ {
24
+ let r = e.environmentNotice;
25
+ (r !== a.a || t) && (o = w(n, o, 0, r, a.a));
26
+ }
27
+ }
28
+ a.$ >> 8 == 1 && (S(n, a), a.$ < 256 && (o = null));
29
+ {
30
+ let e = t;
31
+ (e !== null && (typeof e == "object" || typeof e == "function") || a.d !== e || (o === null ? a.$ > 255 : o[1] !== a)) && (a.d === n ? (a.c = s(n, 1, a.b, e, null), a.d = e) : o = x(a, o, 1, e, a.d, a.c, n, 1, a.b));
32
+ }
33
+ a.$ >> 8 == 1 && S(n, a);
34
+ }
35
+ var R = (e) => e.name;
36
+ function z(e, t) {
37
+ let n;
38
+ (n = t[0]) !== e && (v(e.a, n), e.b = n), (n = t[1]) !== e && (e.d = T(e, t[2], e.d, n), e.e = n), (n = t[3]) !== e && (e.g = T(e, t[4], e.g, n), e.h = n), (n = t[5]) !== e && (e.j = T(e, t[6], e.j, n), e.k = n);
39
+ }
40
+ function B(e, t, n) {
41
+ let i = t.slots[0], a = null;
42
+ if (i === void 0) {
43
+ let n, a, s, l, u = c(A), d = y(o(u), 2);
44
+ n = p(d, a = e.local === "override" ? "Override" : "Built-in default", 1);
45
+ let f = o(u), m = o(f), h = y(m), g = y(f), _ = y(d);
46
+ s = _, l = y(_), i = r(t, u, n, a, m, null, t, h, null, t, g, null, t, u, s, l, 7, z);
47
+ } else {
48
+ let n = i.$ > 255;
49
+ {
50
+ let r = e.local === "override" ? "Override" : "Built-in default";
51
+ (r !== i.b || n) && (a = w(t, a, 0, r, i.b));
52
+ }
53
+ }
54
+ i.$ >> 8 == 1 && (S(t, i), i.$ < 256 && (a = null)), a = x(i, a, 1, e.name, i.e, i.d, t, 1, i.c), a = x(i, a, 3, e.description, i.h, i.g, t, 2, i.f), a = x(i, a, 5, e.kind, i.k, i.j, t, 3, i.i), i.$ >> 8 == 1 && S(t, i), l(t, 4, i.l, Y, { state: e.deployed.staging }, "c:f8e51648", i.m, !0), l(t, 5, i.l, Y, { state: e.deployed.production }, "c:6dfff1c0", i.n, !0);
55
+ }
56
+ function V(e, t) {
57
+ let n;
58
+ (n = t[0]) !== e && (_(e.b, n), e.a = n), (n = t[1]) !== e && (e.d = T(e, t[2], e.d, n), e.e = n);
59
+ }
60
+ function H(t, n, r) {
61
+ let i = r[0], s = n.slots[0], l = null;
62
+ if (s === void 0) {
63
+ let t, r = c(j);
64
+ t = y(o(r)), s = a(n, r, void 0, r, t, null, n, 3, V);
65
+ {
66
+ let t = e.environmentNotice;
67
+ _(s.b, t), s.a = t;
68
+ }
69
+ } else {
70
+ let t = s.$ > 255;
71
+ {
72
+ let r = e.environmentNotice;
73
+ (r !== s.a || t) && (l = w(n, l, 0, r, s.a));
74
+ }
75
+ }
76
+ s.$ >> 8 == 1 && (S(n, s), s.$ < 256 && (l = null)), l = C(s, l, 1, i.join(", "), s.e, s.d, n, 1, s.b, s.c, !0), s.$ >> 8 == 1 && S(n, s);
77
+ }
78
+ function U(e, t) {
79
+ let n;
80
+ (n = t[0]) !== e && (_(e.b, n), e.a = n), (n = t[1]) !== e && (_(e.d, n), e.c = n), (n = t[2]) !== e && (_(e.f, n), e.e = n), (n = t[3]) !== e && (_(e.h, n), e.g = n);
81
+ }
82
+ function W(t, r, i) {
83
+ let a, s, l, p = i[0], v = Object.values(p.providers).flatMap((e) => e.message ? [e.message] : []), b = Object.entries(p.undeclaredSecrets).flatMap(([e, t]) => t.map((t) => `${t} (${e})`));
84
+ if (r.block.pending && !r.block.crossRenderUpdate) return;
85
+ let x = r.slots[0], C = null;
86
+ if (x === void 0) {
87
+ let t, i, a, s = c(M), l = o(s), u = y(l, 2), d = o(u);
88
+ t = y(l);
89
+ let f = y(o(d));
90
+ i = o(f), a = y(u), x = n(r, s, void 0, s, void 0, l, void 0, u, void 0, d, t, f, i, a, 4, U);
91
+ {
92
+ let t = e.section;
93
+ _(x.b, t), x.a = t;
94
+ }
95
+ {
96
+ let t = e.sectionHeader;
97
+ _(x.d, t), x.c = t;
98
+ }
99
+ {
100
+ let t = e.environmentTableFrame;
101
+ _(x.f, t), x.e = t;
102
+ }
103
+ {
104
+ let t = e.environmentTable;
105
+ _(x.h, t), x.g = t;
106
+ }
107
+ } else {
108
+ let t = x.$ > 255;
109
+ {
110
+ let n = e.section;
111
+ (n !== x.a || t) && (C = w(r, C, 0, n, x.a));
112
+ }
113
+ {
114
+ let n = e.sectionHeader;
115
+ (n !== x.c || t) && (C = w(r, C, 1, n, x.c));
116
+ }
117
+ {
118
+ let n = e.environmentTableFrame;
119
+ (n !== x.e || t) && (C = w(r, C, 2, n, x.e));
120
+ }
121
+ {
122
+ let n = e.environmentTable;
123
+ (n !== x.g || t) && (C = w(r, C, 3, n, x.g));
124
+ }
125
+ }
126
+ x.$ >> 8 == 1 && S(r, x), f(r, 1, x.b, (a = v.map, v), a, (t) => u("p", {
127
+ className: e.environmentNotice,
128
+ key: t
129
+ }, () => t), F, L, 27, void 0, x.i, 1), h(r, 2, x.j, (s = p.entries, l = s.map, s), l, (e) => u("tr", { key: e.name }, () => g([
130
+ u("th", { scope: "row" }, () => g([u("code", {}, () => e.name), u("span", {}, () => e.description)])),
131
+ u("td", {}, () => e.kind),
132
+ u("td", {}, () => e.local === "override" ? "Override" : "Built-in default"),
133
+ d(() => E("c:f8e51648", Y, { state: e.deployed.staging })),
134
+ d(() => E("c:6dfff1c0", Y, { state: e.deployed.production }))
135
+ ])), R, B, 26, void 0, x.k, 1);
136
+ {
137
+ let e = b.length > 0;
138
+ m(r, 3, x.b, e, H, null, x.l, e ? [b] : void 0, 5);
139
+ }
140
+ }
141
+ var G = /* @__PURE__ */ t(function(e, t, n) {
142
+ let r = t.slots[0], a = null;
143
+ if (r === void 0) {
144
+ let n = c(N);
145
+ r = i(t, n, void 0, o(n), null, t, 3, I);
146
+ {
147
+ let t = e.h0;
148
+ _(r.b, t), r.a = t;
149
+ }
150
+ } else {
151
+ let n = r.$ > 255;
152
+ {
153
+ let i = e.h0;
154
+ (i !== r.a || n) && (a = w(t, a, 0, i, r.a));
155
+ }
156
+ }
157
+ r.$ >> 8 == 1 && (S(t, r), r.$ < 256 && (a = null)), a = x(r, a, 1, e.h1, r.d, r.c, t, 1, r.b), r.$ >> 8 == 1 && S(t, r);
158
+ });
159
+ function K(e) {
160
+ return E("r:", G, {
161
+ h0: X(e),
162
+ h1: q[e]
163
+ });
164
+ }
165
+ var q = {
166
+ configured: "Configured",
167
+ declared: "Declared",
168
+ generated: "Automatic",
169
+ missing: "Missing",
170
+ not_configured: "Not configured",
171
+ pending_addition: "Pending addition",
172
+ pending_replacement: "Pending replacement",
173
+ pending_update: "Pending update",
174
+ unknown: "Unknown"
175
+ }, J = function({ status: e }, t, n) {
176
+ let r = t.block;
177
+ m(t, 0, r.parentNode, e.entries.length === 0, P, W, r.endMarker, [e], 11);
178
+ };
179
+ function Y({ state: e }, t = void 0) {
180
+ return O(t) ? K(e) : D(K, e);
181
+ }
182
+ function X(t) {
183
+ return t === "configured" || t === "generated" ? `${e.environmentState} ${e.environmentStateOk}` : t === "missing" ? `${e.environmentState} ${e.environmentStateMissing}` : t.startsWith("pending_") ? `${e.environmentState} ${e.environmentStatePending}` : e.environmentState;
184
+ }
185
+ Y.$$singleRoot = !0;
186
+ //#endregion
187
+ export { J as WorkerEnvironment };
@@ -0,0 +1,9 @@
1
+ //#region src/web/root.style.ts
2
+ var e = {
3
+ statePage: "d_flex w_min(70rem,_calc(100vw_-_2.5rem)) min-h_100svh flex-d_column ai_flex-start jc_center m_0_auto",
4
+ eyebrow: "m_0_0_0.3125rem c_gray.600 fs_0.6875rem fw_700 ls_0.08em tt_uppercase",
5
+ message: "c_gray.600",
6
+ button: "mt_1rem bdr_0.375rem bg_indigo.600 c_white p_0.5rem_0.75rem fw_600 td_none"
7
+ };
8
+ //#endregion
9
+ export { e as default };
@@ -0,0 +1,41 @@
1
+ //#region src/web/styled-system/css/cx.js
2
+ function e(t, n) {
3
+ let r = arguments.length;
4
+ if (r === 2 && typeof t == "string") {
5
+ if (typeof n == "string") return t ? n ? t + " " + n : t : n;
6
+ if (n == null || n === !1 || n === !0) return t;
7
+ }
8
+ let i = "";
9
+ for (let t = 0; t < r; t++) {
10
+ let n = arguments[t];
11
+ if (!n) continue;
12
+ let r = Array.isArray(n) ? e(...n) : typeof n == "string" ? n : "";
13
+ r && (i && (i += " "), i += r);
14
+ }
15
+ return i;
16
+ }
17
+ var t = (e, t, n, r) => {
18
+ let i = r;
19
+ for (let n = 0; n < e.length && i >= 0; n++) {
20
+ let r = t[i];
21
+ if (!r) return "";
22
+ let a = e[n];
23
+ if (a === void 0) {
24
+ i = r[1];
25
+ continue;
26
+ }
27
+ if (a === null) {
28
+ i = r[0];
29
+ continue;
30
+ }
31
+ let o = String(a), s = r[2], c = r[0];
32
+ for (let e = 0; e < s.length; e += 2) if (s[e] === o) {
33
+ c = s[e + 1];
34
+ break;
35
+ }
36
+ i = c;
37
+ }
38
+ return i < 0 ? n[~i] ?? "" : "";
39
+ };
40
+ //#endregion
41
+ export { t as cvaMap, e as cx };