@feltdb/core 0.12.1 → 0.13.0

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 (139) hide show
  1. package/dist/build-identity.json +13 -4
  2. package/dist/cli/commands.js +96 -45
  3. package/dist/cli/workspace-integration.js +8 -0
  4. package/dist/collection.d.ts +41 -4
  5. package/dist/collection.d.ts.map +1 -1
  6. package/dist/collection.js +116 -47
  7. package/dist/composition.d.ts.map +1 -1
  8. package/dist/composition.js +11 -1
  9. package/dist/create/build-identity.json +13 -4
  10. package/dist/create/cli.js +49 -40
  11. package/dist/create/create.js +32 -19
  12. package/dist/create/package-versions.js +1 -1
  13. package/dist/create/server-source/Cargo.lock +18 -3
  14. package/dist/create/server-source/Cargo.toml +4 -2
  15. package/dist/create/server-source/crates/feltdb/Cargo.toml +20 -0
  16. package/dist/create/server-source/crates/feltdb/LICENSE +21 -0
  17. package/dist/create/server-source/crates/feltdb/README.md +75 -0
  18. package/dist/create/server-source/crates/feltdb/src/agent_state.rs +320 -0
  19. package/dist/create/server-source/crates/feltdb/src/agent_transition_contract.rs +1545 -0
  20. package/dist/create/server-source/crates/feltdb/src/authority.rs +145 -15
  21. package/dist/create/server-source/crates/feltdb/src/lib.rs +227 -23
  22. package/dist/create/server-source/crates/feltdb/src/state_model.rs +1 -5
  23. package/dist/create/server-source/crates/feltdb/src/worker_mesh.rs +204 -1
  24. package/dist/create/server-source/crates/feltdb/src/workload.rs +685 -53
  25. package/dist/create/server-source/crates/feltdb/tests/agent_state_native.rs +1188 -0
  26. package/dist/create/server-source/crates/feltdb/tests/agent_transition_contract_conformance.rs +2884 -0
  27. package/dist/create/server-source/crates/feltdb/tests/authority_transaction_identity.rs +534 -0
  28. package/dist/create/server-source/crates/feltdb/tests/fixtures/agent_transition_corpus.json +23340 -0
  29. package/dist/create/server-source/crates/feltdb/tests/production_readiness_contract.rs +18 -12
  30. package/dist/create/server-source/crates/feltdb/tests/workload_envelope_contract.rs +17 -5
  31. package/dist/create/server-source/crates/feltdb-client/Cargo.toml +29 -0
  32. package/dist/create/server-source/crates/feltdb-client/LICENSE +21 -0
  33. package/dist/create/server-source/crates/feltdb-client/README.md +70 -0
  34. package/dist/create/server-source/crates/feltdb-client/src/application.rs +527 -0
  35. package/dist/create/server-source/crates/feltdb-client/src/authority.rs +679 -0
  36. package/dist/create/server-source/crates/feltdb-client/src/control.rs +292 -0
  37. package/dist/create/server-source/crates/feltdb-client/src/error.rs +227 -0
  38. package/dist/create/server-source/crates/feltdb-client/src/events.rs +146 -0
  39. package/dist/create/server-source/crates/feltdb-client/src/lib.rs +466 -0
  40. package/dist/create/server-source/crates/feltdb-client/tests/fixtures/README.md +4 -0
  41. package/dist/create/server-source/crates/feltdb-client/tests/fixtures/private-ca.pem +20 -0
  42. package/dist/create/server-source/crates/feltdb-client/tests/fixtures/server-key.pem +28 -0
  43. package/dist/create/server-source/crates/feltdb-client/tests/fixtures/server.pem +20 -0
  44. package/dist/create/server-source/crates/feltdb-client/tests/private_ca.rs +95 -0
  45. package/dist/create/server-source/crates/feltdb-server/Cargo.toml +20 -1
  46. package/dist/create/server-source/crates/feltdb-server/LICENSE +21 -0
  47. package/dist/create/server-source/crates/feltdb-server/README.md +12 -1
  48. package/dist/create/server-source/crates/feltdb-server/src/agent_execution.rs +511 -0
  49. package/dist/create/server-source/crates/feltdb-server/src/auth.rs +28 -0
  50. package/dist/create/server-source/crates/feltdb-server/src/backup.rs +6 -2
  51. package/dist/create/server-source/crates/feltdb-server/src/lib.rs +21 -0
  52. package/dist/create/server-source/crates/feltdb-server/src/main.rs +845 -138
  53. package/dist/create/server-source/crates/feltdb-server/tests/rust_client.rs +683 -0
  54. package/dist/create/server-source/crates/feltdb-wasm/Cargo.toml +3 -1
  55. package/dist/create/setup-summary.js +40 -0
  56. package/dist/create/template/default-project/README.md +12 -7
  57. package/dist/create/template/default-project/src/pages/Dashboard.tsx +1 -1
  58. package/dist/create/template/dot-feltdb-README.md +3 -3
  59. package/dist/db.d.ts +27 -1
  60. package/dist/db.d.ts.map +1 -1
  61. package/dist/db.js +60 -21
  62. package/dist/development-runtime-bridge.d.ts +20 -0
  63. package/dist/development-runtime-bridge.d.ts.map +1 -1
  64. package/dist/development-runtime-bridge.js +74 -4
  65. package/dist/embedded-transaction.d.ts +75 -8
  66. package/dist/embedded-transaction.d.ts.map +1 -1
  67. package/dist/embedded-transaction.js +124 -18
  68. package/dist/error-codes.d.ts +2 -0
  69. package/dist/error-codes.d.ts.map +1 -1
  70. package/dist/error-codes.js +2 -0
  71. package/dist/feltdb.d.ts +1 -11
  72. package/dist/feltdb.d.ts.map +1 -1
  73. package/dist/file-db.d.ts +6 -0
  74. package/dist/file-db.d.ts.map +1 -1
  75. package/dist/file-db.js +43 -11
  76. package/dist/http-db.d.ts +13 -0
  77. package/dist/http-db.d.ts.map +1 -1
  78. package/dist/http-db.js +33 -4
  79. package/dist/indexeddb-db.d.ts.map +1 -1
  80. package/dist/indexeddb-db.js +65 -41
  81. package/dist/memory-db.d.ts.map +1 -1
  82. package/dist/memory-db.js +29 -8
  83. package/dist/studio/{KeyManagementPanel-DZuSeWBK.js → KeyManagementPanel-skUNnKRw.js} +36 -28
  84. package/dist/studio/app.d.ts +8 -1
  85. package/dist/studio/app.d.ts.map +1 -1
  86. package/dist/studio/components/KeyManagementPanel.d.ts.map +1 -1
  87. package/dist/studio/components/KeyManagementPanel.js +1 -1
  88. package/dist/studio/components/RouteErrorBoundary.d.ts +5 -0
  89. package/dist/studio/components/RouteErrorBoundary.d.ts.map +1 -0
  90. package/dist/studio/components/index.js +2 -2
  91. package/dist/studio/{components-Bivm2lX6.js → components-BSGmHfif.js} +6 -6
  92. package/dist/studio/control-plane/Agents.d.ts.map +1 -1
  93. package/dist/studio/control-plane/Data.d.ts.map +1 -1
  94. package/dist/studio/control-plane/Instance.d.ts +4 -1
  95. package/dist/studio/control-plane/Instance.d.ts.map +1 -1
  96. package/dist/studio/control-plane/Operations.d.ts +4 -1
  97. package/dist/studio/control-plane/Operations.d.ts.map +1 -1
  98. package/dist/studio/control-plane/Overview.d.ts.map +1 -1
  99. package/dist/studio/control-plane/Schema.d.ts.map +1 -1
  100. package/dist/studio/control-plane/context.d.ts +4 -1
  101. package/dist/studio/control-plane/context.d.ts.map +1 -1
  102. package/dist/studio/control-plane/index.js +2 -2
  103. package/dist/studio/control-plane/primitives.d.ts +24 -0
  104. package/dist/studio/control-plane/primitives.d.ts.map +1 -1
  105. package/dist/studio/{control-plane-CLm69XwX.js → control-plane-CaBA7Rgv.js} +1374 -1298
  106. package/dist/studio/index.d.ts +1 -0
  107. package/dist/studio/index.d.ts.map +1 -1
  108. package/dist/studio/index.js +415 -237
  109. package/dist/studio/navigation.d.ts +57 -0
  110. package/dist/studio/navigation.d.ts.map +1 -0
  111. package/dist/studio/studio.css +1 -1
  112. package/dist/studio/utils/control-plane-api.d.ts +2 -0
  113. package/dist/studio/utils/control-plane-api.d.ts.map +1 -1
  114. package/dist/studio/utils/control-plane-api.js +9 -4
  115. package/dist/studio/utils/service-api.d.ts.map +1 -1
  116. package/dist/studio/utils/service-api.js +5 -4
  117. package/dist/studio-app/assets/{feltdb_wasm-DACcD-zs.js → feltdb_wasm-3hDngl1h.js} +1 -1
  118. package/dist/studio-app/assets/feltdb_wasm_bg-CFQT4gCy.wasm +0 -0
  119. package/dist/studio-app/assets/index-Dql1hS5m.js +30 -0
  120. package/dist/studio-app/assets/{index-CiC8VY-a.css → index-vi21oEQa.css} +1 -1
  121. package/dist/studio-app/index.html +2 -2
  122. package/dist/telemetry.d.ts +1 -0
  123. package/dist/telemetry.d.ts.map +1 -1
  124. package/dist/telemetry.js +4 -3
  125. package/dist/transaction-identity.d.ts +62 -0
  126. package/dist/transaction-identity.d.ts.map +1 -0
  127. package/dist/transaction-identity.js +138 -0
  128. package/dist/transaction.d.ts +50 -5
  129. package/dist/transaction.d.ts.map +1 -1
  130. package/dist/transaction.js +28 -0
  131. package/dist/wasm/feltdb_wasm_bg.wasm +0 -0
  132. package/dist/wasm/package.json +1 -1
  133. package/dist/workspace/local-development-authority.d.ts +19 -0
  134. package/dist/workspace/local-development-authority.d.ts.map +1 -1
  135. package/dist/workspace/local-development-authority.js +335 -15
  136. package/package.json +1 -1
  137. package/dist/create/server-source/crates/feltdb-wasm/test.db +0 -0
  138. package/dist/studio-app/assets/feltdb_wasm_bg-BejThWID.wasm +0 -0
  139. package/dist/studio-app/assets/index-CoZaxnlm.js +0 -30
@@ -1,6 +1,6 @@
1
1
  import { ServiceApiError as e, StudioServiceApi as t, safeDisplayValue as n, serviceApiErrorMessage as r } from "./utils/service-api.js";
2
2
  import { StudioProposalApi as i, proposalErrorMessage as a, proposalSections as o } from "./utils/proposal-api.js";
3
- import "./KeyManagementPanel-DZuSeWBK.js";
3
+ import "./KeyManagementPanel-skUNnKRw.js";
4
4
  import "./components/ManagedInstancePanel.js";
5
5
  import s, { useCallback as c, useEffect as l, useMemo as u, useRef as d, useState as f } from "react";
6
6
  import { Link as p } from "react-router-dom";
@@ -227,7 +227,7 @@ function M({ model: e }) {
227
227
  children: [/* @__PURE__ */ g("header", { children: [
228
228
  /* @__PURE__ */ h("span", {
229
229
  className: "eyebrow",
230
- children: "Design"
230
+ children: "Build"
231
231
  }),
232
232
  /* @__PURE__ */ h("h1", { children: "Workflows" }),
233
233
  /* @__PURE__ */ h("p", { children: "Durable state transitions declared by the application model." })
@@ -271,7 +271,7 @@ function N({ model: e }) {
271
271
  children: [/* @__PURE__ */ g("header", { children: [
272
272
  /* @__PURE__ */ h("span", {
273
273
  className: "eyebrow",
274
- children: "Design"
274
+ children: "Build"
275
275
  }),
276
276
  /* @__PURE__ */ h("h1", { children: "Agents" }),
277
277
  /* @__PURE__ */ h("p", { children: "Autonomous participants whose authority and workflows are part of the model." })
@@ -308,7 +308,7 @@ function F({ db: e, remoteUrl: t = "", token: n = "", applicationUrl: r = "", fe
308
308
  c(t), d(n);
309
309
  }, [t, n]), /* @__PURE__ */ g("div", {
310
310
  className: "settings-panel",
311
- children: [/* @__PURE__ */ h("h2", { children: "Settings" }), /* @__PURE__ */ g("div", {
311
+ children: [/* @__PURE__ */ h("h1", { children: "Connection" }), /* @__PURE__ */ g("div", {
312
312
  className: "settings-content",
313
313
  children: [
314
314
  /* @__PURE__ */ h("h3", { children: "Application" }),
@@ -1990,7 +1990,7 @@ function ie({ model: e, section: t }) {
1990
1990
  className: "studio-model-page",
1991
1991
  children: [/* @__PURE__ */ g("header", { children: [/* @__PURE__ */ h("span", {
1992
1992
  className: "eyebrow",
1993
- children: "Contract"
1993
+ children: "Build"
1994
1994
  }), /* @__PURE__ */ h("h1", { children: t === "schema" ? "Schema" : "Policies" })] }), t === "schema" ? e.collections.map((e) => /* @__PURE__ */ g("article", {
1995
1995
  className: "studio-card",
1996
1996
  children: [
@@ -2020,7 +2020,7 @@ function Y({ model: e }) {
2020
2020
  /* @__PURE__ */ g("header", { children: [
2021
2021
  /* @__PURE__ */ h("span", {
2022
2022
  className: "eyebrow",
2023
- children: "Design"
2023
+ children: "Build"
2024
2024
  }),
2025
2025
  /* @__PURE__ */ h("h1", { children: "Capabilities" }),
2026
2026
  /* @__PURE__ */ g("p", { children: [
@@ -1 +1 @@
1
- {"version":3,"file":"Agents.d.ts","sourceRoot":"","sources":["../../src/control-plane/Agents.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAmB,MAAM,OAAO,CAAC;AAiSxC,wBAAgB,MAAM,CAAC,EAAE,YAAY,EAAE,EAAE;IAAE,YAAY,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,qBA4DlG;AAED,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Agents.d.ts","sourceRoot":"","sources":["../../src/control-plane/Agents.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAmB,MAAM,OAAO,CAAC;AAkSxC,wBAAgB,MAAM,CAAC,EAAE,YAAY,EAAE,EAAE;IAAE,YAAY,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,qBA4DlG;AAED,eAAe,MAAM,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Data.d.ts","sourceRoot":"","sources":["../../src/control-plane/Data.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAA4B,MAAM,OAAO,CAAC;AA+PjD,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE;IAAE,KAAK,CAAC,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,qBAgSjI;AAED,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"Data.d.ts","sourceRoot":"","sources":["../../src/control-plane/Data.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAA4B,MAAM,OAAO,CAAC;AA+PjD,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE;IAAE,KAAK,CAAC,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,qBAoSjI;AAED,eAAe,WAAW,CAAC"}
@@ -8,7 +8,10 @@ export declare function replicationAvailability(input: {
8
8
  healthError: string;
9
9
  hasHealth: boolean;
10
10
  }): ReplicationAvailability;
11
- export declare function ReplicationHealthUnavailable(): React.JSX.Element;
11
+ /** `reason` is the instance's own explanation, shown whenever it gives one. */
12
+ export declare function ReplicationHealthUnavailable({ reason }?: {
13
+ reason?: string;
14
+ }): React.JSX.Element;
12
15
  export declare function Replication(): React.JSX.Element;
13
16
  export declare function Applications(): React.JSX.Element;
14
17
  export declare function Monitoring(): React.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"Instance.d.ts","sourceRoot":"","sources":["../../src/control-plane/Instance.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG,mBAAmB,GAAG,aAAa,GAAG,gBAAgB,GAAG,WAAW,CAAC;AAEvH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE;IAC7C,iBAAiB,EAAE,OAAO,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;CACpB,GAAG,uBAAuB,CAO1B;AAED,wBAAgB,4BAA4B,sBAQ3C;AAED,wBAAgB,WAAW,sBAoF1B;AAED,wBAAgB,YAAY,sBAyC3B;AAED,wBAAgB,UAAU,sBAmCzB;AAED,wBAAgB,QAAQ,sBA0EvB;AAED,wBAAgB,SAAS,sBA2CxB"}
1
+ {"version":3,"file":"Instance.d.ts","sourceRoot":"","sources":["../../src/control-plane/Instance.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG,mBAAmB,GAAG,aAAa,GAAG,gBAAgB,GAAG,WAAW,CAAC;AAEvH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE;IAC7C,iBAAiB,EAAE,OAAO,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;CACpB,GAAG,uBAAuB,CAO1B;AAED,+EAA+E;AAC/E,wBAAgB,4BAA4B,CAAC,EAAE,MAAM,EAAE,GAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAO,qBAQhF;AAED,wBAAgB,WAAW,sBAoF1B;AAED,wBAAgB,YAAY,sBA0C3B;AAED,wBAAgB,UAAU,sBAoCzB;AAED,wBAAgB,QAAQ,sBA0EvB;AAED,wBAAgB,SAAS,sBA8CxB"}
@@ -1,7 +1,10 @@
1
1
  import { default as React } from 'react';
2
2
  export type OperationsAvailability = 'loading' | 'connection-failure' | 'unsupported' | 'supported';
3
3
  export declare function operationsAvailability(loading: boolean, error: string, capabilityStatus: string): OperationsAvailability;
4
- export declare function TransactionObservabilityUnavailable(): React.JSX.Element;
4
+ /** `reason` is the instance's own explanation, shown whenever it gives one. */
5
+ export declare function TransactionObservabilityUnavailable({ reason }?: {
6
+ reason?: string;
7
+ }): React.JSX.Element;
5
8
  export declare function OperationsConsole({ onOpenRecord }: {
6
9
  onOpenRecord: (collection: string, id: string) => void;
7
10
  }): React.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"Operations.d.ts","sourceRoot":"","sources":["../../src/control-plane/Operations.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,oBAAoB,GAAG,aAAa,GAAG,WAAW,CAAC;AAEpG,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,sBAAsB,CAIxH;AAED,wBAAgB,mCAAmC,sBAQlD;AA2OD,wBAAgB,iBAAiB,CAAC,EAAE,YAAY,EAAE,EAAE;IAAE,YAAY,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,qBAqD7G;AAED,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"Operations.d.ts","sourceRoot":"","sources":["../../src/control-plane/Operations.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,oBAAoB,GAAG,aAAa,GAAG,WAAW,CAAC;AAEpG,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,sBAAsB,CAIxH;AAED,+EAA+E;AAC/E,wBAAgB,mCAAmC,CAAC,EAAE,MAAM,EAAE,GAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAO,qBASvF;AA2OD,wBAAgB,iBAAiB,CAAC,EAAE,YAAY,EAAE,EAAE;IAAE,YAAY,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,qBAqD7G;AAED,eAAe,iBAAiB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Overview.d.ts","sourceRoot":"","sources":["../../src/control-plane/Overview.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAkB1B,wBAAgB,gBAAgB,sBAiI/B;AAED,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"Overview.d.ts","sourceRoot":"","sources":["../../src/control-plane/Overview.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAkB1B,wBAAgB,gBAAgB,sBAwI/B;AAED,eAAe,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/control-plane/Schema.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAA4B,MAAM,OAAO,CAAC;AAMjD,wBAAgB,cAAc,sBAkK7B;AAED,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/control-plane/Schema.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAA4B,MAAM,OAAO,CAAC;AAMjD,wBAAgB,cAAc,sBA8J7B;AAED,eAAe,cAAc,CAAC"}
@@ -7,6 +7,8 @@ export interface ControlPlaneContextValue {
7
7
  error: string;
8
8
  applicationId: string;
9
9
  environment: string;
10
+ /** The runtime the connected application reports (`browser`, `node`, …); empty when unknown. */
11
+ runtime: string;
10
12
  /**
11
13
  * Where this instance is, and the credential for it.
12
14
  *
@@ -18,8 +20,9 @@ export interface ControlPlaneContextValue {
18
20
  token: string;
19
21
  reload: () => void;
20
22
  }
21
- export declare function ControlPlaneProvider({ options, children }: {
23
+ export declare function ControlPlaneProvider({ options, runtime, children }: {
22
24
  options: ControlPlaneOptions;
25
+ runtime?: string;
23
26
  children: React.ReactNode;
24
27
  }): React.JSX.Element;
25
28
  export declare function useControlPlane(): ControlPlaneContextValue;
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/control-plane/context.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAkE,MAAM,OAAO,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,eAAe,EAA4B,KAAK,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEhI,MAAM,WAAW,wBAAwB;IACvC,GAAG,EAAE,eAAe,CAAC;IACrB,YAAY,EAAE,aAAa,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAID,wBAAgB,oBAAoB,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE;IAAE,OAAO,EAAE,mBAAmB,CAAC;IAAC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AC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,qBA8BtJ;AAED,wBAAgB,eAAe,IAAI,wBAAwB,CAI1D;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,EACvC,IAAI,EAAE,CAAC,GAAG,EAAE,eAAe,KAAK,OAAO,CAAC,CAAC,CAAC,EAC1C,YAAY,EAAE,OAAO,EAAE,EACvB,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAO,GACxE;IAAE,KAAK,EAAE,CAAC,GAAG,SAAS,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,CA0BhF"}
@@ -1,2 +1,2 @@
1
- import { A as e, C as t, D as n, E as r, M as i, N as a, O as o, P as s, S as c, T as l, _ as u, a as d, b as f, c as p, d as m, f as h, g, h as _, i as v, j as y, k as b, l as x, m as S, n as C, o as w, p as T, r as E, s as D, t as O, u as k, v as A, w as j, x as M, y as N } from "../control-plane-CLm69XwX.js";
2
- export { S as Agents, O as Applications, A as Capable, m as CommittedRevision, i as ControlPlaneProvider, g as DataBrowser, C as Developer, N as Empty, f as Failure, h as INTEGRITY_CHECK, M as Identity, u as InstanceOverview, c as Json, t as Loading, E as Monitoring, p as OperationsConsole, j as Page, l as PartialNotice, r as Path, v as Replication, d as ReplicationHealthUnavailable, _ as SchemaExplorer, w as Settings, n as Stat, T as StateWorkbench, o as StatusPill, b as Tabs, e as Timestamp, x as TransactionObservabilityUnavailable, y as Unavailable, k as operationsAvailability, D as replicationAvailability, a as useControlPlane, s as useControlPlaneResource };
1
+ import { A as e, C as t, D as n, E as r, F as i, I as a, M as o, N as s, O as c, P as l, S as u, T as d, _ as f, a as p, b as m, c as h, d as g, f as _, g as v, h as y, i as b, j as x, k as S, l as C, m as w, n as T, o as E, p as D, r as O, s as k, t as A, u as j, v as M, w as N, x as P, y as F } from "../control-plane-CaBA7Rgv.js";
2
+ export { w as Agents, A as Applications, M as BrowserRuntimeNotice, F as Capable, g as CommittedRevision, l as ControlPlaneProvider, v as DataBrowser, T as Developer, m as Disconnected, P as Empty, u as Failure, _ as INTEGRITY_CHECK, t as Identity, f as InstanceOverview, N as Json, d as Loading, O as Monitoring, h as OperationsConsole, r as Page, n as PartialNotice, c as Path, b as Replication, p as ReplicationHealthUnavailable, y as SchemaExplorer, E as Settings, S as Stat, D as StateWorkbench, e as StatusPill, x as Tabs, o as Timestamp, C as TransactionObservabilityUnavailable, s as Unavailable, j as operationsAvailability, k as replicationAvailability, i as useControlPlane, a as useControlPlaneResource };
@@ -6,14 +6,30 @@ export declare function StatusPill({ status }: {
6
6
  /**
7
7
  * A capability this instance cannot perform, shown as such: an explained note
8
8
  * (the shared Stack `Unavailable`), never a disabled control.
9
+ *
10
+ * Two different answers reach here and are not worded alike. A capability the
11
+ * instance declares as unsupported carries the instance's own reason. One it
12
+ * does not declare at all is simply not part of this instance; calling that
13
+ * "declared unsupported" would claim the instance said something it did not.
9
14
  */
10
15
  export declare function Unavailable({ capability, title }: {
11
16
  capability: string;
12
17
  title?: string;
13
18
  }): React.JSX.Element;
19
+ /**
20
+ * The instance's declaration could not be read, so nothing is known about what
21
+ * it can do. That is a connection problem, said once with its cause, and not a
22
+ * verdict that the capability is missing.
23
+ */
24
+ export declare function Disconnected({ message, onRetry }: {
25
+ message: string;
26
+ onRetry?: () => void;
27
+ }): React.JSX.Element;
14
28
  /**
15
29
  * Renders a screen only when the instance declares the capability behind it.
16
30
  *
31
+ * Until the declaration is read, the screen is loading; if it cannot be read,
32
+ * the instance is unreachable — neither is a capability being unavailable.
17
33
  * `requireFull` is for controls that need more than partial support — a bulk
18
34
  * action, say, where "works for some inputs" is not enough to draw a button.
19
35
  */
@@ -79,4 +95,12 @@ export declare function Page({ eyebrow, title, description, children }: {
79
95
  description?: string;
80
96
  children: React.ReactNode;
81
97
  }): React.JSX.Element;
98
+ /**
99
+ * An application that runs in a browser keeps its records in that browser's
100
+ * IndexedDB, on the application's own origin. Studio inspects the authority,
101
+ * which such an application does not write to, so an empty table here is the
102
+ * truth about the authority and not about the application. Said once, where an
103
+ * operator would otherwise read the emptiness as "nothing was saved".
104
+ */
105
+ export declare function BrowserRuntimeNotice(): React.JSX.Element | null;
82
106
  //# sourceMappingURL=primitives.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../src/control-plane/primitives.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAgB,MAAM,OAAO,CAAC;AAUrC,OAAO,EAAmB,KAAK,gBAAgB,EAAE,KAAK,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEpG,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAAA;CAAE,qBAE3E;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,qBAexF;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,qBAKtI;AAED,8EAA8E;AAC9E,wBAAgB,aAAa,CAAC,EAAE,UAAU,EAAE,EAAE;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,4BAInE;AAED,wBAAgB,OAAO,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM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