@silkweave/core 1.3.0 → 1.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/.turbo/turbo-build.log +5 -5
- package/.turbo/turbo-check.log +9 -13
- package/.turbo/turbo-lint.log +0 -8
- package/.turbo/turbo-prepack.log +9 -9
- package/README.md +2 -3
- package/build/index.d.ts +14 -10
- package/build/index.js +35 -16
- package/build/index.js.map +1 -1
- package/package.json +3 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
[34mCLI[39m Target: node18
|
|
11
11
|
[34mCLI[39m Cleaning output folder
|
|
12
12
|
[34mESM[39m Build start
|
|
13
|
-
[32mESM[39m [1mbuild/index.js [22m[
|
|
14
|
-
[32mESM[39m [1mbuild/index.js.map [22m[32m7.
|
|
15
|
-
[32mESM[39m ⚡️ Build success in
|
|
13
|
+
[32mESM[39m [1mbuild/index.js [22m[32m3.27 KB[39m
|
|
14
|
+
[32mESM[39m [1mbuild/index.js.map [22m[32m7.72 KB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 5ms
|
|
16
16
|
DTS Build start
|
|
17
|
-
DTS ⚡️ Build success in
|
|
18
|
-
DTS build/index.d.ts 2.
|
|
17
|
+
DTS ⚡️ Build success in 615ms
|
|
18
|
+
DTS build/index.d.ts 2.80 KB
|
package/.turbo/turbo-check.log
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
> @silkweave/core@1.3.0 typecheck /Users/atomic/projects/ai/silkweave/packages/core
|
|
12
|
-
> tsc --noEmit
|
|
13
|
-
|
|
1
|
+
|
|
2
|
+
> @silkweave/core@1.3.0 check /Users/atomic/projects/ai/silkweave/packages/core
|
|
3
|
+
> pnpm lint && pnpm typecheck
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
> @silkweave/core@1.3.0 lint /Users/atomic/projects/ai/silkweave/packages/core
|
|
7
|
+
> eslint
|
|
8
|
+
|
|
9
|
+
ELIFECYCLE Command failed.
|
package/.turbo/turbo-lint.log
CHANGED
|
@@ -3,11 +3,3 @@
|
|
|
3
3
|
> @silkweave/core@1.3.0 lint /Users/atomic/projects/ai/silkweave/packages/core
|
|
4
4
|
> eslint
|
|
5
5
|
|
|
6
|
-
[0m
|
|
7
|
-
[4m/Users/atomic/projects/ai/silkweave/packages/core/src/index.ts[24m
|
|
8
|
-
[2m8:1[22m [31merror[39m Too many blank lines at the end of file. Max of 0 allowed [2m@stylistic/no-multiple-empty-lines[22m
|
|
9
|
-
|
|
10
|
-
[31m[1m✖ 1 problem (1 error, 0 warnings)[22m[39m
|
|
11
|
-
[31m[1m 1 error and 0 warnings potentially fixable with the `--fix` option.[22m[39m
|
|
12
|
-
[0m
|
|
13
|
-
[41m[30m ELIFECYCLE [39m[49m [31mCommand failed with exit code 1.[39m
|
package/.turbo/turbo-prepack.log
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @silkweave/core@1.3.0 prepack /Users/atomic/projects/ai/
|
|
3
|
+
> @silkweave/core@1.3.0 prepack /Users/atomic/projects/ai/silkweave/packages/core
|
|
4
4
|
> pnpm clean && pnpm build
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
> @silkweave/core@1.3.0 clean /Users/atomic/projects/ai/
|
|
7
|
+
> @silkweave/core@1.3.0 clean /Users/atomic/projects/ai/silkweave/packages/core
|
|
8
8
|
> rimraf build
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
> @silkweave/core@1.3.0 build /Users/atomic/projects/ai/
|
|
11
|
+
> @silkweave/core@1.3.0 build /Users/atomic/projects/ai/silkweave/packages/core
|
|
12
12
|
> tsup
|
|
13
13
|
|
|
14
14
|
[34mCLI[39m Building entry: src/index.ts
|
|
15
15
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
16
16
|
[34mCLI[39m tsup v8.5.1
|
|
17
|
-
[34mCLI[39m Using tsup config: /Users/atomic/projects/ai/
|
|
17
|
+
[34mCLI[39m Using tsup config: /Users/atomic/projects/ai/silkweave/packages/core/tsup.config.ts
|
|
18
18
|
[34mCLI[39m Target: node18
|
|
19
19
|
[34mCLI[39m Cleaning output folder
|
|
20
20
|
[34mESM[39m Build start
|
|
21
|
-
[32mESM[39m [1mbuild/index.js [22m[
|
|
22
|
-
[32mESM[39m [1mbuild/index.js.map [22m[32m7.
|
|
23
|
-
[32mESM[39m ⚡️ Build success in
|
|
21
|
+
[32mESM[39m [1mbuild/index.js [22m[32m3.27 KB[39m
|
|
22
|
+
[32mESM[39m [1mbuild/index.js.map [22m[32m7.72 KB[39m
|
|
23
|
+
[32mESM[39m ⚡️ Build success in 5ms
|
|
24
24
|
DTS Build start
|
|
25
|
-
DTS ⚡️ Build success in
|
|
26
|
-
DTS build/index.d.ts 2.
|
|
25
|
+
DTS ⚡️ Build success in 609ms
|
|
26
|
+
DTS build/index.d.ts 2.80 KB
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @silkweave/core
|
|
2
2
|
|
|
3
|
-
Core library for [Silkweave](https://github.com/
|
|
3
|
+
Core library for [Silkweave](https://github.com/silkweave/silkweave) — the TypeScript toolkit for building MCP servers and CLI tools from a single set of Actions.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -17,7 +17,6 @@ This package provides the foundational building blocks that all Silkweave adapte
|
|
|
17
17
|
- **Adapter types** — `Adapter`, `AdapterGenerator`, `AdapterFactory` interfaces for building custom adapters
|
|
18
18
|
- **Context** — `SilkweaveContext` key-value store with `fork()` for per-adapter/per-request isolation
|
|
19
19
|
- **MCP utilities** — `toolResponse()`, `parseToolResponse()` for MCP response formatting
|
|
20
|
-
- **Sideload resources** — `createSideloadResource()` for binary resource handling
|
|
21
20
|
- **Zod utilities** — `unwrap()` to recursively unwrap Zod wrapper types
|
|
22
21
|
|
|
23
22
|
## Usage
|
|
@@ -82,7 +81,7 @@ type AdapterFactory<T = void> = (options: T) => AdapterGenerator
|
|
|
82
81
|
|
|
83
82
|
## See Also
|
|
84
83
|
|
|
85
|
-
- [Silkweave README](https://github.com/
|
|
84
|
+
- [Silkweave README](https://github.com/silkweave/silkweave) — Full documentation
|
|
86
85
|
- [`@silkweave/mcp`](https://www.npmjs.com/package/@silkweave/mcp) — MCP stdio and HTTP adapters
|
|
87
86
|
- [`@silkweave/fastify`](https://www.npmjs.com/package/@silkweave/fastify) — Fastify REST adapter
|
|
88
87
|
- [`@silkweave/cli`](https://www.npmjs.com/package/@silkweave/cli) — CLI adapter
|
package/build/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ interface SilkweaveContext {
|
|
|
5
5
|
keys: () => string[];
|
|
6
6
|
has: (key: string) => boolean;
|
|
7
7
|
get: <T>(key: string) => T;
|
|
8
|
+
getOptional: <T>(key: string) => T | undefined;
|
|
8
9
|
set: <T>(key: string, value: T) => void;
|
|
9
10
|
fork: (store?: Record<string, unknown>) => SilkweaveContext;
|
|
10
11
|
}
|
|
@@ -44,21 +45,24 @@ interface Silkweave {
|
|
|
44
45
|
}
|
|
45
46
|
declare function silkweave(options: SilkweaveOptions): Silkweave;
|
|
46
47
|
|
|
48
|
+
declare class SilkweaveError extends Error {
|
|
49
|
+
readonly code: string;
|
|
50
|
+
readonly statusCode: number;
|
|
51
|
+
constructor(message: string, code: string, statusCode?: number);
|
|
52
|
+
}
|
|
53
|
+
declare function notFound(message?: string): SilkweaveError;
|
|
54
|
+
declare function badRequest(message?: string): SilkweaveError;
|
|
55
|
+
declare function forbidden(message?: string): SilkweaveError;
|
|
56
|
+
declare function internal(message?: string): SilkweaveError;
|
|
57
|
+
|
|
47
58
|
interface ToolResponse {
|
|
48
59
|
content: TextContent[];
|
|
60
|
+
isError?: boolean;
|
|
49
61
|
[x: string]: unknown;
|
|
50
62
|
}
|
|
51
|
-
declare function toolResponse(data: object): ToolResponse;
|
|
63
|
+
declare function toolResponse(data: object, isError?: boolean): ToolResponse;
|
|
52
64
|
declare function parseToolResponse<T = unknown>(result: ToolResponse): T;
|
|
53
65
|
|
|
54
|
-
interface SideloadResource {
|
|
55
|
-
id: string;
|
|
56
|
-
name: string;
|
|
57
|
-
contentType: string;
|
|
58
|
-
size: number;
|
|
59
|
-
}
|
|
60
|
-
declare function createSideloadResource(buffer: Buffer, { name, contentType }: Pick<SideloadResource, 'name' | 'contentType'>): Promise<SideloadResource>;
|
|
61
|
-
|
|
62
66
|
interface UnwrapResult {
|
|
63
67
|
defaultValue?: any;
|
|
64
68
|
isOptional?: boolean;
|
|
@@ -67,4 +71,4 @@ interface UnwrapResult {
|
|
|
67
71
|
}
|
|
68
72
|
declare function unwrap(type: z$1.ZodTypeAny, result?: UnwrapResult): [z$1.ZodTypeAny, UnwrapResult];
|
|
69
73
|
|
|
70
|
-
export { type Action, type Adapter, type AdapterFactory, type AdapterGenerator, type
|
|
74
|
+
export { type Action, type Adapter, type AdapterFactory, type AdapterGenerator, type Silkweave, type SilkweaveContext, SilkweaveError, type SilkweaveOptions, type ToolResponse, type UnwrapResult, badRequest, createAction, createContext, forbidden, internal, notFound, parseToolResponse, silkweave, toolResponse, unwrap };
|
package/build/index.js
CHANGED
|
@@ -14,6 +14,9 @@ function createContext(store = {}) {
|
|
|
14
14
|
}
|
|
15
15
|
return value;
|
|
16
16
|
},
|
|
17
|
+
getOptional: (key) => {
|
|
18
|
+
return store[key];
|
|
19
|
+
},
|
|
17
20
|
set: (key, value) => {
|
|
18
21
|
store[key] = value;
|
|
19
22
|
},
|
|
@@ -65,10 +68,35 @@ function createAction(action) {
|
|
|
65
68
|
return action;
|
|
66
69
|
}
|
|
67
70
|
|
|
71
|
+
// src/util/error.ts
|
|
72
|
+
var SilkweaveError = class extends Error {
|
|
73
|
+
constructor(message, code, statusCode = 500) {
|
|
74
|
+
super(message);
|
|
75
|
+
this.code = code;
|
|
76
|
+
this.statusCode = statusCode;
|
|
77
|
+
this.name = "SilkweaveError";
|
|
78
|
+
}
|
|
79
|
+
code;
|
|
80
|
+
statusCode;
|
|
81
|
+
};
|
|
82
|
+
function notFound(message = "Not found") {
|
|
83
|
+
return new SilkweaveError(message, "not_found", 404);
|
|
84
|
+
}
|
|
85
|
+
function badRequest(message = "Bad request") {
|
|
86
|
+
return new SilkweaveError(message, "bad_request", 400);
|
|
87
|
+
}
|
|
88
|
+
function forbidden(message = "Forbidden") {
|
|
89
|
+
return new SilkweaveError(message, "forbidden", 403);
|
|
90
|
+
}
|
|
91
|
+
function internal(message = "Internal error") {
|
|
92
|
+
return new SilkweaveError(message, "internal", 500);
|
|
93
|
+
}
|
|
94
|
+
|
|
68
95
|
// src/util/mcp.ts
|
|
69
|
-
function toolResponse(data) {
|
|
96
|
+
function toolResponse(data, isError = false) {
|
|
70
97
|
return {
|
|
71
|
-
content: [{ type: "text", text: JSON.stringify(data, null, 2) }]
|
|
98
|
+
content: [{ type: "text", text: JSON.stringify(data, null, 2) }],
|
|
99
|
+
...isError ? { isError: true } : {}
|
|
72
100
|
};
|
|
73
101
|
}
|
|
74
102
|
function parseToolResponse(result) {
|
|
@@ -76,19 +104,6 @@ function parseToolResponse(result) {
|
|
|
76
104
|
return JSON.parse(text);
|
|
77
105
|
}
|
|
78
106
|
|
|
79
|
-
// src/util/sideload.ts
|
|
80
|
-
import { randomUUID } from "crypto";
|
|
81
|
-
import { writeFile } from "fs/promises";
|
|
82
|
-
async function createSideloadResource(buffer, { name, contentType }) {
|
|
83
|
-
const id = randomUUID();
|
|
84
|
-
const resource = { id, name, contentType, size: buffer.length };
|
|
85
|
-
await Promise.all([
|
|
86
|
-
writeFile(`resources/${id}`, buffer),
|
|
87
|
-
writeFile(`resources/${id}.json`, JSON.stringify(resource), "utf-8")
|
|
88
|
-
]);
|
|
89
|
-
return resource;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
107
|
// src/util/zod.ts
|
|
93
108
|
import { z } from "zod";
|
|
94
109
|
function unwrap(type, result = {}) {
|
|
@@ -109,9 +124,13 @@ function unwrap(type, result = {}) {
|
|
|
109
124
|
}
|
|
110
125
|
}
|
|
111
126
|
export {
|
|
127
|
+
SilkweaveError,
|
|
128
|
+
badRequest,
|
|
112
129
|
createAction,
|
|
113
130
|
createContext,
|
|
114
|
-
|
|
131
|
+
forbidden,
|
|
132
|
+
internal,
|
|
133
|
+
notFound,
|
|
115
134
|
parseToolResponse,
|
|
116
135
|
silkweave,
|
|
117
136
|
toolResponse,
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/util/context.ts","../src/lib/silkweave.ts","../src/util/action.ts","../src/util/
|
|
1
|
+
{"version":3,"sources":["../src/util/context.ts","../src/lib/silkweave.ts","../src/util/action.ts","../src/util/error.ts","../src/util/mcp.ts","../src/util/zod.ts"],"sourcesContent":["export interface SilkweaveContext {\n keys: () => string[]\n has: (key: string) => boolean\n get: <T>(key: string) => T\n getOptional: <T>(key: string) => T | undefined\n set: <T>(key: string, value: T) => void\n fork: (store?: Record<string, unknown>) => SilkweaveContext\n}\n\nexport function createContext(store: Record<string, unknown> = {}): SilkweaveContext {\n return {\n keys: () => {\n return Object.keys(store)\n },\n has: (key: string): boolean => {\n return store[key] != null\n },\n get: <T>(key: string): T => {\n const value = store[key]\n if (value == null) { throw new Error(`Invalid context key: ${key}`) }\n return value as T\n },\n getOptional: <T>(key: string): T | undefined => {\n return store[key] as T | undefined\n },\n set: <T>(key: string, value: T) => {\n store[key] = value\n },\n fork: (value?: Record<string, unknown>) => {\n return createContext({ ...store, ...value })\n }\n }\n}\n","import { Action } from '../util/action.js'\nimport { Adapter, AdapterGenerator } from '../util/adapter.js'\nimport { createContext } from '../util/context.js'\n\nexport interface SilkweaveOptions {\n name: string\n description: string\n version: string\n}\n\nexport interface Silkweave {\n set: <T>(key: string, value: T) => Silkweave\n adapter: (generator: AdapterGenerator) => Silkweave\n action: (action: Action) => Silkweave\n actions: (actions: Action[]) => Silkweave\n start: () => Promise<Silkweave>\n}\n\nexport function silkweave(options: SilkweaveOptions): Silkweave {\n const adapters: Adapter[] = []\n const actions: Action[] = []\n const context = createContext()\n const builder: Silkweave = {\n set: (key, value) => {\n context.set(key, value)\n return builder\n },\n adapter: (generator) => {\n adapters.push(generator(options, context))\n return builder\n },\n action: (value) => {\n actions.push(value)\n return builder\n },\n actions: (values) => {\n actions.push(...values)\n return builder\n },\n start: async () => {\n await Promise.all(adapters.map((adapter) => {\n return adapter.start(actions.filter((action) => {\n if (!action.isEnabled) { return true }\n return action.isEnabled(adapter.context)\n }))\n }))\n return builder\n }\n }\n return builder\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport z from 'zod'\nimport { SilkweaveContext } from './context.js'\n\nexport interface Action<I extends object = any, O extends object = any> {\n name: string\n description: string\n input: z.ZodType<I> & { shape: Record<string, z.ZodTypeAny> }\n args?: (keyof I)[]\n isEnabled?: (context: SilkweaveContext) => boolean\n run: (input: I, context: SilkweaveContext) => Promise<O>\n}\n\nexport function createAction<I extends object = object, O extends object = object>(\n action: Action<I, O>\n): Action<I, O> {\n return action\n}\n","export class SilkweaveError extends Error {\n constructor(\n message: string,\n public readonly code: string,\n public readonly statusCode = 500\n ) {\n super(message)\n this.name = 'SilkweaveError'\n }\n}\n\nexport function notFound(message = 'Not found') {\n return new SilkweaveError(message, 'not_found', 404)\n}\n\nexport function badRequest(message = 'Bad request') {\n return new SilkweaveError(message, 'bad_request', 400)\n}\n\nexport function forbidden(message = 'Forbidden') {\n return new SilkweaveError(message, 'forbidden', 403)\n}\n\nexport function internal(message = 'Internal error') {\n return new SilkweaveError(message, 'internal', 500)\n}\n","import { TextContent } from '@modelcontextprotocol/sdk/types.js'\n\nexport interface ToolResponse {\n content: TextContent[]\n isError?: boolean\n [x: string]: unknown\n}\n\nexport function toolResponse(data: object, isError = false): ToolResponse {\n return {\n content: [{ type: 'text' as const, text: JSON.stringify(data, null, 2) }],\n ...(isError ? { isError: true } : {})\n }\n}\n\nexport function parseToolResponse<T = unknown>(result: ToolResponse): T {\n const text = result.content[0].text\n return JSON.parse(text)\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { z } from 'zod'\n\nexport interface UnwrapResult {\n defaultValue?: any\n isOptional?: boolean\n isNullable?: boolean\n isReadOnly?: boolean\n}\n\nexport function unwrap(\n type: z.ZodTypeAny,\n result: UnwrapResult = {}\n): [z.ZodTypeAny, UnwrapResult] {\n if (type instanceof z.ZodOptional) {\n result.isOptional = true\n return unwrap(type.unwrap() as z.ZodTypeAny, result)\n } else if (type instanceof z.ZodNullable) {\n result.isNullable = true\n return unwrap(type.unwrap() as z.ZodTypeAny, result)\n } else if (type instanceof z.ZodReadonly) {\n result.isReadOnly = true\n return unwrap(type.unwrap() as z.ZodTypeAny, result)\n } else if (type instanceof z.ZodDefault) {\n result.defaultValue = typeof type.def.defaultValue === 'function'\n ? type.def.defaultValue()\n : type.def.defaultValue\n return unwrap(type.unwrap() as z.ZodTypeAny, result)\n } else {\n return [type, result]\n }\n}\n"],"mappings":";AASO,SAAS,cAAc,QAAiC,CAAC,GAAqB;AACnF,SAAO;AAAA,IACL,MAAM,MAAM;AACV,aAAO,OAAO,KAAK,KAAK;AAAA,IAC1B;AAAA,IACA,KAAK,CAAC,QAAyB;AAC7B,aAAO,MAAM,GAAG,KAAK;AAAA,IACvB;AAAA,IACA,KAAK,CAAI,QAAmB;AAC1B,YAAM,QAAQ,MAAM,GAAG;AACvB,UAAI,SAAS,MAAM;AAAE,cAAM,IAAI,MAAM,wBAAwB,GAAG,EAAE;AAAA,MAAE;AACpE,aAAO;AAAA,IACT;AAAA,IACA,aAAa,CAAI,QAA+B;AAC9C,aAAO,MAAM,GAAG;AAAA,IAClB;AAAA,IACA,KAAK,CAAI,KAAa,UAAa;AACjC,YAAM,GAAG,IAAI;AAAA,IACf;AAAA,IACA,MAAM,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|
"description": "Silkweave Core",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "git+ssh://git@github.com/
|
|
7
|
+
"url": "git+ssh://git@github.com/silkweave/silkweave.git",
|
|
8
8
|
"directory": "packages/core"
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
15
15
|
"zod": "^4.3.6",
|
|
16
|
-
"@silkweave/logger": "1.3.
|
|
16
|
+
"@silkweave/logger": "1.3.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@eslint/js": "^10.0.1",
|