@phreshos/cli 0.1.59 → 0.1.60

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.
@@ -15,7 +15,7 @@ export const value = Object.freeze({
15
15
  description
16
16
  }),
17
17
  array: (items, description) => ({ type: "array", items, description }),
18
- object: (properties, required, description, additionalProperties = false) => ({ type: "object", properties, required, additionalProperties, description }),
18
+ object: (properties, required, description, additionalProperties = true) => ({ type: "object", properties, required, additionalProperties, description }),
19
19
  nullable: (schema) => ({ anyOf: [schema, { type: "null" }] })
20
20
  });
21
21
  /** Validate one emitted JSON value against its declared CLI output contract. */
@@ -57,8 +57,6 @@ export function assertValue(value, contract, path = "result") {
57
57
  const property = contract.properties?.[name];
58
58
  if (property)
59
59
  assertValue(item, property, `${path}.${name}`);
60
- else if (contract.additionalProperties === false)
61
- throw new Error(`${path}.${name} is not declared by its CLI contract`);
62
60
  else if (typeof contract.additionalProperties === "object")
63
61
  assertValue(item, contract.additionalProperties, `${path}.${name}`);
64
62
  }
@@ -22,7 +22,7 @@
22
22
  "react-dom": "^19.2.8"
23
23
  },
24
24
  "devDependencies": {
25
- "@phreshos/cli": "^0.1.59",
25
+ "@phreshos/cli": "^0.1.60",
26
26
  "@types/node": "^26.4.0",
27
27
  "@types/react": "^19.2.18",
28
28
  "@types/react-dom": "^19.2.5",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@phreshos/cli",
3
3
  "type": "module",
4
- "version": "0.1.59",
4
+ "version": "0.1.60",
5
5
  "description": "The Phresh command-line interface for Program projects and system management.",
6
6
  "engines": {
7
7
  "node": ">=20.10"
@@ -47,8 +47,8 @@
47
47
  "packageManager": "bun@1.3.14",
48
48
  "dependencies": {
49
49
  "@clack/prompts": "^1.7.0",
50
- "@phreshos/core": "^0.1.48",
51
- "@phreshos/node": "^0.1.22",
50
+ "@phreshos/core": "^0.1.49",
51
+ "@phreshos/node": "^0.1.23",
52
52
  "adm-zip": "^0.6.0",
53
53
  "cli-table3": "^0.6.5",
54
54
  "commander": "^15.0.0",