@eide/foir-cli 0.2.0 → 0.3.1
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/cli.js +2392 -49
- package/dist/lib/config-helpers.d.ts +12 -2
- package/package.json +10 -6
|
@@ -40,7 +40,8 @@ interface ApplyConfigOperationInput {
|
|
|
40
40
|
name: string;
|
|
41
41
|
description?: string;
|
|
42
42
|
category?: string;
|
|
43
|
-
|
|
43
|
+
/** HTTP endpoint URL that the platform calls when this operation is triggered. */
|
|
44
|
+
endpoint?: string;
|
|
44
45
|
config?: Record<string, unknown>;
|
|
45
46
|
isActive?: boolean;
|
|
46
47
|
}
|
|
@@ -78,8 +79,17 @@ interface ApplyConfigPlacementInput {
|
|
|
78
79
|
modelKeys?: string[];
|
|
79
80
|
}
|
|
80
81
|
interface ApplyConfigHookInput {
|
|
82
|
+
/** Unique key for this hook. */
|
|
83
|
+
key?: string;
|
|
84
|
+
/** Display name. */
|
|
85
|
+
name?: string;
|
|
86
|
+
/** Lifecycle event that triggers this hook. */
|
|
81
87
|
event: string;
|
|
82
|
-
|
|
88
|
+
/** Key of the operation to execute. */
|
|
89
|
+
operationKey?: string;
|
|
90
|
+
/** Filter to scope the hook (e.g., `{ modelKey: 'redirect' }`). */
|
|
91
|
+
filter?: Record<string, unknown>;
|
|
92
|
+
type?: string;
|
|
83
93
|
url?: string;
|
|
84
94
|
method?: string;
|
|
85
95
|
async?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eide/foir-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Universal platform CLI for Foir platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -49,19 +49,23 @@
|
|
|
49
49
|
"@bufbuild/protobuf": "^2.0.0",
|
|
50
50
|
"@connectrpc/connect": "^2.0.0",
|
|
51
51
|
"@connectrpc/connect-node": "^2.0.0",
|
|
52
|
-
"@foir
|
|
52
|
+
"@eide/foir-proto-ts": "^0.1.0",
|
|
53
53
|
"chalk": "^5.3.0",
|
|
54
54
|
"commander": "^12.1.0",
|
|
55
55
|
"dotenv": "^16.4.5",
|
|
56
|
+
"graphql": "^16.13.2",
|
|
57
|
+
"graphql-request": "^7.4.0",
|
|
56
58
|
"inquirer": "^9.2.12",
|
|
57
59
|
"open": "^10.1.0",
|
|
58
60
|
"ora": "^8.1.1",
|
|
59
61
|
"prettier": "^3.4.2"
|
|
60
62
|
},
|
|
61
63
|
"devDependencies": {
|
|
62
|
-
"@eide/command-registry": "workspace:*",
|
|
63
64
|
"@types/inquirer": "^9.0.7",
|
|
64
65
|
"@types/node": "^22.5.0",
|
|
66
|
+
"@typescript-eslint/eslint-plugin": "^8.58.0",
|
|
67
|
+
"@typescript-eslint/parser": "^8.58.0",
|
|
68
|
+
"eslint": "^10.1.0",
|
|
65
69
|
"tsup": "^8.5.1",
|
|
66
70
|
"tsx": "^4.20.0",
|
|
67
71
|
"typescript": "5.9.2",
|
|
@@ -72,7 +76,7 @@
|
|
|
72
76
|
},
|
|
73
77
|
"repository": {
|
|
74
78
|
"type": "git",
|
|
75
|
-
"url": "https://github.com/eidestudio/foir.git"
|
|
76
|
-
|
|
77
|
-
|
|
79
|
+
"url": "https://github.com/eidestudio/foir-cli.git"
|
|
80
|
+
},
|
|
81
|
+
"packageManager": "pnpm@9.15.4"
|
|
78
82
|
}
|