mano-coding 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/bin.js CHANGED
@@ -23224,6 +23224,11 @@ var init_errors3 = __esm({
23224
23224
  // packages/core/src/resolvers/registry-client.ts
23225
23225
  function selectRelease(entry, versionRange) {
23226
23226
  const packageId = entry.id ?? entry.metadata?.id ?? "unknown";
23227
+ const channelVersion = entry.channels?.[versionRange];
23228
+ if (channelVersion && (versionRange !== "stable" || !import_semver2.default.prerelease(channelVersion))) {
23229
+ const channelRelease = entry.releases.find((release) => release.version === channelVersion);
23230
+ if (channelRelease) return channelRelease;
23231
+ }
23227
23232
  const normalizedRange = normalizeRange(versionRange);
23228
23233
  const candidates = entry.releases.filter((r) => {
23229
23234
  if (import_semver2.default.prerelease(r.version) && !rangeAllowsPrerelease(normalizedRange)) {
@@ -50944,7 +50949,7 @@ import { createRequire as createRequire2 } from "node:module";
50944
50949
  import { readFileSync as readFileSync4 } from "node:fs";
50945
50950
  import { fileURLToPath as fileURLToPath5 } from "node:url";
50946
50951
  function resolveVersion() {
50947
- if (true) return "0.1.35";
50952
+ if (true) return "0.1.36";
50948
50953
  const candidates = [
50949
50954
  new URL("../package.json", import.meta.url),
50950
50955
  new URL("../../package.json", import.meta.url),
@@ -13,7 +13,11 @@
13
13
  "displayName": { "type": "string", "minLength": 1, "maxLength": 80 },
14
14
  "description": { "type": "string", "maxLength": 500 },
15
15
  "metadata": { "$ref": "#/$defs/metadata" },
16
- "channels": { "type": "object" },
16
+ "channels": {
17
+ "type": "object",
18
+ "propertyNames": { "pattern": "^[a-z][a-z0-9-]*$" },
19
+ "additionalProperties": { "$ref": "#/$defs/semver" }
20
+ },
17
21
  "releases": {
18
22
  "type": "array",
19
23
  "minItems": 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mano-coding",
3
- "version": "0.1.35",
3
+ "version": "0.1.36",
4
4
  "description": "Mano Coding CLI and toolchain",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -13,7 +13,11 @@
13
13
  "displayName": { "type": "string", "minLength": 1, "maxLength": 80 },
14
14
  "description": { "type": "string", "maxLength": 500 },
15
15
  "metadata": { "$ref": "#/$defs/metadata" },
16
- "channels": { "type": "object" },
16
+ "channels": {
17
+ "type": "object",
18
+ "propertyNames": { "pattern": "^[a-z][a-z0-9-]*$" },
19
+ "additionalProperties": { "$ref": "#/$defs/semver" }
20
+ },
17
21
  "releases": {
18
22
  "type": "array",
19
23
  "minItems": 1,