@tianshu-ai/tianshu 0.117.3 → 0.118.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/package.json +1 -1
- package/packages/server/builtinConfig/plugins/files/manifest.json +1 -1
- package/packages/server/builtinConfig/plugins/projecthub/manifest.json +194 -0
- package/packages/server/dist/chat/handler.d.ts.map +1 -1
- package/packages/server/dist/chat/handler.js +17 -0
- package/packages/server/dist/chat/handler.js.map +1 -1
- package/packages/server/dist/chat/ws-protocol.d.ts +11 -0
- package/packages/server/dist/chat/ws-protocol.d.ts.map +1 -1
- package/packages/server/dist/chat/ws-protocol.js +6 -6
- package/packages/server/dist/chat/ws-protocol.js.map +1 -1
- package/packages/server/dist/core/model-retry.d.ts.map +1 -1
- package/packages/server/dist/core/model-retry.js +24 -5
- package/packages/server/dist/core/model-retry.js.map +1 -1
- package/packages/web/dist/assets/{DataSourceConfigForm-D-pAHpaE.js → DataSourceConfigForm-Dua5PVE7.js} +1 -1
- package/packages/web/dist/assets/{bundle-web-SKRFZ4rp.js → bundle-web-C51NOlwD.js} +1 -1
- package/packages/web/dist/assets/index-CJdsRYBl.js +399 -0
- package/packages/web/dist/assets/{react-force-graph-2d-D22zuAY_.js → react-force-graph-2d-SB3CzSX9.js} +1 -1
- package/packages/web/dist/index.html +1 -1
- package/plugins/board/dist/runtime.d.ts +1 -1
- package/plugins/board/dist/runtime.d.ts.map +1 -1
- package/plugins/board/dist/runtime.js +14 -0
- package/plugins/board/dist/runtime.js.map +1 -1
- package/plugins/board/dist/server.js +14 -0
- package/plugins/board/dist/server.js.map +2 -2
- package/plugins/files/manifest.json +1 -1
- package/plugins/projecthub/dist/card-html.d.ts +14 -0
- package/plugins/projecthub/dist/card-html.d.ts.map +1 -0
- package/plugins/projecthub/dist/card-html.js +317 -0
- package/plugins/projecthub/dist/card-html.js.map +1 -0
- package/plugins/projecthub/dist/drivers/index.d.ts +4 -0
- package/plugins/projecthub/dist/drivers/index.d.ts.map +1 -0
- package/plugins/projecthub/dist/drivers/index.js +17 -0
- package/plugins/projecthub/dist/drivers/index.js.map +1 -0
- package/plugins/projecthub/dist/drivers/redmine.d.ts +33 -0
- package/plugins/projecthub/dist/drivers/redmine.d.ts.map +1 -0
- package/plugins/projecthub/dist/drivers/redmine.js +282 -0
- package/plugins/projecthub/dist/drivers/redmine.js.map +1 -0
- package/plugins/projecthub/dist/server.d.ts +4 -0
- package/plugins/projecthub/dist/server.d.ts.map +1 -0
- package/plugins/projecthub/dist/server.js +45 -0
- package/plugins/projecthub/dist/server.js.map +1 -0
- package/plugins/projecthub/dist/tools/create-issue.d.ts +4 -0
- package/plugins/projecthub/dist/tools/create-issue.d.ts.map +1 -0
- package/plugins/projecthub/dist/tools/create-issue.js +49 -0
- package/plugins/projecthub/dist/tools/create-issue.js.map +1 -0
- package/plugins/projecthub/dist/tools/create-project.d.ts +4 -0
- package/plugins/projecthub/dist/tools/create-project.d.ts.map +1 -0
- package/plugins/projecthub/dist/tools/create-project.js +52 -0
- package/plugins/projecthub/dist/tools/create-project.js.map +1 -0
- package/plugins/projecthub/dist/tools/get-issue.d.ts +4 -0
- package/plugins/projecthub/dist/tools/get-issue.d.ts.map +1 -0
- package/plugins/projecthub/dist/tools/get-issue.js +34 -0
- package/plugins/projecthub/dist/tools/get-issue.js.map +1 -0
- package/plugins/projecthub/dist/tools/get-project.d.ts +4 -0
- package/plugins/projecthub/dist/tools/get-project.d.ts.map +1 -0
- package/plugins/projecthub/dist/tools/get-project.js +44 -0
- package/plugins/projecthub/dist/tools/get-project.js.map +1 -0
- package/plugins/projecthub/dist/tools/list-issues.d.ts +4 -0
- package/plugins/projecthub/dist/tools/list-issues.d.ts.map +1 -0
- package/plugins/projecthub/dist/tools/list-issues.js +41 -0
- package/plugins/projecthub/dist/tools/list-issues.js.map +1 -0
- package/plugins/projecthub/dist/tools/list-projects.d.ts +4 -0
- package/plugins/projecthub/dist/tools/list-projects.d.ts.map +1 -0
- package/plugins/projecthub/dist/tools/list-projects.js +31 -0
- package/plugins/projecthub/dist/tools/list-projects.js.map +1 -0
- package/plugins/projecthub/dist/tools/update-issue.d.ts +4 -0
- package/plugins/projecthub/dist/tools/update-issue.d.ts.map +1 -0
- package/plugins/projecthub/dist/tools/update-issue.js +60 -0
- package/plugins/projecthub/dist/tools/update-issue.js.map +1 -0
- package/plugins/projecthub/dist/tools/update-meta.d.ts +4 -0
- package/plugins/projecthub/dist/tools/update-meta.d.ts.map +1 -0
- package/plugins/projecthub/dist/tools/update-meta.js +30 -0
- package/plugins/projecthub/dist/tools/update-meta.js.map +1 -0
- package/plugins/projecthub/dist/tools/update-project.d.ts +4 -0
- package/plugins/projecthub/dist/tools/update-project.d.ts.map +1 -0
- package/plugins/projecthub/dist/tools/update-project.js +51 -0
- package/plugins/projecthub/dist/tools/update-project.js.map +1 -0
- package/plugins/projecthub/dist/types.d.ts +190 -0
- package/plugins/projecthub/dist/types.d.ts.map +1 -0
- package/plugins/projecthub/dist/types.js +9 -0
- package/plugins/projecthub/dist/types.js.map +1 -0
- package/plugins/projecthub/manifest.json +194 -0
- package/plugins/projecthub/package.json +18 -0
- package/plugins/reverse-mcp/dist/client.js +1 -1
- package/plugins/reverse-mcp/dist/client.js.map +1 -1
- package/packages/web/dist/assets/index-CaeZF8mB.js +0 -371
package/package.json
CHANGED
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
},
|
|
215
215
|
{
|
|
216
216
|
"id": "edit-vs-write",
|
|
217
|
-
"text": "- `edit_file` is for changes to an existing file (in-place exact-text replace, atomic). `write_file` is for new files or full rewrites of the entire file. Prefer editing existing files; do not create new files unless asked."
|
|
217
|
+
"text": "- `edit_file` is for changes to an existing file (in-place exact-text replace, atomic). `write_file` is for new files or full rewrites of the entire file. Prefer editing existing files; do not create new files unless asked.\n- IMPORTANT: `write_file` requires generating the entire file content in the tool call, which can cause streaming timeouts for large files (>200 lines). For existing files, ALWAYS use `edit_file` with targeted replacements instead of rewriting the whole file with `write_file`. Reserve `write_file` for creating new files or very short complete rewrites."
|
|
218
218
|
},
|
|
219
219
|
{
|
|
220
220
|
"id": "edit-old-text-uniqueness",
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "projecthub",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"displayName": "ProjectHub",
|
|
5
|
+
"description": "Cross-system project management hub — integrate with Redmine, Jira, and other issue trackers to list, create, update, and assign tasks.",
|
|
6
|
+
"category": "productivity",
|
|
7
|
+
"author": "tianshu-ai",
|
|
8
|
+
"license": "Apache-2.0",
|
|
9
|
+
"permissions": [
|
|
10
|
+
"network.external"
|
|
11
|
+
],
|
|
12
|
+
"server": {
|
|
13
|
+
"entry": "@tianshu-builtin/plugin-projecthub/server"
|
|
14
|
+
},
|
|
15
|
+
"configSchema": {
|
|
16
|
+
"fields": [
|
|
17
|
+
{
|
|
18
|
+
"key": "driver",
|
|
19
|
+
"label": "Tracker Type",
|
|
20
|
+
"kind": "select",
|
|
21
|
+
"description": "Which project tracker to connect to",
|
|
22
|
+
"options": [
|
|
23
|
+
{
|
|
24
|
+
"value": "redmine",
|
|
25
|
+
"label": "Redmine"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"required": true
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"key": "baseUrl",
|
|
32
|
+
"label": "Tracker URL",
|
|
33
|
+
"kind": "string",
|
|
34
|
+
"description": "Base URL of the project tracker (e.g. http://localhost:8890)",
|
|
35
|
+
"required": true
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"key": "apiKey",
|
|
39
|
+
"label": "API Key",
|
|
40
|
+
"kind": "secret",
|
|
41
|
+
"description": "API key for the project tracker",
|
|
42
|
+
"required": true
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"key": "defaultProject",
|
|
46
|
+
"label": "Default Project",
|
|
47
|
+
"kind": "string",
|
|
48
|
+
"description": "Default project identifier (e.g. dn-sales)"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"contributes": {
|
|
53
|
+
"toolGroups": [
|
|
54
|
+
{
|
|
55
|
+
"id": "projecthub",
|
|
56
|
+
"description": "Project management hub — list, create, update, assign issues across external trackers"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"tools": [
|
|
60
|
+
{
|
|
61
|
+
"id": "ph_list_issues",
|
|
62
|
+
"module": "ListIssuesTool",
|
|
63
|
+
"since": "0.1.0",
|
|
64
|
+
"tier": "ondemand",
|
|
65
|
+
"group": "projecthub"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"id": "ph_get_issue",
|
|
69
|
+
"module": "GetIssueTool",
|
|
70
|
+
"since": "0.1.0",
|
|
71
|
+
"tier": "ondemand",
|
|
72
|
+
"group": "projecthub"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"id": "ph_create_issue",
|
|
76
|
+
"module": "CreateIssueTool",
|
|
77
|
+
"since": "0.1.0",
|
|
78
|
+
"tier": "ondemand",
|
|
79
|
+
"group": "projecthub"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"id": "ph_update_issue",
|
|
83
|
+
"module": "UpdateIssueTool",
|
|
84
|
+
"since": "0.1.0",
|
|
85
|
+
"tier": "ondemand",
|
|
86
|
+
"group": "projecthub"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"id": "ph_list_projects",
|
|
90
|
+
"module": "ListProjectsTool",
|
|
91
|
+
"since": "0.1.0",
|
|
92
|
+
"tier": "ondemand",
|
|
93
|
+
"group": "projecthub"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"id": "ph_update_meta",
|
|
97
|
+
"module": "UpdateMetaTool",
|
|
98
|
+
"since": "0.1.0",
|
|
99
|
+
"tier": "ondemand",
|
|
100
|
+
"group": "projecthub"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "ph_get_project",
|
|
104
|
+
"module": "GetProjectTool",
|
|
105
|
+
"since": "0.1.0",
|
|
106
|
+
"tier": "ondemand",
|
|
107
|
+
"group": "projecthub"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"id": "ph_create_project",
|
|
111
|
+
"module": "CreateProjectTool",
|
|
112
|
+
"since": "0.1.0",
|
|
113
|
+
"tier": "ondemand",
|
|
114
|
+
"group": "projecthub"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"id": "ph_update_project",
|
|
118
|
+
"module": "UpdateProjectTool",
|
|
119
|
+
"since": "0.1.0",
|
|
120
|
+
"tier": "ondemand",
|
|
121
|
+
"group": "projecthub"
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
"apiRoutes": [],
|
|
125
|
+
"systemPromptFragments": [
|
|
126
|
+
{
|
|
127
|
+
"id": "projecthub-tools",
|
|
128
|
+
"text": "ProjectHub tools: ph_list_issues, ph_get_issue, ph_create_issue, ph_update_issue, ph_update_meta, ph_list_projects, ph_get_project, ph_create_project, ph_update_project.\nAll issue results include a `webUrl` field — always use it for links, never guess the URL.\nThese tools return rich UI cards rendered directly in the chat. ALWAYS prefer using these tools to show issue/project data — the cards are more readable than plain text. Do NOT repeat the issue details in your text response; the user already sees them in the card. Just add a brief note or answer the user's question.\nBEFORE calling ph_update_issue, ALWAYS call ph_update_meta first to check which status transitions are allowed, which fields can be changed, and what values are valid (including custom fields). The tracker may silently ignore invalid updates (e.g. forbidden status transitions return 200 but do nothing). ph_update_meta returns allowed_statuses, priorities, assignees, enabled_fields, and custom_fields with their possible_values."
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"toolDisplay": [
|
|
132
|
+
{
|
|
133
|
+
"tool": "ph_list_issues",
|
|
134
|
+
"input": {
|
|
135
|
+
"format": "key-value",
|
|
136
|
+
"omit": [
|
|
137
|
+
"_title"
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
"output": {
|
|
141
|
+
"format": "table"
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"tool": "ph_get_issue",
|
|
146
|
+
"input": {
|
|
147
|
+
"format": "key-value",
|
|
148
|
+
"omit": [
|
|
149
|
+
"_title"
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
"output": {
|
|
153
|
+
"format": "markdown"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"tool": "ph_create_issue",
|
|
158
|
+
"input": {
|
|
159
|
+
"format": "key-value",
|
|
160
|
+
"omit": [
|
|
161
|
+
"_title"
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
"output": {
|
|
165
|
+
"format": "json"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"tool": "ph_update_issue",
|
|
170
|
+
"input": {
|
|
171
|
+
"format": "key-value",
|
|
172
|
+
"omit": [
|
|
173
|
+
"_title"
|
|
174
|
+
]
|
|
175
|
+
},
|
|
176
|
+
"output": {
|
|
177
|
+
"format": "json"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"tool": "ph_list_projects",
|
|
182
|
+
"input": {
|
|
183
|
+
"format": "key-value",
|
|
184
|
+
"omit": [
|
|
185
|
+
"_title"
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
"output": {
|
|
189
|
+
"format": "table"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../src/chat/handler.ts"],"names":[],"mappings":"AAwDA,OAAO,EACL,mBAAmB,EACnB,cAAc,EAGd,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC9B,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,GAC9B,CAAC;A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AM,CAuCR;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,oBAAoB,EAAE,MAAM,GAAG,MAAM,EAAE,CAgB3E;AA0ED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,uBAAuB,CACrC,GAAG,EAAE,aAAa,EAClB,SAAS,EAAE,MAAM,GAChB,MAAM,GAAG,IAAI,CA0Ef;AAmlBD,wBAAgB,cAAc,IAAI,WAAW,EAAE,CAkC9C;AAGD,YAAY,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -2329,6 +2329,23 @@ function bridgeHarnessEventToWs(event, args) {
|
|
|
2329
2329
|
});
|
|
2330
2330
|
}
|
|
2331
2331
|
}
|
|
2332
|
+
else if (inner.type === "toolcall_delta" && typeof inner.delta === "string") {
|
|
2333
|
+
const _idx = inner.contentIndex ?? -1;
|
|
2334
|
+
const _block = inner.partial?.content?.[_idx];
|
|
2335
|
+
// Stream argument JSON chunks to the UI so it can show e.g.
|
|
2336
|
+
// write_file content as it's being generated by the model.
|
|
2337
|
+
const partial = inner.partial;
|
|
2338
|
+
const idx = inner.contentIndex ?? -1;
|
|
2339
|
+
const block = partial?.content?.[idx];
|
|
2340
|
+
if (block && (block.type === "toolCall" || block.type === "tool_use")) {
|
|
2341
|
+
send({
|
|
2342
|
+
type: "tool_call_delta",
|
|
2343
|
+
callId: block.id || "",
|
|
2344
|
+
name: block.name || "",
|
|
2345
|
+
delta: inner.delta,
|
|
2346
|
+
});
|
|
2347
|
+
}
|
|
2348
|
+
}
|
|
2332
2349
|
return;
|
|
2333
2350
|
}
|
|
2334
2351
|
if (lowType === "entry_added") {
|