@scribed/cli 0.1.0 → 0.1.2
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 +78 -16
- package/dist/index.js +3667 -1868
- package/dist/mcp/server.js +2870 -1510
- package/package.json +12 -24
- package/types/mcp.d.ts +24 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scribed/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Command-line client + MCP server for Scribed — CRM records, phone + texting, inbox, calendar + booking, transcriptions, HR, Vault, automations, Creative Studio, and Documents, derived from the scribed-agent tool catalog.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"agent"
|
|
14
14
|
],
|
|
15
15
|
"publishConfig": {
|
|
16
|
-
"access": "public"
|
|
16
|
+
"access": "public",
|
|
17
|
+
"registry": "https://registry.npmjs.org"
|
|
17
18
|
},
|
|
18
19
|
"engines": {
|
|
19
20
|
"node": ">=20"
|
|
@@ -24,7 +25,7 @@
|
|
|
24
25
|
"exports": {
|
|
25
26
|
"./mcp": {
|
|
26
27
|
"types": "./types/mcp.d.ts",
|
|
27
|
-
"bun": "./
|
|
28
|
+
"bun": "./dist/mcp/server.js",
|
|
28
29
|
"default": "./dist/mcp/server.js"
|
|
29
30
|
}
|
|
30
31
|
},
|
|
@@ -33,27 +34,14 @@
|
|
|
33
34
|
"dist",
|
|
34
35
|
"types"
|
|
35
36
|
],
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"verify:stdio": "bun run build && bun scripts/verify-stdio.ts",
|
|
41
|
-
"verify:bundle": "bun run build && bun scripts/verify-bundle.ts",
|
|
42
|
-
"verify:files": "bun run build && bun scripts/verify-files.ts",
|
|
43
|
-
"verify:catalog": "bun scripts/verify-catalog.ts",
|
|
44
|
-
"smoke": "bun scripts/smoke-tools.ts",
|
|
45
|
-
"smoke:companions": "bun scripts/smoke-companions.ts",
|
|
46
|
-
"prepack": "bun run type-check && bun run test && bun run build && bun scripts/verify-bundle.ts && bun scripts/verify-stdio.ts && bun scripts/verify-files.ts"
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "git+https://github.com/q6th/scribed-web.git",
|
|
40
|
+
"directory": "scribed-cli"
|
|
47
41
|
},
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"zod": "4.4.3"
|
|
53
|
-
},
|
|
54
|
-
"devDependencies": {
|
|
55
|
-
"@types/bun": "^1.3.14",
|
|
56
|
-
"@types/node": "^26.0.1",
|
|
57
|
-
"typescript": "^6.0.3"
|
|
42
|
+
"gitHead": "971be958c1270675908ac2b5a0e4a4ec79f2801c",
|
|
43
|
+
"scribedRelease": {
|
|
44
|
+
"repository": "q6th/scribed-web",
|
|
45
|
+
"commit": "971be958c1270675908ac2b5a0e4a4ec79f2801c"
|
|
58
46
|
}
|
|
59
47
|
}
|
package/types/mcp.d.ts
CHANGED
|
@@ -35,7 +35,16 @@ export interface BinaryUploadDescriptor {
|
|
|
35
35
|
allowEmpty?: boolean;
|
|
36
36
|
directUpload?: { provider: 'vercel-blob'; startTool: string; completeTool: string; cancelTool: string };
|
|
37
37
|
}
|
|
38
|
-
export interface ToolUpload { stream: ReadableStream<Uint8Array>; size: number; name: string; mimeType: string; maxBytes: number }
|
|
38
|
+
export interface ToolUpload { stream: ReadableStream<Uint8Array>; size: number; name: string; mimeType: string; maxBytes: number; contentSha256?: string }
|
|
39
|
+
|
|
40
|
+
export interface ToolExecutionReceipt {
|
|
41
|
+
state: 'running' | 'completed' | 'failed' | 'unknown' | 'retryable';
|
|
42
|
+
requestId: string;
|
|
43
|
+
startedAt: string;
|
|
44
|
+
completedAt: string | null;
|
|
45
|
+
duplicateSuppressed: boolean;
|
|
46
|
+
resultAvailable: false;
|
|
47
|
+
}
|
|
39
48
|
|
|
40
49
|
export interface CatalogToolError {
|
|
41
50
|
error: true;
|
|
@@ -43,6 +52,9 @@ export interface CatalogToolError {
|
|
|
43
52
|
code?: string;
|
|
44
53
|
status?: number | null;
|
|
45
54
|
retryAfterSeconds?: number;
|
|
55
|
+
receipt?: ToolExecutionReceipt;
|
|
56
|
+
requestId?: string;
|
|
57
|
+
idempotencyKey?: string;
|
|
46
58
|
}
|
|
47
59
|
|
|
48
60
|
export interface CatalogToolInvocation {
|
|
@@ -73,6 +85,7 @@ export interface CatalogCallContext {
|
|
|
73
85
|
uploads?: ReadonlyMap<string, ToolUpload>;
|
|
74
86
|
signal?: AbortSignal;
|
|
75
87
|
uploadApiUrl?: string;
|
|
88
|
+
idempotencyKey?: string;
|
|
76
89
|
billing?: {
|
|
77
90
|
consumerApp: 'scribed';
|
|
78
91
|
userId: string;
|
|
@@ -96,10 +109,20 @@ export interface McpServerOptions {
|
|
|
96
109
|
internalSigningKey?: string;
|
|
97
110
|
/** Hosted Scribed API only; omit state-changing tools. */
|
|
98
111
|
readOnly?: boolean;
|
|
112
|
+
/** Local API-key discovery: exact tool names allowed by the deployment. */
|
|
113
|
+
allowedTools?: readonly string[];
|
|
99
114
|
/** Pin every tool call to one workspace. */
|
|
100
115
|
workspaceId?: string;
|
|
101
116
|
/** Local stdio only; resolves/refreshes its execution credentials per call. */
|
|
102
117
|
contextProvider?: () => Promise<CatalogCallContext>;
|
|
118
|
+
/** Hosted API only: wraps validated calls in its durable execution receipt. */
|
|
119
|
+
executeTool?: (name: string, args: unknown, context: CatalogCallContext, extra: McpToolCallExtra) => Promise<unknown>;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface McpToolCallExtra {
|
|
123
|
+
signal: AbortSignal;
|
|
124
|
+
_meta?: Record<string, unknown>;
|
|
125
|
+
requestId?: string | number;
|
|
103
126
|
}
|
|
104
127
|
|
|
105
128
|
export declare const SERVER_INSTRUCTIONS: string;
|