@drawcall/market 0.1.67 → 0.1.69

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/README.md CHANGED
@@ -125,6 +125,7 @@ The Node-only filesystem `install` (download + write + `package.json` merge + `s
125
125
  ```bash
126
126
  npx @drawcall/market install my-model # resolve + install by name
127
127
  npx @drawcall/market list # list locally installed assets
128
+ npx @drawcall/market list --files # include installed file paths
128
129
  npx @drawcall/market search robot --type model
129
130
  npx @drawcall/market preview my-model # save the preview image
130
131
  npx @drawcall/market pack ./my-model.zip --out ./my-model.packed.zip
@@ -136,6 +137,6 @@ Reads (`install`, `list`, `search`, `preview`) work without auth; `pack` is offl
136
137
 
137
138
  `pack` creates the same asset zip that `upload` sends. It runs offline, infers template packing from a root `package.json`, and accepts `--type` only when you need to override that inference. `upload` calls the shared pack step internally, then publishes.
138
139
 
139
- `list` is an offline local inventory command. It reads `.drawcall/market-lock.json` from the nearest package root and prints exact installed asset names, versions, types, and installed file paths.
140
+ `list` is an offline local inventory command. It reads `.drawcall/market-lock.json` from the nearest package root and prints exact installed asset names, versions, and types. Add `--files` for installed file paths.
140
141
 
141
142
  Run `npx @drawcall/market skill` to print the agent workflow guidance, or `npx @drawcall/market --help` for the full command list.
package/dist/cli.js CHANGED
@@ -87,10 +87,12 @@ program
87
87
  program
88
88
  .command('list')
89
89
  .description('List locally installed assets')
90
+ .option('--files', 'Include installed file paths', false)
90
91
  .option('--cwd <dir>', 'Project directory')
91
92
  .action(async (opts) => {
92
93
  await listCommand({
93
94
  cwd: opts.cwd,
95
+ files: opts.files,
94
96
  });
95
97
  });
96
98
  program
package/dist/cli.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;A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AAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;IAClD,MAAM,IAAI,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAA;IAElD,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,4BAA4B,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;IAC3E,IAAI,CAAC,MAAM,CAAC,YAAY;QAAE,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAA;IAC5F,OAAO,MAAM,CAAC,YAAY,CAAA;AAC5B,CAAC"}
@@ -58,7 +58,7 @@ async function installGenerated(client, generated, ctx) {
58
58
  save: true,
59
59
  };
60
60
  const resolution = await resolve(client.asset, [request]);
61
- await runInstall(client, resolution, {
61
+ const result = await runInstall(client, resolution, {
62
62
  cwd: ctx.cwd,
63
63
  baseUrl: ctx.baseUrl,
64
64
  authToken: ctx.authToken,
@@ -67,7 +67,7 @@ async function installGenerated(client, generated, ctx) {
67
67
  ctx.spinner.text = message;
68
68
  },
69
69
  });
70
- return generatedInstallResult(generated.assetName, generated.version);
70
+ return generatedInstallResult(result);
71
71
  }
72
72
  export function startSpinner(text) {
73
73
  return ora({
@@ -1 +1 @@
1
- {"version":3,"file":"generate.js","sourceRoot":"","sources":["../../src/commands/generate.ts"],"names":[],"mappings":"AAAA,OAAO,GAAiB,MAAM,KAAK,CAAA;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,iBAAiB,EAAoB,MAAM,gBAAgB,CAAA;AAEpG,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,eAAe,CAAA;AACrD,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AAU9E,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,WAAmB,EACnB,IAA4B;IAE5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,SAAiD,EACjD,GAAmB;IAEnB,GAAG,CAAC,OAAO,CAAC,IAAI,GAAG,aAAa,SAAS,CAAC,SAAS,IAAI,SAAS,CAAC,OAAO,EAAE,CAAA;IAC1E,MAAM,OAAO,GAAG;QACd,IAAI,EAAE,SAAS,CAAC,SAAS;QACzB,KAAK,EAAE,SAAS,CAAC,OAAO;QACxB,SAAS,EAAE,IAAI,SAAS,CAAC,OAAO,EAAE;QAClC,IAAI,EAAE,IAAI;KACX,CAAA;IACD,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IACzD,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,MAAM,EAAE,UAAU,EAAE;QAClD,GAAG,EAAE,GAAG,CAAC,GAAG;QACZ,OAAO,EAAE,GAAG,CAAC,OAAO;QACpB,SAAS,EAAE,GAAG,CAAC,SAAS;QACxB,YAAY,EAAE,CAAC,OAAO,CAAC;QACvB,UAAU,EAAE,CAAC,OAAO,EAAE,EAAE;YACtB,GAAG,CAAC,OAAO,CAAC,IAAI,GAAG,OAAO,CAAA;QAC5B,CAAC;KACF,CAAC,CAAA;IACF,OAAO,sBAAsB,CAAC,MAAM,CAAC,CAAA;AACvC,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,IAAY;IACvC,OAAO,GAAG,CAAC;QACT,IAAI;QACJ,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;QACxC,QAAQ,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;KAChC,CAAC,CAAC,KAAK,EAAE,CAAA;AACZ,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export interface ListCommandOptions {
2
2
  cwd?: string;
3
+ files?: boolean;
3
4
  }
4
5
  export interface InstalledAssetListing {
5
6
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../src/commands/list.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,kBAAkB;IACjC,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,EAAE,CAAA;CAChB;AAED,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,qBAAqB,EAAE,CAAA;CAChC;AAED,wBAAsB,WAAW,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAGzE;AAED,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,MAAM,GAAG,SAAS,GACtB,OAAO,CAAC,yBAAyB,CAAC,CAiBpC"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../src/commands/list.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,kBAAkB;IACjC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,EAAE,CAAA;CAChB;AAED,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,qBAAqB,EAAE,CAAA;CAChC;AAED,wBAAsB,WAAW,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAGzE;AAED,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,MAAM,GAAG,SAAS,GACtB,OAAO,CAAC,yBAAyB,CAAC,CAiBpC"}
@@ -4,7 +4,7 @@ import { MARKET_LOCK_PATH, readMarketLock } from '../market-lock.js';
4
4
  import { listResult } from '../output.js';
5
5
  export async function listCommand(opts) {
6
6
  const result = await listInstalledAssets(opts.cwd);
7
- console.log(listResult(result));
7
+ console.log(listResult(result, { files: opts.files }));
8
8
  }
9
9
  export async function listInstalledAssets(cwd) {
10
10
  const projectRoot = await findInstallRoot(cwd ?? process.cwd());
@@ -1 +1 @@
1
- {"version":3,"file":"list.js","sourceRoot":"","sources":["../../src/commands/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAA;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAmBzC,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,IAAwB;IACxD,MAAM,MAAM,GAAG,MAAM,mBAAmB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAClD,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAA;AACjC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,GAAuB;IAEvB,MAAM,WAAW,GAAG,MAAM,eAAe,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAA;IAC/D,MAAM,IAAI,GAAG,MAAM,cAAc,CAAC,WAAW,CAAC,CAAA;IAC9C,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC;SACvC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;QACvB,IAAI;QACJ,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,KAAK,EAAE,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CA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Q,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACnC;IAAE,MAAM,EAAE,SAAS,CAAA;CAAE,CAAA;AAIzB,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,YAAY,EACpB,KAAK,EAAE,MAAM,EACb,IAAI,GAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CAAO,GACvE,OAAO,CAAC,WAAW,CAAC,CAoBtB"}
package/dist/generate.js CHANGED
@@ -6,12 +6,9 @@ export class GenerateError extends Error {
6
6
  }
7
7
  // How often the CLI polls a running job.
8
8
  const POLL_INTERVAL_MS = 4_000;
9
- // How long one `generate` / `generate install` call blocks-and-polls before handing back control.
10
- // The command does the waiting (the agent never sleeps between checks). When the window elapses the
11
- // call returns and the caller just runs `generate install <jobId>` again, which picks up the SAME
12
- // server-side job where this left off — so no asset type needs to be flagged "slow" ahead of time;
13
- // anything that outlasts one window simply continues on the next call.
14
- const WINDOW_MS = 120_000;
9
+ // Wait through normal provider latency while staying below OpenCode's ten-minute Bash ceiling.
10
+ // An unusually long job remains resumable with `generate install <jobId>`.
11
+ const WINDOW_MS = 8 * 60_000;
15
12
  // Start a generation. Fast providers answer `completed` inline; slow, job-based providers answer
16
13
  // `pending` with a jobId to poll (see `waitForGeneration` / `generate install`).
17
14
  export function startGeneration(client, input) {
@@ -1 +1 @@
1
- {"version":3,"file":"generate.js","sourceRoot":"","sources":["../src/generate.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,aAAc,SAAQ,KAAK;IACtC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,eAAe,CAAA;IAC7B,CAAC;CACF;AASD,yCAAyC;AACzC,MAAM,gBAAgB,GAAG,KAAK,CAAA;AAC9B,kGAAkG;AAClG,oGAAoG;AACpG,kGAAkG;AAClG,mGAAmG;AACnG,uE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MAAM,GAAG,IAAI,CAAC,UAAU,IAAI,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAA;IAC5C,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;IAC5B,SAAS,CAAC;QACR,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;QAClD,IAAI,MAAM,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;YAClC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,CAAA;QACtF,CAAC;QACD,IAAI,MAAM,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;YAC/B,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAA;QAClD,CAAC;QACD,MAAM,SAAS,GAAG,QAAQ,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC,CAAA;QACrD,IAAI,SAAS,IAAI,CAAC,EAAE,CAAC;YACnB,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,CAAA;QAC9B,CAAC;QACD,MAAM,CAAC,kBAAkB,CAAC,CAAA;QAC1B,mGAAmG;QACnG,MAAM,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAC,CAAA;IACpD,CAAC;AACH,CAAC;AAED,SAAS,KAAK,CAAC,EAAU;IACvB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAA;AAC1D,CAAC"}
package/dist/output.d.ts CHANGED
@@ -12,9 +12,11 @@ export declare function searchSummary(input: {
12
12
  total: number;
13
13
  }): string;
14
14
  export declare function assetSearchResultLine(item: AssetSearchResult): string;
15
- export declare function installResult(result: InstallResult, installMetadata?: Record<string, AssetInstallMetadata>): string;
16
- export declare function listResult(result: ListInstalledAssetsResult): string;
17
- export declare function generatedInstallResult(name: string, version: string): string;
15
+ export declare function installResult(result: InstallResult, installMetadata?: Record<string, AssetInstallMetadata>, heading?: string): string;
16
+ export declare function listResult(result: ListInstalledAssetsResult, opts?: {
17
+ files?: boolean;
18
+ }): string;
19
+ export declare function generatedInstallResult(result: InstallResult): string;
18
20
  export declare function generationStartedResult(jobId: string): string;
19
21
  export declare function generationRunningResult(jobId: string): string;
20
22
  export declare function uploadResult(name: string, version: string): string;
@@ -1 +1 @@
1
- {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../src/output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAC5E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAEtE;AAED,wBAAgB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,UAAU,GAAG,YAAY,CAE1E;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,iBAAiB,EAAE,OAAO,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd,GAAG,MAAM,CAOT;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAKrE;AAED,wBAAgB,aAAa,CAC3B,MAAM,EAAE,aAAa,EACrB,eAAe,GAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAM,GACzD,MAAM,CAuCR;AAED,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AAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAEhF;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAErE;AAED,wBAAgB,YAAY,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAExD;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,SAAK,GAAG,MAAM,CAGvD"}
package/dist/output.js CHANGED
@@ -16,14 +16,11 @@ export function assetSearchResultLine(item) {
16
16
  const description = item.description ? ` | ${normalizeInline(item.description)}` : '';
17
17
  return `- ${assetVersionRef(item.name, item.latestVersion)} | ${item.type} | ${assetApproval(item.approved)}${description}`;
18
18
  }
19
- export function installResult(result, installMetadata = {}) {
19
+ export function installResult(result, installMetadata = {}, heading = 'Installed:') {
20
20
  const npmDependencies = Object.entries(result.npmDependencies);
21
- const lines = ['Installed:'];
21
+ const lines = [heading];
22
22
  for (const asset of result.assets) {
23
23
  lines.push(assetLine(asset));
24
- if (asset.description) {
25
- lines.push(...block(' description: ', asset.description));
26
- }
27
24
  lines.push(...assetFileLines(asset.files));
28
25
  const message = installMetadata[asset.type]?.installMessage;
29
26
  if (message) {
@@ -46,13 +43,15 @@ export function installResult(result, installMetadata = {}) {
46
43
  }
47
44
  return lines.join('\n');
48
45
  }
49
- export function listResult(result) {
46
+ export function listResult(result, opts = {}) {
50
47
  if (result.assets.length === 0) {
51
48
  return 'No installed assets found.';
52
49
  }
53
50
  const lines = [`Installed assets: ${result.assets.length}`];
54
51
  for (const asset of result.assets) {
55
- lines.push(assetLine(asset), ...assetFileLines(asset.files));
52
+ lines.push(assetLine(asset));
53
+ if (opts.files)
54
+ lines.push(...assetFileLines(asset.files));
56
55
  }
57
56
  return lines.join('\n');
58
57
  }
@@ -85,14 +84,14 @@ function block(label, message, width = 68) {
85
84
  wrapped.push(line);
86
85
  return wrapped.map((text, index) => `${index === 0 ? label : hang}${text}`);
87
86
  }
88
- export function generatedInstallResult(name, version) {
89
- return `Generated and installed ${assetVersionRef(name, version)}`;
87
+ export function generatedInstallResult(result) {
88
+ return installResult(result, {}, 'Generated and installed:');
90
89
  }
91
90
  // Printed when `generate` returns before the job finished: it keeps running server-side and the
92
91
  // caller continues it with `generate install`, which installs the asset once it is ready.
93
92
  export function generationStartedResult(jobId) {
94
93
  return [
95
- 'Still generating after a couple of minutes — it continues in the background.',
94
+ 'Still generating after the normal wait — it continues in the background.',
96
95
  `Run this to pick up where it left off and install when ready: market generate install ${jobId}`,
97
96
  ].join('\n');
98
97
  }
@@ -1 +1 @@
1
- {"version":3,"file":"output.js","sourceRoot":"","sources":["../src/output.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,eAAe,CAAC,IAAY,EAAE,OAAgB;IAC5D,OAAO,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,IAAI,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AAC9C,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,QAAiB;IAC7C,OAAO,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY,CAAA;AAC7C,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,KAM7B;IACC,MAAM,QAAQ,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,UAAU,CAAA;IAC7E,MAAM,KAAK,GAAG,UAAU,KAAK,CAAC,KAAK,UAAU,KAAK,CAAC,IAAI,aAAa,QAAQ,EAAE,CAAA;IAC9E,IAAI,KAAK,CAAC,KAAK,KAAK,CAAC,EAAE,CAAC;QACtB,OAAO,eAAe,KAAK,EAAE,CAAA;IAC/B,CAAC;IACD,OAAO,YAAY,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,KAAK,IAAI,KAAK,EAAE,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AA;AAC7B,CAAC;AAED,SAAS,MAAM,CAAC,KAAe,EAAE,MAAc;IAC7C,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,MAAM,GAAG,IAAI,EAAE,CAAC,CAAA;AAChD,CAAC;AAED,SAAS,eAAe,CAAC,KAAa,EAAE,IAA4B;IAClE,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IACpC,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAA;IACnC,OAAO;QACL,GAAG,KAAK,GAAG;QACX,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,IAAI,KAAK,KAAK,EAAE,CAAC;KAChG,CAAA;AACH,CAAC"}
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\nRun the CLI as `npx @drawcall/market <command>` \u2014 that form works everywhere, including an ephemeral build sandbox where nothing is installed globally (a bare `market` is on your PATH only after a global install, so do not assume it). Keep commands short and read the summary lines.\n\n## Quick Start\n\n```sh\nnpx @drawcall/market search \"wooden chair\" --type model --limit 3\nnpx @drawcall/market install wooden-chair --cwd \"$PWD\"\nnpx @drawcall/market list --cwd \"$PWD\"\nnpx @drawcall/market preview wooden-chair --out /tmp/wooden-chair.png\nnpx @drawcall/market pack scene.zip --out scene.packed.zip\n```\n\n## Workflow\n\n1. In an existing repo, run `npx @drawcall/market list --cwd \"$PWD\"` first to see installed local assets from `.drawcall/market-lock.json`. Use the listed names with `preview <name>` when you want preview images.\n2. Search first unless the user already gave an exact asset name. `search` requires `--type`; use `model` unless the user names another supported type: `humanoid-model`, `texture`, `humanoid-animation`, `template`, `sound-effect`, `background-music`, `environment`, or `flipbook`.\n3. Use `--limit 1` for lookup, `--limit 3` for choice. Search caps at 5 and prints full descriptions.\n4. `install` takes zero or more exact asset names (optionally `name@range`). With names, it installs those assets; with no names, it installs `assetDependencies` from the nearest `package.json`. It does not search or generate. Find names with `search` first. No `--type` is needed \u2014 asset names are unique. Use `--force` only when the user agrees to overwrite changed local files.\n5. `preview <name>` saves the preview image; no `--type` is needed. Not every type has previews (e.g. `humanoid-animation`, `template`, `sound-effect`, `background-music`); the CLI reports when one is unavailable.\n6. Use `--unapproved` only when the user asks for unapproved/private/admin assets. Do not install unapproved assets without explicit acceptance.\n7. `generate --type <type> \"<prompt>\"` creates and installs a generated asset when that asset type has a generator; it requires login. Currently supported generated types are `sound-effect`, `background-music`, `flipbook`, `humanoid-model`, and `environment` (a fitting HDRI sky + equirectangular background, generated in ~1-2 min). Generation is provider-specific: prompt style, generated files, indexing fields, and install layout are owned by the asset type. If a type does not support generation yet, the CLI reports unsupported generation. Add `--access public` to publish the generated asset publicly, or `--access private` to keep it owner-only; when omitted the server defaults to private if you hold the `market:private` entitlement, else public (`--access private` requires that entitlement). `generate` waits for the asset and installs it \u2014 one command for quick types. For a long one (e.g. `humanoid-model`, >2 min) the call returns after ~2 min with a job id instead of hanging your shell; run `npx @drawcall/market generate install <jobId>` to continue \u2014 it resumes the SAME job where the last call left off and installs when ready. Just re-run `generate install <jobId>` until it prints \"Generated and installed\" (it exits 0 while still generating, 1 on failure). No type is flagged \"slow\" \u2014 anything that outlasts one wait just continues on the next call.\n8. Use `pack <zip>` to create the same Market asset zip that `upload` sends. `pack` runs offline, infers template packing from a root `package.json`, and accepts `--type` only when you need to override that inference. `upload` runs the shared pack step internally, then publishes: `npx @drawcall/market upload <name> <zip> \"<description>\" --type <type>`. Declare dependencies with repeatable flags on either command: `--npm name@range`, `--asset name@range`, `--skill label=source`. Template pack/upload also reads root `package.json.assetDependencies`; `--asset` flags are additive and must not conflict. Template pack/upload omits installed dependency files that still match the installed dependency's canonical content (its file hashes are fetched from the server, not stored locally), so edited local files stay in the template; this omit step needs the API, but simple non-template packs stay offline. A skill source is a `skills add` argument: a whole repo (`owner/repo` or a git URL), a single skill via the full URL form `https://github.com/owner/repo/tree/<branch>/<subpath>` (the `tree/<branch>/<subpath>` shorthand needs the full URL, not `owner/repo`), or a local path to a skill directory inside the zip. Example: `npx @drawcall/market upload my-scene scene.zip \"A scene\" --type model --npm three@^0.178.0 --skill web-design=https://github.com/vercel-labs/agent-skills/tree/main/skills/web-design-guidelines`.\n9. Installed `environment` assets contain `public/environment/<name>.hdr` for Three.js IBL lighting and `public/environment/<name>-background.webp` for the visible equirectangular background. Use `npx @drawcall/market preview` to fetch the preview image separately.\n10. Installed `flipbook` assets contain `public/flipbook/<name>.ktx2`. Render them with `@drawcall/flipbook`'s `Flipbook` class and Three.js `KTX2Loader` for Basis-compressed files; `preview` fetches the middle frame from the flipbook.\n\n## Humanoid animations\n\n`humanoid-animation` assets are single-clip GLBs \u2014 one motion per asset (one idle, one walk-forward, one jump, one attack) on a normalized skeleton that retargets onto any humanoid, whatever its role. A behaving character is therefore a *set* of clips, not one asset: from what the character actually does, budget the clips it needs \u2014 an idle, its locomotion (walk/run, often split by direction: fwd/bwd/left/right), and one clip per distinct action and reaction it performs \u2014 then search for each separately.\n\n`humanoid-model` assets share that same normalized skeleton and are authored to a **consistent real-world scale** \u2014 they come in at roughly the same height as each other. So you do **not** need to rescale one humanoid to match another (player vs. enemy vs. NPC); dropped in as-is they already stand at a consistent size. Avoid the trap of measuring one character's height and scaling others to it \u2014 besides being unnecessary, measuring a rigged/animated character's bounding box is unreliable and produces giants (see the `math` skill on `Box3` and skinned meshes). If you ever do need a deliberate size difference (a boss, a child NPC), apply an explicit chosen multiplier, not a measured one.\n\nSearch one motion per query, named by the motion, because results rank by keyword overlap: a query naming several motions at once is dominated by whichever word matches the most assets and buries the others, so real clips look like a gap when they exist. Names describe the motion, not the character \u2014 so search the motion (`\"walk forward\"`, `\"reload\"`, `\"jump\"`), not the role (`\"player run\"`, `\"boss attack\"`). If a motion finds nothing, retry with synonyms (run/jog/sprint, attack/swing/strike).\n\n## Output\n\nCommands print concise, line-oriented 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:\n- wooden-chair@1.0.0 (asset)\n description: Low-poly wooden chair\n files:\n public/model\n \u2514\u2500 wooden-chair.glb\n- three@^0.178.0 (npm)\n- web-design \u2190 https://github.com/vercel-labs/agent-skills/tree/main/skills/web-design-guidelines (skill)\nInstalled assets: 1\n- wooden-chair@1.0.0 (model)\n files:\n public/model\n \u2514\u2500 wooden-chair.glb\nSaved preview for wooden-chair@1.0.0: /tmp/wooden-chair.png\n```\n\nAssets may also declare `skill` dependencies, installed for you via the `skills` CLI (`skills add`) during `install`. Sources are either a GitHub/git ref or a local path to a skill directory shipped inside the asset. This requires `npx` to be available.\n\nInstalled non-template assets are saved to `package.json.assetDependencies`; templates are scaffolds and are not saved as project asset dependencies. Exact installed versions and file paths are recorded in `.drawcall/market-lock.json`; file content hashes now come from the server (`asset.fileManifest`), not the lock.\n\n`list` is offline: it reads `.drawcall/market-lock.json` from the nearest package root and prints exact installed names, versions, types, and installed file paths.\n\nIf search returns no results, try one broader noun phrase. If a command returns `Error: Not logged in...`, ask before running `npx @drawcall/market login`.\n";
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\nRun commands as `npx @drawcall/market <command>`; do not assume a global `market` binary. Use only the parts of this guide needed for the task.\n\n## Choose and install\n\nSearch one concrete role or motion at a time:\n\n`npx @drawcall/market search \"<query>\" --type <type> --limit 3`\n\nUse `--limit 1` for an exact lookup and `--limit 3` for a choice. Search requires one of: `model`, `humanoid-model`, `texture`, `humanoid-animation`, `template`, `sound-effect`, `background-music`, `environment`, or `flipbook`. It prints full descriptions. If nothing fits, try one broader noun phrase.\n\nPreview a finalist when the type supports it:\n\n`npx @drawcall/market preview <name> --out /tmp/<name>.png`\n\nInstall exact refs together in one call; names need no `--type`:\n\n`npx @drawcall/market install <name@range...> --cwd \"$PWD\"`\n\nInstall prints the exact files it wrote. It never searches or generates. With no refs it installs `assetDependencies` from the nearest `package.json`. Assets may install declared skill dependencies with `npx skills add`. Use `--force` only with permission to overwrite changed local files.\n\n`list --cwd \"$PWD\"` is an offline, compact inventory from `.drawcall/market-lock.json`. Add `--files` only when exact paths for previously installed assets are needed; fresh install and generation already print their paths.\n\n## Generate\n\n`npx @drawcall/market generate --type <type> \"<description>\"` creates and installs one asset. Supported types are `sound-effect`, `background-music`, `flipbook`, `humanoid-model`, and `environment`. It requires login and normally waits through provider generation before printing exact installed paths. If an unusually long job returns a continuation, run the printed `generate install <jobId>`; it resumes the same server-side job rather than generating again.\n\nAdd `--access public` or `--access private` when visibility matters. Omitted access follows the account entitlement; private generation requires `market:private`.\n\n## Asset behavior\n\nAn installed `environment` provides `public/environment/<name>.hdr` for lighting and `<name>-background.webp` for the visible background. A `flipbook` provides `public/flipbook/<name>.ktx2`; render it with `@drawcall/flipbook` and Three.js `KTX2Loader`.\n\n`humanoid-animation` assets are single motion clips on the normalized skeleton. Budget idle, needed locomotion, actions, reactions, and death separately. Search the motion (for example `walk forward`, `jump`, or `sword strike`), not the character role; use motion synonyms if needed. `humanoid-model` assets share a consistent real-world scale, so do not derive cross-character scale from animated bounding boxes. Use an explicit multiplier only for an intentional size difference.\n\n## Publish only when asked\n\nUse `pack <source> --out <zip>` to create a Market zip and `upload <name> <source> \"<description>\" --type <type>` to publish it. Both accept repeatable `--npm name@range`, `--asset name@range`, and `--skill label=source` dependencies. Template packing reads root `assetDependencies` and may use the API to omit unchanged installed dependency files. A skill source is `owner/repo`, a git URL, a full GitHub `tree/<branch>/<subpath>` URL, or a local skill directory inside the zip. Use the command's `--help` for syntax.\n\nUse `--unapproved` only when explicitly requested. Do not install an unapproved asset without acceptance. If login is required, ask before running `npx @drawcall/market login`.\n";
2
2
  //# sourceMappingURL=skill.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"skill.d.ts","sourceRoot":"","sources":["../src/skill.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,mnRAsEvB,CAAA"}
1
+ {"version":3,"file":"skill.d.ts","sourceRoot":"","sources":["../src/skill.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,8kHA8CvB,CAAA"}
package/dist/skill.js CHANGED
@@ -5,68 +5,44 @@ description: Find, preview, install, generate, and publish Drawcall Market asset
5
5
 
6
6
  # Drawcall Market
7
7
 
8
- Run the CLI as \`npx @drawcall/market <command>\` that form works everywhere, including an ephemeral build sandbox where nothing is installed globally (a bare \`market\` is on your PATH only after a global install, so do not assume it). Keep commands short and read the summary lines.
8
+ Run commands as \`npx @drawcall/market <command>\`; do not assume a global \`market\` binary. Use only the parts of this guide needed for the task.
9
9
 
10
- ## Quick Start
10
+ ## Choose and install
11
11
 
12
- \`\`\`sh
13
- npx @drawcall/market search "wooden chair" --type model --limit 3
14
- npx @drawcall/market install wooden-chair --cwd "$PWD"
15
- npx @drawcall/market list --cwd "$PWD"
16
- npx @drawcall/market preview wooden-chair --out /tmp/wooden-chair.png
17
- npx @drawcall/market pack scene.zip --out scene.packed.zip
18
- \`\`\`
12
+ Search one concrete role or motion at a time:
19
13
 
20
- ## Workflow
14
+ \`npx @drawcall/market search "<query>" --type <type> --limit 3\`
21
15
 
22
- 1. In an existing repo, run \`npx @drawcall/market list --cwd "$PWD"\` first to see installed local assets from \`.drawcall/market-lock.json\`. Use the listed names with \`preview <name>\` when you want preview images.
23
- 2. Search first unless the user already gave an exact asset name. \`search\` requires \`--type\`; use \`model\` unless the user names another supported type: \`humanoid-model\`, \`texture\`, \`humanoid-animation\`, \`template\`, \`sound-effect\`, \`background-music\`, \`environment\`, or \`flipbook\`.
24
- 3. Use \`--limit 1\` for lookup, \`--limit 3\` for choice. Search caps at 5 and prints full descriptions.
25
- 4. \`install\` takes zero or more exact asset names (optionally \`name@range\`). With names, it installs those assets; with no names, it installs \`assetDependencies\` from the nearest \`package.json\`. It does not search or generate. Find names with \`search\` first. No \`--type\` is needed — asset names are unique. Use \`--force\` only when the user agrees to overwrite changed local files.
26
- 5. \`preview <name>\` saves the preview image; no \`--type\` is needed. Not every type has previews (e.g. \`humanoid-animation\`, \`template\`, \`sound-effect\`, \`background-music\`); the CLI reports when one is unavailable.
27
- 6. Use \`--unapproved\` only when the user asks for unapproved/private/admin assets. Do not install unapproved assets without explicit acceptance.
28
- 7. \`generate --type <type> "<prompt>"\` creates and installs a generated asset when that asset type has a generator; it requires login. Currently supported generated types are \`sound-effect\`, \`background-music\`, \`flipbook\`, \`humanoid-model\`, and \`environment\` (a fitting HDRI sky + equirectangular background, generated in ~1-2 min). Generation is provider-specific: prompt style, generated files, indexing fields, and install layout are owned by the asset type. If a type does not support generation yet, the CLI reports unsupported generation. Add \`--access public\` to publish the generated asset publicly, or \`--access private\` to keep it owner-only; when omitted the server defaults to private if you hold the \`market:private\` entitlement, else public (\`--access private\` requires that entitlement). \`generate\` waits for the asset and installs it — one command for quick types. For a long one (e.g. \`humanoid-model\`, >2 min) the call returns after ~2 min with a job id instead of hanging your shell; run \`npx @drawcall/market generate install <jobId>\` to continue — it resumes the SAME job where the last call left off and installs when ready. Just re-run \`generate install <jobId>\` until it prints "Generated and installed" (it exits 0 while still generating, 1 on failure). No type is flagged "slow" — anything that outlasts one wait just continues on the next call.
29
- 8. Use \`pack <zip>\` to create the same Market asset zip that \`upload\` sends. \`pack\` runs offline, infers template packing from a root \`package.json\`, and accepts \`--type\` only when you need to override that inference. \`upload\` runs the shared pack step internally, then publishes: \`npx @drawcall/market upload <name> <zip> "<description>" --type <type>\`. Declare dependencies with repeatable flags on either command: \`--npm name@range\`, \`--asset name@range\`, \`--skill label=source\`. Template pack/upload also reads root \`package.json.assetDependencies\`; \`--asset\` flags are additive and must not conflict. Template pack/upload omits installed dependency files that still match the installed dependency's canonical content (its file hashes are fetched from the server, not stored locally), so edited local files stay in the template; this omit step needs the API, but simple non-template packs stay offline. A skill source is a \`skills add\` argument: a whole repo (\`owner/repo\` or a git URL), a single skill via the full URL form \`https://github.com/owner/repo/tree/<branch>/<subpath>\` (the \`tree/<branch>/<subpath>\` shorthand needs the full URL, not \`owner/repo\`), or a local path to a skill directory inside the zip. Example: \`npx @drawcall/market upload my-scene scene.zip "A scene" --type model --npm three@^0.178.0 --skill web-design=https://github.com/vercel-labs/agent-skills/tree/main/skills/web-design-guidelines\`.
30
- 9. Installed \`environment\` assets contain \`public/environment/<name>.hdr\` for Three.js IBL lighting and \`public/environment/<name>-background.webp\` for the visible equirectangular background. Use \`npx @drawcall/market preview\` to fetch the preview image separately.
31
- 10. Installed \`flipbook\` assets contain \`public/flipbook/<name>.ktx2\`. Render them with \`@drawcall/flipbook\`'s \`Flipbook\` class and Three.js \`KTX2Loader\` for Basis-compressed files; \`preview\` fetches the middle frame from the flipbook.
16
+ Use \`--limit 1\` for an exact lookup and \`--limit 3\` for a choice. Search requires one of: \`model\`, \`humanoid-model\`, \`texture\`, \`humanoid-animation\`, \`template\`, \`sound-effect\`, \`background-music\`, \`environment\`, or \`flipbook\`. It prints full descriptions. If nothing fits, try one broader noun phrase.
32
17
 
33
- ## Humanoid animations
18
+ Preview a finalist when the type supports it:
34
19
 
35
- \`humanoid-animation\` assets are single-clip GLBs — one motion per asset (one idle, one walk-forward, one jump, one attack) on a normalized skeleton that retargets onto any humanoid, whatever its role. A behaving character is therefore a *set* of clips, not one asset: from what the character actually does, budget the clips it needs — an idle, its locomotion (walk/run, often split by direction: fwd/bwd/left/right), and one clip per distinct action and reaction it performs — then search for each separately.
20
+ \`npx @drawcall/market preview <name> --out /tmp/<name>.png\`
36
21
 
37
- \`humanoid-model\` assets share that same normalized skeleton and are authored to a **consistent real-world scale** — they come in at roughly the same height as each other. So you do **not** need to rescale one humanoid to match another (player vs. enemy vs. NPC); dropped in as-is they already stand at a consistent size. Avoid the trap of measuring one character's height and scaling others to it — besides being unnecessary, measuring a rigged/animated character's bounding box is unreliable and produces giants (see the \`math\` skill on \`Box3\` and skinned meshes). If you ever do need a deliberate size difference (a boss, a child NPC), apply an explicit chosen multiplier, not a measured one.
22
+ Install exact refs together in one call; names need no \`--type\`:
38
23
 
39
- Search one motion per query, named by the motion, because results rank by keyword overlap: a query naming several motions at once is dominated by whichever word matches the most assets and buries the others, so real clips look like a gap when they exist. Names describe the motion, not the character — so search the motion (\`"walk forward"\`, \`"reload"\`, \`"jump"\`), not the role (\`"player run"\`, \`"boss attack"\`). If a motion finds nothing, retry with synonyms (run/jog/sprint, attack/swing/strike).
24
+ \`npx @drawcall/market install <name@range...> --cwd "$PWD"\`
40
25
 
41
- ## Output
26
+ Install prints the exact files it wrote. It never searches or generates. With no refs it installs \`assetDependencies\` from the nearest \`package.json\`. Assets may install declared skill dependencies with \`npx skills add\`. Use \`--force\` only with permission to overwrite changed local files.
42
27
 
43
- Commands print concise, line-oriented summaries:
28
+ \`list --cwd "$PWD"\` is an offline, compact inventory from \`.drawcall/market-lock.json\`. Add \`--files\` only when exact paths for previously installed assets are needed; fresh install and generation already print their paths.
44
29
 
45
- \`\`\`text
46
- Results: 2/8 query="wooden chair" type=model approval=approved
47
- - wooden-chair@1.0.0 | model | approved | Low-poly wooden chair
48
- Installed:
49
- - wooden-chair@1.0.0 (asset)
50
- description: Low-poly wooden chair
51
- files:
52
- public/model
53
- └─ wooden-chair.glb
54
- - three@^0.178.0 (npm)
55
- - web-design ← https://github.com/vercel-labs/agent-skills/tree/main/skills/web-design-guidelines (skill)
56
- Installed assets: 1
57
- - wooden-chair@1.0.0 (model)
58
- files:
59
- public/model
60
- └─ wooden-chair.glb
61
- Saved preview for wooden-chair@1.0.0: /tmp/wooden-chair.png
62
- \`\`\`
30
+ ## Generate
63
31
 
64
- Assets may also declare \`skill\` dependencies, installed for you via the \`skills\` CLI (\`skills add\`) during \`install\`. Sources are either a GitHub/git ref or a local path to a skill directory shipped inside the asset. This requires \`npx\` to be available.
32
+ \`npx @drawcall/market generate --type <type> "<description>"\` creates and installs one asset. Supported types are \`sound-effect\`, \`background-music\`, \`flipbook\`, \`humanoid-model\`, and \`environment\`. It requires login and normally waits through provider generation before printing exact installed paths. If an unusually long job returns a continuation, run the printed \`generate install <jobId>\`; it resumes the same server-side job rather than generating again.
65
33
 
66
- Installed non-template assets are saved to \`package.json.assetDependencies\`; templates are scaffolds and are not saved as project asset dependencies. Exact installed versions and file paths are recorded in \`.drawcall/market-lock.json\`; file content hashes now come from the server (\`asset.fileManifest\`), not the lock.
34
+ Add \`--access public\` or \`--access private\` when visibility matters. Omitted access follows the account entitlement; private generation requires \`market:private\`.
67
35
 
68
- \`list\` is offline: it reads \`.drawcall/market-lock.json\` from the nearest package root and prints exact installed names, versions, types, and installed file paths.
36
+ ## Asset behavior
69
37
 
70
- If search returns no results, try one broader noun phrase. If a command returns \`Error: Not logged in...\`, ask before running \`npx @drawcall/market login\`.
38
+ An installed \`environment\` provides \`public/environment/<name>.hdr\` for lighting and \`<name>-background.webp\` for the visible background. A \`flipbook\` provides \`public/flipbook/<name>.ktx2\`; render it with \`@drawcall/flipbook\` and Three.js \`KTX2Loader\`.
39
+
40
+ \`humanoid-animation\` assets are single motion clips on the normalized skeleton. Budget idle, needed locomotion, actions, reactions, and death separately. Search the motion (for example \`walk forward\`, \`jump\`, or \`sword strike\`), not the character role; use motion synonyms if needed. \`humanoid-model\` assets share a consistent real-world scale, so do not derive cross-character scale from animated bounding boxes. Use an explicit multiplier only for an intentional size difference.
41
+
42
+ ## Publish only when asked
43
+
44
+ Use \`pack <source> --out <zip>\` to create a Market zip and \`upload <name> <source> "<description>" --type <type>\` to publish it. Both accept repeatable \`--npm name@range\`, \`--asset name@range\`, and \`--skill label=source\` dependencies. Template packing reads root \`assetDependencies\` and may use the API to omit unchanged installed dependency files. A skill source is \`owner/repo\`, a git URL, a full GitHub \`tree/<branch>/<subpath>\` URL, or a local skill directory inside the zip. Use the command's \`--help\` for syntax.
45
+
46
+ Use \`--unapproved\` only when explicitly requested. Do not install an unapproved asset without acceptance. If login is required, ask before running \`npx @drawcall/market login\`.
71
47
  `;
72
48
  //# sourceMappingURL=skill.js.map
package/dist/skill.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"skill.js","sourceRoot":"","sources":["../src/skill.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsE1B,CAAA"}
1
+ {"version":3,"file":"skill.js","sourceRoot":"","sources":["../src/skill.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8C1B,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drawcall/market",
3
- "version": "0.1.67",
3
+ "version": "0.1.69",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/drawcall-ai/market",
@@ -5,66 +5,42 @@ description: Find, preview, install, generate, and publish Drawcall Market asset
5
5
 
6
6
  # Drawcall Market
7
7
 
8
- Run the CLI as `npx @drawcall/market <command>` that form works everywhere, including an ephemeral build sandbox where nothing is installed globally (a bare `market` is on your PATH only after a global install, so do not assume it). Keep commands short and read the summary lines.
8
+ Run commands as `npx @drawcall/market <command>`; do not assume a global `market` binary. Use only the parts of this guide needed for the task.
9
9
 
10
- ## Quick Start
10
+ ## Choose and install
11
11
 
12
- ```sh
13
- npx @drawcall/market search "wooden chair" --type model --limit 3
14
- npx @drawcall/market install wooden-chair --cwd "$PWD"
15
- npx @drawcall/market list --cwd "$PWD"
16
- npx @drawcall/market preview wooden-chair --out /tmp/wooden-chair.png
17
- npx @drawcall/market pack scene.zip --out scene.packed.zip
18
- ```
12
+ Search one concrete role or motion at a time:
19
13
 
20
- ## Workflow
14
+ `npx @drawcall/market search "<query>" --type <type> --limit 3`
21
15
 
22
- 1. In an existing repo, run `npx @drawcall/market list --cwd "$PWD"` first to see installed local assets from `.drawcall/market-lock.json`. Use the listed names with `preview <name>` when you want preview images.
23
- 2. Search first unless the user already gave an exact asset name. `search` requires `--type`; use `model` unless the user names another supported type: `humanoid-model`, `texture`, `humanoid-animation`, `template`, `sound-effect`, `background-music`, `environment`, or `flipbook`.
24
- 3. Use `--limit 1` for lookup, `--limit 3` for choice. Search caps at 5 and prints full descriptions.
25
- 4. `install` takes zero or more exact asset names (optionally `name@range`). With names, it installs those assets; with no names, it installs `assetDependencies` from the nearest `package.json`. It does not search or generate. Find names with `search` first. No `--type` is needed — asset names are unique. Use `--force` only when the user agrees to overwrite changed local files.
26
- 5. `preview <name>` saves the preview image; no `--type` is needed. Not every type has previews (e.g. `humanoid-animation`, `template`, `sound-effect`, `background-music`); the CLI reports when one is unavailable.
27
- 6. Use `--unapproved` only when the user asks for unapproved/private/admin assets. Do not install unapproved assets without explicit acceptance.
28
- 7. `generate --type <type> "<prompt>"` creates and installs a generated asset when that asset type has a generator; it requires login. Currently supported generated types are `sound-effect`, `background-music`, `flipbook`, `humanoid-model`, and `environment` (a fitting HDRI sky + equirectangular background, generated in ~1-2 min). Generation is provider-specific: prompt style, generated files, indexing fields, and install layout are owned by the asset type. If a type does not support generation yet, the CLI reports unsupported generation. Add `--access public` to publish the generated asset publicly, or `--access private` to keep it owner-only; when omitted the server defaults to private if you hold the `market:private` entitlement, else public (`--access private` requires that entitlement). `generate` waits for the asset and installs it — one command for quick types. For a long one (e.g. `humanoid-model`, >2 min) the call returns after ~2 min with a job id instead of hanging your shell; run `npx @drawcall/market generate install <jobId>` to continue — it resumes the SAME job where the last call left off and installs when ready. Just re-run `generate install <jobId>` until it prints "Generated and installed" (it exits 0 while still generating, 1 on failure). No type is flagged "slow" — anything that outlasts one wait just continues on the next call.
29
- 8. Use `pack <zip>` to create the same Market asset zip that `upload` sends. `pack` runs offline, infers template packing from a root `package.json`, and accepts `--type` only when you need to override that inference. `upload` runs the shared pack step internally, then publishes: `npx @drawcall/market upload <name> <zip> "<description>" --type <type>`. Declare dependencies with repeatable flags on either command: `--npm name@range`, `--asset name@range`, `--skill label=source`. Template pack/upload also reads root `package.json.assetDependencies`; `--asset` flags are additive and must not conflict. Template pack/upload omits installed dependency files that still match the installed dependency's canonical content (its file hashes are fetched from the server, not stored locally), so edited local files stay in the template; this omit step needs the API, but simple non-template packs stay offline. A skill source is a `skills add` argument: a whole repo (`owner/repo` or a git URL), a single skill via the full URL form `https://github.com/owner/repo/tree/<branch>/<subpath>` (the `tree/<branch>/<subpath>` shorthand needs the full URL, not `owner/repo`), or a local path to a skill directory inside the zip. Example: `npx @drawcall/market upload my-scene scene.zip "A scene" --type model --npm three@^0.178.0 --skill web-design=https://github.com/vercel-labs/agent-skills/tree/main/skills/web-design-guidelines`.
30
- 9. Installed `environment` assets contain `public/environment/<name>.hdr` for Three.js IBL lighting and `public/environment/<name>-background.webp` for the visible equirectangular background. Use `npx @drawcall/market preview` to fetch the preview image separately.
31
- 10. Installed `flipbook` assets contain `public/flipbook/<name>.ktx2`. Render them with `@drawcall/flipbook`'s `Flipbook` class and Three.js `KTX2Loader` for Basis-compressed files; `preview` fetches the middle frame from the flipbook.
16
+ Use `--limit 1` for an exact lookup and `--limit 3` for a choice. Search requires one of: `model`, `humanoid-model`, `texture`, `humanoid-animation`, `template`, `sound-effect`, `background-music`, `environment`, or `flipbook`. It prints full descriptions. If nothing fits, try one broader noun phrase.
32
17
 
33
- ## Humanoid animations
18
+ Preview a finalist when the type supports it:
34
19
 
35
- `humanoid-animation` assets are single-clip GLBs — one motion per asset (one idle, one walk-forward, one jump, one attack) on a normalized skeleton that retargets onto any humanoid, whatever its role. A behaving character is therefore a *set* of clips, not one asset: from what the character actually does, budget the clips it needs — an idle, its locomotion (walk/run, often split by direction: fwd/bwd/left/right), and one clip per distinct action and reaction it performs — then search for each separately.
20
+ `npx @drawcall/market preview <name> --out /tmp/<name>.png`
36
21
 
37
- `humanoid-model` assets share that same normalized skeleton and are authored to a **consistent real-world scale** — they come in at roughly the same height as each other. So you do **not** need to rescale one humanoid to match another (player vs. enemy vs. NPC); dropped in as-is they already stand at a consistent size. Avoid the trap of measuring one character's height and scaling others to it — besides being unnecessary, measuring a rigged/animated character's bounding box is unreliable and produces giants (see the `math` skill on `Box3` and skinned meshes). If you ever do need a deliberate size difference (a boss, a child NPC), apply an explicit chosen multiplier, not a measured one.
22
+ Install exact refs together in one call; names need no `--type`:
38
23
 
39
- Search one motion per query, named by the motion, because results rank by keyword overlap: a query naming several motions at once is dominated by whichever word matches the most assets and buries the others, so real clips look like a gap when they exist. Names describe the motion, not the character — so search the motion (`"walk forward"`, `"reload"`, `"jump"`), not the role (`"player run"`, `"boss attack"`). If a motion finds nothing, retry with synonyms (run/jog/sprint, attack/swing/strike).
24
+ `npx @drawcall/market install <name@range...> --cwd "$PWD"`
40
25
 
41
- ## Output
26
+ Install prints the exact files it wrote. It never searches or generates. With no refs it installs `assetDependencies` from the nearest `package.json`. Assets may install declared skill dependencies with `npx skills add`. Use `--force` only with permission to overwrite changed local files.
42
27
 
43
- Commands print concise, line-oriented summaries:
28
+ `list --cwd "$PWD"` is an offline, compact inventory from `.drawcall/market-lock.json`. Add `--files` only when exact paths for previously installed assets are needed; fresh install and generation already print their paths.
44
29
 
45
- ```text
46
- Results: 2/8 query="wooden chair" type=model approval=approved
47
- - wooden-chair@1.0.0 | model | approved | Low-poly wooden chair
48
- Installed:
49
- - wooden-chair@1.0.0 (asset)
50
- description: Low-poly wooden chair
51
- files:
52
- public/model
53
- └─ wooden-chair.glb
54
- - three@^0.178.0 (npm)
55
- - web-design ← https://github.com/vercel-labs/agent-skills/tree/main/skills/web-design-guidelines (skill)
56
- Installed assets: 1
57
- - wooden-chair@1.0.0 (model)
58
- files:
59
- public/model
60
- └─ wooden-chair.glb
61
- Saved preview for wooden-chair@1.0.0: /tmp/wooden-chair.png
62
- ```
30
+ ## Generate
63
31
 
64
- Assets may also declare `skill` dependencies, installed for you via the `skills` CLI (`skills add`) during `install`. Sources are either a GitHub/git ref or a local path to a skill directory shipped inside the asset. This requires `npx` to be available.
32
+ `npx @drawcall/market generate --type <type> "<description>"` creates and installs one asset. Supported types are `sound-effect`, `background-music`, `flipbook`, `humanoid-model`, and `environment`. It requires login and normally waits through provider generation before printing exact installed paths. If an unusually long job returns a continuation, run the printed `generate install <jobId>`; it resumes the same server-side job rather than generating again.
65
33
 
66
- Installed non-template assets are saved to `package.json.assetDependencies`; templates are scaffolds and are not saved as project asset dependencies. Exact installed versions and file paths are recorded in `.drawcall/market-lock.json`; file content hashes now come from the server (`asset.fileManifest`), not the lock.
34
+ Add `--access public` or `--access private` when visibility matters. Omitted access follows the account entitlement; private generation requires `market:private`.
67
35
 
68
- `list` is offline: it reads `.drawcall/market-lock.json` from the nearest package root and prints exact installed names, versions, types, and installed file paths.
36
+ ## Asset behavior
69
37
 
70
- If search returns no results, try one broader noun phrase. If a command returns `Error: Not logged in...`, ask before running `npx @drawcall/market login`.
38
+ An installed `environment` provides `public/environment/<name>.hdr` for lighting and `<name>-background.webp` for the visible background. A `flipbook` provides `public/flipbook/<name>.ktx2`; render it with `@drawcall/flipbook` and Three.js `KTX2Loader`.
39
+
40
+ `humanoid-animation` assets are single motion clips on the normalized skeleton. Budget idle, needed locomotion, actions, reactions, and death separately. Search the motion (for example `walk forward`, `jump`, or `sword strike`), not the character role; use motion synonyms if needed. `humanoid-model` assets share a consistent real-world scale, so do not derive cross-character scale from animated bounding boxes. Use an explicit multiplier only for an intentional size difference.
41
+
42
+ ## Publish only when asked
43
+
44
+ Use `pack <source> --out <zip>` to create a Market zip and `upload <name> <source> "<description>" --type <type>` to publish it. Both accept repeatable `--npm name@range`, `--asset name@range`, and `--skill label=source` dependencies. Template packing reads root `assetDependencies` and may use the API to omit unchanged installed dependency files. A skill source is `owner/repo`, a git URL, a full GitHub `tree/<branch>/<subpath>` URL, or a local skill directory inside the zip. Use the command's `--help` for syntax.
45
+
46
+ Use `--unapproved` only when explicitly requested. Do not install an unapproved asset without acceptance. If login is required, ask before running `npx @drawcall/market login`.
package/src/cli.ts CHANGED
@@ -108,10 +108,12 @@ program
108
108
  program
109
109
  .command('list')
110
110
  .description('List locally installed assets')
111
+ .option('--files', 'Include installed file paths', false)
111
112
  .option('--cwd <dir>', 'Project directory')
112
- .action(async (opts: { cwd?: string }) => {
113
+ .action(async (opts: { cwd?: string; files: boolean }) => {
113
114
  await listCommand({
114
115
  cwd: opts.cwd,
116
+ files: opts.files,
115
117
  })
116
118
  })
117
119
 
@@ -88,7 +88,7 @@ async function installGenerated(
88
88
  save: true,
89
89
  }
90
90
  const resolution = await resolve(client.asset, [request])
91
- await runInstall(client, resolution, {
91
+ const result = await runInstall(client, resolution, {
92
92
  cwd: ctx.cwd,
93
93
  baseUrl: ctx.baseUrl,
94
94
  authToken: ctx.authToken,
@@ -97,7 +97,7 @@ async function installGenerated(
97
97
  ctx.spinner.text = message
98
98
  },
99
99
  })
100
- return generatedInstallResult(generated.assetName, generated.version)
100
+ return generatedInstallResult(result)
101
101
  }
102
102
 
103
103
  export function startSpinner(text: string): Ora {
@@ -5,6 +5,7 @@ import { listResult } from '../output.js'
5
5
 
6
6
  export interface ListCommandOptions {
7
7
  cwd?: string
8
+ files?: boolean
8
9
  }
9
10
 
10
11
  export interface InstalledAssetListing {
@@ -22,7 +23,7 @@ export interface ListInstalledAssetsResult {
22
23
 
23
24
  export async function listCommand(opts: ListCommandOptions): Promise<void> {
24
25
  const result = await listInstalledAssets(opts.cwd)
25
- console.log(listResult(result))
26
+ console.log(listResult(result, { files: opts.files }))
26
27
  }
27
28
 
28
29
  export async function listInstalledAssets(
package/src/generate.ts CHANGED
@@ -17,12 +17,9 @@ export interface GenerateInput {
17
17
 
18
18
  // How often the CLI polls a running job.
19
19
  const POLL_INTERVAL_MS = 4_000
20
- // How long one `generate` / `generate install` call blocks-and-polls before handing back control.
21
- // The command does the waiting (the agent never sleeps between checks). When the window elapses the
22
- // call returns and the caller just runs `generate install <jobId>` again, which picks up the SAME
23
- // server-side job where this left off — so no asset type needs to be flagged "slow" ahead of time;
24
- // anything that outlasts one window simply continues on the next call.
25
- const WINDOW_MS = 120_000
20
+ // Wait through normal provider latency while staying below OpenCode's ten-minute Bash ceiling.
21
+ // An unusually long job remains resumable with `generate install <jobId>`.
22
+ const WINDOW_MS = 8 * 60_000
26
23
 
27
24
  // Start a generation. Fast providers answer `completed` inline; slow, job-based providers answer
28
25
  // `pending` with a jobId to poll (see `waitForGeneration` / `generate install`).
package/src/output.ts CHANGED
@@ -36,16 +36,14 @@ export function assetSearchResultLine(item: AssetSearchResult): string {
36
36
  export function installResult(
37
37
  result: InstallResult,
38
38
  installMetadata: Record<string, AssetInstallMetadata> = {},
39
+ heading = 'Installed:',
39
40
  ): string {
40
41
  const npmDependencies = Object.entries(result.npmDependencies)
41
42
 
42
- const lines = ['Installed:']
43
+ const lines = [heading]
43
44
 
44
45
  for (const asset of result.assets) {
45
46
  lines.push(assetLine(asset))
46
- if (asset.description) {
47
- lines.push(...block(' description: ', asset.description))
48
- }
49
47
  lines.push(...assetFileLines(asset.files))
50
48
  const message = installMetadata[asset.type]?.installMessage
51
49
  if (message) {
@@ -77,14 +75,18 @@ export function installResult(
77
75
  return lines.join('\n')
78
76
  }
79
77
 
80
- export function listResult(result: ListInstalledAssetsResult): string {
78
+ export function listResult(
79
+ result: ListInstalledAssetsResult,
80
+ opts: { files?: boolean } = {},
81
+ ): string {
81
82
  if (result.assets.length === 0) {
82
83
  return 'No installed assets found.'
83
84
  }
84
85
 
85
86
  const lines = [`Installed assets: ${result.assets.length}`]
86
87
  for (const asset of result.assets) {
87
- lines.push(assetLine(asset), ...assetFileLines(asset.files))
88
+ lines.push(assetLine(asset))
89
+ if (opts.files) lines.push(...assetFileLines(asset.files))
88
90
  }
89
91
 
90
92
  return lines.join('\n')
@@ -122,15 +124,15 @@ function block(label: string, message: string, width = 68): string[] {
122
124
  return wrapped.map((text, index) => `${index === 0 ? label : hang}${text}`)
123
125
  }
124
126
 
125
- export function generatedInstallResult(name: string, version: string): string {
126
- return `Generated and installed ${assetVersionRef(name, version)}`
127
+ export function generatedInstallResult(result: InstallResult): string {
128
+ return installResult(result, {}, 'Generated and installed:')
127
129
  }
128
130
 
129
131
  // Printed when `generate` returns before the job finished: it keeps running server-side and the
130
132
  // caller continues it with `generate install`, which installs the asset once it is ready.
131
133
  export function generationStartedResult(jobId: string): string {
132
134
  return [
133
- 'Still generating after a couple of minutes — it continues in the background.',
135
+ 'Still generating after the normal wait — it continues in the background.',
134
136
  `Run this to pick up where it left off and install when ready: market generate install ${jobId}`,
135
137
  ].join('\n')
136
138
  }
package/src/skill.ts CHANGED
@@ -5,67 +5,43 @@ description: Find, preview, install, generate, and publish Drawcall Market asset
5
5
 
6
6
  # Drawcall Market
7
7
 
8
- Run the CLI as \`npx @drawcall/market <command>\` that form works everywhere, including an ephemeral build sandbox where nothing is installed globally (a bare \`market\` is on your PATH only after a global install, so do not assume it). Keep commands short and read the summary lines.
8
+ Run commands as \`npx @drawcall/market <command>\`; do not assume a global \`market\` binary. Use only the parts of this guide needed for the task.
9
9
 
10
- ## Quick Start
10
+ ## Choose and install
11
11
 
12
- \`\`\`sh
13
- npx @drawcall/market search "wooden chair" --type model --limit 3
14
- npx @drawcall/market install wooden-chair --cwd "$PWD"
15
- npx @drawcall/market list --cwd "$PWD"
16
- npx @drawcall/market preview wooden-chair --out /tmp/wooden-chair.png
17
- npx @drawcall/market pack scene.zip --out scene.packed.zip
18
- \`\`\`
12
+ Search one concrete role or motion at a time:
19
13
 
20
- ## Workflow
14
+ \`npx @drawcall/market search "<query>" --type <type> --limit 3\`
21
15
 
22
- 1. In an existing repo, run \`npx @drawcall/market list --cwd "$PWD"\` first to see installed local assets from \`.drawcall/market-lock.json\`. Use the listed names with \`preview <name>\` when you want preview images.
23
- 2. Search first unless the user already gave an exact asset name. \`search\` requires \`--type\`; use \`model\` unless the user names another supported type: \`humanoid-model\`, \`texture\`, \`humanoid-animation\`, \`template\`, \`sound-effect\`, \`background-music\`, \`environment\`, or \`flipbook\`.
24
- 3. Use \`--limit 1\` for lookup, \`--limit 3\` for choice. Search caps at 5 and prints full descriptions.
25
- 4. \`install\` takes zero or more exact asset names (optionally \`name@range\`). With names, it installs those assets; with no names, it installs \`assetDependencies\` from the nearest \`package.json\`. It does not search or generate. Find names with \`search\` first. No \`--type\` is needed — asset names are unique. Use \`--force\` only when the user agrees to overwrite changed local files.
26
- 5. \`preview <name>\` saves the preview image; no \`--type\` is needed. Not every type has previews (e.g. \`humanoid-animation\`, \`template\`, \`sound-effect\`, \`background-music\`); the CLI reports when one is unavailable.
27
- 6. Use \`--unapproved\` only when the user asks for unapproved/private/admin assets. Do not install unapproved assets without explicit acceptance.
28
- 7. \`generate --type <type> "<prompt>"\` creates and installs a generated asset when that asset type has a generator; it requires login. Currently supported generated types are \`sound-effect\`, \`background-music\`, \`flipbook\`, \`humanoid-model\`, and \`environment\` (a fitting HDRI sky + equirectangular background, generated in ~1-2 min). Generation is provider-specific: prompt style, generated files, indexing fields, and install layout are owned by the asset type. If a type does not support generation yet, the CLI reports unsupported generation. Add \`--access public\` to publish the generated asset publicly, or \`--access private\` to keep it owner-only; when omitted the server defaults to private if you hold the \`market:private\` entitlement, else public (\`--access private\` requires that entitlement). \`generate\` waits for the asset and installs it — one command for quick types. For a long one (e.g. \`humanoid-model\`, >2 min) the call returns after ~2 min with a job id instead of hanging your shell; run \`npx @drawcall/market generate install <jobId>\` to continue — it resumes the SAME job where the last call left off and installs when ready. Just re-run \`generate install <jobId>\` until it prints "Generated and installed" (it exits 0 while still generating, 1 on failure). No type is flagged "slow" — anything that outlasts one wait just continues on the next call.
29
- 8. Use \`pack <zip>\` to create the same Market asset zip that \`upload\` sends. \`pack\` runs offline, infers template packing from a root \`package.json\`, and accepts \`--type\` only when you need to override that inference. \`upload\` runs the shared pack step internally, then publishes: \`npx @drawcall/market upload <name> <zip> "<description>" --type <type>\`. Declare dependencies with repeatable flags on either command: \`--npm name@range\`, \`--asset name@range\`, \`--skill label=source\`. Template pack/upload also reads root \`package.json.assetDependencies\`; \`--asset\` flags are additive and must not conflict. Template pack/upload omits installed dependency files that still match the installed dependency's canonical content (its file hashes are fetched from the server, not stored locally), so edited local files stay in the template; this omit step needs the API, but simple non-template packs stay offline. A skill source is a \`skills add\` argument: a whole repo (\`owner/repo\` or a git URL), a single skill via the full URL form \`https://github.com/owner/repo/tree/<branch>/<subpath>\` (the \`tree/<branch>/<subpath>\` shorthand needs the full URL, not \`owner/repo\`), or a local path to a skill directory inside the zip. Example: \`npx @drawcall/market upload my-scene scene.zip "A scene" --type model --npm three@^0.178.0 --skill web-design=https://github.com/vercel-labs/agent-skills/tree/main/skills/web-design-guidelines\`.
30
- 9. Installed \`environment\` assets contain \`public/environment/<name>.hdr\` for Three.js IBL lighting and \`public/environment/<name>-background.webp\` for the visible equirectangular background. Use \`npx @drawcall/market preview\` to fetch the preview image separately.
31
- 10. Installed \`flipbook\` assets contain \`public/flipbook/<name>.ktx2\`. Render them with \`@drawcall/flipbook\`'s \`Flipbook\` class and Three.js \`KTX2Loader\` for Basis-compressed files; \`preview\` fetches the middle frame from the flipbook.
16
+ Use \`--limit 1\` for an exact lookup and \`--limit 3\` for a choice. Search requires one of: \`model\`, \`humanoid-model\`, \`texture\`, \`humanoid-animation\`, \`template\`, \`sound-effect\`, \`background-music\`, \`environment\`, or \`flipbook\`. It prints full descriptions. If nothing fits, try one broader noun phrase.
32
17
 
33
- ## Humanoid animations
18
+ Preview a finalist when the type supports it:
34
19
 
35
- \`humanoid-animation\` assets are single-clip GLBs — one motion per asset (one idle, one walk-forward, one jump, one attack) on a normalized skeleton that retargets onto any humanoid, whatever its role. A behaving character is therefore a *set* of clips, not one asset: from what the character actually does, budget the clips it needs — an idle, its locomotion (walk/run, often split by direction: fwd/bwd/left/right), and one clip per distinct action and reaction it performs — then search for each separately.
20
+ \`npx @drawcall/market preview <name> --out /tmp/<name>.png\`
36
21
 
37
- \`humanoid-model\` assets share that same normalized skeleton and are authored to a **consistent real-world scale** — they come in at roughly the same height as each other. So you do **not** need to rescale one humanoid to match another (player vs. enemy vs. NPC); dropped in as-is they already stand at a consistent size. Avoid the trap of measuring one character's height and scaling others to it — besides being unnecessary, measuring a rigged/animated character's bounding box is unreliable and produces giants (see the \`math\` skill on \`Box3\` and skinned meshes). If you ever do need a deliberate size difference (a boss, a child NPC), apply an explicit chosen multiplier, not a measured one.
22
+ Install exact refs together in one call; names need no \`--type\`:
38
23
 
39
- Search one motion per query, named by the motion, because results rank by keyword overlap: a query naming several motions at once is dominated by whichever word matches the most assets and buries the others, so real clips look like a gap when they exist. Names describe the motion, not the character — so search the motion (\`"walk forward"\`, \`"reload"\`, \`"jump"\`), not the role (\`"player run"\`, \`"boss attack"\`). If a motion finds nothing, retry with synonyms (run/jog/sprint, attack/swing/strike).
24
+ \`npx @drawcall/market install <name@range...> --cwd "$PWD"\`
40
25
 
41
- ## Output
26
+ Install prints the exact files it wrote. It never searches or generates. With no refs it installs \`assetDependencies\` from the nearest \`package.json\`. Assets may install declared skill dependencies with \`npx skills add\`. Use \`--force\` only with permission to overwrite changed local files.
42
27
 
43
- Commands print concise, line-oriented summaries:
28
+ \`list --cwd "$PWD"\` is an offline, compact inventory from \`.drawcall/market-lock.json\`. Add \`--files\` only when exact paths for previously installed assets are needed; fresh install and generation already print their paths.
44
29
 
45
- \`\`\`text
46
- Results: 2/8 query="wooden chair" type=model approval=approved
47
- - wooden-chair@1.0.0 | model | approved | Low-poly wooden chair
48
- Installed:
49
- - wooden-chair@1.0.0 (asset)
50
- description: Low-poly wooden chair
51
- files:
52
- public/model
53
- └─ wooden-chair.glb
54
- - three@^0.178.0 (npm)
55
- - web-design ← https://github.com/vercel-labs/agent-skills/tree/main/skills/web-design-guidelines (skill)
56
- Installed assets: 1
57
- - wooden-chair@1.0.0 (model)
58
- files:
59
- public/model
60
- └─ wooden-chair.glb
61
- Saved preview for wooden-chair@1.0.0: /tmp/wooden-chair.png
62
- \`\`\`
30
+ ## Generate
63
31
 
64
- Assets may also declare \`skill\` dependencies, installed for you via the \`skills\` CLI (\`skills add\`) during \`install\`. Sources are either a GitHub/git ref or a local path to a skill directory shipped inside the asset. This requires \`npx\` to be available.
32
+ \`npx @drawcall/market generate --type <type> "<description>"\` creates and installs one asset. Supported types are \`sound-effect\`, \`background-music\`, \`flipbook\`, \`humanoid-model\`, and \`environment\`. It requires login and normally waits through provider generation before printing exact installed paths. If an unusually long job returns a continuation, run the printed \`generate install <jobId>\`; it resumes the same server-side job rather than generating again.
65
33
 
66
- Installed non-template assets are saved to \`package.json.assetDependencies\`; templates are scaffolds and are not saved as project asset dependencies. Exact installed versions and file paths are recorded in \`.drawcall/market-lock.json\`; file content hashes now come from the server (\`asset.fileManifest\`), not the lock.
34
+ Add \`--access public\` or \`--access private\` when visibility matters. Omitted access follows the account entitlement; private generation requires \`market:private\`.
67
35
 
68
- \`list\` is offline: it reads \`.drawcall/market-lock.json\` from the nearest package root and prints exact installed names, versions, types, and installed file paths.
36
+ ## Asset behavior
69
37
 
70
- If search returns no results, try one broader noun phrase. If a command returns \`Error: Not logged in...\`, ask before running \`npx @drawcall/market login\`.
38
+ An installed \`environment\` provides \`public/environment/<name>.hdr\` for lighting and \`<name>-background.webp\` for the visible background. A \`flipbook\` provides \`public/flipbook/<name>.ktx2\`; render it with \`@drawcall/flipbook\` and Three.js \`KTX2Loader\`.
39
+
40
+ \`humanoid-animation\` assets are single motion clips on the normalized skeleton. Budget idle, needed locomotion, actions, reactions, and death separately. Search the motion (for example \`walk forward\`, \`jump\`, or \`sword strike\`), not the character role; use motion synonyms if needed. \`humanoid-model\` assets share a consistent real-world scale, so do not derive cross-character scale from animated bounding boxes. Use an explicit multiplier only for an intentional size difference.
41
+
42
+ ## Publish only when asked
43
+
44
+ Use \`pack <source> --out <zip>\` to create a Market zip and \`upload <name> <source> "<description>" --type <type>\` to publish it. Both accept repeatable \`--npm name@range\`, \`--asset name@range\`, and \`--skill label=source\` dependencies. Template packing reads root \`assetDependencies\` and may use the API to omit unchanged installed dependency files. A skill source is \`owner/repo\`, a git URL, a full GitHub \`tree/<branch>/<subpath>\` URL, or a local skill directory inside the zip. Use the command's \`--help\` for syntax.
45
+
46
+ Use \`--unapproved\` only when explicitly requested. Do not install an unapproved asset without acceptance. If login is required, ask before running \`npx @drawcall/market login\`.
71
47
  `