@katlux/mcp-workflow 0.0.0-stage → 0.1.0-alpha.27
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/LICENSE +18 -0
- package/README.md +17 -2
- package/bin/katlux-mcp-workflow.mjs +18 -0
- package/dist/index.cjs +1826 -0
- package/dist/index.d.cts +217 -0
- package/dist/index.d.mts +215 -0
- package/dist/index.d.ts +217 -0
- package/dist/index.mjs +1799 -0
- package/package.json +39 -5
package/LICENSE
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
you may not use this file except in compliance with the License.
|
|
9
|
+
You may obtain a copy of the License at
|
|
10
|
+
|
|
11
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
|
|
13
|
+
Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
WITHOUT WARRANTIES OR CONDITIONS FOR ANY KIND, either express or implied.
|
|
16
|
+
See the License for the specific language governing permissions and
|
|
17
|
+
limitations under the License.
|
|
18
|
+
|
package/README.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @katlux/mcp-workflow
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
Katlux-agnostic, schema-enforced AI task & workflow plugin for [`@katlux/mcp-core`](../katlux-mcp-core/README.md).
|
|
6
|
+
|
|
7
|
+
## Overview
|
|
8
|
+
|
|
9
|
+
`@katlux/mcp-workflow` gives coding agents structured, validation-gated CRUD over `todo/tasks/`, `todo/archive/`, and `todo/INDEX.md` inside **any** workspace (TypeScript, Nuxt, Node, Python, Go, or plain repositories). It contains zero Katlux UI component or DataProvider dependencies.
|
|
10
|
+
|
|
11
|
+
When installed alongside `@katlux/mcp-core`, it auto-registers three workflow tools into the single Core MCP server:
|
|
12
|
+
|
|
13
|
+
| Tool | Role |
|
|
14
|
+
| :--- | :--- |
|
|
15
|
+
| `katlux_workflow_init` | Bootstraps `todo/tasks/`, `todo/archive/`, and `todo/INDEX.md` idempotently |
|
|
16
|
+
| `katlux_workflow_task` | Schema-enforced `create`, `update`, `transition` (with close gate), and `archive` |
|
|
17
|
+
| `katlux_workflow_inspect` | Structured `list`, `get`, `archive` history indexing, and `doctor` (with `repair: true`) |
|
|
2
18
|
|
|
3
|
-
This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { existsSync } from 'node:fs'
|
|
3
|
+
import { resolve, dirname } from 'node:path'
|
|
4
|
+
import { fileURLToPath } from 'node:url'
|
|
5
|
+
import { startServer } from '@katlux/mcp-core'
|
|
6
|
+
|
|
7
|
+
const __dirname = dirname(fileURLToPath(import.meta.url))
|
|
8
|
+
const distPath = resolve(__dirname, '../dist/index.mjs')
|
|
9
|
+
|
|
10
|
+
const mod = existsSync(distPath)
|
|
11
|
+
? await import(distPath)
|
|
12
|
+
: await import(resolve(__dirname, '../src/index.ts'))
|
|
13
|
+
|
|
14
|
+
const createPlugin = mod.createPlugin || mod.default
|
|
15
|
+
await startServer({
|
|
16
|
+
plugins: [createPlugin()]
|
|
17
|
+
})
|
|
18
|
+
|