@drawcall/market 0.1.92 → 0.1.94

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
@@ -34,11 +34,11 @@ Reads (`search`, `exact`, `downloadZip`, `downloadPreviewImage`, `installMetadat
34
34
  ```ts
35
35
  const page = await client.asset.search({
36
36
  query: 'robot',
37
- type: 'model', // optional AssetType; omit to search every type
37
+ type: 'model', // optional AssetType; omit to search every type
38
38
  page: 1,
39
39
  limit: 12,
40
40
  includeUnapproved: false,
41
- sort: 'relevance', // 'relevance' | 'newest' | 'alphabetical'
41
+ sort: 'relevance', // 'relevance' | 'newest' | 'alphabetical'
42
42
  })
43
43
  ```
44
44
 
@@ -61,18 +61,18 @@ Each `AssetSearchResult` is:
61
61
  ```ts
62
62
  {
63
63
  id: string
64
- name: string // globally unique, install by this name
65
- type: string // AssetType, e.g. 'model'
64
+ name: string // globally unique, install by this name
65
+ type: string // AssetType, e.g. 'model'
66
66
  description: string | null
67
67
  ownerId: string
68
68
  createdAt: Date
69
69
  updatedAt: Date
70
- latestVersion: string // semver of the latest published version
70
+ latestVersion: string // semver of the latest published version
71
71
  approved: boolean
72
- npmDependencies: string // JSON-encoded Record<string, string>
73
- assetDependencies: string // JSON-encoded Record<string, string>
74
- skillDependencies: string // JSON-encoded Record<string, string>
75
- previewUrl: string | null // image URL for an <img>, or null
72
+ npmDependencies: string // JSON-encoded Record<string, string>
73
+ assetDependencies: string // JSON-encoded Record<string, string>
74
+ skillDependencies: string // JSON-encoded Record<string, string>
75
+ previewUrl: string | null // image URL for an <img>, or null
76
76
  }
77
77
  ```
78
78
 
@@ -80,7 +80,7 @@ The three `*Dependencies` fields are JSON strings (parse with `JSON.parse`); eve
80
80
 
81
81
  ### Previews
82
82
 
83
- `previewUrl` is the image URL for a result, or `null` for types without a preview (only `model`, `humanoid-model`, `texture`, `environment`, and `flipbook` have one). It is a plain WebP URL served directly from object storage, so drop it straight into an `<img src>` and the browser fetches, caches, and lazy-loads it:
83
+ `previewUrl` is the fetch-ready image URL for a result, or `null` for types without a preview (only `model`, `humanoid-model`, `texture`, `environment`, and `flipbook` have one). Drop it straight into an `<img src>`; private and unapproved results already carry the capability when the caller is entitled to see them:
84
84
 
85
85
  ```ts
86
86
  import { createMarketClient } from '@drawcall/market'
@@ -101,7 +101,7 @@ for (const item of items) {
101
101
  }
102
102
  ```
103
103
 
104
- Preview keys are random and unguessable, so the URLs are safe to serve even for unapproved assets. The runnable [`examples/market-ui`](../../examples/market-ui) Vite app renders results immediately and lets the browser load previews from these URLs.
104
+ The runnable Market frontend renders results immediately and lets the browser load previews from these URLs.
105
105
 
106
106
  ## `resolve` — dependency resolution
107
107
 
@@ -113,12 +113,23 @@ import { createMarketClient, resolve } from '@drawcall/market'
113
113
  const client = createMarketClient()
114
114
  const plan = await resolve(client.asset, [{ name: 'my-model', range: '^1.0.0' }])
115
115
 
116
- plan.assets // resolved name@version per asset (with its type)
117
- plan.npmDependencies // merged npm ranges
116
+ plan.assets // resolved name@version per asset (with its type)
117
+ plan.npmDependencies // merged npm ranges
118
118
  plan.skillDependencies // merged skill sources
119
119
  ```
120
120
 
121
- The Node-only filesystem `install` (download + write + `package.json` merge + `skills add`) is available from the `@drawcall/market/install` entry point and is used by the CLI.
121
+ The Node-only filesystem APIs are available from `@drawcall/market/install`. `install` downloads and
122
+ writes resolved assets; `listInstalledAssets` reads the nearest project's offline lock inventory;
123
+ `getCliClient` uses `DRAWCALL_AUTH_TOKEN` or the saved Market login when private assets must resolve.
124
+
125
+ ```ts
126
+ import { getCliClient, listInstalledAssets } from '@drawcall/market/install'
127
+
128
+ const { assets } = await listInstalledAssets(process.cwd())
129
+ const { client } = await getCliClient()
130
+ const index = await client.asset.files({ name: assets[0].name, version: assets[0].version })
131
+ await fetch(index.files[0].url)
132
+ ```
122
133
 
123
134
  ## CLI
124
135
 
package/dist/cli.js CHANGED
File without changes
@@ -52,18 +52,22 @@ export interface AssetExactResult extends AssetSearchResult {
52
52
  /** One stored file of a version, from the derived index (an R2 list over the version's prefix). */
53
53
  export interface AssetFileEntry {
54
54
  path: string;
55
+ /** Fetch-ready data-plane URL containing every credential required for access. */
56
+ url: string;
55
57
  sizeBytes: number;
56
58
  /** The object's md5 (hex) — its R2 etag; installs verify downloads against it. */
57
59
  etag: string;
58
60
  }
59
61
  /** The derived file index of a version, for per-file installs from the data plane. */
60
62
  export interface AssetFilesResult {
61
- /** Base URL of the version's files (`https://assets…/{name}@{version}/`), ending with `/`. */
63
+ /**
64
+ * Fetch-ready base URL of the version's files, ending with `/`. Relative file references remain
65
+ * within the same public or capability-bearing path.
66
+ */
62
67
  baseUrl: string;
63
68
  /**
64
- * Capability key the caller must append as `?key=` to fetch (private/unapproved assets), when the
65
- * caller is entitled to it the owner, an admin, or a caller who presented the correct key. Null
66
- * for public approved assets.
69
+ * @deprecated Credentials are already carried by `baseUrl` and each file's `url`. Retained while
70
+ * previously published clients still append the query parameter themselves.
67
71
  */
68
72
  key: string | null;
69
73
  files: AssetFileEntry[];
@@ -1 +1 @@
1
- {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAmBrD,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,iBAAiB,EAAE,MAAM,CAAA;IACzB,SAAS,EAAE,MAAM,CAAA;IACjB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,SAAS,EAAE,IAAI,CAAA;CAChB;AAED,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,C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S,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,4DAA4D;AAC5D,MAAM,WAAW,oBAAoB;IACnC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mEAAmE;IACnE,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,+DAA+D;IAC/D,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,aAAa,EAAE,OAAO,CAAA;IACtB,oCAAoC,EAAE,OAAO,CAAA;IAC7C,mCAAmC,EAAE,OAAO,CAAA;CAC7C;AAED,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAyD0B,MAAM;uBAAa,IAAI;;oBAAvB,MAAM;uBAAa,IAAI;;;;;;;CAIrE,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,OAAO,QAAQ,CAAA"}
package/dist/contract.js CHANGED
@@ -15,8 +15,8 @@ export const contract = {
15
15
  .output(z.custom()),
16
16
  downloadZip: oc.input(downloadZipSchema).output(z.instanceof(Blob)),
17
17
  // The derived file index of a version — every stored file's path, size and md5 etag plus the
18
- // data-plane base URL, so installs fetch files in parallel through the same edge cache browsers
19
- // warm. `key` is the capability credential for private/unapproved assets (two-plane bridge).
18
+ // fetch-ready data-plane URLs, so installs fetch files in parallel through the same edge cache
19
+ // browsers warm. The deprecated baseUrl/key pair keeps previously published clients working.
20
20
  files: oc.input(assetFilesSchema).output(z.custom()),
21
21
  // The content hashes of a version's files, keyed by install path. Computed once from the stored
22
22
  // source zip and cached, so a caller (e.g. `pack`) can tell whether a local file is an unchanged
@@ -1 +1 @@
1
- {"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAA;AACnC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,yBAAyB,EACzB,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EACzB,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,GAChB,MAAM,cAAc,CAAA;AAuHrB,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,KAAK,EAAE;QACL,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAoC,CAAC;QAEvF,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAA2B,CAAC;QAE7E,SAAS,EAAE,EAAE;aACV,KAAK,CACJ,eAAe;aACZ,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;aACnC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,GAAG,yBAAyB,EAAE;YAC7D,OAAO,EAAE,sCAAsC;YAC/C,IAAI,EAAE,CAAC,KAAK,CAAC;SACd,CAAC,CACL;aACA,MAAM,CAAC,CAAC,CAAC,MAAM,EAAgB,CAAC;QAEnC,WAAW,EAAE,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAEnE,6FAA6F;QAC7F,gGAAgG;Q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a,EAAE,EAAE,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAQ,CAAC;QAErE,YAAY,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAA8C,CAAC;QAE/E,eAAe,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;KAChF;CACF,CAAA"}
@@ -1,7 +1,11 @@
1
1
  export { createMarketClient } from './client.js';
2
2
  export type { MarketClient, MarketClientOptions } from './client.js';
3
+ export { getCliClient, NotLoggedInError } from './cli-client.js';
4
+ export type { CliClient, CliClientOptions } from './cli-client.js';
3
5
  export { resolve, ResolutionError } from './resolve.js';
4
6
  export type { ResolvedAsset, ResolveResult } from './resolve.js';
5
7
  export { install } from './install.js';
6
8
  export type { InstalledAsset, InstallOptions, InstallResult } from './install.js';
9
+ export { listInstalledAssets } from './commands/list.js';
10
+ export type { InstalledAssetListing, ListInstalledAssetsResult } from './commands/list.js';
7
11
  //# sourceMappingURL=install-entry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"install-entry.d.ts","sourceRoot":"","sources":["../src/install-entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAChD,YAAY,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEpE,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AACvD,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAEhE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA"}
1
+ {"version":3,"file":"install-entry.d.ts","sourceRoot":"","sources":["../src/install-entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAChD,YAAY,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACpE,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAChE,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAElE,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AACvD,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAEhE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAEjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,YAAY,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA"}
@@ -1,4 +1,6 @@
1
1
  export { createMarketClient } from './client.js';
2
+ export { getCliClient, NotLoggedInError } from './cli-client.js';
2
3
  export { resolve, ResolutionError } from './resolve.js';
3
4
  export { install } from './install.js';
5
+ export { listInstalledAssets } from './commands/list.js';
4
6
  //# sourceMappingURL=install-entry.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"install-entry.js","sourceRoot":"","sources":["../src/install-entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAGhD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAGvD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA"}
1
+ {"version":3,"file":"install-entry.js","sourceRoot":"","sources":["../src/install-entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAEhD,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAGhE,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAGvD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAGtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA"}
package/dist/install.js CHANGED
@@ -147,18 +147,15 @@ async function fetchAssetEntries(client, asset, opts) {
147
147
  });
148
148
  const label = `${asset.name}@${asset.version}`;
149
149
  return mapWithConcurrency(index.files, FILE_DOWNLOAD_CONCURRENCY, async (file) => {
150
- const bytes = await withRetry(() => fetchVerifiedFile(index, file), {
150
+ const bytes = await withRetry(() => fetchVerifiedFile(file), {
151
151
  attempts: DOWNLOAD_ATTEMPTS,
152
152
  onRetry: (msg) => opts.log(`Downloading ${label} ${file.path}: ${msg}`),
153
153
  });
154
154
  return [file.path, bytes];
155
155
  });
156
156
  }
157
- async function fetchVerifiedFile(index, file) {
158
- const url = new URL(encodeSubpath(file.path), index.baseUrl);
159
- if (index.key)
160
- url.searchParams.set('key', index.key);
161
- const res = await fetch(url);
157
+ async function fetchVerifiedFile(file) {
158
+ const res = await fetch(file.url);
162
159
  if (!res.ok) {
163
160
  throw Object.assign(new Error(`file download responded ${res.status}`), { status: res.status });
164
161
  }
@@ -171,9 +168,6 @@ async function fetchVerifiedFile(index, file) {
171
168
  }
172
169
  return bytes;
173
170
  }
174
- function encodeSubpath(subpath) {
175
- return subpath.split('/').map(encodeURIComponent).join('/');
176
- }
177
171
  /** Map over items with a bounded number of concurrent workers, preserving input order. The first
178
172
  * rejection propagates (via Promise.all), so a download that fails every attempt fails the whole
179
173
  * install loudly rather than silently yielding a partial asset tree. */
@@ -1 +1 @@
1
- {"version":3,"file":"install.js","sourceRoot":"","sources":["../src/install.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,U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ACV,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,EAAE,IAAI,KAAK,CAAC,OAAO,CAAA;gBAC7C,MAAM,CAAC,IAAI,KAAK,CAAC,4BAA4B,MAAM,MAAM,MAAM,EAAE,CAAC,CAAC,CAAA;gBACnE,OAAM;YACR,CAAC;YACD,OAAO,EAAE,CAAA;QACX,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,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 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\nRun `npx @drawcall/market types` when you need the current asset types, generation support, or type-specific search guidance.\n\nSearch one concrete need 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 `--type` and 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@version> --out /tmp/<name>.png`\n\nSearch and preview select an asset; they do not add its files to the project. A consumer path is valid only after install or generation succeeds. Never derive a browser path from an asset name or preview metadata.\n\nThe exact `name@version` token printed before the first `|` in a search result is authoritative. Copy it verbatim. Generated identifiers can legitimately end mid-word at the catalog limit; never expand, normalize, or reconstruct one from the description beside it.\n\nIn a staged design/build workflow, keep ownership explicit. The designer searches and previews, judges coherence, and records the exact opaque ref in the consuming file's design section; it does not install or invent a path. The builder that owns that file installs every recorded ref before editing, reads the resulting file path, and applies it to the customization. Concurrent builders may install independently: Market downloads outside a project lock, then serializes shared lockfile, package, dependency, and skill updates so their results merge safely.\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 and records the dependency so packing and later rebuilds can restore it. 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` 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 provider-supported asset. It requires login and normally waits through provider generation before printing exact installed paths and type-specific usage guidance. Unsupported types report an error. 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\nThe description is provider input, not the installed filename. The command's successful output is the source of truth for consumer paths, so update a consumer with its exact printed browser path after success. If generation fails, leave the current path unchanged.\n\nAdd repeatable `--reference-image <file-or-url>` when the result should match given images; `types` shows which asset types accept reference images. A remote ref must be a direct fetchable image URL, never a webpage URL; use the page only to find its underlying image. An environment matches the look of the references (at most 4). Types without reference image support reject them.\n\nA generated humanoid-model is one expressive, animation-ready biped asset: one head, two arms, two legs, open empty hands, and no companions or scene. Describe its identity, theme, silhouette, clothing, colors, and materials rather than adding generation instructions. Keep imaginative species, creature, robotic, and fantasy ideas; express topology outside the shared skeleton as worn, costume, or body-surface design. A person or humanoid reference preserves the main subject's identity and distinctive features, while a non-person reference supplies visual language such as shapes, colors, and materials (at most 2 references). This boundary keeps the asset riggable without reducing it to a generic human.\n\nAdd `--access public` or `--access private` when visibility matters. Omitted access follows the account entitlement; private generation requires `market:private`.\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";
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\nRun `npx @drawcall/market types` when you need the current asset types, generation support, or type-specific search guidance.\n\nSearch one concrete need 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 `--type` and 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@version> --out /tmp/<name>.png`\n\nSearch and preview select an asset; they do not add its files to the project. A consumer path is valid only after install or generation succeeds. Never derive a browser path from an asset name or preview metadata.\n\nThe exact `name@version` token printed before the first `|` in a search result is authoritative. Copy it verbatim. Generated identifiers can legitimately end mid-word at the catalog limit; never expand, normalize, or reconstruct one from the description beside it.\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 and records the dependency so packing and later rebuilds can restore it. 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` when exact paths for previously installed assets are needed; fresh install and generation already print their paths. When selected refs are already installed, read this inventory instead of reinstalling them.\n\n## Generate\n\n`npx @drawcall/market generate --type <type> \"<description>\"` creates and installs one provider-supported asset. It requires login and normally waits through provider generation before printing exact installed paths and type-specific usage guidance. Unsupported types report an error. 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\nThe description is provider input, not the installed filename. The command's successful output is the source of truth for consumer paths, so update a consumer with its exact printed browser path after success. If generation fails, leave the current path unchanged.\n\nAdd repeatable `--reference-image <file-or-url>` when the result should match given images; `types` shows which asset types accept reference images. A remote ref must be a direct fetchable image URL, never a webpage URL; use the page only to find its underlying image. An environment matches the look of the references (at most 4). Types without reference image support reject them.\n\nA generated humanoid-model is one expressive, animation-ready biped asset: one head, two arms, two legs, open empty hands, and no companions or scene. Describe its identity, theme, silhouette, clothing, colors, and materials rather than adding generation instructions. Keep imaginative species, creature, robotic, and fantasy ideas; express topology outside the shared skeleton as worn, costume, or body-surface design. A person or humanoid reference preserves the main subject's identity and distinctive features, while a non-person reference supplies visual language such as shapes, colors, and materials (at most 2 references). This boundary keeps the asset riggable without reducing it to a generic human.\n\nAdd `--access public` or `--access private` when visibility matters. Omitted access follows the account entitlement; private generation requires `market:private`.\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,0uKAsDvB,CAAA"}
1
+ {"version":3,"file":"skill.d.ts","sourceRoot":"","sources":["../src/skill.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,mxJAoDvB,CAAA"}
package/dist/skill.js CHANGED
@@ -25,15 +25,13 @@ Search and preview select an asset; they do not add its files to the project. A
25
25
 
26
26
  The exact \`name@version\` token printed before the first \`|\` in a search result is authoritative. Copy it verbatim. Generated identifiers can legitimately end mid-word at the catalog limit; never expand, normalize, or reconstruct one from the description beside it.
27
27
 
28
- In a staged design/build workflow, keep ownership explicit. The designer searches and previews, judges coherence, and records the exact opaque ref in the consuming file's design section; it does not install or invent a path. The builder that owns that file installs every recorded ref before editing, reads the resulting file path, and applies it to the customization. Concurrent builders may install independently: Market downloads outside a project lock, then serializes shared lockfile, package, dependency, and skill updates so their results merge safely.
29
-
30
28
  Install exact refs together in one call; names need no \`--type\`:
31
29
 
32
30
  \`npx @drawcall/market install <name@range...> --cwd "$PWD"\`
33
31
 
34
32
  Install prints the exact files it wrote and records the dependency so packing and later rebuilds can restore it. 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.
35
33
 
36
- \`list --cwd "$PWD"\` is an offline, compact inventory from \`.drawcall/market-lock.json\`. Add \`--files\` when exact paths for previously installed assets are needed; fresh install and generation already print their paths.
34
+ \`list --cwd "$PWD"\` is an offline, compact inventory from \`.drawcall/market-lock.json\`. Add \`--files\` when exact paths for previously installed assets are needed; fresh install and generation already print their paths. When selected refs are already installed, read this inventory instead of reinstalling them.
37
35
 
38
36
  ## Generate
39
37
 
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsD1B,CAAA"}
1
+ {"version":3,"file":"skill.js","sourceRoot":"","sources":["../src/skill.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoD1B,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drawcall/market",
3
- "version": "0.1.92",
3
+ "version": "0.1.94",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/drawcall-ai/market",
@@ -25,15 +25,13 @@ Search and preview select an asset; they do not add its files to the project. A
25
25
 
26
26
  The exact `name@version` token printed before the first `|` in a search result is authoritative. Copy it verbatim. Generated identifiers can legitimately end mid-word at the catalog limit; never expand, normalize, or reconstruct one from the description beside it.
27
27
 
28
- In a staged design/build workflow, keep ownership explicit. The designer searches and previews, judges coherence, and records the exact opaque ref in the consuming file's design section; it does not install or invent a path. The builder that owns that file installs every recorded ref before editing, reads the resulting file path, and applies it to the customization. Concurrent builders may install independently: Market downloads outside a project lock, then serializes shared lockfile, package, dependency, and skill updates so their results merge safely.
29
-
30
28
  Install exact refs together in one call; names need no `--type`:
31
29
 
32
30
  `npx @drawcall/market install <name@range...> --cwd "$PWD"`
33
31
 
34
32
  Install prints the exact files it wrote and records the dependency so packing and later rebuilds can restore it. 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.
35
33
 
36
- `list --cwd "$PWD"` is an offline, compact inventory from `.drawcall/market-lock.json`. Add `--files` when exact paths for previously installed assets are needed; fresh install and generation already print their paths.
34
+ `list --cwd "$PWD"` is an offline, compact inventory from `.drawcall/market-lock.json`. Add `--files` when exact paths for previously installed assets are needed; fresh install and generation already print their paths. When selected refs are already installed, read this inventory instead of reinstalling them.
37
35
 
38
36
  ## Generate
39
37
 
package/src/contract.ts CHANGED
@@ -75,6 +75,8 @@ export interface AssetExactResult extends AssetSearchResult {
75
75
  /** One stored file of a version, from the derived index (an R2 list over the version's prefix). */
76
76
  export interface AssetFileEntry {
77
77
  path: string
78
+ /** Fetch-ready data-plane URL containing every credential required for access. */
79
+ url: string
78
80
  sizeBytes: number
79
81
  /** The object's md5 (hex) — its R2 etag; installs verify downloads against it. */
80
82
  etag: string
@@ -82,12 +84,14 @@ export interface AssetFileEntry {
82
84
 
83
85
  /** The derived file index of a version, for per-file installs from the data plane. */
84
86
  export interface AssetFilesResult {
85
- /** Base URL of the version's files (`https://assets…/{name}@{version}/`), ending with `/`. */
87
+ /**
88
+ * Fetch-ready base URL of the version's files, ending with `/`. Relative file references remain
89
+ * within the same public or capability-bearing path.
90
+ */
86
91
  baseUrl: string
87
92
  /**
88
- * Capability key the caller must append as `?key=` to fetch (private/unapproved assets), when the
89
- * caller is entitled to it the owner, an admin, or a caller who presented the correct key. Null
90
- * for public approved assets.
93
+ * @deprecated Credentials are already carried by `baseUrl` and each file's `url`. Retained while
94
+ * previously published clients still append the query parameter themselves.
91
95
  */
92
96
  key: string | null
93
97
  files: AssetFileEntry[]
@@ -156,8 +160,8 @@ export const contract = {
156
160
  downloadZip: oc.input(downloadZipSchema).output(z.instanceof(Blob)),
157
161
 
158
162
  // The derived file index of a version — every stored file's path, size and md5 etag plus the
159
- // data-plane base URL, so installs fetch files in parallel through the same edge cache browsers
160
- // warm. `key` is the capability credential for private/unapproved assets (two-plane bridge).
163
+ // fetch-ready data-plane URLs, so installs fetch files in parallel through the same edge cache
164
+ // browsers warm. The deprecated baseUrl/key pair keeps previously published clients working.
161
165
  files: oc.input(assetFilesSchema).output(z.custom<AssetFilesResult>()),
162
166
 
163
167
  // The content hashes of a version's files, keyed by install path. Computed once from the stored
@@ -1,8 +1,13 @@
1
1
  export { createMarketClient } from './client.js'
2
2
  export type { MarketClient, MarketClientOptions } from './client.js'
3
+ export { getCliClient, NotLoggedInError } from './cli-client.js'
4
+ export type { CliClient, CliClientOptions } from './cli-client.js'
3
5
 
4
6
  export { resolve, ResolutionError } from './resolve.js'
5
7
  export type { ResolvedAsset, ResolveResult } from './resolve.js'
6
8
 
7
9
  export { install } from './install.js'
8
10
  export type { InstalledAsset, InstallOptions, InstallResult } from './install.js'
11
+
12
+ export { listInstalledAssets } from './commands/list.js'
13
+ export type { InstalledAssetListing, ListInstalledAssetsResult } from './commands/list.js'
package/src/install.ts CHANGED
@@ -264,7 +264,7 @@ async function fetchAssetEntries(
264
264
 
265
265
  const label = `${asset.name}@${asset.version}`
266
266
  return mapWithConcurrency(index.files, FILE_DOWNLOAD_CONCURRENCY, async (file) => {
267
- const bytes = await withRetry(() => fetchVerifiedFile(index, file), {
267
+ const bytes = await withRetry(() => fetchVerifiedFile(file), {
268
268
  attempts: DOWNLOAD_ATTEMPTS,
269
269
  onRetry: (msg) => opts.log(`Downloading ${label} ${file.path}: ${msg}`),
270
270
  })
@@ -272,13 +272,8 @@ async function fetchAssetEntries(
272
272
  })
273
273
  }
274
274
 
275
- async function fetchVerifiedFile(
276
- index: AssetFilesResult,
277
- file: AssetFilesResult['files'][number],
278
- ): Promise<Uint8Array> {
279
- const url = new URL(encodeSubpath(file.path), index.baseUrl)
280
- if (index.key) url.searchParams.set('key', index.key)
281
- const res = await fetch(url)
275
+ async function fetchVerifiedFile(file: AssetFilesResult['files'][number]): Promise<Uint8Array> {
276
+ const res = await fetch(file.url)
282
277
  if (!res.ok) {
283
278
  throw Object.assign(new Error(`file download responded ${res.status}`), { status: res.status })
284
279
  }
@@ -292,10 +287,6 @@ async function fetchVerifiedFile(
292
287
  return bytes
293
288
  }
294
289
 
295
- function encodeSubpath(subpath: string): string {
296
- return subpath.split('/').map(encodeURIComponent).join('/')
297
- }
298
-
299
290
  /** Map over items with a bounded number of concurrent workers, preserving input order. The first
300
291
  * rejection propagates (via Promise.all), so a download that fails every attempt fails the whole
301
292
  * install loudly rather than silently yielding a partial asset tree. */
package/src/skill.ts CHANGED
@@ -25,15 +25,13 @@ Search and preview select an asset; they do not add its files to the project. A
25
25
 
26
26
  The exact \`name@version\` token printed before the first \`|\` in a search result is authoritative. Copy it verbatim. Generated identifiers can legitimately end mid-word at the catalog limit; never expand, normalize, or reconstruct one from the description beside it.
27
27
 
28
- In a staged design/build workflow, keep ownership explicit. The designer searches and previews, judges coherence, and records the exact opaque ref in the consuming file's design section; it does not install or invent a path. The builder that owns that file installs every recorded ref before editing, reads the resulting file path, and applies it to the customization. Concurrent builders may install independently: Market downloads outside a project lock, then serializes shared lockfile, package, dependency, and skill updates so their results merge safely.
29
-
30
28
  Install exact refs together in one call; names need no \`--type\`:
31
29
 
32
30
  \`npx @drawcall/market install <name@range...> --cwd "$PWD"\`
33
31
 
34
32
  Install prints the exact files it wrote and records the dependency so packing and later rebuilds can restore it. 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.
35
33
 
36
- \`list --cwd "$PWD"\` is an offline, compact inventory from \`.drawcall/market-lock.json\`. Add \`--files\` when exact paths for previously installed assets are needed; fresh install and generation already print their paths.
34
+ \`list --cwd "$PWD"\` is an offline, compact inventory from \`.drawcall/market-lock.json\`. Add \`--files\` when exact paths for previously installed assets are needed; fresh install and generation already print their paths. When selected refs are already installed, read this inventory instead of reinstalling them.
37
35
 
38
36
  ## Generate
39
37