@omniviewdev/runtime 0.9.2 → 0.10.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.
@@ -1,142 +0,0 @@
1
- import { A as m } from "./index-zyAgCXOO.js";
2
- import { b8 as f } from "./models-CT4kHj47.js";
3
- class s {
4
- file;
5
- line;
6
- column;
7
- message;
8
- /** Creates a new BuildError instance. */
9
- constructor(t = {}) {
10
- "file" in t || (this.file = ""), "line" in t || (this.line = 0), "column" in t || (this.column = 0), "message" in t || (this.message = ""), Object.assign(this, t);
11
- }
12
- /**
13
- * Creates a new BuildError instance from a string or object.
14
- */
15
- static createFrom(t = {}) {
16
- let e = typeof t == "string" ? JSON.parse(t) : t;
17
- return new s(e);
18
- }
19
- }
20
- var o = /* @__PURE__ */ ((i) => (i.$zero = "", i.DevProcessStatusIdle = "idle", i.DevProcessStatusStarting = "starting", i.DevProcessStatusBuilding = "building", i.DevProcessStatusRunning = "running", i.DevProcessStatusReady = "ready", i.DevProcessStatusError = "error", i.DevProcessStatusStopped = "stopped", i.DevProcessStatusNotApplicable = "n/a", i))(o || {});
21
- class a {
22
- pluginID;
23
- errors;
24
- /** Creates a new DevServerErrorPayload instance. */
25
- constructor(t = {}) {
26
- "pluginID" in t || (this.pluginID = ""), "errors" in t || (this.errors = []), Object.assign(this, t);
27
- }
28
- /**
29
- * Creates a new DevServerErrorPayload instance from a string or object.
30
- */
31
- static createFrom(t = {}) {
32
- const e = S;
33
- let n = typeof t == "string" ? JSON.parse(t) : t;
34
- return "errors" in n && (n.errors = e(n.errors)), new a(n);
35
- }
36
- }
37
- var p = /* @__PURE__ */ ((i) => (i.$zero = "", i.DevServerModeIdle = "idle", i.DevServerModeManaged = "managed", i))(p || {});
38
- class r {
39
- pluginID;
40
- mode;
41
- devPath;
42
- vitePort;
43
- viteURL;
44
- viteStatus;
45
- goStatus;
46
- lastBuildDuration;
47
- lastBuildTime;
48
- lastError;
49
- grpcConnected;
50
- generation;
51
- hmrURL;
52
- buildStatus;
53
- rpcStatus;
54
- controllerStatus;
55
- ready;
56
- /** Creates a new DevServerState instance. */
57
- constructor(t = {}) {
58
- "pluginID" in t || (this.pluginID = ""), "mode" in t || (this.mode = ""), "devPath" in t || (this.devPath = ""), "vitePort" in t || (this.vitePort = 0), "viteURL" in t || (this.viteURL = ""), "viteStatus" in t || (this.viteStatus = ""), "goStatus" in t || (this.goStatus = ""), "lastBuildDuration" in t || (this.lastBuildDuration = f.$zero), "lastBuildTime" in t || (this.lastBuildTime = ""), "lastError" in t || (this.lastError = ""), "grpcConnected" in t || (this.grpcConnected = !1), "generation" in t || (this.generation = ""), "hmrURL" in t || (this.hmrURL = ""), "buildStatus" in t || (this.buildStatus = ""), "rpcStatus" in t || (this.rpcStatus = ""), "controllerStatus" in t || (this.controllerStatus = ""), "ready" in t || (this.ready = !1), Object.assign(this, t);
59
- }
60
- /**
61
- * Creates a new DevServerState instance from a string or object.
62
- */
63
- static createFrom(t = {}) {
64
- let e = typeof t == "string" ? JSON.parse(t) : t;
65
- return new r(e);
66
- }
67
- }
68
- var g = /* @__PURE__ */ ((i) => (i.$zero = "", i.StagePending = "pending", i.StageBuilding = "building", i.StageReady = "ready", i.StageError = "error", i.StageStopped = "stopped", i.StageNotApplicable = "n/a", i))(g || {});
69
- let h = class d {
70
- timestamp;
71
- /**
72
- * "vite" | "go-build" | "go-watch" | "manager"
73
- */
74
- source;
75
- /**
76
- * "info" | "warn" | "error" | "debug"
77
- */
78
- level;
79
- message;
80
- pluginID;
81
- /** Creates a new LogEntry instance. */
82
- constructor(t = {}) {
83
- "timestamp" in t || (this.timestamp = ""), "source" in t || (this.source = ""), "level" in t || (this.level = ""), "message" in t || (this.message = ""), "pluginID" in t || (this.pluginID = ""), Object.assign(this, t);
84
- }
85
- /**
86
- * Creates a new LogEntry instance from a string or object.
87
- */
88
- static createFrom(t = {}) {
89
- let e = typeof t == "string" ? JSON.parse(t) : t;
90
- return new d(e);
91
- }
92
- };
93
- const u = s.createFrom, S = m(u), c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
94
- __proto__: null,
95
- BuildError: s,
96
- DevProcessStatus: o,
97
- DevServerErrorPayload: a,
98
- DevServerMode: p,
99
- DevServerState: r,
100
- LifecycleStage: g,
101
- LogEntry: h
102
- }, Symbol.toStringTag, { value: "Module" }));
103
- class l {
104
- timestamp;
105
- pluginID;
106
- /**
107
- * "plugin" (from hclog) — extensible
108
- */
109
- source;
110
- /**
111
- * "trace" | "debug" | "info" | "warn" | "error"
112
- */
113
- level;
114
- message;
115
- /** Creates a new LogEntry instance. */
116
- constructor(t = {}) {
117
- "timestamp" in t || (this.timestamp = ""), "pluginID" in t || (this.pluginID = ""), "source" in t || (this.source = ""), "level" in t || (this.level = ""), "message" in t || (this.message = ""), Object.assign(this, t);
118
- }
119
- /**
120
- * Creates a new LogEntry instance from a string or object.
121
- */
122
- static createFrom(t = {}) {
123
- let e = typeof t == "string" ? JSON.parse(t) : t;
124
- return new l(e);
125
- }
126
- }
127
- const D = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
128
- __proto__: null,
129
- LogEntry: l
130
- }, Symbol.toStringTag, { value: "Module" }));
131
- export {
132
- s as B,
133
- r as D,
134
- h as L,
135
- l as a,
136
- o as b,
137
- a as c,
138
- p as d,
139
- g as e,
140
- D as f,
141
- c as m
142
- };
@@ -1 +0,0 @@
1
- "use strict";const h=require("./index-BVi9X4oU.cjs"),f=require("./models-DQl7tqts.cjs");class n{file;line;column;message;constructor(t={}){"file"in t||(this.file=""),"line"in t||(this.line=0),"column"in t||(this.column=0),"message"in t||(this.message=""),Object.assign(this,t)}static createFrom(t={}){let e=typeof t=="string"?JSON.parse(t):t;return new n(e)}}var o=(i=>(i.$zero="",i.DevProcessStatusIdle="idle",i.DevProcessStatusStarting="starting",i.DevProcessStatusBuilding="building",i.DevProcessStatusRunning="running",i.DevProcessStatusReady="ready",i.DevProcessStatusError="error",i.DevProcessStatusStopped="stopped",i.DevProcessStatusNotApplicable="n/a",i))(o||{});class s{pluginID;errors;constructor(t={}){"pluginID"in t||(this.pluginID=""),"errors"in t||(this.errors=[]),Object.assign(this,t)}static createFrom(t={}){const e=S;let r=typeof t=="string"?JSON.parse(t):t;return"errors"in r&&(r.errors=e(r.errors)),new s(r)}}var g=(i=>(i.$zero="",i.DevServerModeIdle="idle",i.DevServerModeManaged="managed",i))(g||{});class a{pluginID;mode;devPath;vitePort;viteURL;viteStatus;goStatus;lastBuildDuration;lastBuildTime;lastError;grpcConnected;generation;hmrURL;buildStatus;rpcStatus;controllerStatus;ready;constructor(t={}){"pluginID"in t||(this.pluginID=""),"mode"in t||(this.mode=""),"devPath"in t||(this.devPath=""),"vitePort"in t||(this.vitePort=0),"viteURL"in t||(this.viteURL=""),"viteStatus"in t||(this.viteStatus=""),"goStatus"in t||(this.goStatus=""),"lastBuildDuration"in t||(this.lastBuildDuration=f.Duration.$zero),"lastBuildTime"in t||(this.lastBuildTime=""),"lastError"in t||(this.lastError=""),"grpcConnected"in t||(this.grpcConnected=!1),"generation"in t||(this.generation=""),"hmrURL"in t||(this.hmrURL=""),"buildStatus"in t||(this.buildStatus=""),"rpcStatus"in t||(this.rpcStatus=""),"controllerStatus"in t||(this.controllerStatus=""),"ready"in t||(this.ready=!1),Object.assign(this,t)}static createFrom(t={}){let e=typeof t=="string"?JSON.parse(t):t;return new a(e)}}var d=(i=>(i.$zero="",i.StagePending="pending",i.StageBuilding="building",i.StageReady="ready",i.StageError="error",i.StageStopped="stopped",i.StageNotApplicable="n/a",i))(d||{});let p=class m{timestamp;source;level;message;pluginID;constructor(t={}){"timestamp"in t||(this.timestamp=""),"source"in t||(this.source=""),"level"in t||(this.level=""),"message"in t||(this.message=""),"pluginID"in t||(this.pluginID=""),Object.assign(this,t)}static createFrom(t={}){let e=typeof t=="string"?JSON.parse(t):t;return new m(e)}};const u=n.createFrom,S=h.Array(u),v=Object.freeze(Object.defineProperty({__proto__:null,BuildError:n,DevProcessStatus:o,DevServerErrorPayload:s,DevServerMode:g,DevServerState:a,LifecycleStage:d,LogEntry:p},Symbol.toStringTag,{value:"Module"}));class l{timestamp;pluginID;source;level;message;constructor(t={}){"timestamp"in t||(this.timestamp=""),"pluginID"in t||(this.pluginID=""),"source"in t||(this.source=""),"level"in t||(this.level=""),"message"in t||(this.message=""),Object.assign(this,t)}static createFrom(t={}){let e=typeof t=="string"?JSON.parse(t):t;return new l(e)}}const c=Object.freeze(Object.defineProperty({__proto__:null,LogEntry:l},Symbol.toStringTag,{value:"Module"}));exports.BuildError=n;exports.DevProcessStatus=o;exports.DevServerErrorPayload=s;exports.DevServerMode=g;exports.DevServerState=a;exports.LifecycleStage=d;exports.LogEntry=p;exports.LogEntry$1=l;exports.models=v;exports.models$1=c;