@fourier-labs/harbour 0.1.10 → 0.1.11

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.
@@ -37,14 +37,14 @@ export async function productionise(rootArg, client, output, tenantId, includePa
37
37
  throw new CliError("NOT_STARTED", "Harbour did not start the productionisation operation.");
38
38
  try {
39
39
  const submitted = structured(await client.call("harbour_submit_application_graph", { operationId: operationRef, surface: "codex", graph }));
40
- if (submitted.nextTool && submitted.nextTool !== "harbour_prepare_source_upload")
40
+ if (submitted.nextTool && !matchesTool(submitted.nextTool, "harbour_prepare_source_upload"))
41
41
  throw new CliError("UNSUPPORTED_NEXT_STEP", "Harbour returned an unsupported next step.", operationRef);
42
42
  const appId = projectName(graph.deploymentScope.appRoot);
43
43
  const manifest = await createSourceManifest({ tenantId, appId, operationId: operationRef, graphDigest: graph.graphDigest, files });
44
44
  const prepared = structured(await client.call("harbour_prepare_source_upload", { operationId: operationRef, surface: "codex", graph, manifest: { schema: "harbour.source-package-manifest/1.0", files: manifest.files.map(file => ({ path: file.path, size: file.bytes, sha256: file.sha256 })) } }));
45
45
  if (!prepared.acceptedManifest || !prepared.sourceUpload)
46
46
  throw new CliError("UPLOAD_CONTRACT_MISSING", "Harbour did not return a safe upload contract.", operationRef);
47
- if (prepared.nextAction?.tool && prepared.nextAction.tool !== "harbour_execute_source_control")
47
+ if (prepared.nextAction?.tool && !matchesTool(prepared.nextAction.tool, "harbour_execute_source_control"))
48
48
  throw new CliError("UNSUPPORTED_NEXT_STEP", "Harbour returned an unsupported next step.", operationRef);
49
49
  const archive = await archiveForManifest(root, prepared.acceptedManifest);
50
50
  await putExact(prepared.sourceUpload, archive.body);
@@ -104,6 +104,10 @@ async function waitForSave(client, operationRef, graph, first, output) {
104
104
  function boundedWait(value) {
105
105
  return Math.min(15, Math.max(0, Number.isFinite(value) ? Math.floor(value) : 15));
106
106
  }
107
+ /** Harbour accepts legacy dotted MCP names while publishing portable underscore names. */
108
+ function matchesTool(actual, expected) {
109
+ return actual.replaceAll(".", "_") === expected;
110
+ }
107
111
  function isProhibitedSecretPath(path) {
108
112
  if (/(^|\/)\.env\.example$/i.test(path))
109
113
  return false;
@@ -1 +1 @@
1
- export const CLI_VERSION = "0.1.10";
1
+ export const CLI_VERSION = "0.1.11";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fourier-labs/harbour",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Harbour productionisation helper",
5
5
  "type": "module",
6
6
  "bin": { "harbour": "./dist/packages/harbour-cli/src/cli.js" },