@pitcher/cli-scripts 2.18.0 → 2.20.0
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 +45 -10
- package/dist/src/commands/analytics.d.ts +3 -1
- package/dist/src/commands/analytics.js +7 -3
- package/dist/src/commands/devSync.d.ts +2 -0
- package/dist/src/commands/devSync.js +5 -5
- package/dist/src/commands/dsr.d.ts +5 -0
- package/dist/src/commands/dsr.js +126 -14
- package/dist/src/commands/publishApp.d.ts +2 -0
- package/dist/src/commands/publishApp.js +3 -3
- package/dist/src/commands/scaffolds.js +11 -3
- package/dist/src/core/archive.js +3 -3
- package/dist/src/core/credential.d.ts +25 -0
- package/dist/src/core/credential.js +25 -0
- package/dist/src/core/http.d.ts +6 -1
- package/dist/src/core/http.js +6 -5
- package/dist/src/core/ld.d.ts +38 -2
- package/dist/src/core/ld.js +162 -6
- package/dist/src/core/readInput.js +8 -1
- package/dist/src/mcp/bundled.js +1 -1
- package/dist/src/mcp/hosted.d.ts +21 -0
- package/dist/src/mcp/hosted.js +82 -0
- package/dist/src/mcp/index.d.ts +7 -0
- package/dist/src/mcp/index.js +6 -0
- package/dist/src/mcp/serve.js +1 -1
- package/dist/src/mcp/server.d.ts +19 -2
- package/dist/src/mcp/server.js +4 -4
- package/dist/src/mcp/tools/analytics.js +1 -1
- package/dist/src/mcp/tools/devSync.js +2 -2
- package/dist/src/mcp/tools/dsr.js +19 -1
- package/dist/src/mcp/tools/publishApp.js +2 -1
- package/dist/src/mcp/tools/types.d.ts +1 -1
- package/package.json +17 -6
|
@@ -21,7 +21,7 @@ export const publishAppTools = [
|
|
|
21
21
|
installToEnvName: z.string().optional().describe('Environment name (e.g. "test") to install the app to after publishing'),
|
|
22
22
|
},
|
|
23
23
|
// runPublishApp overloads `url` as BOTH origin and publish endpoint; the server injects NG_URL into
|
|
24
|
-
// every tool, so forward only apiKey + org (never url) plus this tool's own inputs.
|
|
24
|
+
// every tool, so forward only apiKey + credential + org (never url) plus this tool's own inputs.
|
|
25
25
|
run: (opts) => runPublishApp({
|
|
26
26
|
folder: asString(opts.folder),
|
|
27
27
|
incrementVersion: asBool(opts.incrementVersion),
|
|
@@ -29,6 +29,7 @@ export const publishAppTools = [
|
|
|
29
29
|
installTo: asString(opts.installTo),
|
|
30
30
|
installToEnvName: asString(opts.installToEnvName),
|
|
31
31
|
apiKey: opts.apiKey,
|
|
32
|
+
credential: opts.credential,
|
|
32
33
|
org: opts.org,
|
|
33
34
|
}),
|
|
34
35
|
wraps: runPublishApp,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { z } from 'zod';
|
|
2
2
|
import type { Envelope } from '../../core/envelope.js';
|
|
3
3
|
import type { CommonOpts } from '../../core/http.js';
|
|
4
|
-
export type InjectedAuth = Pick<CommonOpts, 'apiKey' | 'org' | 'url'>;
|
|
4
|
+
export type InjectedAuth = Pick<CommonOpts, 'apiKey' | 'credential' | 'org' | 'url'>;
|
|
5
5
|
export interface ToolDescriptor {
|
|
6
6
|
name: string;
|
|
7
7
|
title: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pitcher/cli-scripts",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.20.0",
|
|
4
4
|
"description": "The Pitcher CLI for various tasks in its ecosystem.",
|
|
5
5
|
"author": "Pitcher AG",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,6 +12,17 @@
|
|
|
12
12
|
"type": "module",
|
|
13
13
|
"main": "./dist/index.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"import": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./mcp": {
|
|
21
|
+
"types": "./dist/src/mcp/index.d.ts",
|
|
22
|
+
"import": "./dist/src/mcp/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./package.json": "./package.json"
|
|
25
|
+
},
|
|
15
26
|
"scripts": {
|
|
16
27
|
"build": "tsc",
|
|
17
28
|
"type-check": "tsc --noEmit && tsc -p mcpb/tsconfig.json",
|
|
@@ -28,18 +39,18 @@
|
|
|
28
39
|
],
|
|
29
40
|
"devDependencies": {
|
|
30
41
|
"@anthropic-ai/mcpb": "^2.1.2",
|
|
31
|
-
"@types/archiver": "^
|
|
32
|
-
"@types/node": "^24.13.
|
|
42
|
+
"@types/archiver": "^8.0.0",
|
|
43
|
+
"@types/node": "^24.13.5",
|
|
33
44
|
"esbuild": "^0.28.1",
|
|
34
45
|
"typescript": "^6.0.3",
|
|
35
|
-
"vitest": "^
|
|
46
|
+
"vitest": "^5.0.1"
|
|
36
47
|
},
|
|
37
48
|
"dependencies": {
|
|
38
49
|
"@modelcontextprotocol/sdk": "^1",
|
|
39
|
-
"archiver": "^
|
|
50
|
+
"archiver": "^8.0.0",
|
|
40
51
|
"axios": "^1.18.1",
|
|
41
52
|
"chokidar": "^5.0.0",
|
|
42
|
-
"commander": "^
|
|
53
|
+
"commander": "^15.0.0",
|
|
43
54
|
"form-data": "^4.0.6",
|
|
44
55
|
"zod": "^3"
|
|
45
56
|
}
|