jowork 0.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/dist/chunk-3NMLDZBL.js +4031 -0
- package/dist/chunk-S24PDC46.js +569 -0
- package/dist/cli.js +1407 -0
- package/dist/src-WYAQWZZZ.js +66 -0
- package/dist/transport.js +19 -0
- package/package.json +56 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CJK_RE,
|
|
3
|
+
ENGINE_CLAUDE_CODE,
|
|
4
|
+
ENGINE_CLOUD,
|
|
5
|
+
ENGINE_NEMOCLAW,
|
|
6
|
+
ENGINE_OPENCLAW,
|
|
7
|
+
buildFtsQuery,
|
|
8
|
+
compactMessages,
|
|
9
|
+
connectorConfigs,
|
|
10
|
+
contextDocs,
|
|
11
|
+
createId,
|
|
12
|
+
detectSourceFromQuery,
|
|
13
|
+
engineSessionMappings,
|
|
14
|
+
estimateTokens,
|
|
15
|
+
ftsEnrichSource,
|
|
16
|
+
ftsNormalize,
|
|
17
|
+
i18n,
|
|
18
|
+
i18nNamespaces,
|
|
19
|
+
logger,
|
|
20
|
+
memories,
|
|
21
|
+
mergeSummaries,
|
|
22
|
+
messages,
|
|
23
|
+
objectBodies,
|
|
24
|
+
objectChunks,
|
|
25
|
+
objects,
|
|
26
|
+
runMigrations,
|
|
27
|
+
scheduledTasks,
|
|
28
|
+
sessions,
|
|
29
|
+
settings,
|
|
30
|
+
shouldCompact,
|
|
31
|
+
syncCursors,
|
|
32
|
+
taskExecutions
|
|
33
|
+
} from "./chunk-3NMLDZBL.js";
|
|
34
|
+
export {
|
|
35
|
+
CJK_RE,
|
|
36
|
+
ENGINE_CLAUDE_CODE,
|
|
37
|
+
ENGINE_CLOUD,
|
|
38
|
+
ENGINE_NEMOCLAW,
|
|
39
|
+
ENGINE_OPENCLAW,
|
|
40
|
+
buildFtsQuery,
|
|
41
|
+
compactMessages,
|
|
42
|
+
connectorConfigs,
|
|
43
|
+
contextDocs,
|
|
44
|
+
createId,
|
|
45
|
+
detectSourceFromQuery,
|
|
46
|
+
engineSessionMappings,
|
|
47
|
+
estimateTokens,
|
|
48
|
+
ftsEnrichSource,
|
|
49
|
+
ftsNormalize,
|
|
50
|
+
i18n,
|
|
51
|
+
i18nNamespaces,
|
|
52
|
+
logger,
|
|
53
|
+
memories,
|
|
54
|
+
mergeSummaries,
|
|
55
|
+
messages,
|
|
56
|
+
objectBodies,
|
|
57
|
+
objectChunks,
|
|
58
|
+
objects,
|
|
59
|
+
runMigrations,
|
|
60
|
+
scheduledTasks,
|
|
61
|
+
sessions,
|
|
62
|
+
settings,
|
|
63
|
+
shouldCompact,
|
|
64
|
+
syncCursors,
|
|
65
|
+
taskExecutions
|
|
66
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createJoWorkMcpServer,
|
|
3
|
+
dbPath
|
|
4
|
+
} from "./chunk-S24PDC46.js";
|
|
5
|
+
import "./chunk-3NMLDZBL.js";
|
|
6
|
+
|
|
7
|
+
// src/mcp/transport.ts
|
|
8
|
+
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
9
|
+
process.env["I18NEXT_DISABLE_BANNER"] = "1";
|
|
10
|
+
async function main() {
|
|
11
|
+
const server = createJoWorkMcpServer({ dbPath: dbPath() });
|
|
12
|
+
const transport = new StdioServerTransport();
|
|
13
|
+
await server.connect(transport);
|
|
14
|
+
}
|
|
15
|
+
main().catch((err) => {
|
|
16
|
+
process.stderr.write(`MCP server fatal: ${err}
|
|
17
|
+
`);
|
|
18
|
+
process.exit(1);
|
|
19
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "jowork",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "AI Agent Infrastructure — let AI agents truly understand your work. Connect data sources, give agents awareness and goals. Local-first, one command.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "AGPL-3.0",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/FluxVita/jowork.git",
|
|
10
|
+
"directory": "apps/cli"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://jowork.work",
|
|
13
|
+
"keywords": [
|
|
14
|
+
"ai", "agent", "mcp", "cli", "memory", "context",
|
|
15
|
+
"claude-code", "codex", "feishu", "goal-tracking",
|
|
16
|
+
"local-first", "sqlite", "agent-infrastructure"
|
|
17
|
+
],
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": ">=20.0.0"
|
|
20
|
+
},
|
|
21
|
+
"bin": { "jowork": "./dist/cli.js" },
|
|
22
|
+
"files": [
|
|
23
|
+
"dist/**/*.js",
|
|
24
|
+
"dist/**/*.d.ts",
|
|
25
|
+
"README.md",
|
|
26
|
+
"LICENSE"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "tsup",
|
|
30
|
+
"dev": "tsup --watch",
|
|
31
|
+
"lint": "tsc --noEmit",
|
|
32
|
+
"test": "vitest run",
|
|
33
|
+
"prepublishOnly": "tsup"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@jowork/core": "workspace:*",
|
|
37
|
+
"commander": "^13.0.0",
|
|
38
|
+
"better-sqlite3": "^12.6.2",
|
|
39
|
+
"drizzle-orm": "^0.44.0",
|
|
40
|
+
"@modelcontextprotocol/sdk": "^1.27.0",
|
|
41
|
+
"zod": "^3.24.0",
|
|
42
|
+
"ora": "^8.0.0",
|
|
43
|
+
"chalk": "^5.4.0",
|
|
44
|
+
"inquirer": "^12.0.0",
|
|
45
|
+
"croner": "^9.0.0",
|
|
46
|
+
"pino": "^9.0.0",
|
|
47
|
+
"pino-pretty": "^13.0.0"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@types/better-sqlite3": "^7.6.0",
|
|
51
|
+
"@types/inquirer": "^9.0.0",
|
|
52
|
+
"@types/node": "^22.0.0",
|
|
53
|
+
"tsup": "^8.4.0",
|
|
54
|
+
"typescript": "^5.9.0"
|
|
55
|
+
}
|
|
56
|
+
}
|