silkweave 3.0.0 → 3.1.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 +5 -6
- package/build/logger.d.mts +2 -1
- package/build/logger.mjs +2 -2
- package/package.json +8 -9
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ Silkweave is a TypeScript toolkit that lets you define application logic as port
|
|
|
16
16
|
┌──────▼──────┐ ┌─────▼─────┐ │ ┌─────▼──────┐ ┌────▼─────┐
|
|
17
17
|
│ MCP (stdio) │ │ Fastify │ │ │ CLI │ │ Edge │
|
|
18
18
|
│ MCP (http) │ │ REST API │ │ │ commander │ │serverless│
|
|
19
|
-
│ │ │ + Swagger │ │ │
|
|
19
|
+
│ │ │ + Swagger │ │ │ console │ │ MCP │
|
|
20
20
|
└─────────────┘ └───────────┘ │ └────────────┘ └──────────┘
|
|
21
21
|
│
|
|
22
22
|
```
|
|
@@ -60,7 +60,7 @@ Silkweave eliminates this duplication. You define an **Action** - a name, a Zod
|
|
|
60
60
|
|
|
61
61
|
- **MCP adapters** register your actions as MCP tools with proper notifications, progress reporting, and error handling
|
|
62
62
|
- **Fastify adapter** generates a REST API with full OpenAPI/Swagger documentation derived from your Zod schemas
|
|
63
|
-
- **CLI adapter** builds a complete command-line interface with argument parsing, option flags, and
|
|
63
|
+
- **CLI adapter** builds a complete command-line interface with argument parsing, option flags, and plain `console` output
|
|
64
64
|
|
|
65
65
|
Your action doesn't know or care which transport is running it.
|
|
66
66
|
|
|
@@ -74,11 +74,10 @@ Silkweave is organized as a monorepo with modular packages. Install only what yo
|
|
|
74
74
|
|---------|-----|-------------|
|
|
75
75
|
| `@silkweave/core` | [](https://www.npmjs.com/package/@silkweave/core) | Core library - actions, adapters, builder, context, logger, utilities |
|
|
76
76
|
| `@silkweave/mcp` | [](https://www.npmjs.com/package/@silkweave/mcp) | MCP adapters - stdio, streamable HTTP, CLI proxy |
|
|
77
|
-
| `@silkweave/cli` | [](https://www.npmjs.com/package/@silkweave/cli) | CLI adapter - commander +
|
|
77
|
+
| `@silkweave/cli` | [](https://www.npmjs.com/package/@silkweave/cli) | CLI adapter - commander + plain `console` output |
|
|
78
78
|
| `@silkweave/fastify` | [](https://www.npmjs.com/package/@silkweave/fastify) | Fastify REST adapter - auto-generated OpenAPI/Swagger docs |
|
|
79
79
|
| `@silkweave/edge` | [](https://www.npmjs.com/package/@silkweave/edge) | Edge / serverless adapter - stateless MCP over Web Standard Streamable HTTP |
|
|
80
80
|
| `@silkweave/ai` | [](https://www.npmjs.com/package/@silkweave/ai) | Vercel AI SDK bridge - `createChatAction()` + `silkweaveTransport()` for `useChat` over tRPC subscriptions |
|
|
81
|
-
| `@silkweave/logger` | [](https://www.npmjs.com/package/@silkweave/logger) | Logging utilities - pino, clack, and MCP notification support |
|
|
82
81
|
|
|
83
82
|
**`@silkweave/core`** is always required. Then add the adapter packages for the transports you need:
|
|
84
83
|
|
|
@@ -373,7 +372,7 @@ fastify({
|
|
|
373
372
|
|
|
374
373
|
### CLI
|
|
375
374
|
|
|
376
|
-
Transforms your actions into a complete command-line application with help text, option parsing, and
|
|
375
|
+
Transforms your actions into a complete command-line application with help text, option parsing, and plain `console` output.
|
|
377
376
|
|
|
378
377
|
```typescript
|
|
379
378
|
import { silkweave } from '@silkweave/core'
|
|
@@ -923,7 +922,7 @@ interface FastifyAdapterOptions {
|
|
|
923
922
|
// ...plus all FastifyHttpOptions (logger, connectionTimeout, etc.)
|
|
924
923
|
}
|
|
925
924
|
|
|
926
|
-
// CLI via commander
|
|
925
|
+
// CLI via commander - from @silkweave/cli
|
|
927
926
|
import { cli } from '@silkweave/cli'
|
|
928
927
|
function cli(): AdapterFactory
|
|
929
928
|
|
package/build/logger.d.mts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { CreateLoggerOptions, LogFn, LogLevel, LogLevels, Logger, MessageOptions, ProgressOptions, buildLogLevels, createConsoleLogger, createLogger } from "@silkweave/core";
|
|
2
|
+
export { type CreateLoggerOptions, type LogFn, type LogLevel, LogLevels, type Logger, type MessageOptions, type ProgressOptions, buildLogLevels, createConsoleLogger, createLogger };
|
package/build/logger.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export {};
|
|
1
|
+
import { LogLevels, buildLogLevels, createConsoleLogger, createLogger } from "@silkweave/core";
|
|
2
|
+
export { LogLevels, buildLogLevels, createConsoleLogger, createLogger };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "silkweave",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Silkweave Umbrella Package",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://www.silkweave.dev",
|
|
@@ -59,14 +59,13 @@
|
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@silkweave/auth": "3.
|
|
63
|
-
"@silkweave/cli": "3.
|
|
64
|
-
"@silkweave/core": "3.
|
|
65
|
-
"@silkweave/fastify": "3.
|
|
66
|
-
"@silkweave/
|
|
67
|
-
"@silkweave/
|
|
68
|
-
"@silkweave/typegen": "3.
|
|
69
|
-
"@silkweave/edge": "3.0.0"
|
|
62
|
+
"@silkweave/auth": "3.1.0",
|
|
63
|
+
"@silkweave/cli": "3.1.0",
|
|
64
|
+
"@silkweave/core": "3.1.0",
|
|
65
|
+
"@silkweave/fastify": "3.1.0",
|
|
66
|
+
"@silkweave/mcp": "3.1.0",
|
|
67
|
+
"@silkweave/edge": "3.1.0",
|
|
68
|
+
"@silkweave/typegen": "3.1.0"
|
|
70
69
|
},
|
|
71
70
|
"devDependencies": {
|
|
72
71
|
"@eslint/js": "^10.0.1",
|