@bitmagic/asset-core 0.2.23-dev.3 → 0.2.23-dev.5
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/reference-record.d.ts +54 -0
- package/dist/reference-record.d.ts.map +1 -0
- package/dist/reference-record.js +69 -0
- package/dist/reference-record.js.map +1 -0
- package/dist/smart-object.d.ts +82 -82
- package/dist/smart-object.d.ts.map +1 -1
- package/dist/smart-object.js +9 -1
- package/dist/smart-object.js.map +1 -1
- package/package.json +5 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The reference image's records — the shapes both lanes keep when a creator iterates on a
|
|
3
|
+
* concept shot of the game's world and accepts one.
|
|
4
|
+
*
|
|
5
|
+
* The CLI keeps them as files under `.bitmagic/` (`cli/src/project/reference.ts`); the web
|
|
6
|
+
* lane keeps the accepted reference in the game's `game.json` and the candidates in a sidecar
|
|
7
|
+
* the agent owns. Same records, different homes — which is why the types, the id format and
|
|
8
|
+
* the id check live here, and the file I/O does not.
|
|
9
|
+
*
|
|
10
|
+
* Published as the `@bitmagic/asset-core/reference-record` subpath so the Creator can read the
|
|
11
|
+
* shapes without the root barrel's generators. No network, no node APIs.
|
|
12
|
+
*/
|
|
13
|
+
/** One generated candidate — a picture the creator may accept, iterate from, or ignore. */
|
|
14
|
+
export interface CandidateRecord {
|
|
15
|
+
id: string;
|
|
16
|
+
/** The Asset Forger URL the generation returned. Short-lived; the accept re-hosts it. */
|
|
17
|
+
url: string;
|
|
18
|
+
/** The prompt actually sent, truncated — enough to recognise a candidate in a list. */
|
|
19
|
+
prompt: string;
|
|
20
|
+
/** The candidate this one was iterated from, if any. */
|
|
21
|
+
from?: string;
|
|
22
|
+
/** An explicit reference image URL this candidate was steered by, if any. */
|
|
23
|
+
referenceImageUrl?: string;
|
|
24
|
+
createdAt: string;
|
|
25
|
+
}
|
|
26
|
+
/** The accepted reference — what every generator and forge inherits. */
|
|
27
|
+
export interface AcceptedReference {
|
|
28
|
+
/** The URL generators are given: the re-hosted public URL, or the source URL when re-hosting failed. */
|
|
29
|
+
url: string;
|
|
30
|
+
/** False when re-hosting failed and `url` is the (expiring) source URL — worth re-accepting. */
|
|
31
|
+
hosted: boolean;
|
|
32
|
+
/** What was accepted, before any re-hosting. */
|
|
33
|
+
sourceUrl: string;
|
|
34
|
+
/** Absent when a bare URL was accepted rather than a generated candidate. */
|
|
35
|
+
candidateId?: string;
|
|
36
|
+
/** The candidate's prompt, truncated like `CandidateRecord.prompt`; absent for a bare URL. */
|
|
37
|
+
prompt?: string;
|
|
38
|
+
acceptedAt: string;
|
|
39
|
+
}
|
|
40
|
+
/** How much of a prompt a record keeps — enough to recognise it, not enough to bloat a list. */
|
|
41
|
+
export declare const RECORD_PROMPT_CHARS = 300;
|
|
42
|
+
/**
|
|
43
|
+
* A lenient reader: anything missing or malformed reads as absent, because the worst case of
|
|
44
|
+
* "absent" is one regeneration or a re-accept, and a hard error would wedge every generate
|
|
45
|
+
* call on a record nobody edits by hand.
|
|
46
|
+
*/
|
|
47
|
+
export declare function parseAcceptedReference(value: unknown): AcceptedReference | null;
|
|
48
|
+
/** Same stance as `parseAcceptedReference`; `id` may come from the record or from its file name. */
|
|
49
|
+
export declare function parseCandidateRecord(value: unknown, id?: string): CandidateRecord | null;
|
|
50
|
+
/** `ref-<yyyymmdd-hhmmss>-<4 rand>` — short enough to type, sortable by creation time. */
|
|
51
|
+
export declare function newCandidateId(now?: Date): string;
|
|
52
|
+
/** Candidate ids become file names, so anything path-shaped is refused, never sanitised. */
|
|
53
|
+
export declare function isSafeCandidateId(id: string): boolean;
|
|
54
|
+
//# sourceMappingURL=reference-record.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reference-record.d.ts","sourceRoot":"","sources":["../src/reference-record.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,2FAA2F;AAC3F,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,yFAAyF;IACzF,GAAG,EAAE,MAAM,CAAC;IACZ,uFAAuF;IACvF,MAAM,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7E,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wEAAwE;AACxE,MAAM,WAAW,iBAAiB;IAChC,wGAAwG;IACxG,GAAG,EAAE,MAAM,CAAC;IACZ,gGAAgG;IAChG,MAAM,EAAE,OAAO,CAAC;IAChB,gDAAgD;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB,6EAA6E;IAC7E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8FAA8F;IAC9F,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,gGAAgG;AAChG,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAIvC;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,iBAAiB,GAAG,IAAI,CAc/E;AAED,oGAAoG;AACpG,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,CAexF;AAED,0FAA0F;AAC1F,wBAAgB,cAAc,CAAC,GAAG,GAAE,IAAiB,GAAG,MAAM,CAM7D;AAED,4FAA4F;AAC5F,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAErD"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The reference image's records — the shapes both lanes keep when a creator iterates on a
|
|
3
|
+
* concept shot of the game's world and accepts one.
|
|
4
|
+
*
|
|
5
|
+
* The CLI keeps them as files under `.bitmagic/` (`cli/src/project/reference.ts`); the web
|
|
6
|
+
* lane keeps the accepted reference in the game's `game.json` and the candidates in a sidecar
|
|
7
|
+
* the agent owns. Same records, different homes — which is why the types, the id format and
|
|
8
|
+
* the id check live here, and the file I/O does not.
|
|
9
|
+
*
|
|
10
|
+
* Published as the `@bitmagic/asset-core/reference-record` subpath so the Creator can read the
|
|
11
|
+
* shapes without the root barrel's generators. No network, no node APIs.
|
|
12
|
+
*/
|
|
13
|
+
/** How much of a prompt a record keeps — enough to recognise it, not enough to bloat a list. */
|
|
14
|
+
export const RECORD_PROMPT_CHARS = 300;
|
|
15
|
+
const isString = (value) => typeof value === 'string';
|
|
16
|
+
/**
|
|
17
|
+
* A lenient reader: anything missing or malformed reads as absent, because the worst case of
|
|
18
|
+
* "absent" is one regeneration or a re-accept, and a hard error would wedge every generate
|
|
19
|
+
* call on a record nobody edits by hand.
|
|
20
|
+
*/
|
|
21
|
+
export function parseAcceptedReference(value) {
|
|
22
|
+
if (typeof value !== 'object' || value === null)
|
|
23
|
+
return null;
|
|
24
|
+
const { url, hosted, sourceUrl, candidateId, prompt, acceptedAt } = value;
|
|
25
|
+
if (!isString(url) || url.length === 0 || typeof hosted !== 'boolean' || !isString(sourceUrl) || !isString(acceptedAt)) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
url,
|
|
30
|
+
hosted,
|
|
31
|
+
sourceUrl,
|
|
32
|
+
acceptedAt,
|
|
33
|
+
...(isString(candidateId) ? { candidateId } : {}),
|
|
34
|
+
...(isString(prompt) ? { prompt } : {}),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
/** Same stance as `parseAcceptedReference`; `id` may come from the record or from its file name. */
|
|
38
|
+
export function parseCandidateRecord(value, id) {
|
|
39
|
+
if (typeof value !== 'object' || value === null)
|
|
40
|
+
return null;
|
|
41
|
+
const record = value;
|
|
42
|
+
const resolvedId = id ?? record.id;
|
|
43
|
+
const { url, prompt, from, referenceImageUrl, createdAt } = record;
|
|
44
|
+
if (!isString(resolvedId) || !isSafeCandidateId(resolvedId))
|
|
45
|
+
return null;
|
|
46
|
+
if (!isString(url) || url.length === 0 || !isString(prompt) || !isString(createdAt))
|
|
47
|
+
return null;
|
|
48
|
+
return {
|
|
49
|
+
id: resolvedId,
|
|
50
|
+
url,
|
|
51
|
+
prompt,
|
|
52
|
+
createdAt,
|
|
53
|
+
...(isString(from) ? { from } : {}),
|
|
54
|
+
...(isString(referenceImageUrl) ? { referenceImageUrl } : {}),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
/** `ref-<yyyymmdd-hhmmss>-<4 rand>` — short enough to type, sortable by creation time. */
|
|
58
|
+
export function newCandidateId(now = new Date()) {
|
|
59
|
+
const pad = (n) => String(n).padStart(2, '0');
|
|
60
|
+
const stamp = `${now.getFullYear()}${pad(now.getMonth() + 1)}${pad(now.getDate())}` +
|
|
61
|
+
`-${pad(now.getHours())}${pad(now.getMinutes())}${pad(now.getSeconds())}`;
|
|
62
|
+
const rand = Math.random().toString(36).slice(2, 6).padEnd(4, '0');
|
|
63
|
+
return `ref-${stamp}-${rand}`;
|
|
64
|
+
}
|
|
65
|
+
/** Candidate ids become file names, so anything path-shaped is refused, never sanitised. */
|
|
66
|
+
export function isSafeCandidateId(id) {
|
|
67
|
+
return /^[a-z0-9][a-z0-9-]{0,63}$/.test(id);
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=reference-record.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reference-record.js","sourceRoot":"","sources":["../src/reference-record.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AA+BH,gGAAgG;AAChG,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAEvC,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAmB,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC;AAEhF;;;;GAIG;AACH,MAAM,UAAU,sBAAsB,CAAC,KAAc;IACnD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI;QAAE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AAC,CAAC;AAC9C,CAAC"}
|
package/dist/smart-object.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const smartObjectMotionSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
3
3
|
kind: z.ZodLiteral<"spin">;
|
|
4
|
-
axis: z.
|
|
4
|
+
axis: z.ZodArray<z.ZodNumber, "many">;
|
|
5
5
|
rpm: z.ZodNumber;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
7
|
kind: "spin";
|
|
8
|
-
axis: [
|
|
8
|
+
axis: number[];
|
|
9
9
|
rpm: number;
|
|
10
10
|
}, {
|
|
11
11
|
kind: "spin";
|
|
12
|
-
axis: [
|
|
12
|
+
axis: number[];
|
|
13
13
|
rpm: number;
|
|
14
14
|
}>, z.ZodObject<{
|
|
15
15
|
kind: z.ZodLiteral<"upright">;
|
|
@@ -19,17 +19,17 @@ export declare const smartObjectMotionSchema: z.ZodDiscriminatedUnion<"kind", [z
|
|
|
19
19
|
kind: "upright";
|
|
20
20
|
}>, z.ZodObject<{
|
|
21
21
|
kind: z.ZodLiteral<"pendulum">;
|
|
22
|
-
axis: z.
|
|
22
|
+
axis: z.ZodArray<z.ZodNumber, "many">;
|
|
23
23
|
amplitudeDeg: z.ZodNumber;
|
|
24
24
|
periodS: z.ZodNumber;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
26
|
kind: "pendulum";
|
|
27
|
-
axis: [
|
|
27
|
+
axis: number[];
|
|
28
28
|
amplitudeDeg: number;
|
|
29
29
|
periodS: number;
|
|
30
30
|
}, {
|
|
31
31
|
kind: "pendulum";
|
|
32
|
-
axis: [
|
|
32
|
+
axis: number[];
|
|
33
33
|
amplitudeDeg: number;
|
|
34
34
|
periodS: number;
|
|
35
35
|
}>, z.ZodObject<{
|
|
@@ -43,14 +43,14 @@ export declare const smartObjectSpecSchema: z.ZodObject<{
|
|
|
43
43
|
version: z.ZodLiteral<1>;
|
|
44
44
|
grid: z.ZodNumber;
|
|
45
45
|
bounds: z.ZodOptional<z.ZodObject<{
|
|
46
|
-
min: z.
|
|
47
|
-
max: z.
|
|
46
|
+
min: z.ZodArray<z.ZodNumber, "many">;
|
|
47
|
+
max: z.ZodArray<z.ZodNumber, "many">;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
min: [
|
|
50
|
-
max: [
|
|
49
|
+
min: number[];
|
|
50
|
+
max: number[];
|
|
51
51
|
}, {
|
|
52
|
-
min: [
|
|
53
|
-
max: [
|
|
52
|
+
min: number[];
|
|
53
|
+
max: number[];
|
|
54
54
|
}>>;
|
|
55
55
|
object: z.ZodOptional<z.ZodString>;
|
|
56
56
|
parts: z.ZodArray<z.ZodObject<{
|
|
@@ -58,38 +58,38 @@ export declare const smartObjectSpecSchema: z.ZodObject<{
|
|
|
58
58
|
/** Another part's name; absent means the static body. */
|
|
59
59
|
parent: z.ZodOptional<z.ZodString>;
|
|
60
60
|
box: z.ZodObject<{
|
|
61
|
-
min: z.
|
|
62
|
-
max: z.
|
|
61
|
+
min: z.ZodArray<z.ZodNumber, "many">;
|
|
62
|
+
max: z.ZodArray<z.ZodNumber, "many">;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
|
-
min: [
|
|
65
|
-
max: [
|
|
64
|
+
min: number[];
|
|
65
|
+
max: number[];
|
|
66
66
|
}, {
|
|
67
|
-
min: [
|
|
68
|
-
max: [
|
|
67
|
+
min: number[];
|
|
68
|
+
max: number[];
|
|
69
69
|
}>;
|
|
70
70
|
exclude: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
71
|
-
min: z.
|
|
72
|
-
max: z.
|
|
71
|
+
min: z.ZodArray<z.ZodNumber, "many">;
|
|
72
|
+
max: z.ZodArray<z.ZodNumber, "many">;
|
|
73
73
|
}, "strip", z.ZodTypeAny, {
|
|
74
|
-
min: [
|
|
75
|
-
max: [
|
|
74
|
+
min: number[];
|
|
75
|
+
max: number[];
|
|
76
76
|
}, {
|
|
77
|
-
min: [
|
|
78
|
-
max: [
|
|
77
|
+
min: number[];
|
|
78
|
+
max: number[];
|
|
79
79
|
}>, "many">>;
|
|
80
80
|
/** Grid coordinates, may be fractional (cell centres are at +0.5). */
|
|
81
|
-
pivot: z.
|
|
81
|
+
pivot: z.ZodArray<z.ZodNumber, "many">;
|
|
82
82
|
motion: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
83
83
|
kind: z.ZodLiteral<"spin">;
|
|
84
|
-
axis: z.
|
|
84
|
+
axis: z.ZodArray<z.ZodNumber, "many">;
|
|
85
85
|
rpm: z.ZodNumber;
|
|
86
86
|
}, "strip", z.ZodTypeAny, {
|
|
87
87
|
kind: "spin";
|
|
88
|
-
axis: [
|
|
88
|
+
axis: number[];
|
|
89
89
|
rpm: number;
|
|
90
90
|
}, {
|
|
91
91
|
kind: "spin";
|
|
92
|
-
axis: [
|
|
92
|
+
axis: number[];
|
|
93
93
|
rpm: number;
|
|
94
94
|
}>, z.ZodObject<{
|
|
95
95
|
kind: z.ZodLiteral<"upright">;
|
|
@@ -99,17 +99,17 @@ export declare const smartObjectSpecSchema: z.ZodObject<{
|
|
|
99
99
|
kind: "upright";
|
|
100
100
|
}>, z.ZodObject<{
|
|
101
101
|
kind: z.ZodLiteral<"pendulum">;
|
|
102
|
-
axis: z.
|
|
102
|
+
axis: z.ZodArray<z.ZodNumber, "many">;
|
|
103
103
|
amplitudeDeg: z.ZodNumber;
|
|
104
104
|
periodS: z.ZodNumber;
|
|
105
105
|
}, "strip", z.ZodTypeAny, {
|
|
106
106
|
kind: "pendulum";
|
|
107
|
-
axis: [
|
|
107
|
+
axis: number[];
|
|
108
108
|
amplitudeDeg: number;
|
|
109
109
|
periodS: number;
|
|
110
110
|
}, {
|
|
111
111
|
kind: "pendulum";
|
|
112
|
-
axis: [
|
|
112
|
+
axis: number[];
|
|
113
113
|
amplitudeDeg: number;
|
|
114
114
|
periodS: number;
|
|
115
115
|
}>, z.ZodObject<{
|
|
@@ -123,19 +123,19 @@ export declare const smartObjectSpecSchema: z.ZodObject<{
|
|
|
123
123
|
}, "strip", z.ZodTypeAny, {
|
|
124
124
|
name: string;
|
|
125
125
|
box: {
|
|
126
|
-
min: [
|
|
127
|
-
max: [
|
|
126
|
+
min: number[];
|
|
127
|
+
max: number[];
|
|
128
128
|
};
|
|
129
|
-
pivot: [
|
|
129
|
+
pivot: number[];
|
|
130
130
|
motion: {
|
|
131
131
|
kind: "spin";
|
|
132
|
-
axis: [
|
|
132
|
+
axis: number[];
|
|
133
133
|
rpm: number;
|
|
134
134
|
} | {
|
|
135
135
|
kind: "upright";
|
|
136
136
|
} | {
|
|
137
137
|
kind: "pendulum";
|
|
138
|
-
axis: [
|
|
138
|
+
axis: number[];
|
|
139
139
|
amplitudeDeg: number;
|
|
140
140
|
periodS: number;
|
|
141
141
|
} | {
|
|
@@ -143,26 +143,26 @@ export declare const smartObjectSpecSchema: z.ZodObject<{
|
|
|
143
143
|
};
|
|
144
144
|
parent?: string | undefined;
|
|
145
145
|
exclude?: {
|
|
146
|
-
min: [
|
|
147
|
-
max: [
|
|
146
|
+
min: number[];
|
|
147
|
+
max: number[];
|
|
148
148
|
}[] | undefined;
|
|
149
149
|
voxelCount?: number | undefined;
|
|
150
150
|
}, {
|
|
151
151
|
name: string;
|
|
152
152
|
box: {
|
|
153
|
-
min: [
|
|
154
|
-
max: [
|
|
153
|
+
min: number[];
|
|
154
|
+
max: number[];
|
|
155
155
|
};
|
|
156
|
-
pivot: [
|
|
156
|
+
pivot: number[];
|
|
157
157
|
motion: {
|
|
158
158
|
kind: "spin";
|
|
159
|
-
axis: [
|
|
159
|
+
axis: number[];
|
|
160
160
|
rpm: number;
|
|
161
161
|
} | {
|
|
162
162
|
kind: "upright";
|
|
163
163
|
} | {
|
|
164
164
|
kind: "pendulum";
|
|
165
|
-
axis: [
|
|
165
|
+
axis: number[];
|
|
166
166
|
amplitudeDeg: number;
|
|
167
167
|
periodS: number;
|
|
168
168
|
} | {
|
|
@@ -170,14 +170,14 @@ export declare const smartObjectSpecSchema: z.ZodObject<{
|
|
|
170
170
|
};
|
|
171
171
|
parent?: string | undefined;
|
|
172
172
|
exclude?: {
|
|
173
|
-
min: [
|
|
174
|
-
max: [
|
|
173
|
+
min: number[];
|
|
174
|
+
max: number[];
|
|
175
175
|
}[] | undefined;
|
|
176
176
|
voxelCount?: number | undefined;
|
|
177
177
|
}>, "many">;
|
|
178
178
|
lights: z.ZodArray<z.ZodObject<{
|
|
179
179
|
name: z.ZodString;
|
|
180
|
-
position: z.
|
|
180
|
+
position: z.ZodArray<z.ZodNumber, "many">;
|
|
181
181
|
/** `#rrggbb` */
|
|
182
182
|
color: z.ZodString;
|
|
183
183
|
intensity: z.ZodOptional<z.ZodNumber>;
|
|
@@ -187,7 +187,7 @@ export declare const smartObjectSpecSchema: z.ZodObject<{
|
|
|
187
187
|
part: z.ZodOptional<z.ZodString>;
|
|
188
188
|
}, "strip", z.ZodTypeAny, {
|
|
189
189
|
name: string;
|
|
190
|
-
position: [
|
|
190
|
+
position: number[];
|
|
191
191
|
color: string;
|
|
192
192
|
intensity?: number | undefined;
|
|
193
193
|
distance?: number | undefined;
|
|
@@ -195,7 +195,7 @@ export declare const smartObjectSpecSchema: z.ZodObject<{
|
|
|
195
195
|
part?: string | undefined;
|
|
196
196
|
}, {
|
|
197
197
|
name: string;
|
|
198
|
-
position: [
|
|
198
|
+
position: number[];
|
|
199
199
|
color: string;
|
|
200
200
|
intensity?: number | undefined;
|
|
201
201
|
distance?: number | undefined;
|
|
@@ -214,19 +214,19 @@ export declare const smartObjectSpecSchema: z.ZodObject<{
|
|
|
214
214
|
parts: {
|
|
215
215
|
name: string;
|
|
216
216
|
box: {
|
|
217
|
-
min: [
|
|
218
|
-
max: [
|
|
217
|
+
min: number[];
|
|
218
|
+
max: number[];
|
|
219
219
|
};
|
|
220
|
-
pivot: [
|
|
220
|
+
pivot: number[];
|
|
221
221
|
motion: {
|
|
222
222
|
kind: "spin";
|
|
223
|
-
axis: [
|
|
223
|
+
axis: number[];
|
|
224
224
|
rpm: number;
|
|
225
225
|
} | {
|
|
226
226
|
kind: "upright";
|
|
227
227
|
} | {
|
|
228
228
|
kind: "pendulum";
|
|
229
|
-
axis: [
|
|
229
|
+
axis: number[];
|
|
230
230
|
amplitudeDeg: number;
|
|
231
231
|
periodS: number;
|
|
232
232
|
} | {
|
|
@@ -234,14 +234,14 @@ export declare const smartObjectSpecSchema: z.ZodObject<{
|
|
|
234
234
|
};
|
|
235
235
|
parent?: string | undefined;
|
|
236
236
|
exclude?: {
|
|
237
|
-
min: [
|
|
238
|
-
max: [
|
|
237
|
+
min: number[];
|
|
238
|
+
max: number[];
|
|
239
239
|
}[] | undefined;
|
|
240
240
|
voxelCount?: number | undefined;
|
|
241
241
|
}[];
|
|
242
242
|
lights: {
|
|
243
243
|
name: string;
|
|
244
|
-
position: [
|
|
244
|
+
position: number[];
|
|
245
245
|
color: string;
|
|
246
246
|
intensity?: number | undefined;
|
|
247
247
|
distance?: number | undefined;
|
|
@@ -251,8 +251,8 @@ export declare const smartObjectSpecSchema: z.ZodObject<{
|
|
|
251
251
|
object?: string | undefined;
|
|
252
252
|
model?: string | undefined;
|
|
253
253
|
bounds?: {
|
|
254
|
-
min: [
|
|
255
|
-
max: [
|
|
254
|
+
min: number[];
|
|
255
|
+
max: number[];
|
|
256
256
|
} | undefined;
|
|
257
257
|
minComponentFraction?: number | undefined;
|
|
258
258
|
bodyVoxelCount?: number | undefined;
|
|
@@ -264,19 +264,19 @@ export declare const smartObjectSpecSchema: z.ZodObject<{
|
|
|
264
264
|
parts: {
|
|
265
265
|
name: string;
|
|
266
266
|
box: {
|
|
267
|
-
min: [
|
|
268
|
-
max: [
|
|
267
|
+
min: number[];
|
|
268
|
+
max: number[];
|
|
269
269
|
};
|
|
270
|
-
pivot: [
|
|
270
|
+
pivot: number[];
|
|
271
271
|
motion: {
|
|
272
272
|
kind: "spin";
|
|
273
|
-
axis: [
|
|
273
|
+
axis: number[];
|
|
274
274
|
rpm: number;
|
|
275
275
|
} | {
|
|
276
276
|
kind: "upright";
|
|
277
277
|
} | {
|
|
278
278
|
kind: "pendulum";
|
|
279
|
-
axis: [
|
|
279
|
+
axis: number[];
|
|
280
280
|
amplitudeDeg: number;
|
|
281
281
|
periodS: number;
|
|
282
282
|
} | {
|
|
@@ -284,14 +284,14 @@ export declare const smartObjectSpecSchema: z.ZodObject<{
|
|
|
284
284
|
};
|
|
285
285
|
parent?: string | undefined;
|
|
286
286
|
exclude?: {
|
|
287
|
-
min: [
|
|
288
|
-
max: [
|
|
287
|
+
min: number[];
|
|
288
|
+
max: number[];
|
|
289
289
|
}[] | undefined;
|
|
290
290
|
voxelCount?: number | undefined;
|
|
291
291
|
}[];
|
|
292
292
|
lights: {
|
|
293
293
|
name: string;
|
|
294
|
-
position: [
|
|
294
|
+
position: number[];
|
|
295
295
|
color: string;
|
|
296
296
|
intensity?: number | undefined;
|
|
297
297
|
distance?: number | undefined;
|
|
@@ -301,8 +301,8 @@ export declare const smartObjectSpecSchema: z.ZodObject<{
|
|
|
301
301
|
object?: string | undefined;
|
|
302
302
|
model?: string | undefined;
|
|
303
303
|
bounds?: {
|
|
304
|
-
min: [
|
|
305
|
-
max: [
|
|
304
|
+
min: number[];
|
|
305
|
+
max: number[];
|
|
306
306
|
} | undefined;
|
|
307
307
|
minComponentFraction?: number | undefined;
|
|
308
308
|
bodyVoxelCount?: number | undefined;
|
|
@@ -329,15 +329,15 @@ export declare const smartPropSpecSchema: z.ZodObject<{
|
|
|
329
329
|
parent: z.ZodOptional<z.ZodString>;
|
|
330
330
|
motion: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
331
331
|
kind: z.ZodLiteral<"spin">;
|
|
332
|
-
axis: z.
|
|
332
|
+
axis: z.ZodArray<z.ZodNumber, "many">;
|
|
333
333
|
rpm: z.ZodNumber;
|
|
334
334
|
}, "strip", z.ZodTypeAny, {
|
|
335
335
|
kind: "spin";
|
|
336
|
-
axis: [
|
|
336
|
+
axis: number[];
|
|
337
337
|
rpm: number;
|
|
338
338
|
}, {
|
|
339
339
|
kind: "spin";
|
|
340
|
-
axis: [
|
|
340
|
+
axis: number[];
|
|
341
341
|
rpm: number;
|
|
342
342
|
}>, z.ZodObject<{
|
|
343
343
|
kind: z.ZodLiteral<"upright">;
|
|
@@ -347,17 +347,17 @@ export declare const smartPropSpecSchema: z.ZodObject<{
|
|
|
347
347
|
kind: "upright";
|
|
348
348
|
}>, z.ZodObject<{
|
|
349
349
|
kind: z.ZodLiteral<"pendulum">;
|
|
350
|
-
axis: z.
|
|
350
|
+
axis: z.ZodArray<z.ZodNumber, "many">;
|
|
351
351
|
amplitudeDeg: z.ZodNumber;
|
|
352
352
|
periodS: z.ZodNumber;
|
|
353
353
|
}, "strip", z.ZodTypeAny, {
|
|
354
354
|
kind: "pendulum";
|
|
355
|
-
axis: [
|
|
355
|
+
axis: number[];
|
|
356
356
|
amplitudeDeg: number;
|
|
357
357
|
periodS: number;
|
|
358
358
|
}, {
|
|
359
359
|
kind: "pendulum";
|
|
360
|
-
axis: [
|
|
360
|
+
axis: number[];
|
|
361
361
|
amplitudeDeg: number;
|
|
362
362
|
periodS: number;
|
|
363
363
|
}>, z.ZodObject<{
|
|
@@ -385,13 +385,13 @@ export declare const smartPropSpecSchema: z.ZodObject<{
|
|
|
385
385
|
name: string;
|
|
386
386
|
motion: {
|
|
387
387
|
kind: "spin";
|
|
388
|
-
axis: [
|
|
388
|
+
axis: number[];
|
|
389
389
|
rpm: number;
|
|
390
390
|
} | {
|
|
391
391
|
kind: "upright";
|
|
392
392
|
} | {
|
|
393
393
|
kind: "pendulum";
|
|
394
|
-
axis: [
|
|
394
|
+
axis: number[];
|
|
395
395
|
amplitudeDeg: number;
|
|
396
396
|
periodS: number;
|
|
397
397
|
} | {
|
|
@@ -407,13 +407,13 @@ export declare const smartPropSpecSchema: z.ZodObject<{
|
|
|
407
407
|
name: string;
|
|
408
408
|
motion: {
|
|
409
409
|
kind: "spin";
|
|
410
|
-
axis: [
|
|
410
|
+
axis: number[];
|
|
411
411
|
rpm: number;
|
|
412
412
|
} | {
|
|
413
413
|
kind: "upright";
|
|
414
414
|
} | {
|
|
415
415
|
kind: "pendulum";
|
|
416
|
-
axis: [
|
|
416
|
+
axis: number[];
|
|
417
417
|
amplitudeDeg: number;
|
|
418
418
|
periodS: number;
|
|
419
419
|
} | {
|
|
@@ -478,13 +478,13 @@ export declare const smartPropSpecSchema: z.ZodObject<{
|
|
|
478
478
|
name: string;
|
|
479
479
|
motion: {
|
|
480
480
|
kind: "spin";
|
|
481
|
-
axis: [
|
|
481
|
+
axis: number[];
|
|
482
482
|
rpm: number;
|
|
483
483
|
} | {
|
|
484
484
|
kind: "upright";
|
|
485
485
|
} | {
|
|
486
486
|
kind: "pendulum";
|
|
487
|
-
axis: [
|
|
487
|
+
axis: number[];
|
|
488
488
|
amplitudeDeg: number;
|
|
489
489
|
periodS: number;
|
|
490
490
|
} | {
|
|
@@ -515,13 +515,13 @@ export declare const smartPropSpecSchema: z.ZodObject<{
|
|
|
515
515
|
name: string;
|
|
516
516
|
motion: {
|
|
517
517
|
kind: "spin";
|
|
518
|
-
axis: [
|
|
518
|
+
axis: number[];
|
|
519
519
|
rpm: number;
|
|
520
520
|
} | {
|
|
521
521
|
kind: "upright";
|
|
522
522
|
} | {
|
|
523
523
|
kind: "pendulum";
|
|
524
|
-
axis: [
|
|
524
|
+
axis: number[];
|
|
525
525
|
amplitudeDeg: number;
|
|
526
526
|
periodS: number;
|
|
527
527
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smart-object.d.ts","sourceRoot":"","sources":["../src/smart-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"smart-object.d.ts","sourceRoot":"","sources":["../src/smart-object.ts"],"names":[],"mappings":"AAAA,OAA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AM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,iBAAiB,CAAC;CAC3B;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAQD;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,SAAS,kBAAkB,EAAE,EACpC,MAAM,GAAE,SAAS,mBAAmB,EAAO,GAC1C,MAAM,CAmCR;AAUD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;;;;;IAG7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,2EAA2E;AAC3E,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,CAK7G;AAED,0GAA0G;AAC1G,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAEhE"}
|
package/dist/smart-object.js
CHANGED
|
@@ -14,7 +14,15 @@ import { z } from 'zod';
|
|
|
14
14
|
* scale, and a re-voxelize at another size must re-split the same voxels
|
|
15
15
|
* without a second vision call.
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
/**
|
|
18
|
+
* NOT `z.tuple`: zod-to-json-schema emits a tuple as the draft-07 array form of `items`
|
|
19
|
+
* (`items: [{...},{...},{...}]`), which JSON Schema 2020-12 dropped for `prefixItems`.
|
|
20
|
+
* Bedrock's Claude validates every tool `input_schema` against 2020-12 and rejects the whole
|
|
21
|
+
* request ("tools.N.custom.input_schema: JSON schema is invalid"), so a tuple anywhere in a
|
|
22
|
+
* schema an agent tool or a structured-output call embeds takes the agent down. A fixed-length
|
|
23
|
+
* array says the same thing in a form both drafts accept.
|
|
24
|
+
*/
|
|
25
|
+
const vec3 = z.array(z.number()).length(3);
|
|
18
26
|
const gridBoxSchema = z.object({ min: vec3, max: vec3 });
|
|
19
27
|
export const smartObjectMotionSchema = z.discriminatedUnion('kind', [
|
|
20
28
|
z.object({ kind: z.literal('spin'), axis: vec3, rpm: z.number() }),
|
package/dist/smart-object.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smart-object.js","sourceRoot":"","sources":["../src/smart-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;GAcG;AAEH,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"smart-object.js","sourceRoot":"","sources":["../src/smart-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;GAOG;AACH,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAE3C,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;AAEzD,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAClE,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;IAClE,+EAA+E;IAC/E,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAA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,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;AACzD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitmagic/asset-core",
|
|
3
|
-
"version": "0.2.23-dev.
|
|
3
|
+
"version": "0.2.23-dev.5",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"author": "Bitmagic Oy",
|
|
6
6
|
"type": "module",
|
|
@@ -30,6 +30,10 @@
|
|
|
30
30
|
"./art-style": {
|
|
31
31
|
"types": "./dist/art-style.d.ts",
|
|
32
32
|
"default": "./dist/art-style.js"
|
|
33
|
+
},
|
|
34
|
+
"./reference-record": {
|
|
35
|
+
"types": "./dist/reference-record.d.ts",
|
|
36
|
+
"default": "./dist/reference-record.js"
|
|
33
37
|
}
|
|
34
38
|
},
|
|
35
39
|
"files": [
|