@adea-ai/plugins 4.0.1 → 4.0.7

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.
Files changed (142) hide show
  1. package/dist/agent-plugins-catalog.d.ts +2 -4
  2. package/dist/agent-plugins-catalog.js +42 -50
  3. package/dist/agent-plugins-catalog.js.map +1 -1
  4. package/dist/agent-plugins-schema.d.ts +8 -0
  5. package/dist/agent-plugins-schema.js +10 -1
  6. package/dist/agent-plugins-schema.js.map +1 -1
  7. package/dist/artifacts.d.ts +57 -0
  8. package/dist/artifacts.js +159 -0
  9. package/dist/artifacts.js.map +1 -0
  10. package/dist/build.d.ts +20 -0
  11. package/dist/build.js +103 -0
  12. package/dist/build.js.map +1 -0
  13. package/dist/capabilities.d.ts +7 -0
  14. package/dist/capabilities.js +116 -0
  15. package/dist/capabilities.js.map +1 -0
  16. package/dist/catalog-store.d.ts +0 -5
  17. package/dist/catalog-store.js +1 -25
  18. package/dist/catalog-store.js.map +1 -1
  19. package/dist/concurrency.d.ts +1 -0
  20. package/dist/concurrency.js +15 -0
  21. package/dist/concurrency.js.map +1 -0
  22. package/dist/consumer-index.d.ts +6 -28
  23. package/dist/consumer-index.js +7 -8
  24. package/dist/consumer-index.js.map +1 -1
  25. package/dist/digest.d.ts +13 -0
  26. package/dist/digest.js +47 -0
  27. package/dist/digest.js.map +1 -0
  28. package/dist/fs-atomic.d.ts +7 -0
  29. package/dist/fs-atomic.js +30 -0
  30. package/dist/fs-atomic.js.map +1 -0
  31. package/dist/harness.js +2 -1
  32. package/dist/harness.js.map +1 -1
  33. package/dist/icon-mirror.d.ts +3 -2
  34. package/dist/icon-mirror.js +51 -63
  35. package/dist/icon-mirror.js.map +1 -1
  36. package/dist/icons.d.ts +2 -2
  37. package/dist/icons.js +4 -12
  38. package/dist/icons.js.map +1 -1
  39. package/dist/index.d.ts +16 -315
  40. package/dist/index.js +12 -1905
  41. package/dist/index.js.map +1 -1
  42. package/dist/integrity-manifest.d.ts +43 -13
  43. package/dist/integrity-manifest.js +28 -17
  44. package/dist/integrity-manifest.js.map +1 -1
  45. package/dist/json-values.d.ts +3 -0
  46. package/dist/json-values.js +10 -0
  47. package/dist/json-values.js.map +1 -0
  48. package/dist/plugin-release.d.ts +38 -0
  49. package/dist/plugin-release.js +321 -0
  50. package/dist/plugin-release.js.map +1 -0
  51. package/dist/plugin-skips.d.ts +19 -0
  52. package/dist/plugin-skips.js +65 -0
  53. package/dist/plugin-skips.js.map +1 -0
  54. package/dist/policy.d.ts +13 -0
  55. package/dist/policy.js +26 -0
  56. package/dist/policy.js.map +1 -0
  57. package/dist/portable-catalog.d.ts +4 -4
  58. package/dist/portable-catalog.js +14 -126
  59. package/dist/portable-catalog.js.map +1 -1
  60. package/dist/portable-verify.d.ts +2 -0
  61. package/dist/portable-verify.js +68 -0
  62. package/dist/portable-verify.js.map +1 -0
  63. package/dist/publication.d.ts +6 -3
  64. package/dist/publication.js +25 -12
  65. package/dist/publication.js.map +1 -1
  66. package/dist/published-output.d.ts +17 -0
  67. package/dist/published-output.js +49 -0
  68. package/dist/published-output.js.map +1 -0
  69. package/dist/site-icons.d.ts +2 -3
  70. package/dist/site-icons.js +4 -3
  71. package/dist/site-icons.js.map +1 -1
  72. package/dist/snapshots.d.ts +39 -0
  73. package/dist/snapshots.js +238 -0
  74. package/dist/snapshots.js.map +1 -0
  75. package/dist/source-resolution.d.ts +28 -0
  76. package/dist/source-resolution.js +158 -0
  77. package/dist/source-resolution.js.map +1 -0
  78. package/dist/sources.d.ts +5 -1
  79. package/dist/sources.js +21 -27
  80. package/dist/sources.js.map +1 -1
  81. package/dist/synchronize.d.ts +44 -0
  82. package/dist/synchronize.js +118 -0
  83. package/dist/synchronize.js.map +1 -0
  84. package/dist/taxonomy.d.ts +23 -0
  85. package/dist/taxonomy.js +62 -0
  86. package/dist/taxonomy.js.map +1 -0
  87. package/dist/upstream.d.ts +42 -0
  88. package/dist/upstream.js +179 -0
  89. package/dist/upstream.js.map +1 -0
  90. package/dist/verify-artifacts.d.ts +36 -0
  91. package/dist/verify-artifacts.js +286 -0
  92. package/dist/verify-artifacts.js.map +1 -0
  93. package/native/build-provenance.txt +5 -5
  94. package/native/staged-reader-win32-arm64.node +0 -0
  95. package/native/staged-reader-win32-x64.node +0 -0
  96. package/package.json +2 -4
  97. package/src/agent-plugins-catalog.test.ts +2 -2
  98. package/src/agent-plugins-catalog.ts +46 -49
  99. package/src/agent-plugins-schema.ts +11 -1
  100. package/src/artifacts.ts +234 -0
  101. package/src/build.ts +131 -0
  102. package/src/capabilities.ts +153 -0
  103. package/src/catalog-store.ts +1 -28
  104. package/src/concurrency.ts +19 -0
  105. package/src/consumer-index.test.ts +27 -21
  106. package/src/consumer-index.ts +12 -35
  107. package/src/digest.ts +55 -0
  108. package/src/fs-atomic.ts +32 -0
  109. package/src/harness.test.ts +4 -32
  110. package/src/harness.ts +2 -1
  111. package/src/icon-mirror.ts +57 -64
  112. package/src/icons.test.ts +0 -4
  113. package/src/icons.ts +4 -4
  114. package/src/index.test.ts +52 -48
  115. package/src/index.ts +50 -2583
  116. package/src/integrity-manifest.ts +41 -21
  117. package/src/json-values.ts +11 -0
  118. package/src/plugin-release.ts +457 -0
  119. package/src/plugin-skips.ts +110 -0
  120. package/src/policy.ts +39 -0
  121. package/src/portable-catalog.test.ts +0 -5
  122. package/src/portable-catalog.ts +16 -143
  123. package/src/portable-verify.ts +71 -0
  124. package/src/publication.test.ts +29 -1
  125. package/src/publication.ts +32 -13
  126. package/src/published-output.ts +60 -0
  127. package/src/site-icons.test.ts +0 -1
  128. package/src/site-icons.ts +4 -4
  129. package/src/snapshots.ts +287 -0
  130. package/src/source-digest.test.ts +3 -7
  131. package/src/source-resolution.ts +233 -0
  132. package/src/sources-json.test.ts +0 -1
  133. package/src/sources.ts +27 -33
  134. package/src/synchronize.ts +213 -0
  135. package/src/taxonomy.ts +87 -0
  136. package/src/upstream.ts +194 -0
  137. package/src/verify-artifacts.ts +365 -0
  138. package/src/write-artifacts.test.ts +0 -1
  139. package/dist/source-digest.d.ts +0 -2
  140. package/dist/source-digest.js +0 -12
  141. package/dist/source-digest.js.map +0 -1
  142. package/src/source-digest.ts +0 -14
package/dist/icons.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"icons.js","sourceRoot":"","sources":["../src/icons.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAmBH,mEAAmE;AACnE,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,CAAA;AAEzC,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAU,CAAA;AAEzF,oFAAoF;AACpF,MAAM,SAAS,GAAqC;IAClD,IAAI,EAAE,CAAC;IACP,OAAO,EAAE,CAAC;IACV,UAAU,EAAE,CAAC;IACb,MAAM,EAAE,CAAC;IACT,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,CAAC;CACT,CAAA;AACD,MAAM,cAAc,GAAqC;IACvD,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,GAAG,EAAE,CAAC;CACP,CAAA;AACD,iFAAiF;AACjF,MAAM,cAAc,GAAqC;IACvD,MAAM,EAAE,CAAC;IACT,SAAS,EAAE,CAAC;IACZ,GAAG,EAAE,CAAC;IACN,MAAM,EAAE,CAAC;IACT,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,CAAC;CACV,CAAA;AACD,gFAAgF;AAChF,MAAM,QAAQ,GACZ,6JAA6J,CAAA;AAC/J,gFAAgF;AAChF,MAAM,oBAAoB,GAAG,CAAC,SAAS,EAAE,SAAS,CAAC,CAAA;AAEnD,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC;IACzB,MAAM;IACN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EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAA;AAC3E,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,315 +1,16 @@
1
- import { type PublishOptions } from './catalog-store.js';
2
- import { type Catalog, type Capability, type Harness, type HarnessCompatibility, type PluginRelease, type SourcesLock } from './schema.js';
3
- import { type ParsedMarketplace, type SourceConfig } from './sources.js';
4
- import { type ConsumerCategory, type ConsumerIndex, type ConsumerProduct, type LeadingDiagnostic, type ProductPreference } from './consumer-index.js';
5
- import { type ProductIconOverrides } from './icons.js';
6
- import { type SiteIconFetcher } from './site-icons.js';
7
- import { sourceDigest as bytesDigest } from './source-digest.js';
8
- export { bytesDigest };
9
- export { catalogFingerprint, publishCatalog, withCatalogRead, writeFileAtomically, type CatalogCoordinationOptions, type PublicationStep, type PublishOptions, } from './catalog-store.js';
10
- /**
11
- * Marks the catalog format this compiler emits.
12
- *
13
- * Bumping or first introducing this value makes a synchronization replay its
14
- * verified pins and rebuild, which is how a format change reaches the published
15
- * catalog when no upstream source has moved. It is deliberately separate from
16
- * the agent-package normalizer version, which describes package normalization
17
- * and would misreport a change here.
18
- */
19
- export declare const CATALOG_CONTRACT_VERSION = "adea-catalog/3";
20
- export interface CatalogPolicy {
21
- readonly allowedRepositoryProtocols: readonly string[];
22
- readonly allowedRepositoryHosts: readonly string[];
23
- readonly maxFilesPerPlugin: number;
24
- readonly maxBytesPerPlugin: number;
25
- readonly maxFileBytes: number;
26
- readonly maxMarketplacePlugins: number;
27
- readonly denyExecutableLifecycleScripts: boolean;
28
- readonly publishRequiresCompleteContent: boolean;
29
- readonly sensitiveCapabilityTypes: readonly string[];
30
- }
31
- export interface CategoryMap {
32
- readonly aliases: Readonly<Record<string, string>>;
33
- readonly fallback: string;
34
- }
35
- export interface ProductAliases {
36
- readonly aliases: Readonly<Record<string, string>>;
37
- }
38
- export interface Snapshot {
39
- readonly files: ReadonlyMap<string, Uint8Array>;
40
- readonly symlinks: readonly string[];
41
- }
42
- /** Trusted compiler extension; never loaded from upstream plugin content. */
43
- export type ReleaseTransform = (release: PluginRelease, snapshot: Snapshot, pluginName: string) => PluginRelease;
44
- export interface SnapshotLoader {
45
- load(repositoryUrl: string, commitSha: string, pluginSubdirectory: string): Promise<Snapshot>;
46
- }
47
- export interface ResolvedSource {
48
- readonly config: SourceConfig;
49
- readonly commitSha: string;
50
- readonly manifestText: string;
51
- readonly parsed: ParsedMarketplace;
52
- readonly pluginPins: readonly PluginSourcePin[];
53
- readonly retrievedAt: string;
54
- readonly manifestDigest: string;
55
- }
56
- export interface PluginSourcePin {
57
- readonly pluginName: string;
58
- readonly repositoryUrl: string;
59
- readonly pluginSubdirectory: string;
60
- readonly resolvedCommitSha: string;
61
- }
62
- export interface SyncInput extends ConsumerIndexOptions {
63
- readonly sources: readonly SourceConfig[];
64
- readonly categoryMap: CategoryMap;
65
- readonly productAliases: ProductAliases;
66
- readonly productCategories?: Record<string, string>;
67
- readonly productIconOverrides?: ProductIconOverrides;
68
- /** Where this catalog is published, so records carry absolute asset URLs. */
69
- readonly publicationRepositoryUrl?: string;
70
- /** Directory that receives mirrored brand marks as the catalog is built. */
71
- readonly iconAssetsDirectory?: string;
72
- readonly policy: CatalogPolicy;
73
- readonly mode?: 'live' | 'offline';
74
- readonly fixtureRoot?: string;
75
- readonly sourceId?: string;
76
- readonly metadataOnly?: boolean;
77
- readonly dryRun?: boolean;
78
- readonly existingLock?: SourcesLock;
79
- readonly existingCatalog?: Catalog;
80
- readonly fromLock?: SourcesLock;
81
- readonly snapshotLoader?: SnapshotLoader;
82
- readonly resolveExternalRefs?: boolean;
83
- /** Rebuild even when source pins are unchanged (used for explicit format migrations). */
84
- readonly forceRebuild?: boolean;
85
- readonly transformRelease?: ReleaseTransform;
86
- }
87
- export interface SyncResult {
88
- readonly changed: boolean;
89
- readonly dryRun: boolean;
90
- readonly sourceHeads: readonly {
91
- sourceId: string;
92
- commitSha: string;
93
- }[];
94
- readonly catalog?: Catalog;
95
- readonly lock?: SourcesLock;
96
- readonly artifacts?: GeneratedArtifacts;
97
- readonly changeReport: ChangeReport;
98
- }
99
- export interface ChangeReport {
100
- readonly schemaVersion: 1;
101
- readonly changedSources: readonly string[];
102
- readonly addedPlugins: readonly string[];
103
- readonly removedPlugins: readonly string[];
104
- readonly changedPlugins: readonly string[];
105
- readonly permissionSensitiveChanges: readonly string[];
106
- readonly skippedPlugins: readonly SkippedPlugin[];
107
- readonly contentResolution: 'complete' | 'complete-with-skips' | 'metadata-only';
108
- }
109
- export type PluginSkipReasonCode = 'GIT_SUBMODULE_UNSUPPORTED' | 'PLUGIN_FILE_TOO_LARGE' | 'PLUGIN_FILE_UNAVAILABLE' | 'PLUGIN_MANIFEST_INVALID' | 'PLUGIN_PATH_NOT_FOUND' | 'PLUGIN_SCHEMA_INVALID' | 'PLUGIN_SIZE_POLICY' | 'PLUGIN_SOURCE_UNAVAILABLE' | 'PLUGIN_TOO_LARGE' | 'PLUGIN_TOO_MANY_FILES' | 'SNAPSHOT_PATH_INVALID' | 'SYMLINK_ESCAPE';
110
- export interface SkippedPlugin {
111
- readonly sourceId: string;
112
- readonly pluginId: string;
113
- readonly pluginName: string;
114
- readonly reasonCode: PluginSkipReasonCode;
115
- readonly securityReason: string;
116
- readonly incompleteContent: true;
117
- readonly paths: readonly string[];
118
- }
119
- /**
120
- * Published artifacts by file name. The core six are always present; the
121
- * consumer shards (`catalog-index.v1.json`, `shelf-<category>.v1.json` and
122
- * `category-<category>.v1.json`) follow the configured categories.
123
- */
124
- export interface GeneratedArtifacts {
125
- readonly [name: string]: string;
126
- readonly 'catalog.v1.json': string;
127
- readonly 'catalog-summary.v1.json': string;
128
- readonly 'sources.lock.json': string;
129
- readonly 'compatibility.v1.json': string;
130
- readonly 'categories.v1.json': string;
131
- readonly 'integrity.json': string;
132
- }
133
- /** Result of checking a published consumer index against its catalog. */
134
- export interface ConsumerIndexVerification {
135
- readonly hasConsumerIndex: boolean;
136
- readonly diagnostics: readonly LeadingDiagnostic[];
137
- readonly counts?: ConsumerIndex['counts'];
138
- readonly topCount?: number;
139
- readonly products?: Readonly<Record<string, ConsumerProduct>>;
140
- readonly categories?: readonly ConsumerCategory[];
141
- /** Shards the published integrity file set must carry for this index. */
142
- readonly shards: readonly ShardArtifact[];
143
- }
144
- /** One consumer shard artifact and what it must contain. */
145
- export interface ShardArtifact {
146
- readonly name: string;
147
- readonly kind: 'index' | 'shelf' | 'list';
148
- readonly category?: string;
149
- }
150
- /** Consumer index inputs: curated shelves and canonical-variant placement. */
151
- export interface ConsumerIndexOptions {
152
- readonly leading?: Readonly<Record<string, readonly string[]>>;
153
- readonly topCount?: number;
154
- readonly productPreference?: ProductPreference;
155
- /**
156
- * Where this catalog is published. When known, product records carry an
157
- * absolute, immutable URL for their brand mark so no client composes one.
158
- */
159
- readonly publicationRepositoryUrl?: string;
160
- /**
161
- * Base URL of the committed asset directory that browsers fetch directly.
162
- *
163
- * GitHub release assets answer a cross-origin `fetch` with no CORS header and
164
- * redirect through a URL that cannot be cached, so a browser neither reads the
165
- * index nor reuses an icon. The same files served from the repository are
166
- * CORS-enabled, direct and cacheable.
167
- */
168
- readonly publicationAssetsBaseUrl?: string;
169
- /**
170
- * Base URL of the content-addressed snapshot directory, one level below the
171
- * asset branch. Catalog artifacts are addressed by catalog identity, so they
172
- * live in `catalogs/<catalogId>/` while digest-addressed brand marks sit at
173
- * the branch root.
174
- */
175
- readonly publicationCatalogsBaseUrl?: string;
176
- /**
177
- * Whether curated-name drift is published in the consumer index. An offline
178
- * build replays fixtures rather than the upstream catalogs, so its curation
179
- * findings are noise and are omitted by default.
180
- */
181
- readonly curationDiagnostics?: boolean;
182
- }
183
- export declare function canonicalJson(value: unknown): string;
184
- export declare function digest(value: unknown): string;
185
- export declare function stablePluginId(sourceId: string, upstreamName: string): string;
186
- export declare function stableReleaseId(repositoryUrl: string, subdirectory: string, commitSha: string, contentDigest: string): string;
187
- export declare function normalizeCategory(value: string, map: CategoryMap): string;
188
- export declare function productGroupingKey(name: string, aliases: ProductAliases): string;
189
- export declare function synchronize(input: SyncInput): Promise<SyncResult>;
190
- export declare function buildCatalog(input: {
191
- readonly resolvedSources: readonly ResolvedSource[];
192
- readonly categoryMap: CategoryMap;
193
- readonly productAliases: ProductAliases;
194
- readonly productCategories?: Record<string, string>;
195
- readonly leading?: Record<string, readonly string[]>;
196
- readonly productIconOverrides?: ProductIconOverrides;
197
- readonly iconAssetsDirectory?: string;
198
- readonly policy?: CatalogPolicy;
199
- readonly metadataOnly?: boolean;
200
- readonly snapshotLoader: SnapshotLoader;
201
- readonly resolveExternalRefs?: boolean;
202
- readonly transformRelease?: ReleaseTransform;
203
- }): Promise<Catalog>;
204
- /** SHA-256 of a single byte buffer, in the catalog's digest format. */
205
- export declare function byteDigest(bytes: Uint8Array): string;
206
- export declare function classifyCapabilities(files: ReadonlyMap<string, Uint8Array>, metadata?: Record<string, unknown>): Capability[];
207
- export declare function createCompatibility(dialect: MarketplaceDialectName, capabilities: readonly Capability[], policy?: CatalogPolicy): Record<Harness, HarnessCompatibility>;
208
- type MarketplaceDialectName = 'openai' | 'cursor' | 'claude';
209
- /**
210
- * Orders plugins so each category's curated leading products come first, in
211
- * the configured order. Consumers preview the head of each category, so this
212
- * ordering decides what users see before expanding.
213
- */
214
- export declare function orderLeadingPlugins<T extends {
215
- readonly plugins: readonly {
216
- categories: readonly string[];
217
- upstreamPluginName: string;
218
- }[];
219
- }>(catalog: T, leading?: Record<string, readonly string[]>): T;
220
- export declare function createArtifacts(catalog: Catalog, lock: SourcesLock, options?: ConsumerIndexOptions): GeneratedArtifacts;
221
- export interface PublishedAsset {
222
- readonly name: string;
223
- readonly digest: string;
224
- readonly bytes: number;
225
- readonly contentType: string;
226
- /** `content` mirrors a plugin file; `favicon` mirrors the product site's icon. */
227
- readonly kind: 'content' | 'favicon';
228
- /** Upstream path or URL the bytes came from, for provenance. */
229
- readonly origin: string;
230
- }
231
- /** Every mirrored icon in the catalog, deduplicated by asset name. */
232
- export declare function iconAssets(index: ConsumerIndex): readonly PublishedAsset[];
233
- /**
234
- * Publishes a verified artifact set to `generatedDirectory` under the output's
235
- * coordination lock. See `catalog-store.ts` for the publication contract.
236
- */
237
- export declare function writeArtifacts(generatedDirectory: string, artifacts: GeneratedArtifacts, options?: PublishOptions): Promise<void>;
238
- export declare function verifyArtifacts(artifacts: GeneratedArtifacts): void;
239
- /**
240
- * Re-checks one consumer shard against the navigation index: a shelf carries
241
- * exactly the curated products in order, and a category list carries exactly
242
- * the category's products in order. The expected catalog ID must come from a
243
- * separately verified catalog, not from the shard being checked.
244
- */
245
- export declare function verifyShardArtifact(shard: ShardArtifact, content: string | undefined, verification: ConsumerIndexVerification, catalogId: string): void;
246
- /**
247
- * Re-checks the published consumer index against the catalog it indexes. The
248
- * index is what Adea renders directly, so a contradiction between the two
249
- * artifacts must never reach a release. Snapshots published before the index
250
- * existed carry membership only; those are still membership-checked and
251
- * reported as `hasConsumerIndex: false`.
252
- */
253
- export declare function verifyConsumerIndex(content: string, catalog: Pick<Catalog, 'plugins'>, indexContent?: string): ConsumerIndexVerification;
254
- export declare function verifyCatalogReferences(catalog: Catalog, policy?: CatalogPolicy): void;
255
- /** Raw content URL for one file at an immutable commit. */
256
- export declare function rawContentUrl(repositoryUrl: string, commitSha: string, path: string): string;
257
- /** Fetches bytes from an allow-listed upstream URL with the shared retry policy. */
258
- export declare function fetchUpstreamBytes(url: string, signal?: AbortSignal): Promise<Uint8Array>;
259
- /**
260
- * Request headers for one upstream URL.
261
- *
262
- * The credential and GitHub's media type are attached only for GitHub hosts.
263
- * Sending them elsewhere is not merely a needless disclosure: `appwrite.io`
264
- * answers a page carrying an `Authorization` header with HTTP 500, and a CDN
265
- * asked for an image with `accept: application/vnd.github+json` can answer with
266
- * bytes that are not the mark. A build that did this dropped marks it had
267
- * already curated, and the curation verifier — which used its own anonymous
268
- * headers — could not see it.
269
- */
270
- export declare function upstreamRequestHeaders(url: string): Record<string, string>;
271
- /**
272
- * Fetches vendor-site documents exactly as a live build does.
273
- *
274
- * Shared with the curation verifier so both ask a vendor the same question: a
275
- * verifier with its own headers reports sites healthy that the build then fails
276
- * to resolve.
277
- *
278
- * `deadline` optionally bounds one product's whole resolution. The per-request
279
- * ceiling is always created fresh inside each fetch, so a caller that passes a
280
- * deadline — or shares one — can never hand later requests an already-expired
281
- * signal.
282
- */
283
- export declare function createSiteIconFetcher(deadline?: AbortSignal): SiteIconFetcher;
284
- /** Ceiling for a single product-site request during icon discovery. */
285
- export declare const SITE_FETCH_TIMEOUT_MS = 15000;
286
- /**
287
- * Read one GitHub repository tarball into path -> bytes.
288
- *
289
- * GitHub wraps every entry in a single top-level `<repo>-<sha>/` directory,
290
- * which is stripped so the keys match the tree API's repository-relative
291
- * paths. Only regular files are taken: directories, symlinks, hardlinks and
292
- * the `pax_global_header` record are skipped, so a link can never be
293
- * materialized as content. Every remaining path goes through
294
- * `safeRelativePath`, so an archive that tries to escape the repository is
295
- * rejected rather than partially trusted. This is a whole-repository archive
296
- * shared across plugins, so an oversized unrelated file is drained and
297
- * counted against the archive budget but not retained. The selected plugin's
298
- * files are checked against the tree before the archive is fetched and again
299
- * when its snapshot is validated.
300
- */
301
- export declare function readArchiveFiles(archive: Uint8Array, policy: CatalogPolicy): Promise<Map<string, Uint8Array>>;
302
- export declare class NetworkSnapshotLoader implements SnapshotLoader {
303
- #private;
304
- constructor(policy: CatalogPolicy);
305
- load(repositoryUrl: string, commitSha: string, pluginSubdirectory: string): Promise<Snapshot>;
306
- }
307
- export declare class FixtureSnapshotLoader implements SnapshotLoader {
308
- #private;
309
- constructor(root: string, sources: readonly SourceConfig[]);
310
- load(repositoryUrl: string, _commitSha: string, pluginSubdirectory: string): Promise<Snapshot>;
311
- }
312
- export declare class DirectorySnapshotLoader implements SnapshotLoader {
313
- load(_repositoryUrl: string, _commitSha: string, pluginSubdirectory: string): Promise<Snapshot>;
314
- }
315
- export declare function snapshotFromDirectory(root: string, pluginSubdirectory: string): Promise<Snapshot>;
1
+ export { catalogFingerprint, publishCatalog, withCatalogRead, type CatalogCoordinationOptions, type PublicationStep, type PublishOptions, } from './catalog-store.js';
2
+ export { createArtifacts, iconAssets, writeArtifacts, type ConsumerIndexOptions, type GeneratedArtifacts, } from './artifacts.js';
3
+ export { writeFileAtomically } from './fs-atomic.js';
4
+ export type { PublishedAsset } from './integrity-manifest.js';
5
+ export { buildCatalog } from './build.js';
6
+ export { classifyCapabilities, createCompatibility } from './capabilities.js';
7
+ export { byteDigest, canonicalJson, digest, sourceDigest as bytesDigest } from './digest.js';
8
+ export { CATALOG_CONTRACT_VERSION, type ReleaseTransform } from './plugin-release.js';
9
+ export type { PluginSkipReasonCode, SkippedPlugin } from './plugin-skips.js';
10
+ export type { CatalogPolicy } from './policy.js';
11
+ export { DirectorySnapshotLoader, FixtureSnapshotLoader, NetworkSnapshotLoader, readArchiveFiles, snapshotFromDirectory, type Snapshot, type SnapshotLoader, } from './snapshots.js';
12
+ export type { PluginSourcePin, ResolvedSource } from './source-resolution.js';
13
+ export { synchronize, type ChangeReport, type SyncInput, type SyncResult } from './synchronize.js';
14
+ export { normalizeCategory, orderLeadingPlugins, productGroupingKey, stablePluginId, stableReleaseId, type CategoryMap, type ProductAliases, } from './taxonomy.js';
15
+ export { createSiteIconFetcher, fetchUpstreamBytes, rawContentUrl, SITE_FETCH_TIMEOUT_MS, upstreamRequestHeaders, } from './upstream.js';
16
+ export { verifyArtifacts, verifyCatalogReferences, verifyConsumerIndex, verifyShardArtifact, type ConsumerIndexVerification, type ShardArtifact, } from './verify-artifacts.js';