@crewhaus/template-marketplace-client 0.3.2 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -25,6 +25,19 @@ export declare class MarketplaceClientError extends CrewhausError {
25
25
  readonly name = "MarketplaceClientError";
26
26
  constructor(message: string, cause?: unknown);
27
27
  }
28
+ /**
29
+ * Item 10 (G89) — the canonical default template registry index URL.
30
+ *
31
+ * A host with no `--registry` flag and no `CREWHAUS_TEMPLATE_REGISTRY` env var
32
+ * resolves the template marketplace against THIS index: `GET <url>` returns the
33
+ * catalog (`{ templates: TemplateMetadata[] }`), per-name manifests live at
34
+ * `<url>/<name>.json`. The sibling `@crewhaus/module-marketplace-client` carries
35
+ * the plugin equivalent (`DEFAULT_MODULE_REGISTRY_URL`); the two share one
36
+ * `registry.crewhaus.ai` host, differing only by path.
37
+ *
38
+ * Exported so the CLI and Studio's Marketplace tab share one source of truth.
39
+ */
40
+ export declare const DEFAULT_TEMPLATE_REGISTRY_URL = "https://registry.crewhaus.ai/templates";
28
41
  export type SearchFilter = {
29
42
  /** Substring match on name + description (case-insensitive). */
30
43
  readonly query?: string;
package/dist/index.js CHANGED
@@ -28,6 +28,19 @@ export class MarketplaceClientError extends CrewhausError {
28
28
  super("config", message, cause);
29
29
  }
30
30
  }
31
+ /**
32
+ * Item 10 (G89) — the canonical default template registry index URL.
33
+ *
34
+ * A host with no `--registry` flag and no `CREWHAUS_TEMPLATE_REGISTRY` env var
35
+ * resolves the template marketplace against THIS index: `GET <url>` returns the
36
+ * catalog (`{ templates: TemplateMetadata[] }`), per-name manifests live at
37
+ * `<url>/<name>.json`. The sibling `@crewhaus/module-marketplace-client` carries
38
+ * the plugin equivalent (`DEFAULT_MODULE_REGISTRY_URL`); the two share one
39
+ * `registry.crewhaus.ai` host, differing only by path.
40
+ *
41
+ * Exported so the CLI and Studio's Marketplace tab share one source of truth.
42
+ */
43
+ export const DEFAULT_TEMPLATE_REGISTRY_URL = "https://registry.crewhaus.ai/templates";
31
44
  export class MarketplaceClient {
32
45
  opts;
33
46
  constructor(opts) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewhaus/template-marketplace-client",
3
- "version": "0.3.2",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "description": "Studio Marketplace integration: list / search / install community templates; one-click publish flow (Section 40)",
6
6
  "main": "dist/index.js",
@@ -15,8 +15,8 @@
15
15
  "test": "bun test src"
16
16
  },
17
17
  "dependencies": {
18
- "@crewhaus/errors": "0.3.2",
19
- "@crewhaus/template-registry": "0.3.2"
18
+ "@crewhaus/errors": "0.4.2",
19
+ "@crewhaus/template-registry": "0.4.2"
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "author": {