@niscorp/moss 0.9.1 → 0.9.3

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 (79) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/DOCS.md +106 -20
  3. package/dist/{chunk-Y7PRASR3.js → chunk-6MZPY4X6.js} +60 -12
  4. package/dist/chunk-6MZPY4X6.js.map +1 -0
  5. package/dist/{chunk-L2GHVTJW.cjs → chunk-EXMOO7ZR.cjs} +135 -87
  6. package/dist/chunk-EXMOO7ZR.cjs.map +1 -0
  7. package/dist/{chunk-TGKDS2T7.cjs → chunk-IY5BOFLK.cjs} +222 -37
  8. package/dist/chunk-IY5BOFLK.cjs.map +1 -0
  9. package/dist/{chunk-WTWRLOPK.js → chunk-MVG333UF.js} +5 -4
  10. package/dist/chunk-MVG333UF.js.map +1 -0
  11. package/dist/{chunk-3RIWTXGI.cjs → chunk-NCQBGK3E.cjs} +6 -2
  12. package/dist/chunk-NCQBGK3E.cjs.map +1 -0
  13. package/dist/{chunk-UUOATPZ7.js → chunk-TAAKHW3U.js} +20 -4
  14. package/dist/chunk-TAAKHW3U.js.map +1 -0
  15. package/dist/{chunk-4ZGAFZGS.js → chunk-TKXYPO2Y.js} +6 -2
  16. package/dist/chunk-TKXYPO2Y.js.map +1 -0
  17. package/dist/{chunk-E6YAYR7G.cjs → chunk-U43CBKKE.cjs} +7 -6
  18. package/dist/chunk-U43CBKKE.cjs.map +1 -0
  19. package/dist/{chunk-TLNRFAQ6.js → chunk-UTFOMFCH.js} +207 -22
  20. package/dist/chunk-UTFOMFCH.js.map +1 -0
  21. package/dist/{chunk-LKTS4PCD.cjs → chunk-YGZS5B2U.cjs} +23 -7
  22. package/dist/chunk-YGZS5B2U.cjs.map +1 -0
  23. package/dist/client/node.d.cts +2 -2
  24. package/dist/client/node.d.ts +2 -2
  25. package/dist/client.cjs +5 -5
  26. package/dist/client.d.cts +7 -4
  27. package/dist/client.d.ts +7 -4
  28. package/dist/client.js +2 -2
  29. package/dist/{document-C3aS9uiW.d.ts → document-BzXQvEc1.d.ts} +2 -1
  30. package/dist/{document-deAs7Dre.d.cts → document-CuF4JqzJ.d.cts} +2 -1
  31. package/dist/{env-CY8EGWnD.d.cts → env-3qvvochI.d.cts} +3 -1
  32. package/dist/{env-DEPqqHEb.d.ts → env-DBPDpfU8.d.ts} +3 -1
  33. package/dist/index.cjs +15 -15
  34. package/dist/index.d.cts +2 -2
  35. package/dist/index.d.ts +2 -2
  36. package/dist/index.js +3 -3
  37. package/dist/{messages-CSwCJgH3.d.cts → messages-OSnNJL80.d.cts} +2 -0
  38. package/dist/{messages-CSwCJgH3.d.ts → messages-OSnNJL80.d.ts} +2 -0
  39. package/dist/node.cjs +8 -8
  40. package/dist/node.d.cts +1 -1
  41. package/dist/node.d.ts +1 -1
  42. package/dist/node.js +4 -4
  43. package/dist/protocol.cjs +5 -5
  44. package/dist/protocol.d.cts +1 -1
  45. package/dist/protocol.d.ts +1 -1
  46. package/dist/protocol.js +1 -1
  47. package/dist/terminal/dom/index.d.cts +2 -2
  48. package/dist/terminal/dom/index.d.ts +2 -2
  49. package/dist/terminal/index.cjs +3 -3
  50. package/dist/terminal/index.d.cts +2 -2
  51. package/dist/terminal/index.d.ts +2 -2
  52. package/dist/terminal/index.js +2 -2
  53. package/dist/terminal/react/index.d.cts +2 -2
  54. package/dist/terminal/react/index.d.ts +2 -2
  55. package/dist/terminal/react/server.d.cts +2 -2
  56. package/dist/terminal/react/server.d.ts +2 -2
  57. package/dist/terminal/tty/index.d.cts +2 -2
  58. package/dist/terminal/tty/index.d.ts +2 -2
  59. package/dist/terminal/vue/index.d.cts +2 -2
  60. package/dist/terminal/vue/index.d.ts +2 -2
  61. package/dist/terminal/vue/server.d.cts +2 -2
  62. package/dist/terminal/vue/server.d.ts +2 -2
  63. package/dist/unverified.cjs +3 -3
  64. package/dist/unverified.js +2 -2
  65. package/dist/vite.cjs +9 -9
  66. package/dist/vite.d.cts +1 -1
  67. package/dist/vite.d.ts +1 -1
  68. package/dist/vite.js +4 -4
  69. package/package.json +8 -8
  70. package/dist/chunk-3RIWTXGI.cjs.map +0 -1
  71. package/dist/chunk-4ZGAFZGS.js.map +0 -1
  72. package/dist/chunk-E6YAYR7G.cjs.map +0 -1
  73. package/dist/chunk-L2GHVTJW.cjs.map +0 -1
  74. package/dist/chunk-LKTS4PCD.cjs.map +0 -1
  75. package/dist/chunk-TGKDS2T7.cjs.map +0 -1
  76. package/dist/chunk-TLNRFAQ6.js.map +0 -1
  77. package/dist/chunk-UUOATPZ7.js.map +0 -1
  78. package/dist/chunk-WTWRLOPK.js.map +0 -1
  79. package/dist/chunk-Y7PRASR3.js.map +0 -1
package/dist/client.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { RenderNode, NovaEvent } from '@niscorp/nova';
2
- import { D as DocumentSnapshot } from './messages-CSwCJgH3.cjs';
3
- import { W as WireEnv } from './env-CY8EGWnD.cjs';
4
- export { b as browserEnv, r as readDocumentSnapshot } from './env-CY8EGWnD.cjs';
2
+ import { D as DocumentSnapshot } from './messages-OSnNJL80.cjs';
3
+ import { W as WireEnv } from './env-3qvvochI.cjs';
4
+ export { b as browserEnv, r as readDocumentSnapshot } from './env-3qvvochI.cjs';
5
5
  import 'zod';
6
6
 
7
7
  type WireSnapshot = {
@@ -21,6 +21,7 @@ type Wire = {
21
21
  subscribe: (listener: () => void) => () => void;
22
22
  snapshot: () => WireSnapshot;
23
23
  status: () => WireStatus;
24
+ droppedEvents?: () => number;
24
25
  dispatch: (canvasId: string, event: NovaEvent) => void;
25
26
  publish: (channel: string, payload?: unknown) => void;
26
27
  reset: () => void;
@@ -28,6 +29,8 @@ type Wire = {
28
29
  popTo: (canvas: string, instance: string) => void;
29
30
  dispose: () => void;
30
31
  };
31
- declare const createWire: (config?: WireConfig) => Wire;
32
+ declare const createWire: (config?: WireConfig) => Wire & {
33
+ droppedEvents: () => number;
34
+ };
32
35
 
33
36
  export { DocumentSnapshot, type Wire, type WireConfig, WireEnv, type WireSnapshot, type WireStatus, createWire };
package/dist/client.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { RenderNode, NovaEvent } from '@niscorp/nova';
2
- import { D as DocumentSnapshot } from './messages-CSwCJgH3.js';
3
- import { W as WireEnv } from './env-DEPqqHEb.js';
4
- export { b as browserEnv, r as readDocumentSnapshot } from './env-DEPqqHEb.js';
2
+ import { D as DocumentSnapshot } from './messages-OSnNJL80.js';
3
+ import { W as WireEnv } from './env-DBPDpfU8.js';
4
+ export { b as browserEnv, r as readDocumentSnapshot } from './env-DBPDpfU8.js';
5
5
  import 'zod';
6
6
 
7
7
  type WireSnapshot = {
@@ -21,6 +21,7 @@ type Wire = {
21
21
  subscribe: (listener: () => void) => () => void;
22
22
  snapshot: () => WireSnapshot;
23
23
  status: () => WireStatus;
24
+ droppedEvents?: () => number;
24
25
  dispatch: (canvasId: string, event: NovaEvent) => void;
25
26
  publish: (channel: string, payload?: unknown) => void;
26
27
  reset: () => void;
@@ -28,6 +29,8 @@ type Wire = {
28
29
  popTo: (canvas: string, instance: string) => void;
29
30
  dispose: () => void;
30
31
  };
31
- declare const createWire: (config?: WireConfig) => Wire;
32
+ declare const createWire: (config?: WireConfig) => Wire & {
33
+ droppedEvents: () => number;
34
+ };
32
35
 
33
36
  export { DocumentSnapshot, type Wire, type WireConfig, WireEnv, type WireSnapshot, type WireStatus, createWire };
package/dist/client.js CHANGED
@@ -1,4 +1,4 @@
1
- export { browserEnv, createWire, readDocumentSnapshot } from './chunk-TLNRFAQ6.js';
2
- import './chunk-4ZGAFZGS.js';
1
+ export { browserEnv, createWire, readDocumentSnapshot } from './chunk-UTFOMFCH.js';
2
+ import './chunk-TKXYPO2Y.js';
3
3
  //# sourceMappingURL=client.js.map
4
4
  //# sourceMappingURL=client.js.map
@@ -1,7 +1,7 @@
1
1
  import { Hono } from 'hono';
2
2
  import { Charter, VerifyReport } from '@niscorp/charter';
3
3
  import { Shell, FetchFn, LayoutNode, ActionDefinition, CanvasConfig, ActionFragment, FunctionDefinition, FunctionHandler, Reconciler, RenderNode } from '@niscorp/nova';
4
- import { GenerateDsl, MapToShape, QueryResponse, ScopeBehaviors, SeedEntry, SeedMutation, ScopePolicy } from '@niscorp/vex';
4
+ import { GenerateDsl, MapToShape, QueryResponse, ScopeBehaviors, SeedEntry, SeedMutation, UpgradedColumns, ScopePolicy } from '@niscorp/vex';
5
5
  import { Sequence } from '@niscorp/strata';
6
6
  import { Phrasebook, PhraseKeys } from '@niscorp/nova/i18n';
7
7
  import { F as Feature } from './index-CSEo7Tys.js';
@@ -60,6 +60,7 @@ type NiscApp = {
60
60
  shell?: ShellManifest;
61
61
  pages?: Record<string, PageManifest>;
62
62
  grammars?: readonly Sequence[];
63
+ upgradedColumns?: UpgradedColumns;
63
64
  functions?: (session: FunctionSession) => WrittenFunctions;
64
65
  onSession?: (session: FunctionSession) => void;
65
66
  runs?: RunSink;
@@ -1,7 +1,7 @@
1
1
  import { Hono } from 'hono';
2
2
  import { Charter, VerifyReport } from '@niscorp/charter';
3
3
  import { Shell, FetchFn, LayoutNode, ActionDefinition, CanvasConfig, ActionFragment, FunctionDefinition, FunctionHandler, Reconciler, RenderNode } from '@niscorp/nova';
4
- import { GenerateDsl, MapToShape, QueryResponse, ScopeBehaviors, SeedEntry, SeedMutation, ScopePolicy } from '@niscorp/vex';
4
+ import { GenerateDsl, MapToShape, QueryResponse, ScopeBehaviors, SeedEntry, SeedMutation, UpgradedColumns, ScopePolicy } from '@niscorp/vex';
5
5
  import { Sequence } from '@niscorp/strata';
6
6
  import { Phrasebook, PhraseKeys } from '@niscorp/nova/i18n';
7
7
  import { F as Feature } from './index-CSEo7Tys.cjs';
@@ -60,6 +60,7 @@ type NiscApp = {
60
60
  shell?: ShellManifest;
61
61
  pages?: Record<string, PageManifest>;
62
62
  grammars?: readonly Sequence[];
63
+ upgradedColumns?: UpgradedColumns;
63
64
  functions?: (session: FunctionSession) => WrittenFunctions;
64
65
  onSession?: (session: FunctionSession) => void;
65
66
  runs?: RunSink;
@@ -1,4 +1,4 @@
1
- import { D as DocumentSnapshot } from './messages-CSwCJgH3.cjs';
1
+ import { D as DocumentSnapshot } from './messages-OSnNJL80.cjs';
2
2
 
3
3
  type WireTokenStore = {
4
4
  load: () => string | null;
@@ -14,6 +14,8 @@ type WireEnv = {
14
14
  offered: string[];
15
15
  }) => WebSocket;
16
16
  defaultUrl: () => string;
17
+ onResume?: (resumed: () => void) => () => void;
18
+ visible?: () => boolean;
17
19
  };
18
20
  declare const browserEnv: (config?: {
19
21
  tokenKey?: string;
@@ -1,4 +1,4 @@
1
- import { D as DocumentSnapshot } from './messages-CSwCJgH3.js';
1
+ import { D as DocumentSnapshot } from './messages-OSnNJL80.js';
2
2
 
3
3
  type WireTokenStore = {
4
4
  load: () => string | null;
@@ -14,6 +14,8 @@ type WireEnv = {
14
14
  offered: string[];
15
15
  }) => WebSocket;
16
16
  defaultUrl: () => string;
17
+ onResume?: (resumed: () => void) => () => void;
18
+ visible?: () => boolean;
17
19
  };
18
20
  declare const browserEnv: (config?: {
19
21
  tokenKey?: string;
package/dist/index.cjs CHANGED
@@ -1,59 +1,59 @@
1
1
  'use strict';
2
2
 
3
- var chunkL2GHVTJW_cjs = require('./chunk-L2GHVTJW.cjs');
4
- var chunkE6YAYR7G_cjs = require('./chunk-E6YAYR7G.cjs');
3
+ var chunkEXMOO7ZR_cjs = require('./chunk-EXMOO7ZR.cjs');
4
+ var chunkU43CBKKE_cjs = require('./chunk-U43CBKKE.cjs');
5
5
  require('./chunk-PVZMCEBX.cjs');
6
- require('./chunk-3RIWTXGI.cjs');
6
+ require('./chunk-NCQBGK3E.cjs');
7
7
 
8
8
 
9
9
 
10
10
  Object.defineProperty(exports, "MOSS_SEQUENCE", {
11
11
  enumerable: true,
12
- get: function () { return chunkL2GHVTJW_cjs.MOSS_SEQUENCE; }
12
+ get: function () { return chunkEXMOO7ZR_cjs.MOSS_SEQUENCE; }
13
13
  });
14
14
  Object.defineProperty(exports, "createServer", {
15
15
  enumerable: true,
16
- get: function () { return chunkL2GHVTJW_cjs.createServer; }
16
+ get: function () { return chunkEXMOO7ZR_cjs.createServer; }
17
17
  });
18
18
  Object.defineProperty(exports, "exportDocuments", {
19
19
  enumerable: true,
20
- get: function () { return chunkL2GHVTJW_cjs.exportDocuments; }
20
+ get: function () { return chunkEXMOO7ZR_cjs.exportDocuments; }
21
21
  });
22
22
  Object.defineProperty(exports, "migrateTables", {
23
23
  enumerable: true,
24
- get: function () { return chunkL2GHVTJW_cjs.migrateTables; }
24
+ get: function () { return chunkEXMOO7ZR_cjs.migrateTables; }
25
25
  });
26
26
  Object.defineProperty(exports, "mintDevToken", {
27
27
  enumerable: true,
28
- get: function () { return chunkL2GHVTJW_cjs.mintDevToken; }
28
+ get: function () { return chunkEXMOO7ZR_cjs.mintDevToken; }
29
29
  });
30
30
  Object.defineProperty(exports, "mintSession", {
31
31
  enumerable: true,
32
- get: function () { return chunkL2GHVTJW_cjs.mintSession; }
32
+ get: function () { return chunkEXMOO7ZR_cjs.mintSession; }
33
33
  });
34
34
  Object.defineProperty(exports, "renderDocument", {
35
35
  enumerable: true,
36
- get: function () { return chunkL2GHVTJW_cjs.renderDocument; }
36
+ get: function () { return chunkEXMOO7ZR_cjs.renderDocument; }
37
37
  });
38
38
  Object.defineProperty(exports, "revokeAllFor", {
39
39
  enumerable: true,
40
- get: function () { return chunkL2GHVTJW_cjs.revokeAllFor; }
40
+ get: function () { return chunkEXMOO7ZR_cjs.revokeAllFor; }
41
41
  });
42
42
  Object.defineProperty(exports, "sessionCookies", {
43
43
  enumerable: true,
44
- get: function () { return chunkL2GHVTJW_cjs.sessionCookies; }
44
+ get: function () { return chunkEXMOO7ZR_cjs.sessionCookies; }
45
45
  });
46
46
  Object.defineProperty(exports, "tableStatus", {
47
47
  enumerable: true,
48
- get: function () { return chunkL2GHVTJW_cjs.tableStatus; }
48
+ get: function () { return chunkEXMOO7ZR_cjs.tableStatus; }
49
49
  });
50
50
  Object.defineProperty(exports, "defineApp", {
51
51
  enumerable: true,
52
- get: function () { return chunkE6YAYR7G_cjs.defineApp; }
52
+ get: function () { return chunkU43CBKKE_cjs.defineApp; }
53
53
  });
54
54
  Object.defineProperty(exports, "verifyApp", {
55
55
  enumerable: true,
56
- get: function () { return chunkE6YAYR7G_cjs.verifyApp; }
56
+ get: function () { return chunkU43CBKKE_cjs.verifyApp; }
57
57
  });
58
58
  //# sourceMappingURL=index.cjs.map
59
59
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { N as NiscApp, M as MossServer, D as DocumentConfig } from './document-deAs7Dre.cjs';
2
- export { a as DrawnDocument, E as ExecuteAs, F as FunctionSession, I as IdentityRecord, L as LayoutVariant, P as PageManifest, R as RunRecord, b as RunSink, c as RunTurn, S as ShellHost, d as ShellManifest, e as ShellSnapshot, f as defineApp, r as renderDocument } from './document-deAs7Dre.cjs';
1
+ import { N as NiscApp, M as MossServer, D as DocumentConfig } from './document-CuF4JqzJ.cjs';
2
+ export { a as DrawnDocument, E as ExecuteAs, F as FunctionSession, I as IdentityRecord, L as LayoutVariant, P as PageManifest, R as RunRecord, b as RunSink, c as RunTurn, S as ShellHost, d as ShellManifest, e as ShellSnapshot, f as defineApp, r as renderDocument } from './document-CuF4JqzJ.cjs';
3
3
  import { VerifyReport } from '@niscorp/charter';
4
4
  import { PgPool } from '@niscorp/vex';
5
5
  import { N as NiscRuntime } from './index-CSEo7Tys.cjs';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { N as NiscApp, M as MossServer, D as DocumentConfig } from './document-C3aS9uiW.js';
2
- export { a as DrawnDocument, E as ExecuteAs, F as FunctionSession, I as IdentityRecord, L as LayoutVariant, P as PageManifest, R as RunRecord, b as RunSink, c as RunTurn, S as ShellHost, d as ShellManifest, e as ShellSnapshot, f as defineApp, r as renderDocument } from './document-C3aS9uiW.js';
1
+ import { N as NiscApp, M as MossServer, D as DocumentConfig } from './document-BzXQvEc1.js';
2
+ export { a as DrawnDocument, E as ExecuteAs, F as FunctionSession, I as IdentityRecord, L as LayoutVariant, P as PageManifest, R as RunRecord, b as RunSink, c as RunTurn, S as ShellHost, d as ShellManifest, e as ShellSnapshot, f as defineApp, r as renderDocument } from './document-BzXQvEc1.js';
3
3
  import { VerifyReport } from '@niscorp/charter';
4
4
  import { PgPool } from '@niscorp/vex';
5
5
  import { N as NiscRuntime } from './index-CSEo7Tys.js';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- export { MOSS_SEQUENCE, createServer, exportDocuments, migrateTables, mintDevToken, mintSession, renderDocument, revokeAllFor, sessionCookies, tableStatus } from './chunk-Y7PRASR3.js';
2
- export { defineApp, verifyApp } from './chunk-WTWRLOPK.js';
1
+ export { MOSS_SEQUENCE, createServer, exportDocuments, migrateTables, mintDevToken, mintSession, renderDocument, revokeAllFor, sessionCookies, tableStatus } from './chunk-6MZPY4X6.js';
2
+ export { defineApp, verifyApp } from './chunk-MVG333UF.js';
3
3
  import './chunk-QAHDSRPK.js';
4
- import './chunk-4ZGAFZGS.js';
4
+ import './chunk-TKXYPO2Y.js';
5
5
  //# sourceMappingURL=index.js.map
6
6
  //# sourceMappingURL=index.js.map
@@ -25,6 +25,8 @@ declare const ServerMessageSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<
25
25
  }, z.core.$strict>, z.ZodObject<{
26
26
  type: z.ZodLiteral<"frame">;
27
27
  tree: z.ZodArray<z.ZodType<RenderNode, unknown, z.core.$ZodTypeInternals<RenderNode, unknown>>>;
28
+ }, z.core.$strict>, z.ZodObject<{
29
+ type: z.ZodLiteral<"pong">;
28
30
  }, z.core.$strict>, z.ZodObject<{
29
31
  type: z.ZodLiteral<"render">;
30
32
  canvas: z.ZodString;
@@ -25,6 +25,8 @@ declare const ServerMessageSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<
25
25
  }, z.core.$strict>, z.ZodObject<{
26
26
  type: z.ZodLiteral<"frame">;
27
27
  tree: z.ZodArray<z.ZodType<RenderNode, unknown, z.core.$ZodTypeInternals<RenderNode, unknown>>>;
28
+ }, z.core.$strict>, z.ZodObject<{
29
+ type: z.ZodLiteral<"pong">;
28
30
  }, z.core.$strict>, z.ZodObject<{
29
31
  type: z.ZodLiteral<"render">;
30
32
  canvas: z.ZodString;
package/dist/node.cjs CHANGED
@@ -1,28 +1,28 @@
1
1
  'use strict';
2
2
 
3
- var chunkLKTS4PCD_cjs = require('./chunk-LKTS4PCD.cjs');
4
- require('./chunk-L2GHVTJW.cjs');
5
- require('./chunk-E6YAYR7G.cjs');
3
+ var chunkYGZS5B2U_cjs = require('./chunk-YGZS5B2U.cjs');
4
+ require('./chunk-EXMOO7ZR.cjs');
5
+ require('./chunk-U43CBKKE.cjs');
6
6
  require('./chunk-PVZMCEBX.cjs');
7
- require('./chunk-3RIWTXGI.cjs');
7
+ require('./chunk-NCQBGK3E.cjs');
8
8
 
9
9
 
10
10
 
11
11
  Object.defineProperty(exports, "MOSS_PATHS", {
12
12
  enumerable: true,
13
- get: function () { return chunkLKTS4PCD_cjs.MOSS_PATHS; }
13
+ get: function () { return chunkYGZS5B2U_cjs.MOSS_PATHS; }
14
14
  });
15
15
  Object.defineProperty(exports, "attachSocket", {
16
16
  enumerable: true,
17
- get: function () { return chunkLKTS4PCD_cjs.attachSocket; }
17
+ get: function () { return chunkYGZS5B2U_cjs.attachSocket; }
18
18
  });
19
19
  Object.defineProperty(exports, "mountSite", {
20
20
  enumerable: true,
21
- get: function () { return chunkLKTS4PCD_cjs.mountSite; }
21
+ get: function () { return chunkYGZS5B2U_cjs.mountSite; }
22
22
  });
23
23
  Object.defineProperty(exports, "serve", {
24
24
  enumerable: true,
25
- get: function () { return chunkLKTS4PCD_cjs.serve; }
25
+ get: function () { return chunkYGZS5B2U_cjs.serve; }
26
26
  });
27
27
  //# sourceMappingURL=node.cjs.map
28
28
  //# sourceMappingURL=node.cjs.map
package/dist/node.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { D as DocumentConfig, M as MossServer, N as NiscApp } from './document-deAs7Dre.cjs';
1
+ import { D as DocumentConfig, M as MossServer, N as NiscApp } from './document-CuF4JqzJ.cjs';
2
2
  import { N as NiscRuntime } from './index-CSEo7Tys.cjs';
3
3
  import { S as SocketAccept, T as TransportSettings } from './socket-D90h1xSV.cjs';
4
4
  import { IncomingMessage } from 'node:http';
package/dist/node.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { D as DocumentConfig, M as MossServer, N as NiscApp } from './document-C3aS9uiW.js';
1
+ import { D as DocumentConfig, M as MossServer, N as NiscApp } from './document-BzXQvEc1.js';
2
2
  import { N as NiscRuntime } from './index-CSEo7Tys.js';
3
3
  import { S as SocketAccept, T as TransportSettings } from './socket-D90h1xSV.js';
4
4
  import { IncomingMessage } from 'node:http';
package/dist/node.js CHANGED
@@ -1,7 +1,7 @@
1
- export { MOSS_PATHS, attachSocket, mountSite, serve } from './chunk-UUOATPZ7.js';
2
- import './chunk-Y7PRASR3.js';
3
- import './chunk-WTWRLOPK.js';
1
+ export { MOSS_PATHS, attachSocket, mountSite, serve } from './chunk-TAAKHW3U.js';
2
+ import './chunk-6MZPY4X6.js';
3
+ import './chunk-MVG333UF.js';
4
4
  import './chunk-QAHDSRPK.js';
5
- import './chunk-4ZGAFZGS.js';
5
+ import './chunk-TKXYPO2Y.js';
6
6
  //# sourceMappingURL=node.js.map
7
7
  //# sourceMappingURL=node.js.map
package/dist/protocol.cjs CHANGED
@@ -1,24 +1,24 @@
1
1
  'use strict';
2
2
 
3
- var chunk3RIWTXGI_cjs = require('./chunk-3RIWTXGI.cjs');
3
+ var chunkNCQBGK3E_cjs = require('./chunk-NCQBGK3E.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "CLOSE_INVALID_TOKEN", {
8
8
  enumerable: true,
9
- get: function () { return chunk3RIWTXGI_cjs.CLOSE_INVALID_TOKEN; }
9
+ get: function () { return chunkNCQBGK3E_cjs.CLOSE_INVALID_TOKEN; }
10
10
  });
11
11
  Object.defineProperty(exports, "CLOSE_SIGNED_OUT", {
12
12
  enumerable: true,
13
- get: function () { return chunk3RIWTXGI_cjs.CLOSE_SIGNED_OUT; }
13
+ get: function () { return chunkNCQBGK3E_cjs.CLOSE_SIGNED_OUT; }
14
14
  });
15
15
  Object.defineProperty(exports, "PROTOCOL", {
16
16
  enumerable: true,
17
- get: function () { return chunk3RIWTXGI_cjs.PROTOCOL; }
17
+ get: function () { return chunkNCQBGK3E_cjs.PROTOCOL; }
18
18
  });
19
19
  Object.defineProperty(exports, "offerToken", {
20
20
  enumerable: true,
21
- get: function () { return chunk3RIWTXGI_cjs.offerToken; }
21
+ get: function () { return chunkNCQBGK3E_cjs.offerToken; }
22
22
  });
23
23
  //# sourceMappingURL=protocol.cjs.map
24
24
  //# sourceMappingURL=protocol.cjs.map
@@ -1,4 +1,4 @@
1
- export { S as ServerMessage } from './messages-CSwCJgH3.cjs';
1
+ export { S as ServerMessage } from './messages-OSnNJL80.cjs';
2
2
  export { C as Connection } from './socket-D90h1xSV.cjs';
3
3
  import 'zod';
4
4
  import '@niscorp/nova';
@@ -1,4 +1,4 @@
1
- export { S as ServerMessage } from './messages-CSwCJgH3.js';
1
+ export { S as ServerMessage } from './messages-OSnNJL80.js';
2
2
  export { C as Connection } from './socket-D90h1xSV.js';
3
3
  import 'zod';
4
4
  import '@niscorp/nova';
package/dist/protocol.js CHANGED
@@ -1,3 +1,3 @@
1
- export { CLOSE_INVALID_TOKEN, CLOSE_SIGNED_OUT, PROTOCOL, offerToken } from './chunk-4ZGAFZGS.js';
1
+ export { CLOSE_INVALID_TOKEN, CLOSE_SIGNED_OUT, PROTOCOL, offerToken } from './chunk-TKXYPO2Y.js';
2
2
  //# sourceMappingURL=protocol.js.map
3
3
  //# sourceMappingURL=protocol.js.map
@@ -2,9 +2,9 @@ import { DomComponent } from '@niscorp/nova/adapters/dom';
2
2
  import { ComponentRegistry } from '@niscorp/nova';
3
3
  import { Target } from '../index.cjs';
4
4
  import '../../client.cjs';
5
- import '../../messages-CSwCJgH3.cjs';
5
+ import '../../messages-OSnNJL80.cjs';
6
6
  import 'zod';
7
- import '../../env-CY8EGWnD.cjs';
7
+ import '../../env-3qvvochI.cjs';
8
8
 
9
9
  declare const domTarget: (config: {
10
10
  root: HTMLElement;
@@ -2,9 +2,9 @@ import { DomComponent } from '@niscorp/nova/adapters/dom';
2
2
  import { ComponentRegistry } from '@niscorp/nova';
3
3
  import { Target } from '../index.js';
4
4
  import '../../client.js';
5
- import '../../messages-CSwCJgH3.js';
5
+ import '../../messages-OSnNJL80.js';
6
6
  import 'zod';
7
- import '../../env-DEPqqHEb.js';
7
+ import '../../env-DBPDpfU8.js';
8
8
 
9
9
  declare const domTarget: (config: {
10
10
  root: HTMLElement;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkTGKDS2T7_cjs = require('../chunk-TGKDS2T7.cjs');
4
- require('../chunk-3RIWTXGI.cjs');
3
+ var chunkIY5BOFLK_cjs = require('../chunk-IY5BOFLK.cjs');
4
+ require('../chunk-NCQBGK3E.cjs');
5
5
  var document$1 = require('@niscorp/nova/document');
6
6
 
7
7
  // src/terminal/history.ts
@@ -72,7 +72,7 @@ var mountTerminal = (config) => {
72
72
  const keys = Object.keys(config.targets);
73
73
  if (keys.length === 0) throw new Error("mountTerminal: at least one target is required");
74
74
  const ownsWire = config.wire === void 0;
75
- const wire = config.wire ?? chunkTGKDS2T7_cjs.createWire(config.url !== void 0 ? { url: config.url } : {});
75
+ const wire = config.wire ?? chunkIY5BOFLK_cjs.createWire(config.url !== void 0 ? { url: config.url } : {});
76
76
  const targetAt = (i) => {
77
77
  const key = keys[i];
78
78
  const target = key === void 0 ? void 0 : config.targets[key];
@@ -1,8 +1,8 @@
1
1
  import { RenderApi } from '@niscorp/nova';
2
2
  import { WireStatus, Wire } from '../client.cjs';
3
- import '../messages-CSwCJgH3.cjs';
3
+ import '../messages-OSnNJL80.cjs';
4
4
  import 'zod';
5
- import '../env-CY8EGWnD.cjs';
5
+ import '../env-3qvvochI.cjs';
6
6
 
7
7
  type TerminalApi = RenderApi & {
8
8
  status: () => WireStatus;
@@ -1,8 +1,8 @@
1
1
  import { RenderApi } from '@niscorp/nova';
2
2
  import { WireStatus, Wire } from '../client.js';
3
- import '../messages-CSwCJgH3.js';
3
+ import '../messages-OSnNJL80.js';
4
4
  import 'zod';
5
- import '../env-DEPqqHEb.js';
5
+ import '../env-DBPDpfU8.js';
6
6
 
7
7
  type TerminalApi = RenderApi & {
8
8
  status: () => WireStatus;
@@ -1,5 +1,5 @@
1
- import { createWire } from '../chunk-TLNRFAQ6.js';
2
- import '../chunk-4ZGAFZGS.js';
1
+ import { createWire } from '../chunk-UTFOMFCH.js';
2
+ import '../chunk-TKXYPO2Y.js';
3
3
  import { createHeadKeeper, headOf } from '@niscorp/nova/document';
4
4
 
5
5
  // src/terminal/history.ts
@@ -4,9 +4,9 @@ import { Target } from '../index.cjs';
4
4
  import { T as TerminalSlotWrapper } from '../../slots-CU-AbnJg.cjs';
5
5
  export { a as TerminalApiContext, b as TerminalSlotWrapperProps } from '../../slots-CU-AbnJg.cjs';
6
6
  import '../../client.cjs';
7
- import '../../messages-CSwCJgH3.cjs';
7
+ import '../../messages-OSnNJL80.cjs';
8
8
  import 'zod';
9
- import '../../env-CY8EGWnD.cjs';
9
+ import '../../env-3qvvochI.cjs';
10
10
  import 'react';
11
11
 
12
12
  declare const reactTarget: (config: {
@@ -4,9 +4,9 @@ import { Target } from '../index.js';
4
4
  import { T as TerminalSlotWrapper } from '../../slots-BX5N0Juv.js';
5
5
  export { a as TerminalApiContext, b as TerminalSlotWrapperProps } from '../../slots-BX5N0Juv.js';
6
6
  import '../../client.js';
7
- import '../../messages-CSwCJgH3.js';
7
+ import '../../messages-OSnNJL80.js';
8
8
  import 'zod';
9
- import '../../env-DEPqqHEb.js';
9
+ import '../../env-DBPDpfU8.js';
10
10
  import 'react';
11
11
 
12
12
  declare const reactTarget: (config: {
@@ -5,9 +5,9 @@ import { T as TerminalSlotWrapper } from '../../slots-CU-AbnJg.cjs';
5
5
  import 'react';
6
6
  import '../index.cjs';
7
7
  import '../../client.cjs';
8
- import '../../messages-CSwCJgH3.cjs';
8
+ import '../../messages-OSnNJL80.cjs';
9
9
  import 'zod';
10
- import '../../env-CY8EGWnD.cjs';
10
+ import '../../env-3qvvochI.cjs';
11
11
 
12
12
  type RenderSnapshotConfig = {
13
13
  snapshot: DrawnSnapshot;
@@ -5,9 +5,9 @@ import { T as TerminalSlotWrapper } from '../../slots-BX5N0Juv.js';
5
5
  import 'react';
6
6
  import '../index.js';
7
7
  import '../../client.js';
8
- import '../../messages-CSwCJgH3.js';
8
+ import '../../messages-OSnNJL80.js';
9
9
  import 'zod';
10
- import '../../env-DEPqqHEb.js';
10
+ import '../../env-DBPDpfU8.js';
11
11
 
12
12
  type RenderSnapshotConfig = {
13
13
  snapshot: DrawnSnapshot;
@@ -2,9 +2,9 @@ import { TtyComponent } from '@niscorp/nova/adapters/tty';
2
2
  import { ComponentRegistry } from '@niscorp/nova';
3
3
  import { Target } from '../index.cjs';
4
4
  import '../../client.cjs';
5
- import '../../messages-CSwCJgH3.cjs';
5
+ import '../../messages-OSnNJL80.cjs';
6
6
  import 'zod';
7
- import '../../env-CY8EGWnD.cjs';
7
+ import '../../env-3qvvochI.cjs';
8
8
 
9
9
  type TtyTargetConfig = {
10
10
  input: NodeJS.ReadableStream;
@@ -2,9 +2,9 @@ import { TtyComponent } from '@niscorp/nova/adapters/tty';
2
2
  import { ComponentRegistry } from '@niscorp/nova';
3
3
  import { Target } from '../index.js';
4
4
  import '../../client.js';
5
- import '../../messages-CSwCJgH3.js';
5
+ import '../../messages-OSnNJL80.js';
6
6
  import 'zod';
7
- import '../../env-DEPqqHEb.js';
7
+ import '../../env-DBPDpfU8.js';
8
8
 
9
9
  type TtyTargetConfig = {
10
10
  input: NodeJS.ReadableStream;
@@ -4,9 +4,9 @@ import { Target } from '../index.cjs';
4
4
  import { T as TerminalSlotWrapper } from '../../slots-96gNc9uH.cjs';
5
5
  export { a as TerminalApiKey, b as TerminalSlotWrapperProps } from '../../slots-96gNc9uH.cjs';
6
6
  import '../../client.cjs';
7
- import '../../messages-CSwCJgH3.cjs';
7
+ import '../../messages-OSnNJL80.cjs';
8
8
  import 'zod';
9
- import '../../env-CY8EGWnD.cjs';
9
+ import '../../env-3qvvochI.cjs';
10
10
  import 'vue';
11
11
 
12
12
  type VueTargetConfig = {
@@ -4,9 +4,9 @@ import { Target } from '../index.js';
4
4
  import { T as TerminalSlotWrapper } from '../../slots-sLXDrlbG.js';
5
5
  export { a as TerminalApiKey, b as TerminalSlotWrapperProps } from '../../slots-sLXDrlbG.js';
6
6
  import '../../client.js';
7
- import '../../messages-CSwCJgH3.js';
7
+ import '../../messages-OSnNJL80.js';
8
8
  import 'zod';
9
- import '../../env-DEPqqHEb.js';
9
+ import '../../env-DBPDpfU8.js';
10
10
  import 'vue';
11
11
 
12
12
  type VueTargetConfig = {
@@ -5,9 +5,9 @@ import { T as TerminalSlotWrapper } from '../../slots-96gNc9uH.cjs';
5
5
  import 'vue';
6
6
  import '../index.cjs';
7
7
  import '../../client.cjs';
8
- import '../../messages-CSwCJgH3.cjs';
8
+ import '../../messages-OSnNJL80.cjs';
9
9
  import 'zod';
10
- import '../../env-CY8EGWnD.cjs';
10
+ import '../../env-3qvvochI.cjs';
11
11
 
12
12
  type RenderSnapshotConfig = {
13
13
  snapshot: DrawnSnapshot;
@@ -5,9 +5,9 @@ import { T as TerminalSlotWrapper } from '../../slots-sLXDrlbG.js';
5
5
  import 'vue';
6
6
  import '../index.js';
7
7
  import '../../client.js';
8
- import '../../messages-CSwCJgH3.js';
8
+ import '../../messages-OSnNJL80.js';
9
9
  import 'zod';
10
- import '../../env-DEPqqHEb.js';
10
+ import '../../env-DBPDpfU8.js';
11
11
 
12
12
  type RenderSnapshotConfig = {
13
13
  snapshot: DrawnSnapshot;
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkE6YAYR7G_cjs = require('./chunk-E6YAYR7G.cjs');
3
+ var chunkU43CBKKE_cjs = require('./chunk-U43CBKKE.cjs');
4
4
  require('./chunk-PVZMCEBX.cjs');
5
- require('./chunk-3RIWTXGI.cjs');
5
+ require('./chunk-NCQBGK3E.cjs');
6
6
 
7
7
  // src/shells/unverified.ts
8
- var unverifiedShell = (session) => chunkE6YAYR7G_cjs.wholeShellOf(session.shell);
8
+ var unverifiedShell = (session) => chunkU43CBKKE_cjs.wholeShellOf(session.shell);
9
9
 
10
10
  exports.unverifiedShell = unverifiedShell;
11
11
  //# sourceMappingURL=unverified.cjs.map
@@ -1,6 +1,6 @@
1
- import { wholeShellOf } from './chunk-WTWRLOPK.js';
1
+ import { wholeShellOf } from './chunk-MVG333UF.js';
2
2
  import './chunk-QAHDSRPK.js';
3
- import './chunk-4ZGAFZGS.js';
3
+ import './chunk-TKXYPO2Y.js';
4
4
 
5
5
  // src/shells/unverified.ts
6
6
  var unverifiedShell = (session) => wholeShellOf(session.shell);