minimal-forge-work-pack-sync 0.1.35 → 0.1.36

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 CHANGED
@@ -7607,7 +7607,7 @@ var DEFAULT_DEBUG_TRACE_LIMITS = {
7607
7607
  // packages/shared/src/contracts/settings.ts
7608
7608
  var DOCUMENT_READER_AGENT = "document-reader";
7609
7609
  var OPENROUTER_ALIAS_PROVIDER_NAME = "OpenRouter (via Forge)";
7610
- var WORK_PACK_SYNC_PLUGIN_VERSION = "0.1.35";
7610
+ var WORK_PACK_SYNC_PLUGIN_VERSION = "0.1.36";
7611
7611
  var WORK_PACK_SYNC_PLUGIN_PACKAGE = `minimal-forge-work-pack-sync@${WORK_PACK_SYNC_PLUGIN_VERSION}`;
7612
7612
  var WORK_PACK_SYNC_PLUGIN_FILENAME = `minimal-forge-work-pack-sync-${WORK_PACK_SYNC_PLUGIN_VERSION}.tgz`;
7613
7613
  var FIRECRAWL_KEYLESS_MCP_NAME = "firecrawl";
@@ -26195,7 +26195,7 @@ async function syncLocalWorker(paths, credentials, manifest) {
26195
26195
  }
26196
26196
 
26197
26197
  // packages/cli/src/workPackSyncPlugin.ts
26198
- var PLUGIN_VERSION = "0.1.35";
26198
+ var PLUGIN_VERSION = "0.1.36";
26199
26199
  var FORGE_DECISION_TIMEOUT_MS = 11e4;
26200
26200
  var STATUS_FILENAME = "work-pack-startup-status.json";
26201
26201
  var activeSync = /* @__PURE__ */ new Map();
@@ -26527,10 +26527,16 @@ function createForgeDecisionRunTool(forgeBaseUrl, decisionBaseUrl, paths) {
26527
26527
  }
26528
26528
  function createForgeCodebookTool(forgeBaseUrl, gatewayBaseUrl, paths) {
26529
26529
  return tool({
26530
- description: "Gera um rascunho de codebook em portugu\xEAs europeu a partir de uma pergunta e das respostas. Apresentar para aprova\xE7\xE3o humana antes de codificar; n\xE3o aplica c\xF3digos nem altera ficheiros.",
26530
+ description: "Gera um codebook ou enriquece as descri\xE7\xF5es em falta de uma grelha existente, preservando c\xF3digos e r\xF3tulos. Apresentar a proposta e review_notes para revis\xE3o humana antes de codificar; n\xE3o aplica c\xF3digos nem altera ficheiros.",
26531
26531
  args: {
26532
26532
  question: tool.schema.string().trim().min(1).max(1e4).describe("Texto da pergunta aberta"),
26533
- responses: tool.schema.array(tool.schema.string().trim().min(1).max(2e4)).min(1).max(2e3).describe("Respostas da mesma pergunta, sem identificadores pessoais desnecess\xE1rios")
26533
+ responses: tool.schema.array(tool.schema.string().trim().min(1).max(2e4)).min(1).max(2e3).describe("Respostas da mesma pergunta, sem identificadores pessoais desnecess\xE1rios"),
26534
+ existing_codebook: tool.schema.array(tool.schema.object({
26535
+ code: tool.schema.number().int().nonnegative(),
26536
+ label: tool.schema.string().min(1).max(120),
26537
+ description: tool.schema.string().max(1e3).nullable().optional()
26538
+ })).min(1).max(100).optional().describe("Grelha completa a enriquecer, incluindo 98/99 se existirem; omitir para gerar de raiz"),
26539
+ context: tool.schema.string().max(1e4).optional().describe("Contexto conhecido, regras do estudo e exemplos humanos explicitamente aprovados; n\xE3o apresentar c\xF3digos anteriores de IA como verdade")
26534
26540
  },
26535
26541
  async execute(args, context) {
26536
26542
  const credentials = await readForgeCredentials(paths, forgeBaseUrl);
@@ -26538,7 +26544,7 @@ function createForgeCodebookTool(forgeBaseUrl, gatewayBaseUrl, paths) {
26538
26544
  method: "POST",
26539
26545
  redirect: "error",
26540
26546
  headers: { authorization: `Bearer ${credentials.forgeApiKey}`, "content-type": "application/json" },
26541
- body: JSON.stringify({ question: args.question, responses: args.responses }),
26547
+ body: JSON.stringify({ question: args.question, responses: args.responses, existing_codebook: args.existing_codebook, context: args.context }),
26542
26548
  signal: AbortSignal.any([context.abort, AbortSignal.timeout(FORGE_DECISION_TIMEOUT_MS)])
26543
26549
  });
26544
26550
  const body = await response.json().catch(() => void 0);
package/dist/repair.js CHANGED
@@ -401,7 +401,7 @@ var DEVICE_ENROLLMENT_PROTOCOL_VERSION = 1;
401
401
  // packages/shared/src/contracts/settings.ts
402
402
  var DOCUMENT_READER_AGENT = "document-reader";
403
403
  var OPENROUTER_ALIAS_PROVIDER_NAME = "OpenRouter (via Forge)";
404
- var WORK_PACK_SYNC_PLUGIN_VERSION = "0.1.35";
404
+ var WORK_PACK_SYNC_PLUGIN_VERSION = "0.1.36";
405
405
  var WORK_PACK_SYNC_PLUGIN_PACKAGE = `minimal-forge-work-pack-sync@${WORK_PACK_SYNC_PLUGIN_VERSION}`;
406
406
  var WORK_PACK_SYNC_PLUGIN_FILENAME = `minimal-forge-work-pack-sync-${WORK_PACK_SYNC_PLUGIN_VERSION}.tgz`;
407
407
  var FIRECRAWL_KEYLESS_MCP_NAME = "firecrawl";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minimal-forge-work-pack-sync",
3
- "version": "0.1.35",
3
+ "version": "0.1.36",
4
4
  "description": "Minimal Forge Work Pack startup synchronization for OpenCode and OpenWork.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {