minimal-forge-work-pack-sync 0.1.21 → 0.1.22
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.js +6 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7548,7 +7548,7 @@ var DEFAULT_DEBUG_TRACE_LIMITS = {
|
|
|
7548
7548
|
};
|
|
7549
7549
|
|
|
7550
7550
|
// packages/shared/src/contracts/settings.ts
|
|
7551
|
-
var WORK_PACK_SYNC_PLUGIN_VERSION = "0.1.
|
|
7551
|
+
var WORK_PACK_SYNC_PLUGIN_VERSION = "0.1.22";
|
|
7552
7552
|
var WORK_PACK_SYNC_PLUGIN_PACKAGE = `minimal-forge-work-pack-sync@${WORK_PACK_SYNC_PLUGIN_VERSION}`;
|
|
7553
7553
|
var WORK_PACK_SYNC_PLUGIN_FILENAME = `minimal-forge-work-pack-sync-${WORK_PACK_SYNC_PLUGIN_VERSION}.tgz`;
|
|
7554
7554
|
var FIRECRAWL_KEYLESS_MCP_NAME = "firecrawl";
|
|
@@ -7556,6 +7556,9 @@ var FIRECRAWL_KEYLESS_PERMISSION = `${FIRECRAWL_KEYLESS_MCP_NAME}_*`;
|
|
|
7556
7556
|
|
|
7557
7557
|
// packages/shared/src/workPackBaseline.ts
|
|
7558
7558
|
function normalizePackExtensionModel(pathLabel, content, approvedModelIds, slug) {
|
|
7559
|
+
return normalizeExtensionModel(pathLabel, content, slug, (modelId) => approvedModelIds.has(modelId));
|
|
7560
|
+
}
|
|
7561
|
+
function normalizeExtensionModel(pathLabel, content, slug, acceptsModel) {
|
|
7559
7562
|
const match = /^---\n([\s\S]+?)\n---/.exec(content);
|
|
7560
7563
|
const frontmatter = match?.[1];
|
|
7561
7564
|
if (!match || frontmatter === void 0) return content;
|
|
@@ -7568,7 +7571,7 @@ function normalizePackExtensionModel(pathLabel, content, approvedModelIds, slug)
|
|
|
7568
7571
|
const separator = rawModel.indexOf("/");
|
|
7569
7572
|
const provider = separator > 0 ? rawModel.slice(0, separator) : "";
|
|
7570
7573
|
const modelId = separator > 0 ? rawModel.slice(separator + 1) : "";
|
|
7571
|
-
if (provider !== "forge" && provider !== "openrouter" || !
|
|
7574
|
+
if (provider !== "forge" && provider !== "openrouter" || !acceptsModel(modelId)) {
|
|
7572
7575
|
throw new Error(
|
|
7573
7576
|
`A extens\xE3o ${pathLabel} do pacote de trabalho ${slug} usa um modelo que n\xE3o est\xE1 aprovado no Forge`
|
|
7574
7577
|
);
|
|
@@ -25155,7 +25158,7 @@ function isRecord(value) {
|
|
|
25155
25158
|
}
|
|
25156
25159
|
|
|
25157
25160
|
// packages/cli/src/workPackSyncPlugin.ts
|
|
25158
|
-
var PLUGIN_VERSION = "0.1.
|
|
25161
|
+
var PLUGIN_VERSION = "0.1.22";
|
|
25159
25162
|
var STATUS_FILENAME = "work-pack-startup-status.json";
|
|
25160
25163
|
var activeSync = /* @__PURE__ */ new Map();
|
|
25161
25164
|
var ForgeWorkPackSyncServer = async (_input, options) => {
|