@agentproto/catalog-sync 0.6.3 → 0.7.1
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 +1 -1
- package/dist/index.mjs +19 -6
- package/dist/index.mjs.map +1 -1
- package/dist/sources/openai.d.ts +34 -12
- package/dist/sources/openai.mjs +19 -6
- package/dist/sources/openai.mjs.map +1 -1
- package/package.json +2 -2
- package/snapshots/image-replicate.json +81 -81
- package/snapshots/llm-huggingface.json +2225 -2249
- package/snapshots/llm-moonshot.json +30 -30
- package/snapshots/llm-opencode-go.json +11 -0
- package/snapshots/llm-opencode-zen.json +23 -0
- package/snapshots/llm-openrouter.json +2606 -2838
- package/snapshots/voice-elevenlabs.json +5388 -5378
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { llmOpenRouterGenerator } from './generators/llm-openrouter.js';
|
|
|
5
5
|
export { llmRequestyGenerator } from './generators/llm-requesty.js';
|
|
6
6
|
export { llmOpencodeGoGenerator, llmOpencodeZenGenerator } from './generators/llm-opencode.js';
|
|
7
7
|
export { CatalogFileDiff, RefreshableSource, ReviewedRefreshOptions, ReviewedRefreshResult, SourceRefreshResult, refreshSources, reviewedRefresh } from './refresh-workflow.js';
|
|
8
|
-
export { OPENAI_LLM_SOURCE, OPENAI_SOURCES } from './sources/openai.js';
|
|
8
|
+
export { OPENAI_LLM_SOURCE, OPENAI_MODELS_SOURCE, OPENAI_PRICING_SOURCE, OPENAI_SOURCES } from './sources/openai.js';
|
|
9
9
|
|
|
10
10
|
declare const llmHuggingfaceGenerator: CatalogGenerator;
|
|
11
11
|
|
package/dist/index.mjs
CHANGED
|
@@ -1442,16 +1442,29 @@ async function reviewedRefresh(gens, refreshableSources, opts) {
|
|
|
1442
1442
|
}
|
|
1443
1443
|
|
|
1444
1444
|
// src/sources/openai.ts
|
|
1445
|
-
var
|
|
1445
|
+
var OPENAI_MODELS_SOURCE = {
|
|
1446
1446
|
source: {
|
|
1447
1447
|
id: "llm-openai",
|
|
1448
|
-
url: "https://openai.com/
|
|
1448
|
+
url: "https://api.openai.com/v1/models",
|
|
1449
|
+
headers: { Authorization: "Bearer env:OPENAI_API_KEY" }
|
|
1449
1450
|
},
|
|
1450
|
-
refreshable:
|
|
1451
|
-
notes: "OpenAI
|
|
1451
|
+
refreshable: true,
|
|
1452
|
+
notes: "Authoritative OpenAI model id list. Carries no pricing and no context window, so it is merged with a price source rather than used alone. Without OPENAI_API_KEY the sync falls back to OpenRouter's openai/* ids."
|
|
1452
1453
|
};
|
|
1453
|
-
var
|
|
1454
|
+
var OPENAI_PRICING_SOURCE = {
|
|
1455
|
+
source: {
|
|
1456
|
+
id: "llm-openai-pricing",
|
|
1457
|
+
url: "https://platform.openai.com/docs/pricing.md"
|
|
1458
|
+
},
|
|
1459
|
+
refreshable: true,
|
|
1460
|
+
notes: "OpenAI's own Markdown rendering of the pricing page (text/markdown, GFM tables). Parsed by column name and sanity-checked before use; on a page restructure the sync falls back to OpenRouter passthrough rates and says so in the generated file's banner."
|
|
1461
|
+
};
|
|
1462
|
+
var OPENAI_LLM_SOURCE = OPENAI_MODELS_SOURCE;
|
|
1463
|
+
var OPENAI_SOURCES = [
|
|
1464
|
+
OPENAI_MODELS_SOURCE,
|
|
1465
|
+
OPENAI_PRICING_SOURCE
|
|
1466
|
+
];
|
|
1454
1467
|
|
|
1455
|
-
export { CATALOG_CHANGELOG_HEADER, CATALOG_CHANGELOG_PATH, OPENAI_LLM_SOURCE, OPENAI_SOURCES, appendChangelog, computeAddedAtLedger, defineGenerator, diffModelIds, extractRecordIds, imageReplicate, isoDateFromUnixSeconds, ledgerAbsPath, ledgerRelPath, llmHuggingfaceGenerator, llmOpenRouterGenerator, llmOpencodeGoGenerator, llmOpencodeZenGenerator, llmRequestyGenerator, readLedger, refreshSources, renderChangelogSection, reviewedRefresh, runGenerators, serializeLedger, todayIso, voiceElevenlabs, voiceMinimax };
|
|
1468
|
+
export { CATALOG_CHANGELOG_HEADER, CATALOG_CHANGELOG_PATH, OPENAI_LLM_SOURCE, OPENAI_MODELS_SOURCE, OPENAI_PRICING_SOURCE, OPENAI_SOURCES, appendChangelog, computeAddedAtLedger, defineGenerator, diffModelIds, extractRecordIds, imageReplicate, isoDateFromUnixSeconds, ledgerAbsPath, ledgerRelPath, llmHuggingfaceGenerator, llmOpenRouterGenerator, llmOpencodeGoGenerator, llmOpencodeZenGenerator, llmRequestyGenerator, readLedger, refreshSources, renderChangelogSection, reviewedRefresh, runGenerators, serializeLedger, todayIso, voiceElevenlabs, voiceMinimax };
|
|
1456
1469
|
//# sourceMappingURL=index.mjs.map
|
|
1457
1470
|
//# sourceMappingURL=index.mjs.map
|