@omniviewdev/runtime 0.4.2 → 0.6.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 (44) hide show
  1. package/dist/api.cjs +1 -1
  2. package/dist/api.js +246 -113
  3. package/dist/bindings/events/index.d.ts +140 -0
  4. package/dist/bindings/github.com/omniviewdev/omniview/appservice.d.ts +5 -0
  5. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/apperror/index.d.ts +1 -0
  6. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/apperror/models.d.ts +58 -0
  7. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/devserver/index.d.ts +1 -1
  8. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/devserver/models.d.ts +24 -26
  9. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/devserver/servicewrapper.d.ts +0 -1
  10. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/index.d.ts +1 -1
  11. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/models.d.ts +25 -0
  12. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/servicewrapper.d.ts +2 -0
  13. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/servicewrapper.d.ts +2 -0
  14. package/dist/bindings/github.com/omniviewdev/omniview/internal/devcontract/index.d.ts +1 -0
  15. package/dist/bindings/github.com/omniviewdev/omniview/internal/devcontract/models.d.ts +101 -0
  16. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/config/index.d.ts +1 -1
  17. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/config/models.d.ts +31 -0
  18. package/dist/{calls-BmUnjINC.js → calls-C1yoW06C.js} +60 -60
  19. package/dist/{calls-DZctVyoQ.cjs → calls-DUhq86Ki.cjs} +1 -1
  20. package/dist/context/operations/OperationsContext.d.ts +1 -1
  21. package/dist/errors/parseAppError.d.ts +1 -14
  22. package/dist/errors/types.d.ts +15 -2
  23. package/dist/{events-DDTGFACO.js → events-Bcx6NsMp.js} +1 -2
  24. package/dist/{events-BTiuwc-0.cjs → events-CtgYnKmS.cjs} +1 -1
  25. package/dist/graphservice-BKFw5MxQ.js +844 -0
  26. package/dist/graphservice-CWIVejHl.cjs +1 -0
  27. package/dist/hooks/resource/useEventBatcher.d.ts +4 -3
  28. package/dist/hooks/resource/useStreamAction.d.ts +3 -6
  29. package/dist/index.cjs +2 -2
  30. package/dist/index.js +985 -946
  31. package/dist/models-8-4Ny_ft.cjs +1 -0
  32. package/dist/{models-3V1aa9YT.js → models-BlTzZkmp.js} +46 -60
  33. package/dist/models-CGYstu7u.cjs +1 -0
  34. package/dist/{models-B97zjrHu.js → models-D-vu7j83.js} +442 -411
  35. package/dist/models.cjs +1 -1
  36. package/dist/models.d.ts +1 -1
  37. package/dist/models.js +39 -38
  38. package/dist/runtime.cjs +1 -1
  39. package/dist/runtime.js +3 -3
  40. package/package.json +5 -5
  41. package/dist/graphservice-2kgAuCnt.cjs +0 -1
  42. package/dist/graphservice-5kuEPkCT.js +0 -731
  43. package/dist/models-BPmIMpct.cjs +0 -1
  44. package/dist/models-sJV1iQbd.cjs +0 -1
@@ -14,25 +14,6 @@ export declare class BuildError {
14
14
  */
15
15
  static createFrom($$source?: any): BuildError;
16
16
  }
17
- /**
18
- * DevInfoFile is the JSON structure of the .devinfo file written by externally-run plugins.
19
- */
20
- export declare class DevInfoFile {
21
- "pid": number;
22
- "protocol": string;
23
- "protocolVersion": number;
24
- "addr": string;
25
- "vitePort"?: number;
26
- "pluginId"?: string;
27
- "version"?: string;
28
- "startedAt"?: string;
29
- /** Creates a new DevInfoFile instance. */
30
- constructor($$source?: Partial<DevInfoFile>);
31
- /**
32
- * Creates a new DevInfoFile instance from a string or object.
33
- */
34
- static createFrom($$source?: any): DevInfoFile;
35
- }
36
17
  /**
37
18
  * DevProcessStatus describes the current status of either the Vite process or the Go watcher.
38
19
  */
@@ -47,7 +28,8 @@ export declare enum DevProcessStatus {
47
28
  DevProcessStatusRunning = "running",
48
29
  DevProcessStatusReady = "ready",
49
30
  DevProcessStatusError = "error",
50
- DevProcessStatusStopped = "stopped"
31
+ DevProcessStatusStopped = "stopped",
32
+ DevProcessStatusNotApplicable = "n/a"
51
33
  }
52
34
  /**
53
35
  * DevServerErrorPayload wraps a plugin ID and its build errors into a single
@@ -78,12 +60,7 @@ export declare enum DevServerMode {
78
60
  /**
79
61
  * DevServerModeManaged means the IDE spawned and manages the Vite + Go watcher processes.
80
62
  */
81
- DevServerModeManaged = "managed",
82
- /**
83
- * DevServerModeExternal means the developer runs processes externally;
84
- * the IDE connects via .devinfo file.
85
- */
86
- DevServerModeExternal = "external"
63
+ DevServerModeManaged = "managed"
87
64
  }
88
65
  /**
89
66
  * DevServerState is the JSON-serializable state of a single plugin's dev server.
@@ -101,6 +78,12 @@ export declare class DevServerState {
101
78
  "lastBuildTime": string;
102
79
  "lastError": string;
103
80
  "grpcConnected": boolean;
81
+ "generation": string;
82
+ "hmrURL": string;
83
+ "buildStatus": LifecycleStage;
84
+ "rpcStatus": LifecycleStage;
85
+ "controllerStatus": LifecycleStage;
86
+ "ready": boolean;
104
87
  /** Creates a new DevServerState instance. */
105
88
  constructor($$source?: Partial<DevServerState>);
106
89
  /**
@@ -108,6 +91,21 @@ export declare class DevServerState {
108
91
  */
109
92
  static createFrom($$source?: any): DevServerState;
110
93
  }
94
+ /**
95
+ * LifecycleStage distinguishes successful compilation from a live plugin.
96
+ */
97
+ export declare enum LifecycleStage {
98
+ /**
99
+ * The Go zero value for the underlying type of the enum.
100
+ */
101
+ $zero = "",
102
+ StagePending = "pending",
103
+ StageBuilding = "building",
104
+ StageReady = "ready",
105
+ StageError = "error",
106
+ StageStopped = "stopped",
107
+ StageNotApplicable = "n/a"
108
+ }
111
109
  /**
112
110
  * LogEntry is a single log line from either the Vite process or the Go build.
113
111
  */
@@ -2,7 +2,6 @@ import { CancellablePromise as $CancellablePromise } from '@wailsio/runtime';
2
2
  import * as $models from "./models.js";
3
3
  export declare function GetDevServerLogs(pluginID: string, count: number): $CancellablePromise<$models.LogEntry[]>;
4
4
  export declare function GetDevServerState(pluginID: string): $CancellablePromise<$models.DevServerState>;
5
- export declare function GetExternalPluginInfo(pluginID: string): $CancellablePromise<$models.DevInfoFile | null>;
6
5
  export declare function IsManaged(pluginID: string): $CancellablePromise<boolean>;
7
6
  export declare function ListDevServerStates(): $CancellablePromise<$models.DevServerState[]>;
8
7
  export declare function RebuildPlugin(pluginID: string): $CancellablePromise<void>;
@@ -1,4 +1,4 @@
1
1
  import * as GraphService from "./graphservice.js";
2
2
  import * as ServiceWrapper from "./servicewrapper.js";
3
3
  export { GraphService, ServiceWrapper };
4
- export { ConnectionState, ConnectionStatusPayload } from './models.js';
4
+ export { ActionEventDTO, ActionSnapshot, ConnectionState, ConnectionStatusPayload } from './models.js';
@@ -1,5 +1,30 @@
1
+ import * as apperror$0 from "../../apperror/models.js";
1
2
  import * as types$0 from "../../../../../plugin-sdk/pkg/types/models.js";
2
3
  import * as resource$0 from "../../../../../plugin-sdk/pkg/v1/resource/models.js";
4
+ export declare class ActionEventDTO {
5
+ "type": string;
6
+ "data"?: {
7
+ [_ in string]?: any;
8
+ };
9
+ "error"?: apperror$0.AppError | null;
10
+ /** Creates a new ActionEventDTO instance. */
11
+ constructor($$source?: Partial<ActionEventDTO>);
12
+ /**
13
+ * Creates a new ActionEventDTO instance from a string or object.
14
+ */
15
+ static createFrom($$source?: any): ActionEventDTO;
16
+ }
17
+ export declare class ActionSnapshot {
18
+ "sequence": number;
19
+ "event": ActionEventDTO;
20
+ "terminal": boolean;
21
+ /** Creates a new ActionSnapshot instance. */
22
+ constructor($$source?: Partial<ActionSnapshot>);
23
+ /**
24
+ * Creates a new ActionSnapshot instance from a string or object.
25
+ */
26
+ static createFrom($$source?: any): ActionSnapshot;
27
+ }
3
28
  /**
4
29
  * ConnectionState is the full state snapshot for a single connection,
5
30
  * combining metadata, lifecycle, and watch state. Returned by GetAllConnectionStates
@@ -4,6 +4,8 @@ import * as types$0 from "../../../../../plugin-sdk/pkg/types/models.js";
4
4
  import * as resource$0 from "../../../../../plugin-sdk/pkg/v1/resource/models.js";
5
5
  import * as $models from "./models.js";
6
6
  export declare function AddConnection(pluginID: string, connection: types$0.Connection): $CancellablePromise<void>;
7
+ export declare function AttachStreamAction(handleID: string): $CancellablePromise<$models.ActionSnapshot>;
8
+ export declare function CancelStreamAction(handleID: string): $CancellablePromise<void>;
7
9
  export declare function CheckConnection(pluginID: string, connectionID: string): $CancellablePromise<types$0.ConnectionStatus>;
8
10
  export declare function Create(pluginID: string, connectionID: string, key: string, input: resource$0.CreateInput): $CancellablePromise<resource$0.CreateResult | null>;
9
11
  export declare function Delete(pluginID: string, connectionID: string, key: string, input: resource$0.DeleteInput): $CancellablePromise<resource$0.DeleteResult | null>;
@@ -10,6 +10,7 @@ export declare function GetPluginReadme(pluginID: string): $CancellablePromise<s
10
10
  export declare function GetPluginReleaseHistory(pluginID: string): $CancellablePromise<registry$0.VersionInfo[]>;
11
11
  export declare function GetPluginReviews(pluginID: string, page: number): $CancellablePromise<registry$0.Review[]>;
12
12
  export declare function GetPluginVersions(pluginID: string): $CancellablePromise<registry$0.VersionInfo[]>;
13
+ export declare function InstallDevPluginFromPath(path: string): $CancellablePromise<types$0.PluginInfo>;
13
14
  export declare function InstallFromPathPrompt(): $CancellablePromise<config$0.PluginMeta | null>;
14
15
  export declare function InstallInDevMode(): $CancellablePromise<config$0.PluginMeta | null>;
15
16
  export declare function InstallPluginFromPath(path: string): $CancellablePromise<config$0.PluginMeta | null>;
@@ -22,3 +23,4 @@ export declare function ReloadPlugin(id: string): $CancellablePromise<types$0.Pl
22
23
  export declare function RetryFailedPlugin(id: string): $CancellablePromise<types$0.PluginInfo>;
23
24
  export declare function SearchPlugins(query: string, category: string, sort: string): $CancellablePromise<registry$0.AvailablePlugin[]>;
24
25
  export declare function UninstallPlugin(id: string): $CancellablePromise<types$0.PluginInfo>;
26
+ export declare function UnlinkDevPlugin(id: string): $CancellablePromise<types$0.PluginInfo>;
@@ -0,0 +1 @@
1
+ export { Endpoints, Error, InstanceDescriptor, PluginState, ProcessIdentity, RepositoryResolution } from './models.js';
@@ -0,0 +1,101 @@
1
+ export declare class Endpoints {
2
+ "browser": string | null;
3
+ "vite": string | null;
4
+ "hmr": string | null;
5
+ "mcp": string | null;
6
+ "control": string | null;
7
+ "health": string | null;
8
+ /** Creates a new Endpoints instance. */
9
+ constructor($$source?: Partial<Endpoints>);
10
+ /**
11
+ * Creates a new Endpoints instance from a string or object.
12
+ */
13
+ static createFrom($$source?: any): Endpoints;
14
+ }
15
+ export declare class Error {
16
+ "code": string;
17
+ "message": string;
18
+ "details"?: {
19
+ [_ in string]?: any;
20
+ };
21
+ /** Creates a new Error instance. */
22
+ constructor($$source?: Partial<Error>);
23
+ /**
24
+ * Creates a new Error instance from a string or object.
25
+ */
26
+ static createFrom($$source?: any): Error;
27
+ }
28
+ /**
29
+ * InstanceDescriptor contains no credentials; the token value is never part of discovery.
30
+ */
31
+ export declare class InstanceDescriptor {
32
+ "schemaVersion": number;
33
+ "workspaceID": string;
34
+ "instanceID": string;
35
+ "generation": string;
36
+ "kind": string;
37
+ "channel": string;
38
+ "displayName": string;
39
+ "stateRoot": string;
40
+ "process": ProcessIdentity;
41
+ "version": string;
42
+ "commit": string;
43
+ "repositories": RepositoryResolution[];
44
+ "endpoints": Endpoints;
45
+ "plugins": PluginState[];
46
+ "readiness": string;
47
+ "lastError"?: Error | null;
48
+ "startedAt": string;
49
+ /** Creates a new InstanceDescriptor instance. */
50
+ constructor($$source?: Partial<InstanceDescriptor>);
51
+ /**
52
+ * Creates a new InstanceDescriptor instance from a string or object.
53
+ */
54
+ static createFrom($$source?: any): InstanceDescriptor;
55
+ }
56
+ export declare class PluginState {
57
+ "id": string;
58
+ "version": string;
59
+ "source": string;
60
+ "generation": string;
61
+ "mode": string;
62
+ "buildStatus": string;
63
+ "viteStatus": string;
64
+ "rpcStatus": string;
65
+ "controllerStatus": string;
66
+ "operationID"?: string;
67
+ "lastError"?: Error | null;
68
+ /** Creates a new PluginState instance. */
69
+ constructor($$source?: Partial<PluginState>);
70
+ /**
71
+ * Creates a new PluginState instance from a string or object.
72
+ */
73
+ static createFrom($$source?: any): PluginState;
74
+ }
75
+ export declare class ProcessIdentity {
76
+ "pid": number;
77
+ "startIdentity": string;
78
+ "executable": string;
79
+ "workspaceID": string;
80
+ "generation": string;
81
+ "role": string;
82
+ "source"?: string;
83
+ /** Creates a new ProcessIdentity instance. */
84
+ constructor($$source?: Partial<ProcessIdentity>);
85
+ /**
86
+ * Creates a new ProcessIdentity instance from a string or object.
87
+ */
88
+ static createFrom($$source?: any): ProcessIdentity;
89
+ }
90
+ export declare class RepositoryResolution {
91
+ "id": string;
92
+ "path": string;
93
+ "ref": string;
94
+ "commit": string;
95
+ /** Creates a new RepositoryResolution instance. */
96
+ constructor($$source?: Partial<RepositoryResolution>);
97
+ /**
98
+ * Creates a new RepositoryResolution instance from a string or object.
99
+ */
100
+ static createFrom($$source?: any): RepositoryResolution;
101
+ }
@@ -1 +1 @@
1
- export { PluginAuthor, PluginComponentArea, PluginComponents, PluginMaintainer, PluginMeta, PluginResourceComponent, PluginTheme, PluginThemeColors } from './models.js';
1
+ export { PluginAuthor, PluginComponentArea, PluginComponents, PluginMaintainer, PluginMeta, PluginResourceComponent, PluginTheme, PluginThemeColors, StateIsolationProvenance } from './models.js';
@@ -59,6 +59,11 @@ export declare class PluginMeta {
59
59
  "components": PluginComponents;
60
60
  "schema_version": number;
61
61
  "sdk_protocol_version": number;
62
+ /**
63
+ * StateIsolation is inspectable before launch; only a trusted builder's
64
+ * attestation may authorize isolated startup, never self-asserted YAML.
65
+ */
66
+ "state_isolation"?: StateIsolationProvenance | null;
62
67
  /** Creates a new PluginMeta instance. */
63
68
  constructor($$source?: Partial<PluginMeta>);
64
69
  /**
@@ -99,3 +104,29 @@ export declare class PluginThemeColors {
99
104
  */
100
105
  static createFrom($$source?: any): PluginThemeColors;
101
106
  }
107
+ /**
108
+ * StateIsolationProvenance is a trusted builder's attestation, not a declaration
109
+ * an arbitrary plugin may use to grant itself permission to start. It is checked
110
+ * without executing the artifact. Absence means unsupported, not legacy-safe.
111
+ * The host must establish the attestation's trusted origin separately.
112
+ * No lifecycle RPC/protocol change is required to inspect this metadata.
113
+ */
114
+ export declare class StateIsolationProvenance {
115
+ "schema_version": number;
116
+ "capability": string;
117
+ "sdk_module": string;
118
+ "sdk_revision": string;
119
+ /**
120
+ * SDKSourceSHA256 identifies the trusted builder's exact selected working-tree
121
+ * snapshot, permitting live feature edits above the reviewed capability base.
122
+ * Empty is reserved for immutable, clean, commit-only trusted builds.
123
+ */
124
+ "sdk_source_sha256"?: string;
125
+ "binary_sha256": string;
126
+ /** Creates a new StateIsolationProvenance instance. */
127
+ constructor($$source?: Partial<StateIsolationProvenance>);
128
+ /**
129
+ * Creates a new StateIsolationProvenance instance from a string or object.
130
+ */
131
+ static createFrom($$source?: any): StateIsolationProvenance;
132
+ }
@@ -1,19 +1,19 @@
1
- import { n as M, b as I, o as x, h as k, R as H } from "./index-D2mKAO8s.js";
2
- var D = Function.prototype.toString, h = typeof Reflect == "object" && Reflect !== null && Reflect.apply, g, j;
3
- if (typeof h == "function" && typeof Object.defineProperty == "function")
1
+ import { n as M, b as B, o as x, h as I, R as H } from "./index-D2mKAO8s.js";
2
+ var D = Function.prototype.toString, p = typeof Reflect == "object" && Reflect !== null && Reflect.apply, g, j;
3
+ if (typeof p == "function" && typeof Object.defineProperty == "function")
4
4
  try {
5
5
  g = Object.defineProperty({}, "length", {
6
6
  get: function() {
7
7
  throw j;
8
8
  }
9
- }), j = {}, h(function() {
9
+ }), j = {}, p(function() {
10
10
  throw 42;
11
11
  }, null, g);
12
12
  } catch (r) {
13
- r !== j && (h = null);
13
+ r !== j && (p = null);
14
14
  }
15
15
  else
16
- h = null;
16
+ p = null;
17
17
  var N = /^\s*class\b/, A = function(e) {
18
18
  try {
19
19
  var t = D.call(e);
@@ -48,7 +48,7 @@ function Y(r) {
48
48
  if (!r || typeof r != "function" && typeof r != "object")
49
49
  return !1;
50
50
  try {
51
- h(r, null, g);
51
+ p(r, null, g);
52
52
  } catch (e) {
53
53
  if (e !== j)
54
54
  return !1;
@@ -67,7 +67,7 @@ function Z(r) {
67
67
  var e = m.call(r);
68
68
  return e !== z && e !== G && !/^\[object HTML/.test(e) ? !1 : S(r);
69
69
  }
70
- const f = h ? Y : Z;
70
+ const d = p ? Y : Z;
71
71
  var w;
72
72
  class R extends Error {
73
73
  /**
@@ -127,8 +127,8 @@ class l extends Promise {
127
127
  */
128
128
  constructor(e, t) {
129
129
  let n, o;
130
- if (super((s, p) => {
131
- n = s, o = p;
130
+ if (super((a, y) => {
131
+ n = a, o = y;
132
132
  }), this.constructor[P] !== Promise)
133
133
  throw new TypeError("CancellablePromise does not support transparent subclassing. Please refrain from overriding the [Symbol.species] static property.");
134
134
  let c = {
@@ -138,8 +138,8 @@ class l extends Promise {
138
138
  get oncancelled() {
139
139
  return t ?? null;
140
140
  },
141
- set oncancelled(s) {
142
- t = s ?? void 0;
141
+ set oncancelled(a) {
142
+ t = a ?? void 0;
143
143
  }
144
144
  };
145
145
  const i = {
@@ -163,11 +163,11 @@ class l extends Promise {
163
163
  value: L(c, i)
164
164
  }
165
165
  });
166
- const a = B(c, i);
166
+ const s = k(c, i);
167
167
  try {
168
- e(U(c, i), a);
169
- } catch (s) {
170
- i.resolving ? console.log("Unhandled exception in CancellablePromise executor.", s) : a(s);
168
+ e(U(c, i), s);
169
+ } catch (a) {
170
+ i.resolving ? console.log("Unhandled exception in CancellablePromise executor.", a) : s(a);
171
171
  }
172
172
  }
173
173
  /**
@@ -293,25 +293,25 @@ class l extends Promise {
293
293
  then(e, t, n) {
294
294
  if (!(this instanceof l))
295
295
  throw new TypeError("CancellablePromise.prototype.then called on an invalid object.");
296
- if (f(e) || (e = C), f(t) || (t = F), e === C && t == F)
296
+ if (d(e) || (e = C), d(t) || (t = F), e === C && t == F)
297
297
  return new l((c) => c(this));
298
298
  const o = {};
299
299
  return this[u] = o, new l((c, i) => {
300
- super.then((a) => {
301
- var s;
302
- this[u] === o && (this[u] = null), (s = o.resolve) === null || s === void 0 || s.call(o);
300
+ super.then((s) => {
301
+ var a;
302
+ this[u] === o && (this[u] = null), (a = o.resolve) === null || a === void 0 || a.call(o);
303
303
  try {
304
- c(e(a));
305
- } catch (p) {
306
- i(p);
304
+ c(e(s));
305
+ } catch (y) {
306
+ i(y);
307
307
  }
308
- }, (a) => {
309
- var s;
310
- this[u] === o && (this[u] = null), (s = o.resolve) === null || s === void 0 || s.call(o);
308
+ }, (s) => {
309
+ var a;
310
+ this[u] === o && (this[u] = null), (a = o.resolve) === null || a === void 0 || a.call(o);
311
311
  try {
312
- c(t(a));
313
- } catch (p) {
314
- i(p);
312
+ c(t(s));
313
+ } catch (y) {
314
+ i(y);
315
315
  }
316
316
  });
317
317
  }, async (c) => {
@@ -388,7 +388,7 @@ class l extends Promise {
388
388
  finally(e, t) {
389
389
  if (!(this instanceof l))
390
390
  throw new TypeError("CancellablePromise.prototype.finally called on an invalid object.");
391
- return f(e) ? this.then((n) => l.resolve(e()).then(() => n), (n) => l.resolve(e()).then(() => {
391
+ return d(e) ? this.then((n) => l.resolve(e()).then(() => n), (n) => l.resolve(e()).then(() => {
392
392
  throw n;
393
393
  }), t) : this.then(e, e, t);
394
394
  }
@@ -527,14 +527,14 @@ function U(r, e) {
527
527
  e.settled = !0, r.reject(o);
528
528
  return;
529
529
  }
530
- if (f(n)) {
530
+ if (d(n)) {
531
531
  try {
532
532
  let i = t.cancel;
533
- if (f(i)) {
534
- const a = (s) => {
535
- Reflect.apply(i, t, [s]);
533
+ if (d(i)) {
534
+ const s = (a) => {
535
+ Reflect.apply(i, t, [a]);
536
536
  };
537
- e.reason ? L(Object.assign(Object.assign({}, r), { oncancelled: a }), e)(e.reason) : r.oncancelled = a;
537
+ e.reason ? L(Object.assign(Object.assign({}, r), { oncancelled: s }), e)(e.reason) : r.oncancelled = s;
538
538
  }
539
539
  } catch {
540
540
  }
@@ -550,7 +550,7 @@ function U(r, e) {
550
550
  get reason() {
551
551
  return this.root.reason;
552
552
  }
553
- }, c = B(r, o);
553
+ }, c = k(r, o);
554
554
  try {
555
555
  Reflect.apply(n, t, [U(r, o), c]);
556
556
  } catch (i) {
@@ -563,7 +563,7 @@ function U(r, e) {
563
563
  }
564
564
  };
565
565
  }
566
- function B(r, e) {
566
+ function k(r, e) {
567
567
  return (t) => {
568
568
  if (!e.resolving)
569
569
  if (e.resolving = !0, e.settled) {
@@ -582,7 +582,7 @@ function b(r, e, t) {
582
582
  for (const o of e) {
583
583
  let c;
584
584
  try {
585
- if (!f(o.then) || (c = o.cancel, !f(c)))
585
+ if (!d(o.then) || (c = o.cancel, !d(c)))
586
586
  continue;
587
587
  } catch {
588
588
  continue;
@@ -590,12 +590,12 @@ function b(r, e, t) {
590
590
  let i;
591
591
  try {
592
592
  i = Reflect.apply(c, o, [t]);
593
- } catch (a) {
594
- Promise.reject(new v(r, a, "Unhandled exception in cancel method."));
593
+ } catch (s) {
594
+ Promise.reject(new v(r, s, "Unhandled exception in cancel method."));
595
595
  continue;
596
596
  }
597
- i && n.push((i instanceof Promise ? i : Promise.resolve(i)).catch((a) => {
598
- Promise.reject(new v(r, a, "Unhandled rejection in cancel method."));
597
+ i && n.push((i instanceof Promise ? i : Promise.resolve(i)).catch((s) => {
598
+ Promise.reject(new v(r, s, "Unhandled rejection in cancel method."));
599
599
  }));
600
600
  }
601
601
  return Promise.all(n);
@@ -625,38 +625,38 @@ function $(r) {
625
625
  function _(r) {
626
626
  var e;
627
627
  let t = (e = r[u]) !== null && e !== void 0 ? e : {};
628
- return "promise" in t || Object.assign(t, d()), r[u] == null && (t.resolve(), r[u] = t), t.promise;
628
+ return "promise" in t || Object.assign(t, h()), r[u] == null && (t.resolve(), r[u] = t), t.promise;
629
629
  }
630
- let d = Promise.withResolvers;
631
- d && typeof d == "function" ? d = d.bind(Promise) : d = function() {
630
+ let h = Promise.withResolvers;
631
+ h && typeof h == "function" ? h = h.bind(Promise) : h = function() {
632
632
  let r, e;
633
633
  return { promise: new Promise((n, o) => {
634
634
  r = n, e = o;
635
635
  }), resolve: r, reject: e };
636
636
  };
637
- k && (window._wails = window._wails || {});
638
- const ee = M(x.Call), te = M(x.CancelCall), y = /* @__PURE__ */ new Map(), re = 0, ne = 0;
637
+ I && (window._wails = window._wails || {});
638
+ const ee = M(x.Call), te = M(x.CancelCall), f = /* @__PURE__ */ new Map(), re = 0, ne = 0;
639
639
  function oe() {
640
640
  let r;
641
641
  do
642
- r = I();
643
- while (y.has(r));
642
+ r = B();
643
+ while (f.has(r));
644
644
  return r;
645
645
  }
646
646
  function O(r) {
647
- const e = oe(), t = l.withResolvers();
648
- y.set(e, { resolve: t.resolve, reject: t.reject });
649
- const n = ee(re, Object.assign({ "call-id": e }, r));
650
- let o = !0;
651
- n.then((i) => {
652
- o = !1, y.delete(e), t.resolve(i);
653
- }, (i) => {
654
- o = !1, y.delete(e), t.reject(i);
647
+ const e = oe(), t = l.withResolvers(), n = { resolve: t.resolve, reject: t.reject };
648
+ f.set(e, n);
649
+ const o = ee(re, Object.assign({ "call-id": e }, r));
650
+ let c = !0;
651
+ o.then((s) => {
652
+ c = !1, f.get(e) === n && (f.delete(e), n.resolve(s));
653
+ }, (s) => {
654
+ c = !1, f.get(e) === n && (f.delete(e), n.reject(s));
655
655
  });
656
- const c = () => (y.delete(e), te(ne, { "call-id": e }).catch((i) => {
657
- console.error("Error while requesting binding call cancellation:", i);
656
+ const i = () => (f.delete(e), te(ne, { "call-id": e }).catch((s) => {
657
+ console.error("Error while requesting binding call cancellation:", s);
658
658
  }));
659
- return t.oncancelled = () => o ? c() : n.then(c), t.promise;
659
+ return t.oncancelled = () => c ? i() : o.then(i), t.promise;
660
660
  }
661
661
  function ce(r, ...e) {
662
662
  return O({ methodName: r, args: e });
@@ -1 +1 @@
1
- "use strict";const d=require("./index-D_aIcqH0.cjs");var M=Function.prototype.toString,p=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,S,m;if(typeof p=="function"&&typeof Object.defineProperty=="function")try{S=Object.defineProperty({},"length",{get:function(){throw m}}),m={},p(function(){throw 42},null,S)}catch(r){r!==m&&(p=null)}else p=null;var B=/^\s*class\b/,E=function(e){try{var t=M.call(e);return B.test(t)}catch{return!1}},R=function(e){try{return E(e)?!1:(M.call(e),!0)}catch{return!1}},w=Object.prototype.toString,N="[object Object]",k="[object Function]",H="[object GeneratorFunction]",q="[object HTMLAllCollection]",z="[object HTML document.all class]",G="[object HTMLCollection]",J=typeof Symbol=="function"&&!!Symbol.toStringTag,W=!(0 in[,]),O=function(){return!1};if(typeof document=="object"){var K=document.all;w.call(K)===w.call(document.all)&&(O=function(e){if((W||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=w.call(e);return(t===q||t===z||t===G||t===N)&&e("")==null}catch{}return!1})}function Q(r){if(O(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{p(r,null,S)}catch(e){if(e!==m)return!1}return!E(r)&&R(r)}function V(r){if(O(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(J)return R(r);if(E(r))return!1;var e=w.call(r);return e!==k&&e!==H&&!/^\[object HTML/.test(e)?!1:R(r)}const f=p?Q:V;var g;class A extends Error{constructor(e,t){super(e,t),this.name="CancelError"}}class b extends Error{constructor(e,t,n){super((n??"Unhandled rejection in cancelled promise.")+" Reason: "+X(t),{cause:t}),this.promise=e,this.name="CancelledRejectionError"}}const u=Symbol("barrier"),P=Symbol("cancelImpl"),C=(g=Symbol.species)!==null&&g!==void 0?g:Symbol("speciesPolyfill");class l extends Promise{constructor(e,t){let n,o;if(super((s,y)=>{n=s,o=y}),this.constructor[C]!==Promise)throw new TypeError("CancellablePromise does not support transparent subclassing. Please refrain from overriding the [Symbol.species] static property.");let c={promise:this,resolve:n,reject:o,get oncancelled(){return t??null},set oncancelled(s){t=s??void 0}};const i={get root(){return i},resolving:!1,settled:!1};Object.defineProperties(this,{[u]:{configurable:!1,enumerable:!1,writable:!0,value:null},[P]:{configurable:!1,enumerable:!1,writable:!1,value:x(c,i)}});const a=I(c,i);try{e(L(c,i),a)}catch(s){i.resolving?console.log("Unhandled exception in CancellablePromise executor.",s):a(s)}}cancel(e){return new l(t=>{Promise.all([this[P](new A("Promise cancelled.",{cause:e})),Y(this)]).then(()=>t(),()=>t())})}cancelOn(e){return e.aborted?this.cancel(e.reason):e.addEventListener("abort",()=>void this.cancel(e.reason),{capture:!0}),this}then(e,t,n){if(!(this instanceof l))throw new TypeError("CancellablePromise.prototype.then called on an invalid object.");if(f(e)||(e=D),f(t)||(t=F),e===D&&t==F)return new l(c=>c(this));const o={};return this[u]=o,new l((c,i)=>{super.then(a=>{var s;this[u]===o&&(this[u]=null),(s=o.resolve)===null||s===void 0||s.call(o);try{c(e(a))}catch(y){i(y)}},a=>{var s;this[u]===o&&(this[u]=null),(s=o.resolve)===null||s===void 0||s.call(o);try{c(t(a))}catch(y){i(y)}})},async c=>{try{return n==null?void 0:n(c)}finally{await this.cancel(c)}})}catch(e,t){return this.then(void 0,e,t)}finally(e,t){if(!(this instanceof l))throw new TypeError("CancellablePromise.prototype.finally called on an invalid object.");return f(e)?this.then(n=>l.resolve(e()).then(()=>n),n=>l.resolve(e()).then(()=>{throw n}),t):this.then(e,e,t)}static get[C](){return Promise}static all(e){let t=Array.from(e);const n=t.length===0?l.resolve(t):new l((o,c)=>{Promise.all(t).then(o,c)},o=>j(n,t,o));return n}static allSettled(e){let t=Array.from(e);const n=t.length===0?l.resolve(t):new l((o,c)=>{Promise.allSettled(t).then(o,c)},o=>j(n,t,o));return n}static any(e){let t=Array.from(e);const n=t.length===0?l.resolve(t):new l((o,c)=>{Promise.any(t).then(o,c)},o=>j(n,t,o));return n}static race(e){let t=Array.from(e);const n=new l((o,c)=>{Promise.race(t).then(o,c)},o=>j(n,t,o));return n}static cancel(e){const t=new l(()=>{});return t.cancel(e),t}static timeout(e,t){const n=new l(()=>{});return AbortSignal&&typeof AbortSignal=="function"&&AbortSignal.timeout&&typeof AbortSignal.timeout=="function"?AbortSignal.timeout(e).addEventListener("abort",()=>void n.cancel(t)):setTimeout(()=>void n.cancel(t),e),n}static sleep(e,t){return new l(n=>{setTimeout(()=>n(t),e)})}static reject(e){return new l((t,n)=>n(e))}static resolve(e){return e instanceof l?e:new l(t=>t(e))}static withResolvers(){let e={oncancelled:null};return e.promise=new l((t,n)=>{e.resolve=t,e.reject=n},t=>{var n;(n=e.oncancelled)===null||n===void 0||n.call(e,t)}),e}}function x(r,e){let t;return n=>{if(e.settled||(e.settled=!0,e.reason=n,r.reject(n),Promise.prototype.then.call(r.promise,void 0,o=>{if(o!==n)throw o})),!(!e.reason||!r.oncancelled))return t=new Promise(o=>{try{o(r.oncancelled(e.reason.cause))}catch(c){Promise.reject(new b(r.promise,c,"Unhandled exception in oncancelled callback."))}}).catch(o=>{Promise.reject(new b(r.promise,o,"Unhandled rejection in oncancelled callback."))}),r.oncancelled=null,t}}function L(r,e){return t=>{if(!e.resolving){if(e.resolving=!0,t===r.promise){if(e.settled)return;e.settled=!0,r.reject(new TypeError("A promise cannot be resolved with itself."));return}if(t!=null&&(typeof t=="object"||typeof t=="function")){let n;try{n=t.then}catch(o){e.settled=!0,r.reject(o);return}if(f(n)){try{let i=t.cancel;if(f(i)){const a=s=>{Reflect.apply(i,t,[s])};e.reason?x(Object.assign(Object.assign({},r),{oncancelled:a}),e)(e.reason):r.oncancelled=a}}catch{}const o={root:e.root,resolving:!1,get settled(){return this.root.settled},set settled(i){this.root.settled=i},get reason(){return this.root.reason}},c=I(r,o);try{Reflect.apply(n,t,[L(r,o),c])}catch(i){c(i)}return}}e.settled||(e.settled=!0,r.resolve(t))}}}function I(r,e){return t=>{if(!e.resolving)if(e.resolving=!0,e.settled){try{if(t instanceof A&&e.reason instanceof A&&Object.is(t.cause,e.reason.cause))return}catch{}Promise.reject(new b(r.promise,t))}else e.settled=!0,r.reject(t)}}function j(r,e,t){const n=[];for(const o of e){let c;try{if(!f(o.then)||(c=o.cancel,!f(c)))continue}catch{continue}let i;try{i=Reflect.apply(c,o,[t])}catch(a){Promise.reject(new b(r,a,"Unhandled exception in cancel method."));continue}i&&n.push((i instanceof Promise?i:Promise.resolve(i)).catch(a=>{Promise.reject(new b(r,a,"Unhandled rejection in cancel method."))}))}return Promise.all(n)}function D(r){return r}function F(r){throw r}function X(r){try{if(r instanceof Error||typeof r!="object"||r.toString!==Object.prototype.toString)return""+r}catch{}try{return JSON.stringify(r)}catch{}try{return Object.prototype.toString.call(r)}catch{}return"<could not convert error to string>"}function Y(r){var e;let t=(e=r[u])!==null&&e!==void 0?e:{};return"promise"in t||Object.assign(t,h()),r[u]==null&&(t.resolve(),r[u]=t),t.promise}let h=Promise.withResolvers;h&&typeof h=="function"?h=h.bind(Promise):h=function(){let r,e;return{promise:new Promise((n,o)=>{r=n,e=o}),resolve:r,reject:e}};d.hasDOM&&(window._wails=window._wails||{});const Z=d.newRuntimeCaller(d.objectNames.Call),$=d.newRuntimeCaller(d.objectNames.CancelCall),v=new Map,_=0,ee=0;function te(){let r;do r=d.nanoid();while(v.has(r));return r}function T(r){const e=te(),t=l.withResolvers();v.set(e,{resolve:t.resolve,reject:t.reject});const n=Z(_,Object.assign({"call-id":e},r));let o=!0;n.then(i=>{o=!1,v.delete(e),t.resolve(i)},i=>{o=!1,v.delete(e),t.reject(i)});const c=()=>(v.delete(e),$(ee,{"call-id":e}).catch(i=>{console.error("Error while requesting binding call cancellation:",i)}));return t.oncancelled=()=>o?c():n.then(c),t.promise}function re(r,...e){return T({methodName:r,args:e})}function U(r,...e){return T({methodID:r,args:e})}const ne=Object.freeze(Object.defineProperty({__proto__:null,ByID:U,ByName:re,Call:T,RuntimeError:d.RuntimeError},Symbol.toStringTag,{value:"Module"}));exports.ByID=U;exports.calls=ne;
1
+ "use strict";const h=require("./index-D_aIcqH0.cjs");var M=Function.prototype.toString,y=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,S,m;if(typeof y=="function"&&typeof Object.defineProperty=="function")try{S=Object.defineProperty({},"length",{get:function(){throw m}}),m={},y(function(){throw 42},null,S)}catch(r){r!==m&&(y=null)}else y=null;var k=/^\s*class\b/,E=function(e){try{var t=M.call(e);return k.test(t)}catch{return!1}},R=function(e){try{return E(e)?!1:(M.call(e),!0)}catch{return!1}},w=Object.prototype.toString,B="[object Object]",N="[object Function]",H="[object GeneratorFunction]",q="[object HTMLAllCollection]",z="[object HTML document.all class]",G="[object HTMLCollection]",J=typeof Symbol=="function"&&!!Symbol.toStringTag,W=!(0 in[,]),O=function(){return!1};if(typeof document=="object"){var K=document.all;w.call(K)===w.call(document.all)&&(O=function(e){if((W||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=w.call(e);return(t===q||t===z||t===G||t===B)&&e("")==null}catch{}return!1})}function Q(r){if(O(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{y(r,null,S)}catch(e){if(e!==m)return!1}return!E(r)&&R(r)}function V(r){if(O(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(J)return R(r);if(E(r))return!1;var e=w.call(r);return e!==N&&e!==H&&!/^\[object HTML/.test(e)?!1:R(r)}const d=y?Q:V;var g;class A extends Error{constructor(e,t){super(e,t),this.name="CancelError"}}class b extends Error{constructor(e,t,n){super((n??"Unhandled rejection in cancelled promise.")+" Reason: "+X(t),{cause:t}),this.promise=e,this.name="CancelledRejectionError"}}const u=Symbol("barrier"),P=Symbol("cancelImpl"),C=(g=Symbol.species)!==null&&g!==void 0?g:Symbol("speciesPolyfill");class l extends Promise{constructor(e,t){let n,o;if(super((a,v)=>{n=a,o=v}),this.constructor[C]!==Promise)throw new TypeError("CancellablePromise does not support transparent subclassing. Please refrain from overriding the [Symbol.species] static property.");let c={promise:this,resolve:n,reject:o,get oncancelled(){return t??null},set oncancelled(a){t=a??void 0}};const i={get root(){return i},resolving:!1,settled:!1};Object.defineProperties(this,{[u]:{configurable:!1,enumerable:!1,writable:!0,value:null},[P]:{configurable:!1,enumerable:!1,writable:!1,value:x(c,i)}});const s=I(c,i);try{e(L(c,i),s)}catch(a){i.resolving?console.log("Unhandled exception in CancellablePromise executor.",a):s(a)}}cancel(e){return new l(t=>{Promise.all([this[P](new A("Promise cancelled.",{cause:e})),Y(this)]).then(()=>t(),()=>t())})}cancelOn(e){return e.aborted?this.cancel(e.reason):e.addEventListener("abort",()=>void this.cancel(e.reason),{capture:!0}),this}then(e,t,n){if(!(this instanceof l))throw new TypeError("CancellablePromise.prototype.then called on an invalid object.");if(d(e)||(e=D),d(t)||(t=F),e===D&&t==F)return new l(c=>c(this));const o={};return this[u]=o,new l((c,i)=>{super.then(s=>{var a;this[u]===o&&(this[u]=null),(a=o.resolve)===null||a===void 0||a.call(o);try{c(e(s))}catch(v){i(v)}},s=>{var a;this[u]===o&&(this[u]=null),(a=o.resolve)===null||a===void 0||a.call(o);try{c(t(s))}catch(v){i(v)}})},async c=>{try{return n==null?void 0:n(c)}finally{await this.cancel(c)}})}catch(e,t){return this.then(void 0,e,t)}finally(e,t){if(!(this instanceof l))throw new TypeError("CancellablePromise.prototype.finally called on an invalid object.");return d(e)?this.then(n=>l.resolve(e()).then(()=>n),n=>l.resolve(e()).then(()=>{throw n}),t):this.then(e,e,t)}static get[C](){return Promise}static all(e){let t=Array.from(e);const n=t.length===0?l.resolve(t):new l((o,c)=>{Promise.all(t).then(o,c)},o=>j(n,t,o));return n}static allSettled(e){let t=Array.from(e);const n=t.length===0?l.resolve(t):new l((o,c)=>{Promise.allSettled(t).then(o,c)},o=>j(n,t,o));return n}static any(e){let t=Array.from(e);const n=t.length===0?l.resolve(t):new l((o,c)=>{Promise.any(t).then(o,c)},o=>j(n,t,o));return n}static race(e){let t=Array.from(e);const n=new l((o,c)=>{Promise.race(t).then(o,c)},o=>j(n,t,o));return n}static cancel(e){const t=new l(()=>{});return t.cancel(e),t}static timeout(e,t){const n=new l(()=>{});return AbortSignal&&typeof AbortSignal=="function"&&AbortSignal.timeout&&typeof AbortSignal.timeout=="function"?AbortSignal.timeout(e).addEventListener("abort",()=>void n.cancel(t)):setTimeout(()=>void n.cancel(t),e),n}static sleep(e,t){return new l(n=>{setTimeout(()=>n(t),e)})}static reject(e){return new l((t,n)=>n(e))}static resolve(e){return e instanceof l?e:new l(t=>t(e))}static withResolvers(){let e={oncancelled:null};return e.promise=new l((t,n)=>{e.resolve=t,e.reject=n},t=>{var n;(n=e.oncancelled)===null||n===void 0||n.call(e,t)}),e}}function x(r,e){let t;return n=>{if(e.settled||(e.settled=!0,e.reason=n,r.reject(n),Promise.prototype.then.call(r.promise,void 0,o=>{if(o!==n)throw o})),!(!e.reason||!r.oncancelled))return t=new Promise(o=>{try{o(r.oncancelled(e.reason.cause))}catch(c){Promise.reject(new b(r.promise,c,"Unhandled exception in oncancelled callback."))}}).catch(o=>{Promise.reject(new b(r.promise,o,"Unhandled rejection in oncancelled callback."))}),r.oncancelled=null,t}}function L(r,e){return t=>{if(!e.resolving){if(e.resolving=!0,t===r.promise){if(e.settled)return;e.settled=!0,r.reject(new TypeError("A promise cannot be resolved with itself."));return}if(t!=null&&(typeof t=="object"||typeof t=="function")){let n;try{n=t.then}catch(o){e.settled=!0,r.reject(o);return}if(d(n)){try{let i=t.cancel;if(d(i)){const s=a=>{Reflect.apply(i,t,[a])};e.reason?x(Object.assign(Object.assign({},r),{oncancelled:s}),e)(e.reason):r.oncancelled=s}}catch{}const o={root:e.root,resolving:!1,get settled(){return this.root.settled},set settled(i){this.root.settled=i},get reason(){return this.root.reason}},c=I(r,o);try{Reflect.apply(n,t,[L(r,o),c])}catch(i){c(i)}return}}e.settled||(e.settled=!0,r.resolve(t))}}}function I(r,e){return t=>{if(!e.resolving)if(e.resolving=!0,e.settled){try{if(t instanceof A&&e.reason instanceof A&&Object.is(t.cause,e.reason.cause))return}catch{}Promise.reject(new b(r.promise,t))}else e.settled=!0,r.reject(t)}}function j(r,e,t){const n=[];for(const o of e){let c;try{if(!d(o.then)||(c=o.cancel,!d(c)))continue}catch{continue}let i;try{i=Reflect.apply(c,o,[t])}catch(s){Promise.reject(new b(r,s,"Unhandled exception in cancel method."));continue}i&&n.push((i instanceof Promise?i:Promise.resolve(i)).catch(s=>{Promise.reject(new b(r,s,"Unhandled rejection in cancel method."))}))}return Promise.all(n)}function D(r){return r}function F(r){throw r}function X(r){try{if(r instanceof Error||typeof r!="object"||r.toString!==Object.prototype.toString)return""+r}catch{}try{return JSON.stringify(r)}catch{}try{return Object.prototype.toString.call(r)}catch{}return"<could not convert error to string>"}function Y(r){var e;let t=(e=r[u])!==null&&e!==void 0?e:{};return"promise"in t||Object.assign(t,p()),r[u]==null&&(t.resolve(),r[u]=t),t.promise}let p=Promise.withResolvers;p&&typeof p=="function"?p=p.bind(Promise):p=function(){let r,e;return{promise:new Promise((n,o)=>{r=n,e=o}),resolve:r,reject:e}};h.hasDOM&&(window._wails=window._wails||{});const Z=h.newRuntimeCaller(h.objectNames.Call),$=h.newRuntimeCaller(h.objectNames.CancelCall),f=new Map,_=0,ee=0;function te(){let r;do r=h.nanoid();while(f.has(r));return r}function T(r){const e=te(),t=l.withResolvers(),n={resolve:t.resolve,reject:t.reject};f.set(e,n);const o=Z(_,Object.assign({"call-id":e},r));let c=!0;o.then(s=>{c=!1,f.get(e)===n&&(f.delete(e),n.resolve(s))},s=>{c=!1,f.get(e)===n&&(f.delete(e),n.reject(s))});const i=()=>(f.delete(e),$(ee,{"call-id":e}).catch(s=>{console.error("Error while requesting binding call cancellation:",s)}));return t.oncancelled=()=>c?i():o.then(i),t.promise}function re(r,...e){return T({methodName:r,args:e})}function U(r,...e){return T({methodID:r,args:e})}const ne=Object.freeze(Object.defineProperty({__proto__:null,ByID:U,ByName:re,Call:T,RuntimeError:h.RuntimeError},Symbol.toStringTag,{value:"Module"}));exports.ByID=U;exports.calls=ne;
@@ -6,7 +6,7 @@ export type Operation = {
6
6
  resourceName: string;
7
7
  namespace: string;
8
8
  connectionID: string;
9
- status: 'running' | 'completed' | 'error';
9
+ status: 'running' | 'completed' | 'error' | 'cancelled';
10
10
  progress?: {
11
11
  ready: number;
12
12
  desired: number;
@@ -1,19 +1,6 @@
1
1
  import { AppError, AppErrorAction } from './types';
2
- /**
3
- * Parse any error shape from the Wails boundary into a structured AppError.
4
- *
5
- * Handles:
6
- * - JSON string from AppError.Error() → parsed into typed AppError
7
- * - Plain string from old fmt.Errorf → wrapped as internal error
8
- * - Error object → extracts .message, tries JSON parse
9
- * - null/undefined → generic "Unknown error"
10
- *
11
- * NEVER returns null.
12
- */
2
+ /** Decode actual Wails/SDK errors without exposing arbitrary raw diagnostics. */
13
3
  export declare function parseAppError(error: unknown): AppError;
14
- /**
15
- * Detects both new format (type === "omniview:cancelled") and legacy ("cancelled" string).
16
- */
17
4
  export declare function isCancelledError(error: unknown): boolean;
18
5
  /**
19
6
  * Converts an AppErrorAction into a { label, onClick } suitable for snackbar actions.