@nodii/dev 0.6.41 → 0.6.42

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/core.js CHANGED
@@ -4,7 +4,7 @@ import { chmod, mkdir, readFile, rm, writeFile } from "node:fs/promises";
4
4
  import { homedir, platform } from "node:os";
5
5
  import { dirname, join } from "node:path";
6
6
 
7
- export const VERSION = "0.6.41";
7
+ export const VERSION = "0.6.42";
8
8
  export const configPath = () =>
9
9
  process.env.NODII_DEV_CONFIG_PATH ??
10
10
  join(homedir(), ".config/nodii-dev/config.json");
package/dist/lanes.js CHANGED
@@ -113,8 +113,9 @@ async function laneContract(id, request, options) {
113
113
  try {
114
114
  return (await request("GET", `/api/v1/lanes/${encode(id)}/contract`, undefined, options)).data?.text ?? null;
115
115
  } catch (error) {
116
- // A Dev from before the Lane contract route: say so, never hide it.
117
- if (error?.code === "HTTP_404" || error?.code === "NOT_FOUND") return "(this Dev does not serve the Lane contract yet; read the lane with `nodii-dev lane show`)";
116
+ // A Dev or edge without the Lane contract route (the edge answers an
117
+ // unknown route `unroutable`): say so, never fail the Gather on it.
118
+ if (["unroutable", "HTTP_404", "NOT_FOUND", "ROUTE_NOT_FOUND"].includes(error?.code)) return "(Dev does not serve the Lane contract here yet. Record your pick: the recorded Gather prints the full contract. Until then, `nodii-dev lane show` and `nodii-dev issues show <issue>` hold it.)";
118
119
  throw error;
119
120
  }
120
121
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nodii/dev",
3
- "version": "0.6.41",
3
+ "version": "0.6.42",
4
4
  "description": "Agent CLI for Nodii Dev, reached through the platform edge",
5
5
  "type": "module",
6
6
  "bin": {