fnloom 0.4.0 → 0.4.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/package.json +13 -13
- package/packages/build/package.json +2 -2
- package/packages/cli/package.json +1 -1
- package/packages/core/package.json +4 -4
- package/packages/core/src/gin-a.ts +13 -2
- package/packages/hub/package.json +13 -13
- package/packages/hub/src/api/store-ops.ts +9 -2
- package/packages/hub/src/catalog/catalog.ts +3 -2
- package/packages/sdk/package.json +8 -8
- package/packages/sdk/src/server/llm-wire.ts +50 -1
- package/packages/web/dist/assets/{ActorSettingsView-CDszUbHz.js → ActorSettingsView-CiWhrnP4.js} +2 -2
- package/packages/web/dist/assets/{AdminLayout-CFIz4GsQ.js → AdminLayout-CjVNzmYD.js} +2 -2
- package/packages/web/dist/assets/{AppPage-BvoVTk6h.js → AppPage-D_kkUatv.js} +2 -2
- package/packages/web/dist/assets/{AutoPairPicker-CLjD-muP.js → AutoPairPicker-BdCHi7dL.js} +2 -2
- package/packages/web/dist/assets/{BrowserFrame-BcN-A76X.js → BrowserFrame-CVQvfCB8.js} +2 -2
- package/packages/web/dist/assets/{ChatPage-DhTpAyM2.js → ChatPage-CPZJ8ya6.js} +2 -2
- package/packages/web/dist/assets/{CodeViewer-K9jrTmFO.js → CodeViewer-DzWZyAp4.js} +2 -2
- package/packages/web/dist/assets/{ConfigWithCustom-BvrvSVIp.js → ConfigWithCustom-C49loznj.js} +3 -3
- package/packages/web/dist/assets/{ConfirmDialog-BDvLleYf.js → ConfirmDialog-BtugUGEY.js} +2 -2
- package/packages/web/dist/assets/{ConnectPage-Dg6IPNNh.js → ConnectPage-D8k2nSdX.js} +2 -2
- package/packages/web/dist/assets/{ContextItemPage-qisBQetR.js → ContextItemPage-DC4FGi8V.js} +2 -2
- package/packages/web/dist/assets/{ContextPage-DXa6Yqk-.js → ContextPage-MlEkKMq0.js} +2 -2
- package/packages/web/dist/assets/{ContextRow-DDYnYRaL.js → ContextRow-BN26Di1B.js} +2 -2
- package/packages/web/dist/assets/{DataPage-DOE_pKAY.js → DataPage-CvOYkEkS.js} +2 -2
- package/packages/web/dist/assets/{DataTypePage-BnP_JELT.js → DataTypePage-CDEL6BHp.js} +2 -2
- package/packages/web/dist/assets/{DesignPage-B9MJbF10.js → DesignPage-D-MsKLuP.js} +2 -2
- package/packages/web/dist/assets/{ExplorePage-cRDQZRea.js → ExplorePage-CNQpEe_8.js} +2 -2
- package/packages/web/dist/assets/{FnPill-CbLZCXYM.js → FnPill-Dm5mmffj.js} +2 -2
- package/packages/web/dist/assets/{FnView-CG_wBKTP.js → FnView-oiIU5vka.js} +2 -2
- package/packages/web/dist/assets/{FnsView-BybyK12w.js → FnsView-DgIfza4W.js} +2 -2
- package/packages/web/dist/assets/{GinExprView-BYCKSD_n.js → GinExprView-C19g0UgI.js} +2 -2
- package/packages/web/dist/assets/{GinForm-CXjYVf2_.js → GinForm-p7UsKQ3s.js} +2 -2
- package/packages/web/dist/assets/{GinTypeView-Bmbmx9e_.js → GinTypeView-DvdHc0V4.js} +2 -2
- package/packages/web/dist/assets/{GinValueView-CWUzS7ti.js → GinValueView-D6c7E4C_.js} +2 -2
- package/packages/web/dist/assets/{GraphPage-D6OhckfJ.js → GraphPage-BTamx4d-.js} +2 -2
- package/packages/web/dist/assets/{GraphPanel-BTitgA-K.js → GraphPanel-DKpbijQD.js} +2 -2
- package/packages/web/dist/assets/{HubPicker-DVly8dLD.js → HubPicker-DfXIcUz1.js} +2 -2
- package/packages/web/dist/assets/{InboxApprovals-BF84edZU.js → InboxApprovals-B9qwPCHR.js} +2 -2
- package/packages/web/dist/assets/{InboxPage-DohZ9EDP.js → InboxPage-j2lF00uW.js} +2 -2
- package/packages/web/dist/assets/{InjectedList-e6qr1kdU.js → InjectedList-BTGvy8GB.js} +2 -2
- package/packages/web/dist/assets/{InstallDialog-JJCKYs2s.js → InstallDialog-BRJXLSMJ.js} +2 -2
- package/packages/web/dist/assets/{InstanceTypes-BqUzx87o.js → InstanceTypes-DYdolFFW.js} +2 -2
- package/packages/web/dist/assets/{InstanceView-C73pev7A.js → InstanceView-C5dJLBPe.js} +2 -2
- package/packages/web/dist/assets/{ItemHistory-dbGgOZsw.js → ItemHistory-vsyIMjIX.js} +2 -2
- package/packages/web/dist/assets/{LimitsView-Ddp5WakY.js → LimitsView-BtbQzkX1.js} +2 -2
- package/packages/web/dist/assets/{ListSearch-CYNNAuMB.js → ListSearch-BdVW9FHD.js} +2 -2
- package/packages/web/dist/assets/{LlmCallDetails-C9H5Hc2J.js → LlmCallDetails-Cd7qtybU.js} +2 -2
- package/packages/web/dist/assets/{LlmCallsView-CBqyZ8Cj.js → LlmCallsView-CrZB_I1H.js} +2 -2
- package/packages/web/dist/assets/{LoadState-B2YhZlyC.js → LoadState-8UknKQ6e.js} +2 -2
- package/packages/web/dist/assets/{McpDialog-DhlLklIq.js → McpDialog-r-qJDHOO.js} +2 -2
- package/packages/web/dist/assets/{McpView-D_ZmNO56.js → McpView-FeDQWGxu.js} +2 -2
- package/packages/web/dist/assets/{McpsView-9_gwBuzw.js → McpsView-Czd2yUdE.js} +2 -2
- package/packages/web/dist/assets/{MemoryDialog-pTHIxKEX.js → MemoryDialog-DDiT6wO1.js} +2 -2
- package/packages/web/dist/assets/{ModelCallsView-FHv2XWRX.js → ModelCallsView-DsdztwCR.js} +2 -2
- package/packages/web/dist/assets/{ModelPicker-EqOuvVnE.js → ModelPicker-Df_3l8nS.js} +2 -2
- package/packages/web/dist/assets/{ModelsView-D9UaL4PX.js → ModelsView-YXwRDgWv.js} +2 -2
- package/packages/web/dist/assets/{NotFoundPage-BsuJysan.js → NotFoundPage-DDEOlB6B.js} +2 -2
- package/packages/web/dist/assets/{PairPage-B_ZXsbL4.js → PairPage-D3uHAkh1.js} +2 -2
- package/packages/web/dist/assets/{PanelHost-Dx-vNNl5.js → PanelHost-BzWYqH39.js} +2 -2
- package/packages/web/dist/assets/{PeopleView-D6dmEgMs.js → PeopleView-Cg9RO5SF.js} +2 -2
- package/packages/web/dist/assets/{PoliciesView-Bn4rm-ao.js → PoliciesView-BoshL7RQ.js} +2 -2
- package/packages/web/dist/assets/{RefusalList-aosRD1ie.js → RefusalList-DnLIfmi-.js} +2 -2
- package/packages/web/dist/assets/{RendererHost-rjnpSgyQ.js → RendererHost-CmkaVEX0.js} +2 -2
- package/packages/web/dist/assets/{ResourceViewer-C4tRColf.js → ResourceViewer-CSAY6xIs.js} +2 -2
- package/packages/web/dist/assets/{ResourcesPage-7mCLBORZ.js → ResourcesPage-DAoa9mDs.js} +2 -2
- package/packages/web/dist/assets/{ResultGrid-GIMoQUAr.js → ResultGrid-DSyc0btv.js} +2 -2
- package/packages/web/dist/assets/{ReviewSummaryStrip-Bvjn3Iq8.js → ReviewSummaryStrip-Bzy-KGz_.js} +2 -2
- package/packages/web/dist/assets/{ReviewView-DIqsUedT.js → ReviewView-Cwq8Az_B.js} +2 -2
- package/packages/web/dist/assets/{RuleRow-zRg-e8Vj.js → RuleRow-DAvl2m9p.js} +2 -2
- package/packages/web/dist/assets/{RunCard-C7wOGaw8.js → RunCard-BMyRkKxJ.js} +2 -2
- package/packages/web/dist/assets/{RunDetails-W4GbE6AE.js → RunDetails-Bvyr1HYK.js} +2 -2
- package/packages/web/dist/assets/{RunDot-C46uzzNM.js → RunDot-Lfrt5XR3.js} +2 -2
- package/packages/web/dist/assets/{RunPage-DPLtZpeB.js → RunPage-C0-wY6Uz.js} +2 -2
- package/packages/web/dist/assets/{RunProgress-Cr_6TBaF.js → RunProgress-BbzwzrTK.js} +2 -2
- package/packages/web/dist/assets/{RunsView-tU350TPK.js → RunsView-so-UV2Cq.js} +2 -2
- package/packages/web/dist/assets/{SettingsPage-B8QmmMN3.js → SettingsPage-B4SQLk09.js} +2 -2
- package/packages/web/dist/assets/{SignInPage-DTwdqlnB.js → SignInPage-Ck-v3eH0.js} +2 -2
- package/packages/web/dist/assets/{StatusBadge-D7wKMAcD.js → StatusBadge-C4NawPsO.js} +2 -2
- package/packages/web/dist/assets/{StorePlacementStep-C04nRU-u.js → StorePlacementStep-DjLWeQF9.js} +2 -2
- package/packages/web/dist/assets/{SystemConfig-CE3keXWq.js → SystemConfig-B5C5B3b0.js} +2 -2
- package/packages/web/dist/assets/{SystemPageHost-CEhz4li8.js → SystemPageHost-DoyQlhKM.js} +2 -2
- package/packages/web/dist/assets/{SystemView-CBFzEGfm.js → SystemView-CTdpay8I.js} +2 -2
- package/packages/web/dist/assets/{SystemsView-0G8JntMV.js → SystemsView-Cnv2moRw.js} +2 -2
- package/packages/web/dist/assets/{TableView-BK0uwLHl.js → TableView-BK_95qHT.js} +3 -3
- package/packages/web/dist/assets/{TableViewer-nbMInGJJ.js → TableViewer-CRsIxdku.js} +2 -2
- package/packages/web/dist/assets/{ThemePicker-fZpVSYqG.js → ThemePicker-BlW7qvUd.js} +2 -2
- package/packages/web/dist/assets/{TurnTree-Co-iBqhT.js → TurnTree-D6OYRutQ.js} +2 -2
- package/packages/web/dist/assets/{UserMessage-CDjUxKY0.js → UserMessage-DJH2bXqv.js} +2 -2
- package/packages/web/dist/assets/{ValueVisual-EJnCKgSy.js → ValueVisual-BJUrdkHO.js} +2 -2
- package/packages/web/dist/assets/{fn-modal-DtE65mFt.js → fn-modal-DFtN7Kn-.js} +2 -2
- package/packages/web/dist/assets/{fn-notices-CCZ-DFbi.js → fn-notices-C8HXeo7m.js} +2 -2
- package/packages/web/dist/assets/{formats-CyHV2siv.js → formats-CHSYhY4X.js} +2 -2
- package/packages/web/dist/assets/{index-OZS2EluT.js → index-Uz-h2M5K.js} +3 -3
- package/packages/web/dist/assets/{labels-CT7_K0Pt.js → labels-DkV96Md_.js} +2 -2
- package/packages/web/dist/assets/{layout-B6fBDg80.js → layout-CTAHAwIH.js} +2 -2
- package/packages/web/dist/assets/{loaded-LaPjk6mK.js → loaded-BrwmsuZY.js} +2 -2
- package/packages/web/dist/assets/{metrics-9n8bKI7u.js → metrics-BBvD6KSk.js} +2 -2
- package/packages/web/dist/assets/{problems--AW4igVY.js → problems-CI9huk1n.js} +2 -2
- package/packages/web/dist/assets/{push-payload-B3EcrsVz.js → push-payload-C1ppI5V2.js} +61 -61
- package/packages/web/dist/assets/{record-edits-B-FWAbxR.js → record-edits-DFJBcNnL.js} +2 -2
- package/packages/web/dist/assets/{review-uLESCEz1.js → review-DlP8FQiO.js} +2 -2
- package/packages/web/dist/assets/{routes-B7Zmt8wh.js → routes-oIISbS5Z.js} +4 -4
- package/packages/web/dist/assets/{runs-CUb2PTFg.js → runs-BWVBevgu.js} +2 -2
- package/packages/web/dist/assets/{shared-Bxhw_9et.js → shared-Bc4GJbiE.js} +2 -2
- package/packages/web/dist/assets/{sources-YgkjgFLe.js → sources-gONU9kk2.js} +2 -2
- package/packages/web/dist/assets/{src-DY1fSFJS.js → src-ClMFVauH.js} +2 -2
- package/packages/web/dist/assets/{state-ChQDWWj-.js → state-BQlvjJzT.js} +2 -2
- package/packages/web/dist/assets/{systems-CjwjRySu.js → systems-Dt01wDhP.js} +2 -2
- package/packages/web/dist/assets/{table-host-B_D9dmCz.js → table-host-BvEY0Zxn.js} +2 -2
- package/packages/web/dist/assets/{tables-CaxIuHdw.js → tables-CkqGZ0Yq.js} +2 -2
- package/packages/web/dist/assets/{ui-DWjytmDS.js → ui-CjoSgSyZ.js} +2 -2
- package/packages/web/dist/assets/{url-DbGOI14W.js → url-Deh5u3O5.js} +2 -2
- package/packages/web/dist/index.html +40 -40
- package/packages/web/dist/sw.js +1 -1
- package/packages/web/package.json +2 -2
- package/premade/claude.zip +0 -0
- package/premade/database.zip +0 -0
- package/premade/web.zip +0 -0
- package/systems/api/package.json +3 -3
- package/systems/code/package.json +3 -3
- package/systems/embedder/package.json +1 -1
- package/systems/fs/client/machines/files/CommentComposer.vue +6 -3
- package/systems/fs/client/machines/files/FilePane.vue +2 -2
- package/systems/fs/package.json +3 -3
- package/systems/fs/server/metrics/os.ts +50 -29
- package/systems/google-calendar/package.json +1 -1
- package/systems/input/package.json +3 -3
- package/systems/mcp/package.json +3 -3
- package/systems/ollama/package.json +3 -3
- package/systems/schedule/package.json +3 -3
- package/systems/template/package.json +1 -1
- package/systems/widgets/package.json +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fnloom",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "A web-based agent harness you run yourself: one hub that owns every model call, person and permission, and systems that add fns, types, resources and screens.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -27,18 +27,18 @@
|
|
|
27
27
|
"postinstall": "node scripts/release/link.cjs"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@aeye/ai": "0.11.
|
|
31
|
-
"@aeye/anthropic": "0.11.
|
|
32
|
-
"@aeye/aws": "0.11.
|
|
33
|
-
"@aeye/core": "0.11.
|
|
34
|
-
"@aeye/gin": "0.11.
|
|
35
|
-
"@aeye/google": "0.11.
|
|
36
|
-
"@aeye/models": "0.11.
|
|
37
|
-
"@aeye/ollama": "0.11.
|
|
38
|
-
"@aeye/openai": "0.11.
|
|
39
|
-
"@aeye/openrouter": "0.11.
|
|
40
|
-
"@aeye/resources": "0.11.
|
|
41
|
-
"@aeye/schema": "0.11.
|
|
30
|
+
"@aeye/ai": "0.11.2",
|
|
31
|
+
"@aeye/anthropic": "0.11.2",
|
|
32
|
+
"@aeye/aws": "0.11.2",
|
|
33
|
+
"@aeye/core": "0.11.2",
|
|
34
|
+
"@aeye/gin": "0.11.2",
|
|
35
|
+
"@aeye/google": "0.11.2",
|
|
36
|
+
"@aeye/models": "0.11.2",
|
|
37
|
+
"@aeye/ollama": "0.11.2",
|
|
38
|
+
"@aeye/openai": "0.11.2",
|
|
39
|
+
"@aeye/openrouter": "0.11.2",
|
|
40
|
+
"@aeye/resources": "0.11.2",
|
|
41
|
+
"@aeye/schema": "0.11.2",
|
|
42
42
|
"@ayepi/auth": "0.6.0",
|
|
43
43
|
"@ayepi/cache": "0.6.0",
|
|
44
44
|
"@ayepi/codec": "0.6.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@aeye/gin": "^0.11.
|
|
3
|
+
"@aeye/gin": "^0.11.2",
|
|
4
4
|
"@harness/core": "*",
|
|
5
5
|
"@harness/sdk": "*",
|
|
6
6
|
"typescript": "~5.9",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"name": "@harness/build",
|
|
11
11
|
"private": true,
|
|
12
|
-
"version": "0.4.
|
|
12
|
+
"version": "0.4.1",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"type": "module",
|
|
15
15
|
"description": "Building systems: typecheck, a self-contained server bundle, client renderers, the context folder check and the bundle scan. Shared by the CLI and fs.",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"name": "@harness/cli",
|
|
15
15
|
"private": true,
|
|
16
|
-
"version": "0.4.
|
|
16
|
+
"version": "0.4.1",
|
|
17
17
|
"license": "Apache-2.0",
|
|
18
18
|
"type": "module",
|
|
19
19
|
"description": "The harness CLI: make, build, pack and install systems, export their data, and bridge a hub MCP to stdio.",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@aeye/gin": "^0.11.
|
|
4
|
-
"@aeye/schema": "^0.11.
|
|
5
|
-
"@aeye/resources": "^0.11.
|
|
3
|
+
"@aeye/gin": "^0.11.2",
|
|
4
|
+
"@aeye/schema": "^0.11.2",
|
|
5
|
+
"@aeye/resources": "^0.11.2",
|
|
6
6
|
"@ayepi/auth": "^0.6.0",
|
|
7
7
|
"@ayepi/core": "^0.6.0",
|
|
8
8
|
"@ayepi/log": "^0.6.0",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"name": "@harness/core",
|
|
13
13
|
"private": true,
|
|
14
|
-
"version": "0.4.
|
|
14
|
+
"version": "0.4.1",
|
|
15
15
|
"license": "Apache-2.0",
|
|
16
16
|
"type": "module",
|
|
17
17
|
"description": "Wire contracts: zod schemas and ayepi specs for the system link (both directions), the web API and events. Every record and wire type is derived from them.",
|
|
@@ -139,10 +139,21 @@ function checkBundle(type: Type, opts: GinAOptions): Bundle<unknown, HarnessGram
|
|
|
139
139
|
return made;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
+
/** How `ginValueCheck` binds, besides how the type becomes a schema. */
|
|
143
|
+
export interface GinValueCheckOptions extends GinAOptions {
|
|
144
|
+
/**
|
|
145
|
+
* A type the value holds (a `typ`, an expression's `new`) may name any named type, not only those the type's
|
|
146
|
+
* registry lists: a program payload builds its own system's types (an api fn's `new api/HttpRequest`), which the
|
|
147
|
+
* payload type never names. Whoever checks the program resolves the names (the kind's check).
|
|
148
|
+
*/
|
|
149
|
+
readonly namedRefs?: boolean;
|
|
150
|
+
}
|
|
151
|
+
|
|
142
152
|
/** A gin type's value check bound for code (fn-name fields plain): render it `LENIENT`, the code shape, to check. */
|
|
143
|
-
export function ginValueCheck<T = unknown>(type: Type, opts:
|
|
153
|
+
export function ginValueCheck<T = unknown>(type: Type, opts: GinValueCheckOptions = {}): Bound<T> {
|
|
154
|
+
const { namedRefs, ...schema } = opts;
|
|
144
155
|
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions -- typed by the caller, as the gin type's values
|
|
145
|
-
return checkBundle(type,
|
|
156
|
+
return checkBundle(type, schema).bind(type.registry, undefined, namedRefs === true ? { namedRefs: true } : undefined) as Bound<T>;
|
|
146
157
|
}
|
|
147
158
|
|
|
148
159
|
/** One problem of a value that doesn't fit a gin type: where (a dotted path, `''` for the whole) and what. */
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@aeye/ai": "^0.11.
|
|
4
|
-
"@aeye/anthropic": "^0.11.
|
|
5
|
-
"@aeye/aws": "^0.11.
|
|
6
|
-
"@aeye/core": "^0.11.
|
|
7
|
-
"@aeye/gin": "^0.11.
|
|
8
|
-
"@aeye/google": "^0.11.
|
|
9
|
-
"@aeye/schema": "^0.11.
|
|
10
|
-
"@aeye/models": "^0.11.
|
|
11
|
-
"@aeye/ollama": "^0.11.
|
|
12
|
-
"@aeye/openai": "^0.11.
|
|
13
|
-
"@aeye/openrouter": "^0.11.
|
|
14
|
-
"@aeye/resources": "^0.11.
|
|
3
|
+
"@aeye/ai": "^0.11.2",
|
|
4
|
+
"@aeye/anthropic": "^0.11.2",
|
|
5
|
+
"@aeye/aws": "^0.11.2",
|
|
6
|
+
"@aeye/core": "^0.11.2",
|
|
7
|
+
"@aeye/gin": "^0.11.2",
|
|
8
|
+
"@aeye/google": "^0.11.2",
|
|
9
|
+
"@aeye/schema": "^0.11.2",
|
|
10
|
+
"@aeye/models": "^0.11.2",
|
|
11
|
+
"@aeye/ollama": "^0.11.2",
|
|
12
|
+
"@aeye/openai": "^0.11.2",
|
|
13
|
+
"@aeye/openrouter": "^0.11.2",
|
|
14
|
+
"@aeye/resources": "^0.11.2",
|
|
15
15
|
"@ayepi/auth": "^0.6.0",
|
|
16
16
|
"@ayepi/cache": "^0.6.0",
|
|
17
17
|
"@ayepi/codec": "^0.6.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"name": "@harness/hub",
|
|
45
45
|
"private": true,
|
|
46
|
-
"version": "0.4.
|
|
46
|
+
"version": "0.4.1",
|
|
47
47
|
"license": "Apache-2.0",
|
|
48
48
|
"type": "module",
|
|
49
49
|
"description": "The hub: store, catalog, system links, execution, chat, index and the web API.",
|
|
@@ -17,8 +17,15 @@ import { defaultInstanceOf } from '../link/status.ts';
|
|
|
17
17
|
import { allRows } from '../store/rows.ts';
|
|
18
18
|
import type { BackupDeleted } from '../stores/backups.ts';
|
|
19
19
|
|
|
20
|
-
/** What the store operations use of the hub. */
|
|
21
|
-
export
|
|
20
|
+
/** What the store operations use of the hub: its store, and the few calls they make of the stores, moves and backups. */
|
|
21
|
+
export interface StoreOpsHub {
|
|
22
|
+
readonly store: HubServices['store'];
|
|
23
|
+
readonly link: {
|
|
24
|
+
readonly stores: Pick<HubServices['link']['stores'], 'view'>;
|
|
25
|
+
readonly moves: Pick<HubServices['link']['moves'], 'start' | 'state' | 'answer'>;
|
|
26
|
+
readonly storeBackups: Pick<HubServices['link']['storeBackups'], 'list' | 'remove'>;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
22
29
|
|
|
23
30
|
/** The instance asked for, else the system's default instance. */
|
|
24
31
|
export async function storeInstance(hub: Pick<HubServices, 'store'>, system: SystemName, instance: InstanceName | undefined): Promise<InstanceRef> {
|
|
@@ -987,8 +987,9 @@ export class StoreCatalog implements Catalog {
|
|
|
987
987
|
return [`the type is invalid: ${messageOf(error)}`];
|
|
988
988
|
}
|
|
989
989
|
if (parsed.missing.length > 0) { return parsed.missing.map((name) => `the type refers to the unknown type ${name}`); }
|
|
990
|
-
// the value as its caller will keep it: nothing repaired (a record sent as a string of its JSON is no record)
|
|
991
|
-
|
|
990
|
+
// the value as its caller will keep it: nothing repaired (a record sent as a string of its JSON is no record); a
|
|
991
|
+
// type it holds may name any stored type (a program payload builds its system's types), which its kind checks
|
|
992
|
+
const shape = ginValueCheck(parsed.type, { scope: parsed.scope, unknownKeys: 'refuse', namedRefs: true }).render(LENIENT).parse(value, { inPlace: false, repair: false });
|
|
992
993
|
if (!shape.ok) { return shape.issues.map((issue) => (issue.codePath.length === 0 ? issue.message : `${dottedPath(issue.codePath)}: ${issue.message}`)); }
|
|
993
994
|
try {
|
|
994
995
|
parsed.type.parse(value);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@aeye/ai": "^0.11.
|
|
4
|
-
"@aeye/core": "^0.11.
|
|
5
|
-
"@aeye/gin": "^0.11.
|
|
6
|
-
"@aeye/schema": "^0.11.
|
|
7
|
-
"@aeye/models": "^0.11.
|
|
8
|
-
"@aeye/openrouter": "^0.11.
|
|
9
|
-
"@aeye/resources": "^0.11.
|
|
3
|
+
"@aeye/ai": "^0.11.2",
|
|
4
|
+
"@aeye/core": "^0.11.2",
|
|
5
|
+
"@aeye/gin": "^0.11.2",
|
|
6
|
+
"@aeye/schema": "^0.11.2",
|
|
7
|
+
"@aeye/models": "^0.11.2",
|
|
8
|
+
"@aeye/openrouter": "^0.11.2",
|
|
9
|
+
"@aeye/resources": "^0.11.2",
|
|
10
10
|
"@ayepi/core": "^0.6.0",
|
|
11
11
|
"@ayepi/env": "^0.6.0",
|
|
12
12
|
"@ayepi/log": "^0.6.0",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"name": "@harness/sdk",
|
|
25
25
|
"private": true,
|
|
26
|
-
"version": "0.4.
|
|
26
|
+
"version": "0.4.1",
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"type": "module",
|
|
29
29
|
"description": "The system author SDK: contracts (system, fn, type, ...), the serve runtime and client renderers.",
|
|
@@ -265,6 +265,55 @@ export function isObjectSchema(schema: Bound<any>): schema is Bound<object> {
|
|
|
265
265
|
return node !== undefined && (node.kind === 'object' || node.kind === 'record' || node.kind === 'intersection');
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
+
/** A `$defs` name every model's JSON schema reader resolves: no `/` or `~`, which a `$ref` must escape. */
|
|
269
|
+
const SAFE_DEF = /^[A-Za-z0-9_.-]+$/;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* A JSON schema whose `$defs` names are safe in a `$ref` as they are. A def named after a qualified type
|
|
273
|
+
* (`api/HttpHeader`) needs a JSON-pointer escaped ref (`#/$defs/api~1HttpHeader`), which OpenAI's own endpoint refuses
|
|
274
|
+
* ("reference to component ... which was not found") while other providers of the same model read it. `@aeye/schema`
|
|
275
|
+
* (0.11.2 on) emits pointer-safe `$defs` keys itself, so schemas a system renders already arrive safe; this still
|
|
276
|
+
* covers raw wire JSON written some other way (an older SDK, a hand-made schema). Renamed defs keep their schemas;
|
|
277
|
+
* only the names (which no model or code sees) change, and each ref follows its def.
|
|
278
|
+
*/
|
|
279
|
+
export function pointerSafeDefs(schema: Record<string, Json>): Record<string, Json> {
|
|
280
|
+
const defs = schema['$defs'];
|
|
281
|
+
if (typeof defs !== 'object' || defs === null || Array.isArray(defs)) return schema;
|
|
282
|
+
const names = Object.keys(defs);
|
|
283
|
+
if (names.every((name) => SAFE_DEF.test(name))) return schema;
|
|
284
|
+
const taken = new Set(names.filter((name) => SAFE_DEF.test(name)));
|
|
285
|
+
const renamed = new Map<string, string>();
|
|
286
|
+
for (const name of names) {
|
|
287
|
+
if (SAFE_DEF.test(name)) continue;
|
|
288
|
+
const base = name.replace(/[^A-Za-z0-9_.-]/g, '_');
|
|
289
|
+
let safe = base;
|
|
290
|
+
for (let n = 2; taken.has(safe); n += 1) safe = `${base}_${String(n)}`;
|
|
291
|
+
taken.add(safe);
|
|
292
|
+
renamed.set(name, safe);
|
|
293
|
+
}
|
|
294
|
+
const unescape = (segment: string) => segment.replace(/~1/g, '/').replace(/~0/g, '~');
|
|
295
|
+
const walk = (value: Json): Json => {
|
|
296
|
+
if (Array.isArray(value)) return value.map(walk);
|
|
297
|
+
if (typeof value !== 'object' || value === null) return value;
|
|
298
|
+
const out: Record<string, Json> = {};
|
|
299
|
+
for (const [key, child] of Object.entries(value)) {
|
|
300
|
+
if (key === '$ref' && typeof child === 'string' && child.startsWith('#/$defs/')) {
|
|
301
|
+
const [segment = '', ...rest] = child.slice('#/$defs/'.length).split('/');
|
|
302
|
+
const target = renamed.get(unescape(segment));
|
|
303
|
+
out[key] = target === undefined ? child : ['#/$defs', target, ...rest].join('/');
|
|
304
|
+
} else {
|
|
305
|
+
out[key] = walk(child);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
return out;
|
|
309
|
+
};
|
|
310
|
+
const walked = walk(schema);
|
|
311
|
+
if (typeof walked !== 'object' || walked === null || Array.isArray(walked)) return schema;
|
|
312
|
+
const safeDefs = walked['$defs'];
|
|
313
|
+
if (typeof safeDefs !== 'object' || safeDefs === null || Array.isArray(safeDefs)) return walked;
|
|
314
|
+
return { ...walked, $defs: Object.fromEntries(Object.entries(safeDefs).map(([name, def]) => [renamed.get(name) ?? name, def])) };
|
|
315
|
+
}
|
|
316
|
+
|
|
268
317
|
/** Schemas rebuilt from the wire by their JSON, least recently used first (`FNLOOM_WIRE_SCHEMA_CACHE`). */
|
|
269
318
|
const rebuilt = new Map<string, Bound<unknown>>();
|
|
270
319
|
|
|
@@ -283,7 +332,7 @@ export function schemaFromWire(schema: Json): Bound<unknown> {
|
|
|
283
332
|
return known;
|
|
284
333
|
}
|
|
285
334
|
if (typeof schema !== 'object' || schema === null || Array.isArray(schema)) { throw new Error('Expected a JSON schema object.'); }
|
|
286
|
-
const made = a.fromJSONSchema(schema).bind();
|
|
335
|
+
const made = a.fromJSONSchema(pointerSafeDefs(schema)).bind();
|
|
287
336
|
if (key !== undefined) {
|
|
288
337
|
rebuilt.set(key, made);
|
|
289
338
|
while (rebuilt.size > size) { const oldest = rebuilt.keys().next().value; if (oldest === undefined) break; rebuilt.delete(oldest); }
|
package/packages/web/dist/assets/{ActorSettingsView-CDszUbHz.js → ActorSettingsView-CiWhrnP4.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$ as e,D as t,E as n,Ft as r,Ht as i,On as a,_ as o,b as s,bt as c,ct as l,g as u,k as d,mt as f,o as p,qt as m,tr as h,v as g,vn as _,xn as v,y}from"./runtime-core.esm-bundler-wlpNGAAZ.js";import{Sr as b}from"./push-payload-
|
|
2
|
-
//# sourceMappingURL=ActorSettingsView-
|
|
1
|
+
import{$ as e,D as t,E as n,Ft as r,Ht as i,On as a,_ as o,b as s,bt as c,ct as l,g as u,k as d,mt as f,o as p,qt as m,tr as h,v as g,vn as _,xn as v,y}from"./runtime-core.esm-bundler-wlpNGAAZ.js";import{Sr as b}from"./push-payload-C1ppI5V2.js";import{t as x}from"./AppPage-D_kkUatv.js";import{n as S}from"./stores-BMEvTe-I.js";import{t as C}from"./now-40JhSjx0.js";import{t as w}from"./LoadState-8UknKQ6e.js";import"./runs-BWVBevgu.js";import{C as T,G as E,H as D,I as O,V as k,f as A,q as j,z as M}from"./ui-CjoSgSyZ.js";import{V as N}from"./index-Uz-h2M5K.js";import{t as P}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as F}from"./GinForm-p7UsKQ3s.js";var I=[`data-testid`],L={class:`head`},R={class:`titles`},z={class:`title`},B={class:`name`},V={class:`description`},H={class:`chips`},U={key:0,class:`values`},W={class:`who`},G={class:`what`},K=[`title`],q={key:1,class:`none`},J=P(d({__name:`SettingCard`,props:{entry:{},nameOf:{type:Function},now:{}},emits:[`edit`],setup(e,{emit:r}){let i=r,l={"user-wins":`The person's own value wins`,union:`Values add up`,intersect:`Only what all allow`,"most-restrictive":`The strictest wins`};return(r,u)=>(f(),s(`article`,{class:`setting`,"data-testid":`setting-${e.entry.view.setting}`},[o(`header`,L,[o(`div`,R,[o(`h3`,z,[n(h(e.entry.view.decl.name)+` `,1),o(`code`,B,h(e.entry.view.setting),1)]),o(`p`,V,h(e.entry.view.decl.description),1),o(`p`,H,[t(a(D),null,{default:m(()=>[n(`On `+h(e.entry.view.decl.appliesTo.map(e=>a(N)[e].plural).join(`, `)),1)]),_:1}),t(a(D),null,{default:m(()=>[n(h(l[e.entry.view.decl.merge]),1)]),_:1})])]),t(a(M),{icon:`plus`,size:`sm`,"data-testid":`setting-add`,onClick:u[0]||=e=>i(`edit`,void 0)},{default:m(()=>[...u[1]||=[n(`Set`,-1)]]),_:1})]),e.entry.values.length>0?(f(),s(`ul`,U,[(f(!0),s(p,null,c(e.entry.values,n=>(f(),s(`li`,{key:n.actor,class:`value`},[o(`span`,W,h(e.nameOf(n.actor)),1),o(`code`,G,h(a(b)(n.value,80)),1),o(`time`,{class:`when`,title:a(E)(n.updatedAt)},h(a(j)(n.updatedAt,e.now)),9,K),t(a(O),{icon:`edit`,size:`sm`,label:`Edit for ${e.nameOf(n.actor)}`,onClick:e=>i(`edit`,n.actor)},null,8,[`label`,`onClick`])]))),128))])):(f(),s(`p`,q,`Not set on anyone yet; systems use their own default.`))],8,I))}}),[[`__scopeId`,`data-v-b4db3c06`]]),Y={key:0,class:`body`,"data-testid":`setting-form`},X=P(d({__name:`SettingDialog`,props:e({entry:{},actors:{},actor:{default:void 0},busy:{type:Boolean,default:!1},problem:{default:``}},{open:{type:Boolean,required:!0},openModifiers:{}}),emits:e([`save`],[`update:open`]),setup(e,{emit:o}){let c=e,l=r(e,`open`),d=o,p=_(``),v=u(()=>[{value:``,label:`Choose who…`},...c.actors.map(e=>({value:e.id,label:`${e.name} (${e.kind})`}))]),b=u(()=>c.actors.find(e=>e.id===p.value)),x=u(()=>c.entry?.values.find(e=>e.actor===b.value?.id)?.value);i(l,e=>{e&&(p.value=c.actor??``)});function S(e){b.value!==void 0&&d(`save`,b.value.id,e)}return(r,i)=>(f(),g(a(T),{open:l.value,"onUpdate:open":i[2]||=e=>l.value=e,title:e.entry?`Set ${e.entry.view.decl.name}`:`Set`,description:e.entry?.view.decl.description??``,width:`560px`},{default:m(()=>[e.entry?(f(),s(`div`,Y,[t(a(A),{modelValue:p.value,"onUpdate:modelValue":i[0]||=e=>p.value=e,options:v.value,label:`On`},null,8,[`modelValue`,`options`]),b.value?(f(),g(F,{key:b.value.id,type:e.entry.view.decl.type,initial:x.value,"submit-label":`Save`,busy:e.busy,label:`Value`,onSubmit:S,onCancel:i[1]||=e=>l.value=!1},null,8,[`type`,`initial`,`busy`])):y(``,!0),e.problem===``?y(``,!0):(f(),g(a(k),{key:1,tone:`danger`},{default:m(()=>[n(h(e.problem),1)]),_:1}))])):y(``,!0)]),_:1},8,[`open`,`title`,`description`]))}}),[[`__scopeId`,`data-v-058a090f`]]),Z=[`aria-labelledby`],Q=[`id`],$={class:`cards`},ee=P(d({__name:`ActorSettingsView`,setup(e){let{admin:n,session:r,toasts:i}=S(),d=n.settings,y=n.actors,b=C(),T=_(!1),E=v(void 0),D=_(void 0),O=u(()=>y.options(E.value?.view.decl.appliesTo??[]));l(()=>{d.load(d.data.value.value!==void 0),y.load()});function k(e,t){E.value=e,D.value=t,T.value=!0}async function A(e,t){let n=E.value,a=r.user.value?.id;n!==void 0&&a!==void 0&&await d.set(n.view.setting,e,t,a,Date.now())&&(T.value=!1,i.ok(`Saved for ${y.nameOf(e)}`))}return(e,n)=>(f(),g(x,{title:`Actor settings`,description:`Typed controls systems attach to people and groups, such as which rows a group may read.`},{default:m(()=>[t(w,{loading:a(d).data.loading.value,problem:a(d).data.problem.value,ready:a(d).data.value.value!==void 0,empty:a(d).groups.value.length===0,"empty-icon":`users`,"empty-title":`No actor settings`,"empty-body":`Systems that declare settings list them here.`,onRetry:n[0]||=e=>a(d).load()},{default:m(()=>[(f(!0),s(p,null,c(a(d).groups.value,e=>(f(),s(`section`,{key:e.system,class:`group`,"aria-labelledby":`settings-${e.system}`},[o(`h2`,{id:`settings-${e.system}`,class:`system`},h(e.system),9,Q),o(`div`,$,[(f(!0),s(p,null,c(e.settings,e=>(f(),g(J,{key:e.view.setting,entry:e,"name-of":a(y).nameOf,now:a(b),onEdit:t=>k(e,t)},null,8,[`entry`,`name-of`,`now`,`onEdit`]))),128))])],8,Z))),128))]),_:1},8,[`loading`,`problem`,`ready`,`empty`]),t(X,{open:T.value,"onUpdate:open":n[1]||=e=>T.value=e,entry:E.value,actors:O.value,actor:D.value,busy:a(d).save.busy.value,problem:a(d).save.problem.value,onSave:A},null,8,[`open`,`entry`,`actors`,`actor`,`busy`,`problem`])]),_:1}))}}),[[`__scopeId`,`data-v-235f95b7`]]);export{ee as default};
|
|
2
|
+
//# sourceMappingURL=ActorSettingsView-CiWhrnP4.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{D as e,Ht as t,On as n,St as r,Zn as i,_ as a,b as o,bt as s,ct as c,g as l,it as u,k as d,mt as f,o as p,qt as m,tr as h,tt as g,v as _,vn as v,y}from"./runtime-core.esm-bundler-wlpNGAAZ.js";import{Ar as b,i as x,o as S,pr as C}from"./routes-
|
|
2
|
-
//# sourceMappingURL=AdminLayout-
|
|
1
|
+
import{D as e,Ht as t,On as n,St as r,Zn as i,_ as a,b as o,bt as s,ct as c,g as l,it as u,k as d,mt as f,o as p,qt as m,tr as h,tt as g,v as _,vn as v,y}from"./runtime-core.esm-bundler-wlpNGAAZ.js";import{Ar as b,i as x,o as S,pr as C}from"./routes-oIISbS5Z.js";import{n as w}from"./stores-BMEvTe-I.js";import{W as T,Y as E,c as D}from"./ui-CjoSgSyZ.js";import{t as O}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{qt as k}from"./index-Uz-h2M5K.js";var A={class:`admin-nav`,"aria-label":`Admin`},j=[`data-more`],M=[`data-group`],N=[`aria-label`],P=[`aria-label`],F=O(d({__name:`AdminNav`,props:{groups:{}},setup(l){let u=l,d=v(null),b=D(d),x=e=>e.active&&e.entries.length>1;function S(){g(()=>{d.value?.querySelector(`[aria-current="page"]`)?.scrollIntoView({block:`nearest`,inline:`nearest`})})}return c(S),t(()=>u.groups.flatMap(e=>e.entries).find(e=>e.active)?.id,S),(t,c)=>{let u=r(`RouterLink`);return f(),o(`nav`,A,[a(`ul`,{ref_key:`list`,ref:d,class:`strip edge-fade`,"data-more":n(b)},[(f(!0),o(p,null,s(l.groups,t=>(f(),o(`li`,{key:t.id,class:i({cluster:x(t)}),"data-group":t.id},[x(t)?(f(!0),o(p,{key:0},s(t.entries,(e,r)=>(f(),_(u,{key:e.id,to:e.to,class:i([`link`,{active:e.active}]),"aria-current":e.active?`page`:void 0,"data-testid":`admin-nav-${e.id}`},{default:m(()=>[r===0?(f(),_(n(E),{key:0,name:t.icon,size:16},null,8,[`name`])):y(``,!0),a(`span`,null,h(e.label),1),e.count>0?(f(),o(`span`,{key:1,class:`count`,"aria-label":`${e.count} waiting`},h(n(T)(e.count)),9,N)):y(``,!0)]),_:2},1032,[`to`,`class`,`aria-current`,`data-testid`]))),128)):(f(),_(u,{key:1,to:t.to,class:i([`link`,{active:t.active}]),"aria-current":t.active?`page`:void 0,"data-testid":t.entries.length===1?`admin-nav-${t.entries[0]?.id}`:`admin-nav-group-${t.id}`},{default:m(()=>[e(n(E),{name:t.icon,size:16},null,8,[`name`]),a(`span`,null,h(t.entries.length===1?t.entries[0]?.label:t.label),1),t.count>0?(f(),o(`span`,{key:0,class:`count`,"aria-label":`${t.count} waiting`},h(n(T)(t.count)),9,P)):y(``,!0)]),_:2},1032,[`to`,`class`,`aria-current`,`data-testid`]))],10,M))),128))],8,j)])}}}),[[`__scopeId`,`data-v-cb0cb8da`]]),I={systems:{label:`Systems`,icon:`server`,to:S.systems(),routes:[x.systems,x.system,x.review,x.instance]},fns:{label:`Fns`,icon:`fn`,to:S.fns(),routes:[x.fns,x.fn]},graph:{label:`Graph`,icon:`tree`,to:S.graph(),routes:[x.graph]},models:{label:`Models`,icon:`sparkles`,to:S.models(),routes:[x.models]},limits:{label:`Budgets`,icon:`coins`,to:S.limits(),routes:[x.limits]},people:{label:`People`,icon:`users`,to:S.people(),routes:[x.people]},policies:{label:`Policies`,icon:`shield`,to:S.policies(),routes:[x.policies]},"actor-settings":{label:`Actor settings`,icon:`users`,to:S.actorSettings(),routes:[x.actorSettings]},runs:{label:`Runs`,icon:`play`,to:S.runs(),routes:[x.runs]},"model-calls":{label:`Model calls`,icon:`cpu`,to:S.modelCalls(),routes:[x.modelCalls,x.llmCalls]},mcps:{label:`Hub MCP`,icon:`link`,to:S.mcps(),routes:[x.mcps,x.mcp]}},L=e=>typeof e==`string`&&Object.values(x).includes(e);function R(e,t={}){let n=L(e.name)?e.name:void 0;return C.options.map(e=>{let r=I[e],i=r.routes;return{id:e,label:r.label,icon:r.icon,to:r.to,active:n!==void 0&&i.includes(n),count:t[e]??0}})}function z(e,t){let n=e.name===x.adminSystemPage?e.params:void 0;return t.filter(e=>e.area===`admin`&&e.nav===`main`).map(e=>({id:`${e.system}-${e.segment}`,label:e.title,icon:k(e.icon),to:S.systemPage(e.system,e.segment,[],{},`admin`),active:n?.system===e.system&&n.page===e.segment,count:0}))}var B=[{id:`systems`,label:`Systems`,icon:`server`,sections:[`systems`,`graph`]},{id:`fns`,label:`Fns`,icon:`fn`,sections:[`fns`]},{id:`models`,label:`Models`,icon:`sparkles`,sections:[`models`,`limits`]},{id:`people`,label:`People`,icon:`users`,sections:[`people`]},{id:`rules`,label:`Rules`,icon:`shield`,sections:[`policies`,`actor-settings`]},{id:`activity`,label:`Activity`,icon:`play`,sections:[`runs`,`model-calls`]},{id:`mcps`,label:`Hub MCP`,icon:`link`,sections:[`mcps`]}];function V(e,t={},n=[]){let r=new Map(R(e,t).map(e=>[e.id,e])),i=z(e,n);return B.map(e=>{let t=[...e.sections.flatMap(e=>r.get(e)??[]),...e.id===`systems`?i:[]];return{id:e.id,label:e.label,icon:e.icon,to:I[e.sections[0]].to,active:t.some(e=>e.active),count:t.reduce((e,t)=>e+t.count,0),entries:t}})}var H={class:`admin`,"data-testid":`admin`},U=O(d({__name:`AdminLayout`,setup(t){let{admin:n,pages:i}=w(),a=b(),s=l(()=>V(a,{systems:n.systems.pending.value},i.list.value.value??[]));return c(()=>{n.start()}),u(()=>{n.stop()}),(t,n)=>{let i=r(`RouterView`);return f(),o(`div`,H,[e(F,{groups:s.value},null,8,[`groups`]),e(i)])}}}),[[`__scopeId`,`data-v-34f290c2`]]);export{U as default};
|
|
2
|
+
//# sourceMappingURL=AdminLayout-CjVNzmYD.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Ht as e,Lt as t,On as n,Zn as r,_ as i,b as a,it as o,k as s,mt as c,tr as l,xt as u,y as d}from"./runtime-core.esm-bundler-wlpNGAAZ.js";import{t as f}from"./layout-
|
|
2
|
-
//# sourceMappingURL=AppPage-
|
|
1
|
+
import{Ht as e,Lt as t,On as n,Zn as r,_ as i,b as a,it as o,k as s,mt as c,tr as l,xt as u,y as d}from"./runtime-core.esm-bundler-wlpNGAAZ.js";import{t as f}from"./layout-CTAHAwIH.js";import{r as p}from"./stores-BMEvTe-I.js";import{j as m}from"./ui-CjoSgSyZ.js";import{t as h}from"./_plugin-vue_export-helper-BDNMzG2s.js";var g={class:`head`},_={class:`titles`},v={key:0,class:`crumb`},y={key:1,class:`description`},b={key:0,class:`actions`},x=h(s({__name:`AppPage`,props:{title:{},description:{default:``},width:{default:`wide`},keepTitle:{type:Boolean,default:!1}},setup(s){let h=s,x=t(),S=m(f),C=p()?.layout;return C!==void 0&&h.keepTitle&&(e(()=>h.title,e=>{C.pageTitle.value=e},{immediate:!0}),o(()=>{C.pageTitle.value===h.title&&(C.pageTitle.value=void 0)})),(e,t)=>(c(),a(`div`,{class:r([`app-page`,[s.width,{compact:n(S)}]])},[i(`header`,g,[i(`div`,_,[x.crumb?(c(),a(`div`,v,[u(e.$slots,`crumb`,{},void 0,!0)])):d(``,!0),i(`h1`,{class:r([`title`,{"sr-only":n(S)}])},l(s.title),3),s.description===``?d(``,!0):(c(),a(`p`,y,l(s.description),1))]),x.actions?(c(),a(`div`,b,[u(e.$slots,`actions`,{},void 0,!0)])):d(``,!0)]),u(e.$slots,`default`,{},void 0,!0)],2))}}),[[`__scopeId`,`data-v-d3da10f9`]]);export{x as t};
|
|
2
|
+
//# sourceMappingURL=AppPage-D_kkUatv.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{D as e,Ft as t,On as n,b as r,g as i,k as a,mt as o,v as s,y as c}from"./runtime-core.esm-bundler-wlpNGAAZ.js";import{l,p as u}from"./ui-
|
|
2
|
-
//# sourceMappingURL=AutoPairPicker-
|
|
1
|
+
import{D as e,Ft as t,On as n,b as r,g as i,k as a,mt as o,v as s,y as c}from"./runtime-core.esm-bundler-wlpNGAAZ.js";import{l,p as u}from"./ui-CjoSgSyZ.js";import{K as d}from"./index-Uz-h2M5K.js";import{t as f}from"./_plugin-vue_export-helper-BDNMzG2s.js";var p={class:`auto-pair`,"data-testid":`auto-pair`},m=f(a({__name:`AutoPairPicker`,props:{modelValue:{required:!0},modelModifiers:{}},emits:[`update:modelValue`],setup(a){let f=t(a,`modelValue`),m=d.map(e=>({value:e.label,label:e.label})),h=i({get:()=>f.value!==void 0,set:e=>{f.value=e?{expiresIn:d[0].ms}:void 0}}),g=i({get:()=>d.find(e=>e.ms===f.value?.expiresIn)?.label??d[0].label,set:e=>{f.value={expiresIn:d.find(t=>t.label===e)?.ms??d[0].ms}}});return(t,i)=>(o(),r(`div`,p,[e(n(l),{modelValue:h.value,"onUpdate:modelValue":i[0]||=e=>h.value=e,label:`Auto pair`,description:`It can pair again by itself if its key is lost, until the secret ends or you revoke it.`},null,8,[`modelValue`]),h.value?(o(),s(n(u),{key:0,modelValue:g.value,"onUpdate:modelValue":i[1]||=e=>g.value=e,options:n(m),label:`Auto pair lasts`,"data-testid":`auto-pair-lifetime`},null,8,[`modelValue`,`options`])):c(``,!0)]))}}),[[`__scopeId`,`data-v-cde7a72f`]]);export{m as t};
|
|
2
|
+
//# sourceMappingURL=AutoPairPicker-BdCHi7dL.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$ as e,D as t,E as n,Ft as r,Ht as i,Lt as a,On as o,Zn as s,_ as c,b as l,er as u,g as d,it as f,k as p,mt as m,qt as h,vn as g,xt as _,y as v}from"./runtime-core.esm-bundler-wlpNGAAZ.js";import{n as y,t as b}from"./PanelHost-
|
|
2
|
-
//# sourceMappingURL=BrowserFrame-
|
|
1
|
+
import{$ as e,D as t,E as n,Ft as r,Ht as i,Lt as a,On as o,Zn as s,_ as c,b as l,er as u,g as d,it as f,k as p,mt as m,qt as h,vn as g,xt as _,y as v}from"./runtime-core.esm-bundler-wlpNGAAZ.js";import{n as y,t as b}from"./PanelHost-BzWYqH39.js";import{t as x}from"./layout-CTAHAwIH.js";import{j as S,z as C}from"./ui-CjoSgSyZ.js";import{t as w}from"./LoadState-8UknKQ6e.js";import{t as T}from"./_plugin-vue_export-helper-BDNMzG2s.js";var E={class:`list-side`},D=[`aria-label`],O=[`aria-label`],k=T(p({__name:`BrowserFrame`,props:e({loading:{type:Boolean},loaded:{type:Boolean},problem:{},empty:{type:Boolean},hasMore:{type:Boolean},loadingMore:{type:Boolean},emptyTitle:{},emptyBody:{default:``},emptyIcon:{default:`search`},panelTitle:{default:``},panelSubtitle:{default:``},label:{}},{panel:{type:Boolean,required:!0},panelModifiers:{}}),emits:e([`more`,`retry`],[`update:panel`]),setup(e,{emit:p}){let T=e,k=r(e,`panel`),A=p,j=a(),M=S(`(min-width: 1360px)`),N=S(x),P=g(null),F,I=g(null),L=g(0),R;i(I,e=>{R?.disconnect(),e!==null&&typeof ResizeObserver<`u`&&(R=new ResizeObserver(()=>{L.value=e.offsetHeight}),R.observe(e))});let z=d(()=>({"--filters-height":`${L.value}px`}));return i(P,e=>{F?.disconnect(),e!==null&&typeof IntersectionObserver<`u`&&(F=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&T.hasMore&&!T.loadingMore&&A(`more`)},{rootMargin:`240px`}),F.observe(e))}),f(()=>{F?.disconnect(),R?.disconnect()}),(r,i)=>(m(),l(`div`,{class:s([`browser`,{split:o(M)&&k.value}]),style:u(z.value)},[c(`div`,E,[j.filters?(m(),l(`div`,{key:0,ref_key:`filters`,ref:I,class:`filters pinned`,role:`search`,"aria-label":`Filter ${e.label}`},[_(r.$slots,`filters`,{},void 0,!0)],8,D)):v(``,!0),t(w,{loading:e.loading,problem:e.problem,ready:e.loaded,empty:e.empty,"empty-icon":e.emptyIcon,"empty-title":e.emptyTitle,"empty-body":e.emptyBody,lines:8,onRetry:i[1]||=e=>A(`retry`)},{default:h(()=>[c(`ul`,{class:`rows`,"aria-label":e.label},[_(r.$slots,`default`,{},void 0,!0)],8,O),e.hasMore?(m(),l(`div`,{key:0,ref_key:`sentinel`,ref:P,class:`more`},[t(o(C),{variant:`ghost`,loading:e.loadingMore,"data-testid":`more`,onClick:i[0]||=e=>A(`more`)},{default:h(()=>[...i[4]||=[n(`Show more`,-1)]]),_:1},8,[`loading`])],512)):v(``,!0)]),_:3},8,[`loading`,`problem`,`ready`,`empty`,`empty-icon`,`empty-title`,`empty-body`])]),t(b,{open:k.value,"onUpdate:open":i[3]||=e=>k.value=e,inline:o(M),phone:o(N),label:e.panelTitle||e.label},{default:h(()=>[t(y,{title:e.panelTitle||e.label,subtitle:e.panelSubtitle,onClose:i[2]||=e=>k.value=!1},{default:h(()=>[_(r.$slots,`panel`,{},void 0,!0)]),_:3},8,[`title`,`subtitle`])]),_:3},8,[`open`,`inline`,`phone`,`label`])],6))}}),[[`__scopeId`,`data-v-b79d08d9`]]);export{k as t};
|
|
2
|
+
//# sourceMappingURL=BrowserFrame-CVQvfCB8.js.map
|