@phreshos/cli 0.1.58 → 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.
package/dist/contract/schema.js
CHANGED
|
@@ -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 =
|
|
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
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "phresh",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.36",
|
|
5
5
|
"description": "The official PhreshOS starter Program.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
"starter"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@phreshos/client": "^0.1.
|
|
18
|
-
"@phreshos/core": "^0.1.
|
|
19
|
-
"@phreshos/react": "^0.1.
|
|
20
|
-
"@phreshos/server": "^0.1.
|
|
17
|
+
"@phreshos/client": "^0.1.42",
|
|
18
|
+
"@phreshos/core": "^0.1.48",
|
|
19
|
+
"@phreshos/react": "^0.1.24",
|
|
20
|
+
"@phreshos/server": "^0.1.46",
|
|
21
21
|
"react": "^19.2.8",
|
|
22
22
|
"react-dom": "^19.2.8"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@phreshos/cli": "^0.1.
|
|
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",
|
|
@@ -4,7 +4,7 @@ export default defineConfig({
|
|
|
4
4
|
identity: "phresh",
|
|
5
5
|
name: "Phresh Program",
|
|
6
6
|
description: "A minimal counter with direct Client and Server endpoints.",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.36",
|
|
8
8
|
icon: "icon.png",
|
|
9
9
|
categories: ["Development"],
|
|
10
10
|
keywords: ["example", "counter", "client", "server"],
|
package/dist/template.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"repository": "PhreshOS/phresh-program",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"sha256": "
|
|
3
|
+
"version": "0.1.36",
|
|
4
|
+
"sha256": "f22ae33155bc70b8533834835acdc8d8857a631caa57f135aa4ba5eeeb9fc4d0",
|
|
5
5
|
"development": true
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phreshos/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
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.
|
|
51
|
-
"@phreshos/node": "^0.1.
|
|
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",
|