@aipt/idp-cli 0.1.0 → 0.1.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/README.md +2 -0
- package/bin/idp.mjs +3 -1
- package/docs/integration.md +3 -0
- package/docs/tool-delegation.md +7 -0
- package/documentation-manifest.json +9 -0
- package/package.json +4 -1
package/README.md
CHANGED
package/bin/idp.mjs
CHANGED
|
@@ -89,6 +89,7 @@ function help() {
|
|
|
89
89
|
console.log(`idp:开发者统一入口(薄门面)
|
|
90
90
|
|
|
91
91
|
用法:
|
|
92
|
+
idp bootstrap [--cwd <目录>] [--apply]
|
|
92
93
|
idp doctor [--cwd <目录>] [--json]
|
|
93
94
|
idp app create|inspect [--cwd <目录>] [Kernel 参数...]
|
|
94
95
|
idp capability <Dyyto 参数...> [--cwd <目录>]
|
|
@@ -103,7 +104,8 @@ try {
|
|
|
103
104
|
if (rest.length === 0 || rest[0] === '--help' || rest[0] === 'help') { help(); process.exit(0); }
|
|
104
105
|
const [group, action, ...args] = rest;
|
|
105
106
|
let status;
|
|
106
|
-
if (group === '
|
|
107
|
+
if (group === 'bootstrap') status = run('dyyto', ['bootstrap', '--project', cwd, ...rest.slice(1)], cwd);
|
|
108
|
+
else if (group === 'doctor') status = doctor(cwd, json);
|
|
107
109
|
else if (group === 'app' && action === 'create') status = run('dyyto', ['create', ...args], cwd);
|
|
108
110
|
else if (group === 'app' && action === 'inspect') status = run('dyyto', ['inspect', ...args], cwd);
|
|
109
111
|
else if (group === 'capability' && action) status = run('dyyto', [action, ...args], cwd);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"package": "@aipt/idp-cli",
|
|
4
|
+
"version": "0.1.1",
|
|
5
|
+
"documents": [
|
|
6
|
+
{ "id": "idp-integration", "path": "docs/integration.md", "digest": "sha256:ad16f812d516763140c14efe8a0afb275b420987d23e0d6071fbbb7312b7324c" },
|
|
7
|
+
{ "id": "tool-delegation", "path": "docs/tool-delegation.md", "digest": "sha256:8dc76242bd21bfbd477609b1e3459e96fd092504bfe9e9b4b81db2d5391270a2" }
|
|
8
|
+
]
|
|
9
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aipt/idp-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "IDP 开发者统一入口,委托 Dyyto 与 idp-deploy 执行工程和交付能力。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"bin",
|
|
11
|
+
"docs/integration.md",
|
|
12
|
+
"docs/tool-delegation.md",
|
|
13
|
+
"documentation-manifest.json",
|
|
11
14
|
"README.md"
|
|
12
15
|
],
|
|
13
16
|
"publishConfig": {
|