@autono/pinbox-core 0.18.0 → 0.20.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.
- package/dist/connectors/github.d.ts +1 -1
- package/dist/connectors/index.d.ts +30 -4
- package/dist/connectors/index.js +3 -3
- package/dist/delivery/openclaw.d.ts +2 -2
- package/dist/delivery/openclaw.js +1 -1
- package/dist/delivery/resume.d.ts +2 -2
- package/dist/delivery/resume.js +1 -1
- package/dist/delivery/router.d.ts +1 -1
- package/dist/delivery/router.js +1 -1
- package/dist/delivery/webhook.d.ts +1 -1
- package/dist/do.d.ts +10 -4
- package/dist/do.js +22 -6
- package/dist/{hub-I67BuX9S.js → hub-Ds7W5n89.js} +2 -2
- package/dist/hub-server.d.ts +2 -2
- package/dist/hub-server.js +1 -1
- package/dist/hub.d.ts +30 -2
- package/dist/hub.js +1 -1
- package/dist/markdown.d.ts +1 -1
- package/dist/markdown.js +5 -0
- package/dist/payload-CmKx5yL2.d.ts +6 -0
- package/dist/{poll-BrcAuaAz.js → poll-ZSv3wN9C.js} +1 -1
- package/dist/{proc-BMp_pbPS.js → proc-CBLeAM7c.js} +1 -1
- package/dist/{router-BH74psWn.js → router-DrYLHCF4.js} +1 -1
- package/dist/{router-DOwWVak2.d.ts → router-NoiuUFb-.d.ts} +3 -3
- package/dist/{schema-BlM4lTLW.d.ts → schema-BLZ3MqMD.d.ts} +101 -1
- package/dist/schema-DDpii7iQ.js +192 -0
- package/dist/schema.d.ts +2 -2
- package/dist/schema.js +2 -163
- package/dist/schema.json +246 -0
- package/dist/{sessions-BOrd8Yvv.d.ts → sessions-Bd7_G5jW.d.ts} +1 -1
- package/dist/sessions.d.ts +1 -1
- package/dist/{slack-Dnq9bnXd.js → slack-C4P0AbuZ.js} +211 -61
- package/dist/{store-IR3o5YwY.js → store-Daziyk0_.js} +1 -1
- package/dist/{store-DAB5CEA1.d.ts → store-QLtACKhW.d.ts} +2 -2
- package/dist/store.d.ts +1 -1
- package/dist/store.js +1 -1
- package/dist/{types-BmfT_m1p.d.ts → types-BIm_s4nu.d.ts} +1 -1
- package/dist/ws-protocol.d.ts +1 -1
- package/package.json +1 -1
- package/dist/payload-CYbjb8ZB.d.ts +0 -6
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/model-anchor.ts
|
|
3
|
+
const vector = z.tuple([
|
|
4
|
+
z.number().finite(),
|
|
5
|
+
z.number().finite(),
|
|
6
|
+
z.number().finite()
|
|
7
|
+
]);
|
|
8
|
+
/** A point in a named part's LOCAL coordinates, pinned to an immutable model revision.
|
|
9
|
+
* No implicit reprojection across edits: hosts must explicitly migrate stale anchors. */
|
|
10
|
+
const ModelAnchorSchema = z.object({
|
|
11
|
+
modelId: z.string().min(1).max(256),
|
|
12
|
+
revision: z.string().min(1).max(256),
|
|
13
|
+
partId: z.string().min(1).max(256),
|
|
14
|
+
position: vector,
|
|
15
|
+
normal: vector.refine((v) => Math.hypot(...v) > 0, "normal must be nonzero").optional(),
|
|
16
|
+
units: z.enum([
|
|
17
|
+
"mm",
|
|
18
|
+
"cm",
|
|
19
|
+
"m",
|
|
20
|
+
"in"
|
|
21
|
+
]),
|
|
22
|
+
faceIndex: z.number().int().nonnegative().optional(),
|
|
23
|
+
camera: z.object({
|
|
24
|
+
position: vector,
|
|
25
|
+
target: vector,
|
|
26
|
+
up: vector
|
|
27
|
+
}).optional()
|
|
28
|
+
}).strict();
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/schema.ts
|
|
31
|
+
const SCHEMA_VERSION = 1;
|
|
32
|
+
const RectSchema = z.object({
|
|
33
|
+
x: z.number(),
|
|
34
|
+
y: z.number(),
|
|
35
|
+
width: z.number(),
|
|
36
|
+
height: z.number()
|
|
37
|
+
});
|
|
38
|
+
const SessionRefSchema = z.object({
|
|
39
|
+
agent: z.string(),
|
|
40
|
+
key: z.string(),
|
|
41
|
+
cwd: z.string().optional()
|
|
42
|
+
});
|
|
43
|
+
const AttachmentSchema = z.object({
|
|
44
|
+
id: z.string(),
|
|
45
|
+
kind: z.enum(["screenshot", "file"]),
|
|
46
|
+
path: z.string().optional(),
|
|
47
|
+
url: z.string().optional(),
|
|
48
|
+
contentType: z.string().optional(),
|
|
49
|
+
width: z.number().int().optional(),
|
|
50
|
+
height: z.number().int().optional()
|
|
51
|
+
});
|
|
52
|
+
/**
|
|
53
|
+
* A change an agent made directly to the live page, rather than to a file.
|
|
54
|
+
*
|
|
55
|
+
* On a project with a repo the agent edits source and the dev server reloads, so the change needs
|
|
56
|
+
* no wire representation. A hosted page has no repo to edit, so the only way an agent can actually
|
|
57
|
+
* change what you are looking at is to say which element and what it should now read.
|
|
58
|
+
*
|
|
59
|
+
* `selector` is the pin's own captured selector, never one the agent chose. `texts` lines up with
|
|
60
|
+
* that element's captured `textRuns`, so pinning a nav bar and asking for all four labels to
|
|
61
|
+
* change is a single edit. Text only, never markup, so this can carry no script.
|
|
62
|
+
*/
|
|
63
|
+
const AppliedEditSchema = z.object({
|
|
64
|
+
selector: z.string(),
|
|
65
|
+
/** New text for each of the element's text runs, in order. Length must match, or nothing is applied. */
|
|
66
|
+
texts: z.array(z.string())
|
|
67
|
+
});
|
|
68
|
+
const ThreadMessageSchema = z.object({
|
|
69
|
+
id: z.string(),
|
|
70
|
+
pinId: z.string(),
|
|
71
|
+
role: z.enum([
|
|
72
|
+
"human",
|
|
73
|
+
"agent",
|
|
74
|
+
"mirror"
|
|
75
|
+
]),
|
|
76
|
+
origin: z.string().optional(),
|
|
77
|
+
text: z.string(),
|
|
78
|
+
edit: AppliedEditSchema.optional(),
|
|
79
|
+
attachments: z.array(AttachmentSchema).optional(),
|
|
80
|
+
at: z.string()
|
|
81
|
+
});
|
|
82
|
+
const SourceSchema = z.object({
|
|
83
|
+
file: z.string(),
|
|
84
|
+
line: z.number().optional(),
|
|
85
|
+
via: z.enum([
|
|
86
|
+
"plugin",
|
|
87
|
+
"framework",
|
|
88
|
+
"none"
|
|
89
|
+
])
|
|
90
|
+
});
|
|
91
|
+
const ContextSchema = z.object({
|
|
92
|
+
classes: z.array(z.string()).optional(),
|
|
93
|
+
styles: z.record(z.string(), z.string()).optional(),
|
|
94
|
+
aria: z.record(z.string(), z.string()).optional(),
|
|
95
|
+
nearbyText: z.string().optional(),
|
|
96
|
+
selectedText: z.string().optional(),
|
|
97
|
+
/**
|
|
98
|
+
* The pinned element's text, split the way the markup splits it — one entry per element that
|
|
99
|
+
* actually holds words. A heading is one entry; a nav bar is one per link.
|
|
100
|
+
*
|
|
101
|
+
* `nearbyText` runs them together, which is fine to read and useless to edit: it cannot tell an
|
|
102
|
+
* agent that "work approach people contact" is four separate elements. This can, and it is what
|
|
103
|
+
* lets feedback on a group ("capitalise these") reach every item in it.
|
|
104
|
+
*/
|
|
105
|
+
textRuns: z.array(z.string()).optional()
|
|
106
|
+
});
|
|
107
|
+
const TargetBaseSchema = z.object({
|
|
108
|
+
model: ModelAnchorSchema.optional(),
|
|
109
|
+
url: z.string().optional(),
|
|
110
|
+
selector: z.string().optional(),
|
|
111
|
+
tag: z.string().optional(),
|
|
112
|
+
rect: RectSchema.optional(),
|
|
113
|
+
/** Where inside `rect` the click landed, 0–1 on each axis. Absent ⇒ anchor at the centre. */
|
|
114
|
+
spot: z.object({
|
|
115
|
+
x: z.number(),
|
|
116
|
+
y: z.number()
|
|
117
|
+
}).optional(),
|
|
118
|
+
fixed: z.boolean().optional(),
|
|
119
|
+
anchor: z.string().optional(),
|
|
120
|
+
source: SourceSchema.optional(),
|
|
121
|
+
context: ContextSchema.optional()
|
|
122
|
+
});
|
|
123
|
+
const TargetSchema = TargetBaseSchema.extend({ targets: z.array(TargetBaseSchema).optional() });
|
|
124
|
+
const EnvSchema = z.object({
|
|
125
|
+
viewport: z.object({
|
|
126
|
+
w: z.number(),
|
|
127
|
+
h: z.number(),
|
|
128
|
+
dpr: z.number()
|
|
129
|
+
}).optional(),
|
|
130
|
+
browser: z.string().optional(),
|
|
131
|
+
os: z.string().optional(),
|
|
132
|
+
colorScheme: z.enum(["light", "dark"]).optional(),
|
|
133
|
+
branch: z.string().optional(),
|
|
134
|
+
commit: z.string().optional()
|
|
135
|
+
});
|
|
136
|
+
const AuthorSchema = z.object({
|
|
137
|
+
userId: z.string(),
|
|
138
|
+
name: z.string().optional(),
|
|
139
|
+
email: z.string().optional()
|
|
140
|
+
});
|
|
141
|
+
const ResolutionSchema = z.object({
|
|
142
|
+
by: z.enum(["human", "agent"]),
|
|
143
|
+
note: z.string().optional(),
|
|
144
|
+
commit: z.string().optional(),
|
|
145
|
+
at: z.string()
|
|
146
|
+
});
|
|
147
|
+
const VerificationSchema = z.object({
|
|
148
|
+
outcome: z.enum(["accepted", "reopened"]),
|
|
149
|
+
at: z.string()
|
|
150
|
+
});
|
|
151
|
+
const LinkSchema = z.object({
|
|
152
|
+
connector: z.string(),
|
|
153
|
+
ref: z.string(),
|
|
154
|
+
url: z.string()
|
|
155
|
+
});
|
|
156
|
+
const PinInputSchema = z.object({
|
|
157
|
+
text: z.string().min(1),
|
|
158
|
+
kind: z.enum([
|
|
159
|
+
"note",
|
|
160
|
+
"move",
|
|
161
|
+
"comment"
|
|
162
|
+
]).default("note"),
|
|
163
|
+
target: TargetSchema.optional(),
|
|
164
|
+
move: z.object({
|
|
165
|
+
from: RectSchema,
|
|
166
|
+
to: RectSchema
|
|
167
|
+
}).optional(),
|
|
168
|
+
env: EnvSchema.optional(),
|
|
169
|
+
author: AuthorSchema,
|
|
170
|
+
agentSession: SessionRefSchema.optional(),
|
|
171
|
+
attachments: z.array(AttachmentSchema).optional()
|
|
172
|
+
});
|
|
173
|
+
const PinSchema = PinInputSchema.extend({
|
|
174
|
+
id: z.string().regex(/^pin_[a-z0-9]{10}$/),
|
|
175
|
+
/**
|
|
176
|
+
* Stable per-project ordinal, hub-assigned at creation like an issue number —
|
|
177
|
+
* never renumbered by resolution or reordering (dogfood: index-derived chip
|
|
178
|
+
* numbers kept shifting). Optional because pins predate it; readers fall back.
|
|
179
|
+
*/
|
|
180
|
+
n: z.number().int().positive().optional(),
|
|
181
|
+
schemaVersion: z.literal(1),
|
|
182
|
+
status: z.enum(["open", "resolved"]).default("open"),
|
|
183
|
+
createdAt: z.string(),
|
|
184
|
+
resolution: ResolutionSchema.optional(),
|
|
185
|
+
verification: VerificationSchema.optional(),
|
|
186
|
+
links: z.array(LinkSchema).optional()
|
|
187
|
+
});
|
|
188
|
+
function pinJsonSchema() {
|
|
189
|
+
return z.toJSONSchema(PinSchema);
|
|
190
|
+
}
|
|
191
|
+
//#endregion
|
|
192
|
+
export { PinSchema as a, SessionRefSchema as c, ModelAnchorSchema as d, PinInputSchema as i, ThreadMessageSchema as l, AttachmentSchema as n, RectSchema as o, LinkSchema as r, SCHEMA_VERSION as s, AppliedEditSchema as t, pinJsonSchema as u };
|
package/dist/schema.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as ThreadMessageSchema, a as Link, c as PinInput, d as Rect, f as RectSchema, g as ThreadMessage, h as SessionRefSchema, i as AttachmentSchema, l as PinInputSchema, m as SessionRef, n as AppliedEditSchema, o as LinkSchema, p as SCHEMA_VERSION, r as Attachment, s as Pin, t as AppliedEdit, u as PinSchema, v as pinJsonSchema } from "./schema-
|
|
2
|
-
export { AppliedEdit, AppliedEditSchema, Attachment, AttachmentSchema, Link, LinkSchema, Pin, PinInput, PinInputSchema, PinSchema, Rect, RectSchema, SCHEMA_VERSION, SessionRef, SessionRefSchema, ThreadMessage, ThreadMessageSchema, pinJsonSchema };
|
|
1
|
+
import { _ as ThreadMessageSchema, a as Link, b as ModelAnchorSchema, c as PinInput, d as Rect, f as RectSchema, g as ThreadMessage, h as SessionRefSchema, i as AttachmentSchema, l as PinInputSchema, m as SessionRef, n as AppliedEditSchema, o as LinkSchema, p as SCHEMA_VERSION, r as Attachment, s as Pin, t as AppliedEdit, u as PinSchema, v as pinJsonSchema, y as ModelAnchor } from "./schema-BLZ3MqMD.js";
|
|
2
|
+
export { AppliedEdit, AppliedEditSchema, Attachment, AttachmentSchema, Link, LinkSchema, type ModelAnchor, ModelAnchorSchema, Pin, PinInput, PinInputSchema, PinSchema, Rect, RectSchema, SCHEMA_VERSION, SessionRef, SessionRefSchema, ThreadMessage, ThreadMessageSchema, pinJsonSchema };
|
package/dist/schema.js
CHANGED
|
@@ -1,163 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const SCHEMA_VERSION = 1;
|
|
4
|
-
const RectSchema = z.object({
|
|
5
|
-
x: z.number(),
|
|
6
|
-
y: z.number(),
|
|
7
|
-
width: z.number(),
|
|
8
|
-
height: z.number()
|
|
9
|
-
});
|
|
10
|
-
const SessionRefSchema = z.object({
|
|
11
|
-
agent: z.string(),
|
|
12
|
-
key: z.string(),
|
|
13
|
-
cwd: z.string().optional()
|
|
14
|
-
});
|
|
15
|
-
const AttachmentSchema = z.object({
|
|
16
|
-
id: z.string(),
|
|
17
|
-
kind: z.enum(["screenshot", "file"]),
|
|
18
|
-
path: z.string().optional(),
|
|
19
|
-
url: z.string().optional(),
|
|
20
|
-
contentType: z.string().optional(),
|
|
21
|
-
width: z.number().int().optional(),
|
|
22
|
-
height: z.number().int().optional()
|
|
23
|
-
});
|
|
24
|
-
/**
|
|
25
|
-
* A change an agent made directly to the live page, rather than to a file.
|
|
26
|
-
*
|
|
27
|
-
* On a project with a repo the agent edits source and the dev server reloads, so the change needs
|
|
28
|
-
* no wire representation. A hosted page has no repo to edit, so the only way an agent can actually
|
|
29
|
-
* change what you are looking at is to say which element and what it should now read.
|
|
30
|
-
*
|
|
31
|
-
* `selector` is the pin's own captured selector, never one the agent chose. `texts` lines up with
|
|
32
|
-
* that element's captured `textRuns`, so pinning a nav bar and asking for all four labels to
|
|
33
|
-
* change is a single edit. Text only, never markup, so this can carry no script.
|
|
34
|
-
*/
|
|
35
|
-
const AppliedEditSchema = z.object({
|
|
36
|
-
selector: z.string(),
|
|
37
|
-
/** New text for each of the element's text runs, in order. Length must match, or nothing is applied. */
|
|
38
|
-
texts: z.array(z.string())
|
|
39
|
-
});
|
|
40
|
-
const ThreadMessageSchema = z.object({
|
|
41
|
-
id: z.string(),
|
|
42
|
-
pinId: z.string(),
|
|
43
|
-
role: z.enum([
|
|
44
|
-
"human",
|
|
45
|
-
"agent",
|
|
46
|
-
"mirror"
|
|
47
|
-
]),
|
|
48
|
-
origin: z.string().optional(),
|
|
49
|
-
text: z.string(),
|
|
50
|
-
edit: AppliedEditSchema.optional(),
|
|
51
|
-
attachments: z.array(AttachmentSchema).optional(),
|
|
52
|
-
at: z.string()
|
|
53
|
-
});
|
|
54
|
-
const SourceSchema = z.object({
|
|
55
|
-
file: z.string(),
|
|
56
|
-
line: z.number().optional(),
|
|
57
|
-
via: z.enum([
|
|
58
|
-
"plugin",
|
|
59
|
-
"framework",
|
|
60
|
-
"none"
|
|
61
|
-
])
|
|
62
|
-
});
|
|
63
|
-
const ContextSchema = z.object({
|
|
64
|
-
classes: z.array(z.string()).optional(),
|
|
65
|
-
styles: z.record(z.string(), z.string()).optional(),
|
|
66
|
-
aria: z.record(z.string(), z.string()).optional(),
|
|
67
|
-
nearbyText: z.string().optional(),
|
|
68
|
-
selectedText: z.string().optional(),
|
|
69
|
-
/**
|
|
70
|
-
* The pinned element's text, split the way the markup splits it — one entry per element that
|
|
71
|
-
* actually holds words. A heading is one entry; a nav bar is one per link.
|
|
72
|
-
*
|
|
73
|
-
* `nearbyText` runs them together, which is fine to read and useless to edit: it cannot tell an
|
|
74
|
-
* agent that "work approach people contact" is four separate elements. This can, and it is what
|
|
75
|
-
* lets feedback on a group ("capitalise these") reach every item in it.
|
|
76
|
-
*/
|
|
77
|
-
textRuns: z.array(z.string()).optional()
|
|
78
|
-
});
|
|
79
|
-
const TargetBaseSchema = z.object({
|
|
80
|
-
url: z.string().optional(),
|
|
81
|
-
selector: z.string().optional(),
|
|
82
|
-
tag: z.string().optional(),
|
|
83
|
-
rect: RectSchema.optional(),
|
|
84
|
-
/** Where inside `rect` the click landed, 0–1 on each axis. Absent ⇒ anchor at the centre. */
|
|
85
|
-
spot: z.object({
|
|
86
|
-
x: z.number(),
|
|
87
|
-
y: z.number()
|
|
88
|
-
}).optional(),
|
|
89
|
-
fixed: z.boolean().optional(),
|
|
90
|
-
anchor: z.string().optional(),
|
|
91
|
-
source: SourceSchema.optional(),
|
|
92
|
-
context: ContextSchema.optional()
|
|
93
|
-
});
|
|
94
|
-
const TargetSchema = TargetBaseSchema.extend({ targets: z.array(TargetBaseSchema).optional() });
|
|
95
|
-
const EnvSchema = z.object({
|
|
96
|
-
viewport: z.object({
|
|
97
|
-
w: z.number(),
|
|
98
|
-
h: z.number(),
|
|
99
|
-
dpr: z.number()
|
|
100
|
-
}).optional(),
|
|
101
|
-
browser: z.string().optional(),
|
|
102
|
-
os: z.string().optional(),
|
|
103
|
-
colorScheme: z.enum(["light", "dark"]).optional(),
|
|
104
|
-
branch: z.string().optional(),
|
|
105
|
-
commit: z.string().optional()
|
|
106
|
-
});
|
|
107
|
-
const AuthorSchema = z.object({
|
|
108
|
-
userId: z.string(),
|
|
109
|
-
name: z.string().optional(),
|
|
110
|
-
email: z.string().optional()
|
|
111
|
-
});
|
|
112
|
-
const ResolutionSchema = z.object({
|
|
113
|
-
by: z.enum(["human", "agent"]),
|
|
114
|
-
note: z.string().optional(),
|
|
115
|
-
commit: z.string().optional(),
|
|
116
|
-
at: z.string()
|
|
117
|
-
});
|
|
118
|
-
const VerificationSchema = z.object({
|
|
119
|
-
outcome: z.enum(["accepted", "reopened"]),
|
|
120
|
-
at: z.string()
|
|
121
|
-
});
|
|
122
|
-
const LinkSchema = z.object({
|
|
123
|
-
connector: z.string(),
|
|
124
|
-
ref: z.string(),
|
|
125
|
-
url: z.string()
|
|
126
|
-
});
|
|
127
|
-
const PinInputSchema = z.object({
|
|
128
|
-
text: z.string().min(1),
|
|
129
|
-
kind: z.enum([
|
|
130
|
-
"note",
|
|
131
|
-
"move",
|
|
132
|
-
"comment"
|
|
133
|
-
]).default("note"),
|
|
134
|
-
target: TargetSchema.optional(),
|
|
135
|
-
move: z.object({
|
|
136
|
-
from: RectSchema,
|
|
137
|
-
to: RectSchema
|
|
138
|
-
}).optional(),
|
|
139
|
-
env: EnvSchema.optional(),
|
|
140
|
-
author: AuthorSchema,
|
|
141
|
-
agentSession: SessionRefSchema.optional(),
|
|
142
|
-
attachments: z.array(AttachmentSchema).optional()
|
|
143
|
-
});
|
|
144
|
-
const PinSchema = PinInputSchema.extend({
|
|
145
|
-
id: z.string().regex(/^pin_[a-z0-9]{10}$/),
|
|
146
|
-
/**
|
|
147
|
-
* Stable per-project ordinal, hub-assigned at creation like an issue number —
|
|
148
|
-
* never renumbered by resolution or reordering (dogfood: index-derived chip
|
|
149
|
-
* numbers kept shifting). Optional because pins predate it; readers fall back.
|
|
150
|
-
*/
|
|
151
|
-
n: z.number().int().positive().optional(),
|
|
152
|
-
schemaVersion: z.literal(1),
|
|
153
|
-
status: z.enum(["open", "resolved"]).default("open"),
|
|
154
|
-
createdAt: z.string(),
|
|
155
|
-
resolution: ResolutionSchema.optional(),
|
|
156
|
-
verification: VerificationSchema.optional(),
|
|
157
|
-
links: z.array(LinkSchema).optional()
|
|
158
|
-
});
|
|
159
|
-
function pinJsonSchema() {
|
|
160
|
-
return z.toJSONSchema(PinSchema);
|
|
161
|
-
}
|
|
162
|
-
//#endregion
|
|
163
|
-
export { AppliedEditSchema, AttachmentSchema, LinkSchema, PinInputSchema, PinSchema, RectSchema, SCHEMA_VERSION, SessionRefSchema, ThreadMessageSchema, pinJsonSchema };
|
|
1
|
+
import { a as PinSchema, c as SessionRefSchema, d as ModelAnchorSchema, i as PinInputSchema, l as ThreadMessageSchema, n as AttachmentSchema, o as RectSchema, r as LinkSchema, s as SCHEMA_VERSION, t as AppliedEditSchema, u as pinJsonSchema } from "./schema-DDpii7iQ.js";
|
|
2
|
+
export { AppliedEditSchema, AttachmentSchema, LinkSchema, ModelAnchorSchema, PinInputSchema, PinSchema, RectSchema, SCHEMA_VERSION, SessionRefSchema, ThreadMessageSchema, pinJsonSchema };
|
package/dist/schema.json
CHANGED
|
@@ -18,6 +18,129 @@
|
|
|
18
18
|
"target": {
|
|
19
19
|
"type": "object",
|
|
20
20
|
"properties": {
|
|
21
|
+
"model": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"properties": {
|
|
24
|
+
"modelId": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"minLength": 1,
|
|
27
|
+
"maxLength": 256
|
|
28
|
+
},
|
|
29
|
+
"revision": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"minLength": 1,
|
|
32
|
+
"maxLength": 256
|
|
33
|
+
},
|
|
34
|
+
"partId": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"minLength": 1,
|
|
37
|
+
"maxLength": 256
|
|
38
|
+
},
|
|
39
|
+
"position": {
|
|
40
|
+
"type": "array",
|
|
41
|
+
"prefixItems": [
|
|
42
|
+
{
|
|
43
|
+
"type": "number"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "number"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": "number"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"normal": {
|
|
54
|
+
"type": "array",
|
|
55
|
+
"prefixItems": [
|
|
56
|
+
{
|
|
57
|
+
"type": "number"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "number"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"type": "number"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"units": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"enum": [
|
|
70
|
+
"mm",
|
|
71
|
+
"cm",
|
|
72
|
+
"m",
|
|
73
|
+
"in"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"faceIndex": {
|
|
77
|
+
"type": "integer",
|
|
78
|
+
"minimum": 0,
|
|
79
|
+
"maximum": 9007199254740991
|
|
80
|
+
},
|
|
81
|
+
"camera": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"properties": {
|
|
84
|
+
"position": {
|
|
85
|
+
"type": "array",
|
|
86
|
+
"prefixItems": [
|
|
87
|
+
{
|
|
88
|
+
"type": "number"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"type": "number"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"type": "number"
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
"target": {
|
|
99
|
+
"type": "array",
|
|
100
|
+
"prefixItems": [
|
|
101
|
+
{
|
|
102
|
+
"type": "number"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"type": "number"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"type": "number"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
"up": {
|
|
113
|
+
"type": "array",
|
|
114
|
+
"prefixItems": [
|
|
115
|
+
{
|
|
116
|
+
"type": "number"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"type": "number"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"type": "number"
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"required": [
|
|
128
|
+
"position",
|
|
129
|
+
"target",
|
|
130
|
+
"up"
|
|
131
|
+
],
|
|
132
|
+
"additionalProperties": false
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"required": [
|
|
136
|
+
"modelId",
|
|
137
|
+
"revision",
|
|
138
|
+
"partId",
|
|
139
|
+
"position",
|
|
140
|
+
"units"
|
|
141
|
+
],
|
|
142
|
+
"additionalProperties": false
|
|
143
|
+
},
|
|
21
144
|
"url": {
|
|
22
145
|
"type": "string"
|
|
23
146
|
},
|
|
@@ -144,6 +267,129 @@
|
|
|
144
267
|
"items": {
|
|
145
268
|
"type": "object",
|
|
146
269
|
"properties": {
|
|
270
|
+
"model": {
|
|
271
|
+
"type": "object",
|
|
272
|
+
"properties": {
|
|
273
|
+
"modelId": {
|
|
274
|
+
"type": "string",
|
|
275
|
+
"minLength": 1,
|
|
276
|
+
"maxLength": 256
|
|
277
|
+
},
|
|
278
|
+
"revision": {
|
|
279
|
+
"type": "string",
|
|
280
|
+
"minLength": 1,
|
|
281
|
+
"maxLength": 256
|
|
282
|
+
},
|
|
283
|
+
"partId": {
|
|
284
|
+
"type": "string",
|
|
285
|
+
"minLength": 1,
|
|
286
|
+
"maxLength": 256
|
|
287
|
+
},
|
|
288
|
+
"position": {
|
|
289
|
+
"type": "array",
|
|
290
|
+
"prefixItems": [
|
|
291
|
+
{
|
|
292
|
+
"type": "number"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"type": "number"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"type": "number"
|
|
299
|
+
}
|
|
300
|
+
]
|
|
301
|
+
},
|
|
302
|
+
"normal": {
|
|
303
|
+
"type": "array",
|
|
304
|
+
"prefixItems": [
|
|
305
|
+
{
|
|
306
|
+
"type": "number"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"type": "number"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"type": "number"
|
|
313
|
+
}
|
|
314
|
+
]
|
|
315
|
+
},
|
|
316
|
+
"units": {
|
|
317
|
+
"type": "string",
|
|
318
|
+
"enum": [
|
|
319
|
+
"mm",
|
|
320
|
+
"cm",
|
|
321
|
+
"m",
|
|
322
|
+
"in"
|
|
323
|
+
]
|
|
324
|
+
},
|
|
325
|
+
"faceIndex": {
|
|
326
|
+
"type": "integer",
|
|
327
|
+
"minimum": 0,
|
|
328
|
+
"maximum": 9007199254740991
|
|
329
|
+
},
|
|
330
|
+
"camera": {
|
|
331
|
+
"type": "object",
|
|
332
|
+
"properties": {
|
|
333
|
+
"position": {
|
|
334
|
+
"type": "array",
|
|
335
|
+
"prefixItems": [
|
|
336
|
+
{
|
|
337
|
+
"type": "number"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"type": "number"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"type": "number"
|
|
344
|
+
}
|
|
345
|
+
]
|
|
346
|
+
},
|
|
347
|
+
"target": {
|
|
348
|
+
"type": "array",
|
|
349
|
+
"prefixItems": [
|
|
350
|
+
{
|
|
351
|
+
"type": "number"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"type": "number"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"type": "number"
|
|
358
|
+
}
|
|
359
|
+
]
|
|
360
|
+
},
|
|
361
|
+
"up": {
|
|
362
|
+
"type": "array",
|
|
363
|
+
"prefixItems": [
|
|
364
|
+
{
|
|
365
|
+
"type": "number"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"type": "number"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"type": "number"
|
|
372
|
+
}
|
|
373
|
+
]
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
"required": [
|
|
377
|
+
"position",
|
|
378
|
+
"target",
|
|
379
|
+
"up"
|
|
380
|
+
],
|
|
381
|
+
"additionalProperties": false
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
"required": [
|
|
385
|
+
"modelId",
|
|
386
|
+
"revision",
|
|
387
|
+
"partId",
|
|
388
|
+
"position",
|
|
389
|
+
"units"
|
|
390
|
+
],
|
|
391
|
+
"additionalProperties": false
|
|
392
|
+
},
|
|
147
393
|
"url": {
|
|
148
394
|
"type": "string"
|
|
149
395
|
},
|
package/dist/sessions.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as parseTrailers, i as SqliteSessionStore, n as SessionSchema, r as SessionStore, t as Session } from "./sessions-
|
|
1
|
+
import { a as parseTrailers, i as SqliteSessionStore, n as SessionSchema, r as SessionStore, t as Session } from "./sessions-Bd7_G5jW.js";
|
|
2
2
|
export { Session, SessionSchema, SessionStore, SqliteSessionStore, parseTrailers };
|