@drawcall/market 0.1.15 → 0.1.17
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/commands/preview.d.ts.map +1 -1
- package/dist/commands/preview.js +3 -1
- package/dist/commands/preview.js.map +1 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +2 -0
- package/dist/constants.js.map +1 -1
- package/dist/contract.d.ts +4 -0
- package/dist/contract.d.ts.map +1 -1
- package/dist/schemas.d.ts +6 -1
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +7 -1
- package/dist/schemas.js.map +1 -1
- package/dist/skill.d.ts +1 -1
- package/dist/skill.d.ts.map +1 -1
- package/dist/skill.js +2 -2
- package/package.json +1 -1
- package/src/commands/preview.ts +5 -1
- package/src/constants.ts +2 -0
- package/src/schemas.ts +7 -1
- package/src/skill.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../src/commands/preview.ts"],"names":[],"mappings":"AAKA,OAAO,EAAiC,KAAK,SAAS,EAAE,MAAM,eAAe,CAAA;AAE7E,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,wBAAsB,cAAc,CAClC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,IAAI,EAAE,qBAAqB,GAC1B,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../src/commands/preview.ts"],"names":[],"mappings":"AAKA,OAAO,EAAiC,KAAK,SAAS,EAAE,MAAM,eAAe,CAAA;AAE7E,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,wBAAsB,cAAc,CAClC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,IAAI,EAAE,qBAAqB,GAC1B,OAAO,CAAC,IAAI,CAAC,CAoDf"}
|
package/dist/commands/preview.js
CHANGED
|
@@ -7,7 +7,9 @@ import { assetNameSchema, semverSchema } from '../schemas.js';
|
|
|
7
7
|
export async function previewCommand(name, version, opts) {
|
|
8
8
|
const parsedName = assetNameSchema.parse(name);
|
|
9
9
|
const parsedVersion = version ? semverSchema.parse(version) : undefined;
|
|
10
|
-
if (opts.type === 'humanoid-animation' ||
|
|
10
|
+
if (opts.type === 'humanoid-animation' ||
|
|
11
|
+
opts.type === 'template' ||
|
|
12
|
+
opts.type === 'sound-effect') {
|
|
11
13
|
throw new Error(`Preview images are not supported for ${opts.type}`);
|
|
12
14
|
}
|
|
13
15
|
const spinner = ora({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preview.js","sourceRoot":"","sources":["../../src/commands/preview.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,aAAa,CAAA;AACjC,OAAO,KAAK,IAAI,MAAM,MAAM,CAAA;AAC5B,OAAO,GAAG,MAAM,KAAK,CAAA;AACrB,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,YAAY,EAAkB,MAAM,eAAe,CAAA;AAS7E,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,IAAY,EACZ,OAA2B,EAC3B,IAA2B;IAE3B,MAAM,UAAU,GAAG,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IAC9C,MAAM,aAAa,GAAG,OAAO,CAAC,CAAC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MAAM,GAAG,CAAA;IACX,CAAC;AACH,CAAC;AAED,SAAS,gBAAgB,CAAC,WAAmB;IAC3C,IAAI,WAAW,KAAK,YAAY;QAAE,OAAO,OAAO,CAAA;IAChD,IAAI,WAAW,KAAK,YAAY;QAAE,OAAO,MAAM,CAAA;IAC/C,OAAO,MAAM,CAAA;AACf,CAAC"}
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAExE,eAAO,MAAM,aAAa,QAA4B,CAAA;AAEtD,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAExE,eAAO,MAAM,aAAa,QAA4B,CAAA;AAEtD,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,CAM1D,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAMvD,CAAA"}
|
package/dist/constants.js
CHANGED
|
@@ -5,11 +5,13 @@ export const ALLOWED_EXTENSIONS = {
|
|
|
5
5
|
texture: ['.zip'],
|
|
6
6
|
'humanoid-animation': ['.zip'],
|
|
7
7
|
template: ['.zip'],
|
|
8
|
+
'sound-effect': ['.zip'],
|
|
8
9
|
};
|
|
9
10
|
export const ASSET_TYPE_LABELS = {
|
|
10
11
|
model: 'Model',
|
|
11
12
|
texture: 'Texture',
|
|
12
13
|
'humanoid-animation': 'Humanoid Animation',
|
|
13
14
|
template: 'Template',
|
|
15
|
+
'sound-effect': 'Sound Effect',
|
|
14
16
|
};
|
|
15
17
|
//# sourceMappingURL=constants.js.map
|
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAkB,MAAM,cAAc,CAAA;AAExE,MAAM,CAAC,MAAM,aAAa,GAAG,yBAAyB,CAAA;AAEtD,MAAM,CAAC,MAAM,kBAAkB,GAAgC;IAC7D,KAAK,EAAE,CAAC,MAAM,CAAC;IACf,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,oBAAoB,EAAE,CAAC,MAAM,CAAC;IAC9B,QAAQ,EAAE,CAAC,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAkB,MAAM,cAAc,CAAA;AAExE,MAAM,CAAC,MAAM,aAAa,GAAG,yBAAyB,CAAA;AAEtD,MAAM,CAAC,MAAM,kBAAkB,GAAgC;IAC7D,KAAK,EAAE,CAAC,MAAM,CAAC;IACf,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,oBAAoB,EAAE,CAAC,MAAM,CAAC;IAC9B,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,cAAc,EAAE,CAAC,MAAM,CAAC;CACzB,CAAA;AAED,MAAM,CAAC,MAAM,iBAAiB,GAA8B;IAC1D,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,oBAAoB,EAAE,oBAAoB;IAC1C,QAAQ,EAAE,UAAU;IACpB,cAAc,EAAE,cAAc;CAC/B,CAAA"}
|
package/dist/contract.d.ts
CHANGED
|
@@ -63,6 +63,7 @@ export declare const contract: {
|
|
|
63
63
|
texture: "texture";
|
|
64
64
|
"humanoid-animation": "humanoid-animation";
|
|
65
65
|
template: "template";
|
|
66
|
+
"sound-effect": "sound-effect";
|
|
66
67
|
}>>;
|
|
67
68
|
query: z.ZodOptional<z.ZodString>;
|
|
68
69
|
includeUnapproved: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -79,6 +80,7 @@ export declare const contract: {
|
|
|
79
80
|
texture: "texture";
|
|
80
81
|
"humanoid-animation": "humanoid-animation";
|
|
81
82
|
template: "template";
|
|
83
|
+
"sound-effect": "sound-effect";
|
|
82
84
|
}>>;
|
|
83
85
|
includeUnapproved: z.ZodDefault<z.ZodBoolean>;
|
|
84
86
|
}, z.core.$strip>, z.ZodCustom<AssetSearchResult | null, AssetSearchResult | null>, Record<never, never>, Record<never, never>>;
|
|
@@ -89,6 +91,7 @@ export declare const contract: {
|
|
|
89
91
|
texture: "texture";
|
|
90
92
|
"humanoid-animation": "humanoid-animation";
|
|
91
93
|
template: "template";
|
|
94
|
+
"sound-effect": "sound-effect";
|
|
92
95
|
}>;
|
|
93
96
|
version: z.ZodString;
|
|
94
97
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -112,6 +115,7 @@ export declare const contract: {
|
|
|
112
115
|
texture: "texture";
|
|
113
116
|
"humanoid-animation": "humanoid-animation";
|
|
114
117
|
template: "template";
|
|
118
|
+
"sound-effect": "sound-effect";
|
|
115
119
|
}>>;
|
|
116
120
|
}, z.core.$strip>, z.ZodCustom<GenerateAssetResult, GenerateAssetResult>, Record<never, never>, Record<never, never>>;
|
|
117
121
|
};
|
package/dist/contract.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAWvB,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;IACjB,eAAe,EAAE,MAAM,CAAA;IACvB,iBAAiB,EAAE,MAAM,CAAA;IACzB,SAAS,EAAE,MAAM,CAAA;I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AU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,OAAO,CAAA;IACtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,EAAE,IAAI,CAAA;IACf,SAAS,EAAE,IAAI,CAAA;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA6B0B,MAAM;uBAAa,IAAI;;oBAAvB,MAAM;uBAAa,IAAI;;;;;;;CAIrE,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,OAAO,QAAQ,CAAA"}
|
package/dist/schemas.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const ASSET_TYPES: readonly ["model", "texture", "humanoid-animation", "template"];
|
|
2
|
+
export declare const ASSET_TYPES: readonly ["model", "texture", "humanoid-animation", "template", "sound-effect"];
|
|
3
3
|
export type AssetType = (typeof ASSET_TYPES)[number];
|
|
4
4
|
export declare const assetTypeSchema: z.ZodEnum<{
|
|
5
5
|
model: "model";
|
|
6
6
|
texture: "texture";
|
|
7
7
|
"humanoid-animation": "humanoid-animation";
|
|
8
8
|
template: "template";
|
|
9
|
+
"sound-effect": "sound-effect";
|
|
9
10
|
}>;
|
|
10
11
|
export declare const MAX_UPLOAD_ZIP_SIZE_BYTES: number;
|
|
11
12
|
export declare const semverSchema: z.ZodString;
|
|
@@ -24,6 +25,7 @@ export declare const listAssetsSchema: z.ZodObject<{
|
|
|
24
25
|
texture: "texture";
|
|
25
26
|
"humanoid-animation": "humanoid-animation";
|
|
26
27
|
template: "template";
|
|
28
|
+
"sound-effect": "sound-effect";
|
|
27
29
|
}>>;
|
|
28
30
|
query: z.ZodOptional<z.ZodString>;
|
|
29
31
|
includeUnapproved: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -40,6 +42,7 @@ export declare const exactAssetSchema: z.ZodObject<{
|
|
|
40
42
|
texture: "texture";
|
|
41
43
|
"humanoid-animation": "humanoid-animation";
|
|
42
44
|
template: "template";
|
|
45
|
+
"sound-effect": "sound-effect";
|
|
43
46
|
}>>;
|
|
44
47
|
includeUnapproved: z.ZodDefault<z.ZodBoolean>;
|
|
45
48
|
}, z.core.$strip>;
|
|
@@ -50,6 +53,7 @@ export declare const uploadZipSchema: z.ZodObject<{
|
|
|
50
53
|
texture: "texture";
|
|
51
54
|
"humanoid-animation": "humanoid-animation";
|
|
52
55
|
template: "template";
|
|
56
|
+
"sound-effect": "sound-effect";
|
|
53
57
|
}>;
|
|
54
58
|
version: z.ZodString;
|
|
55
59
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -68,6 +72,7 @@ export declare const generateAssetSchema: z.ZodObject<{
|
|
|
68
72
|
texture: "texture";
|
|
69
73
|
"humanoid-animation": "humanoid-animation";
|
|
70
74
|
template: "template";
|
|
75
|
+
"sound-effect": "sound-effect";
|
|
71
76
|
}>>;
|
|
72
77
|
}, z.core.$strip>;
|
|
73
78
|
//# sourceMappingURL=schemas.d.ts.map
|
package/dist/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,WAAW,iFAMd,CAAA;AACV,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAA;AAEpD,eAAO,MAAM,eAAe;;;;;;EAAsB,CAAA;AAElD,eAAO,MAAM,yBAAyB,QAAqB,CAAA;AAE3D,eAAO,MAAM,YAAY,aAKtB,CAAA;AAEH,eAAO,MAAM,eAAe,aAUxB,CAAA;AAEJ,eAAO,MAAM,qBAAqB,qDAA+C,CAAA;AAEjF,eAAO,MAAM,uBAAuB,qDAA+C,CAAA;AAEnF,eAAO,MAAM,mBAAmB;;;iBAG9B,CAAA;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;iBAO3B,CAAA;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;iBAI3B,CAAA;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;iBAQ1B,CAAA;AAEF,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAA;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;iBAG9B,CAAA"}
|
package/dist/schemas.js
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export const ASSET_TYPES = [
|
|
2
|
+
export const ASSET_TYPES = [
|
|
3
|
+
'model',
|
|
4
|
+
'texture',
|
|
5
|
+
'humanoid-animation',
|
|
6
|
+
'template',
|
|
7
|
+
'sound-effect',
|
|
8
|
+
];
|
|
3
9
|
export const assetTypeSchema = z.enum(ASSET_TYPES);
|
|
4
10
|
export const MAX_UPLOAD_ZIP_SIZE_BYTES = 1024 * 1024 * 1024;
|
|
5
11
|
export const semverSchema = z
|
package/dist/schemas.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAA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AAE,eAAe;IACrB,OAAO,EAAE,YAAY;IACrB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;IAC5C,eAAe,EAAE,qBAAqB;IACtC,iBAAiB,EAAE,uBAAuB;IAC1C,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CACtC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,YAAY;CACtB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;IACxC,IAAI,EAAE,eAAe,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAA"}
|
package/dist/skill.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const marketSkill = "---\nname: market\ndescription: Find, preview, install, generate, and publish Drawcall Market assets from a coding agent.\n---\n\n# Drawcall Market\n\nUse the `market` CLI. Keep commands short and read the summary line plus asset bullets.\n\n## Quick Start\n\n```sh\nmarket search \"wooden chair\" --type model --limit 3\nmarket install wooden-chair --type model --cwd \"$PWD\"\nmarket preview wooden-chair --out /tmp/wooden-chair.png\n```\n\n## Workflow\n\n1. Search first unless the user gave an exact asset name.\n2. Search requires `--type`; use `model` unless the user names another supported type: `texture`, `humanoid-animation`, or `
|
|
1
|
+
export declare const marketSkill = "---\nname: market\ndescription: Find, preview, install, generate, and publish Drawcall Market assets from a coding agent.\n---\n\n# Drawcall Market\n\nUse the `market` CLI. Keep commands short and read the summary line plus asset bullets.\n\n## Quick Start\n\n```sh\nmarket search \"wooden chair\" --type model --limit 3\nmarket install wooden-chair --type model --cwd \"$PWD\"\nmarket preview wooden-chair --out /tmp/wooden-chair.png\n```\n\n## Workflow\n\n1. Search first unless the user gave an exact asset name.\n2. Search requires `--type`; use `model` unless the user names another supported type: `texture`, `humanoid-animation`, `template`, or `sound-effect`.\n3. Use `--limit 1` for lookup, `--limit 3` for choice. Search caps at 5.\n4. Use `--verbose` only when the one-line descriptions are not enough.\n5. Use `--unapproved` only when the user asks for unapproved/private/admin assets. Do not install unapproved assets without explicit acceptance.\n6. Preview before installing when visual fit matters: `market preview <name> --out <file>`. Preview is not supported for `humanoid-animation`, `template`, or `sound-effect`.\n7. Generate only when the user wants a new asset and auth is available. Generate is not supported for `template`.\n8. Upload only when publishing is requested.\n\n## Output\n\nCommands print concise summaries:\n\n```text\nResults: 2/8 query=\"wooden chair\" type=model approval=approved\n- wooden-chair@1.0.0 | model | approved | Low-poly wooden chair\nInstalled 1 asset: wooden-chair@1.0.0\nSaved preview for wooden-chair@1.0.0: /tmp/wooden-chair.png\n```\n\nIf search returns no results, try one broader noun phrase before generating. If a command returns `Error: Not logged in...`, ask before running `market login`.\n";
|
|
2
2
|
//# sourceMappingURL=skill.d.ts.map
|
package/dist/skill.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill.d.ts","sourceRoot":"","sources":["../src/skill.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"skill.d.ts","sourceRoot":"","sources":["../src/skill.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,kuDAwCvB,CAAA"}
|
package/dist/skill.js
CHANGED
|
@@ -18,11 +18,11 @@ market preview wooden-chair --out /tmp/wooden-chair.png
|
|
|
18
18
|
## Workflow
|
|
19
19
|
|
|
20
20
|
1. Search first unless the user gave an exact asset name.
|
|
21
|
-
2. Search requires \`--type\`; use \`model\` unless the user names another supported type: \`texture\`, \`humanoid-animation\`, or \`
|
|
21
|
+
2. Search requires \`--type\`; use \`model\` unless the user names another supported type: \`texture\`, \`humanoid-animation\`, \`template\`, or \`sound-effect\`.
|
|
22
22
|
3. Use \`--limit 1\` for lookup, \`--limit 3\` for choice. Search caps at 5.
|
|
23
23
|
4. Use \`--verbose\` only when the one-line descriptions are not enough.
|
|
24
24
|
5. Use \`--unapproved\` only when the user asks for unapproved/private/admin assets. Do not install unapproved assets without explicit acceptance.
|
|
25
|
-
6. Preview before installing when visual fit matters: \`market preview <name> --out <file>\`. Preview is not supported for \`humanoid-animation\` or \`
|
|
25
|
+
6. Preview before installing when visual fit matters: \`market preview <name> --out <file>\`. Preview is not supported for \`humanoid-animation\`, \`template\`, or \`sound-effect\`.
|
|
26
26
|
7. Generate only when the user wants a new asset and auth is available. Generate is not supported for \`template\`.
|
|
27
27
|
8. Upload only when publishing is requested.
|
|
28
28
|
|
package/package.json
CHANGED
package/src/commands/preview.ts
CHANGED
|
@@ -19,7 +19,11 @@ export async function previewCommand(
|
|
|
19
19
|
): Promise<void> {
|
|
20
20
|
const parsedName = assetNameSchema.parse(name)
|
|
21
21
|
const parsedVersion = version ? semverSchema.parse(version) : undefined
|
|
22
|
-
if (
|
|
22
|
+
if (
|
|
23
|
+
opts.type === 'humanoid-animation' ||
|
|
24
|
+
opts.type === 'template' ||
|
|
25
|
+
opts.type === 'sound-effect'
|
|
26
|
+
) {
|
|
23
27
|
throw new Error(`Preview images are not supported for ${opts.type}`)
|
|
24
28
|
}
|
|
25
29
|
|
package/src/constants.ts
CHANGED
|
@@ -7,6 +7,7 @@ export const ALLOWED_EXTENSIONS: Record<AssetType, string[]> = {
|
|
|
7
7
|
texture: ['.zip'],
|
|
8
8
|
'humanoid-animation': ['.zip'],
|
|
9
9
|
template: ['.zip'],
|
|
10
|
+
'sound-effect': ['.zip'],
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
export const ASSET_TYPE_LABELS: Record<AssetType, string> = {
|
|
@@ -14,4 +15,5 @@ export const ASSET_TYPE_LABELS: Record<AssetType, string> = {
|
|
|
14
15
|
texture: 'Texture',
|
|
15
16
|
'humanoid-animation': 'Humanoid Animation',
|
|
16
17
|
template: 'Template',
|
|
18
|
+
'sound-effect': 'Sound Effect',
|
|
17
19
|
}
|
package/src/schemas.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
-
export const ASSET_TYPES = [
|
|
3
|
+
export const ASSET_TYPES = [
|
|
4
|
+
'model',
|
|
5
|
+
'texture',
|
|
6
|
+
'humanoid-animation',
|
|
7
|
+
'template',
|
|
8
|
+
'sound-effect',
|
|
9
|
+
] as const
|
|
4
10
|
export type AssetType = (typeof ASSET_TYPES)[number]
|
|
5
11
|
|
|
6
12
|
export const assetTypeSchema = z.enum(ASSET_TYPES)
|
package/src/skill.ts
CHANGED
|
@@ -18,11 +18,11 @@ market preview wooden-chair --out /tmp/wooden-chair.png
|
|
|
18
18
|
## Workflow
|
|
19
19
|
|
|
20
20
|
1. Search first unless the user gave an exact asset name.
|
|
21
|
-
2. Search requires \`--type\`; use \`model\` unless the user names another supported type: \`texture\`, \`humanoid-animation\`, or \`
|
|
21
|
+
2. Search requires \`--type\`; use \`model\` unless the user names another supported type: \`texture\`, \`humanoid-animation\`, \`template\`, or \`sound-effect\`.
|
|
22
22
|
3. Use \`--limit 1\` for lookup, \`--limit 3\` for choice. Search caps at 5.
|
|
23
23
|
4. Use \`--verbose\` only when the one-line descriptions are not enough.
|
|
24
24
|
5. Use \`--unapproved\` only when the user asks for unapproved/private/admin assets. Do not install unapproved assets without explicit acceptance.
|
|
25
|
-
6. Preview before installing when visual fit matters: \`market preview <name> --out <file>\`. Preview is not supported for \`humanoid-animation\` or \`
|
|
25
|
+
6. Preview before installing when visual fit matters: \`market preview <name> --out <file>\`. Preview is not supported for \`humanoid-animation\`, \`template\`, or \`sound-effect\`.
|
|
26
26
|
7. Generate only when the user wants a new asset and auth is available. Generate is not supported for \`template\`.
|
|
27
27
|
8. Upload only when publishing is requested.
|
|
28
28
|
|