@nyte-ai/schema 0.0.0-stage → 0.0.18

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 (148) hide show
  1. package/LICENSE +21 -0
  2. package/THIRD-PARTY-NOTICES.md +800 -0
  3. package/dist/chunks/browser-0byq2fja.js +50 -0
  4. package/dist/chunks/browser-0ebnhqs2.js +36 -0
  5. package/dist/chunks/browser-0g0z3617.js +47 -0
  6. package/dist/chunks/browser-0khex2b1.js +33 -0
  7. package/dist/chunks/browser-1sfp0bcx.js +73 -0
  8. package/dist/chunks/browser-40enyw9r.js +75 -0
  9. package/dist/chunks/browser-48g24pes.js +106 -0
  10. package/dist/chunks/browser-4et7qtz3.js +7 -0
  11. package/dist/chunks/browser-5n1dh580.js +66 -0
  12. package/dist/chunks/browser-5pvw8svn.js +243 -0
  13. package/dist/chunks/browser-6e1madxa.js +83 -0
  14. package/dist/chunks/browser-6yby604e.js +96 -0
  15. package/dist/chunks/browser-7195qf3t.js +14 -0
  16. package/dist/chunks/browser-7gjnxy9m.js +172 -0
  17. package/dist/chunks/browser-8t9anqfc.js +113 -0
  18. package/dist/chunks/browser-9ystjh78.js +0 -0
  19. package/dist/chunks/browser-ad9yebg7.js +101 -0
  20. package/dist/chunks/browser-b519jtez.js +102 -0
  21. package/dist/chunks/browser-bg1esaw0.js +82 -0
  22. package/dist/chunks/browser-bxz3z1v6.js +181 -0
  23. package/dist/chunks/browser-e5xgzd28.js +82 -0
  24. package/dist/chunks/browser-ebr6k189.js +120 -0
  25. package/dist/chunks/browser-ekbecx9r.js +73 -0
  26. package/dist/chunks/browser-fd3accdr.js +159 -0
  27. package/dist/chunks/browser-fth801bw.js +50 -0
  28. package/dist/chunks/browser-g5khdcap.js +170 -0
  29. package/dist/chunks/browser-gchr2880.js +135 -0
  30. package/dist/chunks/browser-h86zs54a.js +65 -0
  31. package/dist/chunks/browser-hq5q56sf.js +79 -0
  32. package/dist/chunks/browser-j629a6wa.js +17 -0
  33. package/dist/chunks/browser-k20f6cvv.js +0 -0
  34. package/dist/chunks/browser-m0wzr0g8.js +5 -0
  35. package/dist/chunks/browser-mnejgne0.js +125 -0
  36. package/dist/chunks/browser-mzfc0v5j.js +58 -0
  37. package/dist/chunks/browser-pdv675va.js +135 -0
  38. package/dist/chunks/browser-pdx38ng3.js +301 -0
  39. package/dist/chunks/browser-qkxe0fwp.js +6 -0
  40. package/dist/chunks/browser-r00v3vwv.js +238 -0
  41. package/dist/chunks/browser-r87w64mz.js +32 -0
  42. package/dist/chunks/browser-s7907azt.js +118 -0
  43. package/dist/chunks/browser-sgwxbek9.js +37 -0
  44. package/dist/chunks/browser-v70eq512.js +215 -0
  45. package/dist/chunks/browser-vapnjwp3.js +35 -0
  46. package/dist/chunks/browser-vkh2tpmf.js +283 -0
  47. package/dist/chunks/browser-vzc3r2r3.js +64 -0
  48. package/dist/chunks/browser-ypez6s7v.js +52 -0
  49. package/dist/src/browser.d.ts +64 -0
  50. package/dist/src/browser.js +26 -0
  51. package/dist/src/configuration.d.ts +26 -0
  52. package/dist/src/configuration.js +17 -0
  53. package/dist/src/connection.d.ts +189 -0
  54. package/dist/src/connection.js +35 -0
  55. package/dist/src/declaration.d.ts +12 -0
  56. package/dist/src/declaration.js +1 -0
  57. package/dist/src/errors.d.ts +56 -0
  58. package/dist/src/errors.js +23 -0
  59. package/dist/src/events.d.ts +1750 -0
  60. package/dist/src/events.js +36 -0
  61. package/dist/src/files.d.ts +130 -0
  62. package/dist/src/files.js +49 -0
  63. package/dist/src/git.d.ts +271 -0
  64. package/dist/src/git.js +64 -0
  65. package/dist/src/github.d.ts +174 -0
  66. package/dist/src/github.js +31 -0
  67. package/dist/src/heads.d.ts +255 -0
  68. package/dist/src/heads.js +48 -0
  69. package/dist/src/hooks.d.ts +201 -0
  70. package/dist/src/hooks.js +28 -0
  71. package/dist/src/host.d.ts +137 -0
  72. package/dist/src/host.js +49 -0
  73. package/dist/src/ids.d.ts +66 -0
  74. package/dist/src/ids.js +67 -0
  75. package/dist/src/index.d.ts +30 -0
  76. package/dist/src/index.js +779 -0
  77. package/dist/src/jobs.d.ts +152 -0
  78. package/dist/src/jobs.js +34 -0
  79. package/dist/src/json.d.ts +24 -0
  80. package/dist/src/json.js +21 -0
  81. package/dist/src/mcp.d.ts +212 -0
  82. package/dist/src/mcp.js +34 -0
  83. package/dist/src/messages.d.ts +114 -0
  84. package/dist/src/messages.js +28 -0
  85. package/dist/src/model/index.d.ts +6 -0
  86. package/dist/src/model/index.js +61 -0
  87. package/dist/src/model/message.d.ts +178 -0
  88. package/dist/src/model/message.js +7 -0
  89. package/dist/src/model/model.d.ts +154 -0
  90. package/dist/src/model/model.js +11 -0
  91. package/dist/src/model/text.d.ts +6 -0
  92. package/dist/src/model/text.js +10 -0
  93. package/dist/src/model/tool.d.ts +36 -0
  94. package/dist/src/model/tool.js +1 -0
  95. package/dist/src/model/transcript.d.ts +34 -0
  96. package/dist/src/model/transcript.js +37 -0
  97. package/dist/src/model/typed.d.ts +6 -0
  98. package/dist/src/model/typed.js +8 -0
  99. package/dist/src/models.d.ts +195 -0
  100. package/dist/src/models.js +45 -0
  101. package/dist/src/parts.d.ts +364 -0
  102. package/dist/src/parts.js +35 -0
  103. package/dist/src/patch.d.ts +21 -0
  104. package/dist/src/patch.js +11 -0
  105. package/dist/src/plugins.d.ts +36 -0
  106. package/dist/src/plugins.js +9 -0
  107. package/dist/src/primitives.d.ts +83 -0
  108. package/dist/src/primitives.js +26 -0
  109. package/dist/src/runs.d.ts +433 -0
  110. package/dist/src/runs.js +39 -0
  111. package/dist/src/schema.d.ts +14 -0
  112. package/dist/src/schema.js +8 -0
  113. package/dist/src/serial.d.ts +18 -0
  114. package/dist/src/serial.js +39 -0
  115. package/dist/src/sessions.d.ts +578 -0
  116. package/dist/src/sessions.js +74 -0
  117. package/dist/src/store.d.ts +831 -0
  118. package/dist/src/store.js +33 -0
  119. package/dist/src/tools.d.ts +76 -0
  120. package/dist/src/tools.js +24 -0
  121. package/dist/src/views.d.ts +2737 -0
  122. package/dist/src/views.js +50 -0
  123. package/dist/src/wire/base64.d.ts +2 -0
  124. package/dist/src/wire/base64.js +6 -0
  125. package/dist/src/wire/nullable.d.ts +2 -0
  126. package/dist/src/wire/nullable.js +6 -0
  127. package/dist/src/wire/operations/browser.d.ts +535 -0
  128. package/dist/src/wire/operations/browser.js +12 -0
  129. package/dist/src/wire/operations/fields.d.ts +54 -0
  130. package/dist/src/wire/operations/fields.js +30 -0
  131. package/dist/src/wire/operations/files.d.ts +244 -0
  132. package/dist/src/wire/operations/files.js +13 -0
  133. package/dist/src/wire/operations/git.d.ts +513 -0
  134. package/dist/src/wire/operations/git.js +15 -0
  135. package/dist/src/wire/operations/github.d.ts +172 -0
  136. package/dist/src/wire/operations/github.js +12 -0
  137. package/dist/src/wire/operations/host.d.ts +1011 -0
  138. package/dist/src/wire/operations/host.js +27 -0
  139. package/dist/src/wire/operations/index.d.ts +6703 -0
  140. package/dist/src/wire/operations/index.js +40 -0
  141. package/dist/src/wire/operations/session.d.ts +3411 -0
  142. package/dist/src/wire/operations/session.js +25 -0
  143. package/dist/src/wire/operations/workspace.d.ts +830 -0
  144. package/dist/src/wire/operations/workspace.js +24 -0
  145. package/dist/src/workspaces.d.ts +119 -0
  146. package/dist/src/workspaces.js +38 -0
  147. package/package.json +51 -3
  148. package/README.md +0 -3
@@ -0,0 +1,24 @@
1
+ import {
2
+ WORKSPACE_OPERATIONS2
3
+ } from "../../../chunks/browser-5pvw8svn.js";
4
+ import"../../../chunks/browser-r87w64mz.js";
5
+ import"../../../chunks/browser-b519jtez.js";
6
+ import"../../../chunks/browser-0byq2fja.js";
7
+ import"../../../chunks/browser-7gjnxy9m.js";
8
+ import"../../../chunks/browser-bg1esaw0.js";
9
+ import"../../../chunks/browser-s7907azt.js";
10
+ import"../../../chunks/browser-hq5q56sf.js";
11
+ import"../../../chunks/browser-40enyw9r.js";
12
+ import"../../../chunks/browser-m0wzr0g8.js";
13
+ import"../../../chunks/browser-vapnjwp3.js";
14
+ import"../../../chunks/browser-8t9anqfc.js";
15
+ import"../../../chunks/browser-sgwxbek9.js";
16
+ import"../../../chunks/browser-1sfp0bcx.js";
17
+ import"../../../chunks/browser-gchr2880.js";
18
+ import"../../../chunks/browser-ebr6k189.js";
19
+ import"../../../chunks/browser-4et7qtz3.js";
20
+ import"../../../chunks/browser-ypez6s7v.js";
21
+ import"../../../chunks/browser-vzc3r2r3.js";
22
+ export {
23
+ WORKSPACE_OPERATIONS2 as WORKSPACE_OPERATIONS
24
+ };
@@ -0,0 +1,119 @@
1
+ import { Type } from "typebox";
2
+ import type { Decoded, Schema } from "./schema.ts";
3
+ export declare const AvailabilityType: Type.TUnion<[Type.TObject<{
4
+ kind: Type.TLiteral<"available">;
5
+ }>, Type.TObject<{
6
+ kind: Type.TLiteral<"unavailable">;
7
+ reason: Type.TEnum<["unsupported", "unreachable"]>;
8
+ }>]>;
9
+ export type Availability = Decoded<typeof AvailabilityType>;
10
+ export declare const WorkspaceTargetType: Type.TUnion<[Type.TObject<{
11
+ kind: Type.TLiteral<"local">;
12
+ path: Type.TString;
13
+ }>, Type.TObject<{
14
+ kind: Type.TString;
15
+ locator: Type.TUnsafe<import("./json.ts").Json>;
16
+ }>]>;
17
+ export type WorkspaceTarget = Decoded<typeof WorkspaceTargetType>;
18
+ export declare const ActivationType: Type.TUnion<[Type.TObject<{
19
+ kind: Type.TLiteral<"active">;
20
+ }>, Type.TObject<{
21
+ kind: Type.TLiteral<"inactive">;
22
+ }>, Type.TObject<{
23
+ kind: Type.TLiteral<"unavailable">;
24
+ reason: Type.TEnum<["unsupported", "unreachable"]>;
25
+ workspace: Type.TUnsafe<import("./ids.ts").Id<"workspace">>;
26
+ }>, Type.TObject<{
27
+ kind: Type.TLiteral<"failed">;
28
+ message: Type.TString;
29
+ }>]>;
30
+ export type Activation = Decoded<typeof ActivationType>;
31
+ export declare const AddOutcomeType: Type.TUnion<[Type.TObject<{
32
+ kind: Type.TLiteral<"added">;
33
+ workspace: Type.TUnsafe<import("./ids.ts").Id<"workspace">>;
34
+ }>, Type.TObject<{
35
+ kind: Type.TLiteral<"exists">;
36
+ workspace: Type.TUnsafe<import("./ids.ts").Id<"workspace">>;
37
+ }>, Type.TObject<{
38
+ kind: Type.TLiteral<"stale">;
39
+ identity: Type.TUnsafe<import("./ids.ts").Id<"environment-identity">>;
40
+ }>, Type.TObject<{
41
+ kind: Type.TLiteral<"unavailable">;
42
+ reason: Type.TEnum<["unsupported", "unreachable"]>;
43
+ }>]>;
44
+ export type AddOutcome = Decoded<typeof AddOutcomeType>;
45
+ export declare const ForgetOutcomeType: Type.TUnion<[Type.TObject<{
46
+ kind: Type.TLiteral<"forgotten">;
47
+ }>, Type.TObject<{
48
+ kind: Type.TLiteral<"busy">;
49
+ sessions: Type.TArray<Type.TUnsafe<import("./ids.ts").Id<"session">>>;
50
+ }>, Type.TObject<{
51
+ kind: Type.TLiteral<"missing">;
52
+ }>]>;
53
+ export type ForgetOutcome = Decoded<typeof ForgetOutcomeType>;
54
+ export declare const WorkspaceInspectionType: Type.TObject<{
55
+ target: Type.TUnion<[Type.TObject<{
56
+ kind: Type.TLiteral<"local">;
57
+ path: Type.TString;
58
+ }>, Type.TObject<{
59
+ kind: Type.TString;
60
+ locator: Type.TUnsafe<import("./json.ts").Json>;
61
+ }>]>;
62
+ identity: Type.TUnsafe<import("./ids.ts").Id<"environment-identity">>;
63
+ availability: Type.TUnion<[Type.TObject<{
64
+ kind: Type.TLiteral<"available">;
65
+ }>, Type.TObject<{
66
+ kind: Type.TLiteral<"unavailable">;
67
+ reason: Type.TEnum<["unsupported", "unreachable"]>;
68
+ }>]>;
69
+ projectSources: Type.TArray<Type.TString>;
70
+ registered: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"workspace">>, Type.TNull]>;
71
+ }>;
72
+ export type WorkspaceInspection = Decoded<typeof WorkspaceInspectionType>;
73
+ /** A workspace made to isolate one session: a git worktree of `source`'s repository on its own `branch`, started from the commit `base`. */
74
+ export declare const WorktreeIsolationType: Type.TObject<{
75
+ kind: Type.TLiteral<"worktree">;
76
+ source: Type.TUnsafe<import("./ids.ts").Id<"workspace">>;
77
+ session: Type.TUnsafe<import("./ids.ts").Id<"session">>;
78
+ branch: Type.TString;
79
+ base: Type.TString;
80
+ }>;
81
+ export type WorktreeIsolation = Decoded<typeof WorktreeIsolationType>;
82
+ export declare const WorkspaceInfoType: Type.TObject<{
83
+ id: Type.TUnsafe<import("./ids.ts").Id<"workspace">>;
84
+ target: Type.TUnion<[Type.TObject<{
85
+ kind: Type.TLiteral<"local">;
86
+ path: Type.TString;
87
+ }>, Type.TObject<{
88
+ kind: Type.TString;
89
+ locator: Type.TUnsafe<import("./json.ts").Json>;
90
+ }>]>;
91
+ identity: Type.TUnsafe<import("./ids.ts").Id<"environment-identity">>;
92
+ availability: Type.TUnion<[Type.TObject<{
93
+ kind: Type.TLiteral<"available">;
94
+ }>, Type.TObject<{
95
+ kind: Type.TLiteral<"unavailable">;
96
+ reason: Type.TEnum<["unsupported", "unreachable"]>;
97
+ }>]>;
98
+ projectResources: Type.TUnion<[Type.TBoolean, Type.TNull]>;
99
+ trusted: Type.TUnion<[Type.TBoolean, Type.TNull]>;
100
+ projectSources: Type.TArray<Type.TString>;
101
+ addedBy: Type.TUnsafe<import("./ids.ts").Id<"principal">>;
102
+ sessions: Type.TNumber;
103
+ writers: Type.TArray<Type.TUnsafe<import("./ids.ts").Id<"run">>>;
104
+ isolation: Type.TUnion<[Type.TObject<{
105
+ kind: Type.TLiteral<"worktree">;
106
+ source: Type.TUnsafe<import("./ids.ts").Id<"workspace">>;
107
+ session: Type.TUnsafe<import("./ids.ts").Id<"session">>;
108
+ branch: Type.TString;
109
+ base: Type.TString;
110
+ }>, Type.TNull]>;
111
+ }>;
112
+ export type WorkspaceInfo = Decoded<typeof WorkspaceInfoType>;
113
+ export declare const AvailabilitySchema: Schema<Availability>;
114
+ export declare const WorkspaceTargetSchema: Schema<WorkspaceTarget>;
115
+ export declare const ActivationSchema: Schema<Activation>;
116
+ export declare const AddOutcomeSchema: Schema<AddOutcome>;
117
+ export declare const ForgetOutcomeSchema: Schema<ForgetOutcome>;
118
+ export declare const WorkspaceInspectionSchema: Schema<WorkspaceInspection>;
119
+ export declare const WorkspaceInfoSchema: Schema<WorkspaceInfo>;
@@ -0,0 +1,38 @@
1
+ import {
2
+ AvailabilityType2,
3
+ WorkspaceTargetType2,
4
+ ActivationType2,
5
+ AddOutcomeType2,
6
+ ForgetOutcomeType2,
7
+ WorkspaceInspectionType2,
8
+ WorktreeIsolationType2,
9
+ WorkspaceInfoType2,
10
+ AvailabilitySchema2,
11
+ WorkspaceTargetSchema2,
12
+ ActivationSchema2,
13
+ AddOutcomeSchema2,
14
+ ForgetOutcomeSchema2,
15
+ WorkspaceInspectionSchema2,
16
+ WorkspaceInfoSchema2
17
+ } from "../chunks/browser-bg1esaw0.js";
18
+ import"../chunks/browser-sgwxbek9.js";
19
+ import"../chunks/browser-4et7qtz3.js";
20
+ import"../chunks/browser-ypez6s7v.js";
21
+ import"../chunks/browser-vzc3r2r3.js";
22
+ export {
23
+ ActivationSchema2 as ActivationSchema,
24
+ ActivationType2 as ActivationType,
25
+ AddOutcomeSchema2 as AddOutcomeSchema,
26
+ AddOutcomeType2 as AddOutcomeType,
27
+ AvailabilitySchema2 as AvailabilitySchema,
28
+ AvailabilityType2 as AvailabilityType,
29
+ ForgetOutcomeSchema2 as ForgetOutcomeSchema,
30
+ ForgetOutcomeType2 as ForgetOutcomeType,
31
+ WorkspaceInfoSchema2 as WorkspaceInfoSchema,
32
+ WorkspaceInfoType2 as WorkspaceInfoType,
33
+ WorkspaceInspectionSchema2 as WorkspaceInspectionSchema,
34
+ WorkspaceInspectionType2 as WorkspaceInspectionType,
35
+ WorkspaceTargetSchema2 as WorkspaceTargetSchema,
36
+ WorkspaceTargetType2 as WorkspaceTargetType,
37
+ WorktreeIsolationType2 as WorktreeIsolationType
38
+ };
package/package.json CHANGED
@@ -1,6 +1,54 @@
1
1
  {
2
2
  "name": "@nyte-ai/schema",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.0.18",
4
+ "private": false,
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/interfaces-lab/nyte.git",
9
+ "directory": "packages/schema"
10
+ },
11
+ "files": [
12
+ "dist",
13
+ "LICENSE",
14
+ "THIRD-PARTY-NOTICES.md"
15
+ ],
16
+ "type": "module",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/src/index.d.ts",
20
+ "import": "./dist/src/index.js"
21
+ },
22
+ "./model": {
23
+ "types": "./dist/src/model/index.d.ts",
24
+ "import": "./dist/src/model/index.js"
25
+ },
26
+ "./serial": {
27
+ "types": "./dist/src/serial.d.ts",
28
+ "import": "./dist/src/serial.js"
29
+ }
30
+ },
31
+ "publishConfig": {
32
+ "access": "public",
33
+ "provenance": true
34
+ },
35
+ "dependencies": {
36
+ "@standard-schema/spec": "1.1.0",
37
+ "typebox": "1.3.36"
38
+ },
39
+ "devDependencies": {
40
+ "@cfworker/json-schema": "4.1.1",
41
+ "@types/node": "^26.6.5",
42
+ "typescript": "6.0.3",
43
+ "vitest": "^5.0.5"
44
+ },
45
+ "engines": {
46
+ "node": ">=26.4.0"
47
+ },
48
+ "scripts": {
49
+ "clean": "rm -rf node_modules .turbo",
50
+ "typecheck": "tsgo --noEmit",
51
+ "test": "vitest --run",
52
+ "build:package": "bun ../../scripts/sdk-packages.mjs build schema"
53
+ }
6
54
  }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.