@cotal-ai/workspace 0.109.19 → 0.109.21

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.
@@ -3,7 +3,7 @@
3
3
  "platform": "darwin",
4
4
  "arch": "arm64",
5
5
  "nodeApi": 8,
6
- "source": "06b33fcce9176146e0164a42b954cedaa8233df5",
6
+ "source": "2dfcc5058f3812b2a751ae091ecb7ef450b0129d",
7
7
  "sourceHashes": {
8
8
  "native/win32-process.c": "889b215135b60dd3a45096737a3219ce114bc424e4b6cce42624f0913f8447dc",
9
9
  "native/win32-system-id.cpp": "2dd51f24425e8239aeac1aae01e67f43264f04f09cd9097a12d288be7a84e074",
@@ -3,7 +3,7 @@
3
3
  "platform": "darwin",
4
4
  "arch": "x64",
5
5
  "nodeApi": 8,
6
- "source": "06b33fcce9176146e0164a42b954cedaa8233df5",
6
+ "source": "2dfcc5058f3812b2a751ae091ecb7ef450b0129d",
7
7
  "sourceHashes": {
8
8
  "native/win32-process.c": "889b215135b60dd3a45096737a3219ce114bc424e4b6cce42624f0913f8447dc",
9
9
  "native/win32-system-id.cpp": "2dd51f24425e8239aeac1aae01e67f43264f04f09cd9097a12d288be7a84e074",
@@ -3,7 +3,7 @@
3
3
  "platform": "win32",
4
4
  "arch": "arm64",
5
5
  "nodeApi": 8,
6
- "source": "06b33fcce9176146e0164a42b954cedaa8233df5",
6
+ "source": "2dfcc5058f3812b2a751ae091ecb7ef450b0129d",
7
7
  "sourceHashes": {
8
8
  "native/win32-process.c": "889b215135b60dd3a45096737a3219ce114bc424e4b6cce42624f0913f8447dc",
9
9
  "native/win32-system-id.cpp": "2dd51f24425e8239aeac1aae01e67f43264f04f09cd9097a12d288be7a84e074",
@@ -3,7 +3,7 @@
3
3
  "platform": "win32",
4
4
  "arch": "x64",
5
5
  "nodeApi": 8,
6
- "source": "06b33fcce9176146e0164a42b954cedaa8233df5",
6
+ "source": "2dfcc5058f3812b2a751ae091ecb7ef450b0129d",
7
7
  "sourceHashes": {
8
8
  "native/win32-process.c": "889b215135b60dd3a45096737a3219ce114bc424e4b6cce42624f0913f8447dc",
9
9
  "native/win32-system-id.cpp": "2dd51f24425e8239aeac1aae01e67f43264f04f09cd9097a12d288be7a84e074",
@@ -31,7 +31,8 @@ export declare function deprecatedDaemonEntryWarning(entry: DeprecatedDaemonEntr
31
31
  /** The summary the entry's own help shows: marked deprecated, with its removal release and the
32
32
  * service preset that replaces it. */
33
33
  export declare function deprecatedDaemonEntrySummary(entry: keyof typeof DEPRECATED_DAEMON_PRESETS | typeof DEPRECATED_MANAGER_ENTRY, summary: string): string;
34
- /** Print {@link deprecatedDaemonEntryWarning} to stderr, leaving stdout to the entry itself. */
34
+ /** Print {@link deprecatedDaemonEntryWarning} to stderr, leaving stdout to the entry itself. On a
35
+ * terminal it wraps like any other warning, each continuation line under its text. */
35
36
  export declare function warnDeprecatedDaemonEntry(entry: DeprecatedDaemonEntry, kept?: readonly string[]): void;
36
37
  /** The deprecated public entry over its hidden twin: the twin's declaration under the entry's name,
37
38
  * with a run that warns once and then calls the twin's runner. `warning` picks the line for a mode
@@ -1 +1 @@
1
- {"version":3,"file":"deprecated-daemon-entries.d.ts","sourceRoot":"","sources":["../src/deprecated-daemon-entries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG1D;wDACwD;AACxD,eAAO,MAAM,4BAA4B,UAAU,CAAC;AAEpD,4EAA4E;AAC5E,eAAO,MAAM,yBAAyB;;;;CAI5B,CAAC;AAEX;iCACiC;AACjC,eAAO,MAAM,wBAAwB,cAAc,CAAC;AAEpD;yFACyF;AACzF,eAAO,MAAM,oBAAoB,oIAAqI,CAAC;AAEvK;;+BAE+B;AAC/B,eAAO,MAAM,kBAAkB;;;;CAIrB,CAAC;AAEX,iGAAiG;AACjG,MAAM,MAAM,qBAAqB,GAAG,MAAM,OAAO,yBAAyB,GAAG,OAAO,wBAAwB,G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AM,CAQ/G;AAED;uCACuC;AACvC,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,OAAO,yBAAyB,GAAG,OAAO,wBAAwB,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAGrJ;AAED;uFACuF;AACvF,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,qBAAqB,EAAE,IAAI,GAAE,SAAS,MAAM,EAAO,GAAG,IAAI,CAG1G;AAED;;iEAEiE;AACjE,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,MAAM,OAAO,kBAAkB,EACtC,IAAI,EAAE,OAAO,EACb,OAAO,GAAE,CAAC,IAAI,EAAE,UAAU,KAAK,qBAAmC,GACjE,OAAO,CAMT"}
@@ -1,4 +1,5 @@
1
1
  import { c } from "./colors.js";
2
+ import { terminalWidth, wrapWords } from "./text-wrap.js";
2
3
  /** The release that removes the deprecated daemon entries. One value for all four, recorded under
3
4
  * "Deprecated daemon entries" in docs/UPGRADING.md. */
4
5
  export const DAEMON_ENTRY_REMOVAL_RELEASE = "1.0.0";
@@ -27,13 +28,13 @@ export const DAEMON_ENTRY_TWINS = {
27
28
  * replacement has no form for, so the line says to keep the entry for them instead. */
28
29
  export function deprecatedDaemonEntryWarning(entry, kept = []) {
29
30
  if (kept.length)
30
- return `! cotal ${entry} is deprecated and will be removed in ${DAEMON_ENTRY_REMOVAL_RELEASE}. cotal manager start has no ${kept.map((flag) => `--${flag}`).join(", ")} yet, so keep cotal ${entry} for this run until it does.`;
31
+ return `! \`cotal ${entry}\` is deprecated and will be removed in ${DAEMON_ENTRY_REMOVAL_RELEASE}. \`cotal manager start\` has no ${kept.map((flag) => `--${flag}`).join(", ")} yet, so keep \`cotal ${entry}\` for this run until it does.`;
31
32
  const replacement = entry === "deliver pending"
32
- ? "cotal pending <agent>"
33
+ ? "`cotal pending <agent>`"
33
34
  : entry === DEPRECATED_MANAGER_ENTRY
34
- ? "cotal manager start, or cotal manager start --foreground to keep it in this terminal"
35
- : `cotal service start ${DEPRECATED_DAEMON_PRESETS[entry]}, which names any option it needs`;
36
- return `! cotal ${entry} is deprecated and will be removed in ${DAEMON_ENTRY_REMOVAL_RELEASE}. Use ${replacement}.`;
35
+ ? "`cotal manager start`, or `cotal manager start --foreground` to keep it in this terminal"
36
+ : `\`cotal service start ${DEPRECATED_DAEMON_PRESETS[entry]}\`, which names any option it needs`;
37
+ return `! \`cotal ${entry}\` is deprecated and will be removed in ${DAEMON_ENTRY_REMOVAL_RELEASE}. Use ${replacement}.`;
37
38
  }
38
39
  /** The summary the entry's own help shows: marked deprecated, with its removal release and the
39
40
  * service preset that replaces it. */
@@ -41,9 +42,11 @@ export function deprecatedDaemonEntrySummary(entry, summary) {
41
42
  const use = entry === DEPRECATED_MANAGER_ENTRY ? "cotal manager start" : `the ${DEPRECATED_DAEMON_PRESETS[entry]} service preset`;
42
43
  return `(deprecated, removed in ${DAEMON_ENTRY_REMOVAL_RELEASE}; use ${use}) ${summary}`;
43
44
  }
44
- /** Print {@link deprecatedDaemonEntryWarning} to stderr, leaving stdout to the entry itself. */
45
+ /** Print {@link deprecatedDaemonEntryWarning} to stderr, leaving stdout to the entry itself. On a
46
+ * terminal it wraps like any other warning, each continuation line under its text. */
45
47
  export function warnDeprecatedDaemonEntry(entry, kept = []) {
46
- console.error(c.yellow(deprecatedDaemonEntryWarning(entry, kept)));
48
+ const [first = "", ...rest] = wrapWords(deprecatedDaemonEntryWarning(entry, kept), terminalWidth(process.stderr) - 2);
49
+ console.error(c.yellow([first, ...rest.map((line) => ` ${line}`)].join("\n")));
47
50
  }
48
51
  /** The deprecated public entry over its hidden twin: the twin's declaration under the entry's name,
49
52
  * with a run that warns once and then calls the twin's runner. `warning` picks the line for a mode
@@ -1 +1 @@
1
- {"version":3,"file":"deprecated-daemon-entries.js","sourceRoot":"","sources":["../src/deprecated-daemon-entries.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAEhC;wDACwD;AACxD,MAAM,CAA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AAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC,EAAE,CAAC;AACN,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cotal-ai/workspace",
3
3
  "description": "Cotal machine-local workstation layer: the ~/.cotal mesh registry, target resolution, preflight, on-disk auth-path I/O, and the command-copy renderer — operator concerns over a local checkout, kept separate from the wire protocol in @cotal-ai/core.",
4
- "version": "0.109.19",
4
+ "version": "0.109.21",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -22,7 +22,7 @@
22
22
  }
23
23
  },
24
24
  "dependencies": {
25
- "@cotal-ai/core": "0.109.19",
25
+ "@cotal-ai/core": "0.109.21",
26
26
  "ajv": "^8.20.0",
27
27
  "string-width": "^8.2.1",
28
28
  "yaml": "^2.9.0",