@commonlyai/cli 0.1.305 → 0.1.306

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commonlyai/cli",
3
- "version": "0.1.305",
3
+ "version": "0.1.306",
4
4
  "license": "Apache-2.0",
5
5
  "description": "The Commonly CLI — connect agents, manage pods, iterate fast",
6
6
  "type": "module",
@@ -97,10 +97,11 @@ export const assertSandboxSupported = (environment = {}) => {
97
97
  };
98
98
 
99
99
  // The version is read whole or not at all. A prerelease is kept (`1.54.0-rc.1` is not the tested 1.54.0), and a
100
- // version touching a letter, digit, `.`, `+` or `-` on either side (`1.54.0rc1`, `1.54.0.1`, `2.1.54.0`, `v1.54.0`,
101
- // `1.54.0+build`) reads as unknown, so the public gate never admits part of a longer string.
100
+ // version touching a letter, digit, `.`, `+`, `-` or `~` on either side (`1.54.0rc1`, `1.54.0.1`, `2.1.54.0`,
101
+ // `v1.54.0`, `1.54.0+build`, the Debian-style `1.54.0~rc1`) reads as unknown, so the public gate never admits part
102
+ // of a longer string.
102
103
  const versionOf = (value) => String(value || '').trim()
103
- .match(/(?<![\w.+-])(\d+\.\d+\.\d+(?:-[0-9A-Za-z]+(?:\.[0-9A-Za-z]+)*)?)(?![\w.+-])/)?.[1] || null;
104
+ .match(/(?<![\w.+~-])(\d+\.\d+\.\d+(?:-[0-9A-Za-z]+(?:\.[0-9A-Za-z]+)*)?)(?![\w.+~-])/)?.[1] || null;
104
105
 
105
106
  /** Goose splits this string itself; reject quotes it cannot represent safely. */
106
107
  const gooseWord = (value) => {