@ninkch/dsh-artcraft 0.2.4 → 0.2.5
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/index.js +6 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -562,9 +562,9 @@ async function updateApply() {
|
|
|
562
562
|
const tools = await findRuntimeTools();
|
|
563
563
|
let cmd, args;
|
|
564
564
|
if (tools.pnpmCmd) {
|
|
565
|
-
cmd = tools.pnpmCmd; args = ['add', `${PKG_NAME}@latest`, '--dir', info.profileDir];
|
|
565
|
+
cmd = tools.pnpmCmd; args = ['add', `${PKG_NAME}@latest`, '--dir', info.profileDir, '--registry=https://registry.npmjs.org'];
|
|
566
566
|
} else if (tools.pnpmMjs) {
|
|
567
|
-
cmd = tools.nodeExe; args = [tools.pnpmMjs, 'add', `${PKG_NAME}@latest`, '--dir', info.profileDir];
|
|
567
|
+
cmd = tools.nodeExe; args = [tools.pnpmMjs, 'add', `${PKG_NAME}@latest`, '--dir', info.profileDir, '--registry=https://registry.npmjs.org'];
|
|
568
568
|
} else {
|
|
569
569
|
throw new Error('未找到 pnpm(PATH 与 ~/.dsh/dsh-runtimes 均未命中),请手动在 profile 目录执行 pnpm add');
|
|
570
570
|
}
|
|
@@ -584,7 +584,10 @@ export function apply(ctx) {
|
|
|
584
584
|
ctx.effect(() => {
|
|
585
585
|
const disposers = [];
|
|
586
586
|
const attempt = (def) => {
|
|
587
|
-
const output = def.output ?? {
|
|
587
|
+
const output = def.output ?? {
|
|
588
|
+
schema: { type: 'object', additionalProperties: true },
|
|
589
|
+
render: (_args, value) => [{ type: 'text', text: JSON.stringify(value, null, 2) }],
|
|
590
|
+
};
|
|
588
591
|
for (const shape of [
|
|
589
592
|
{ name: def.name, description: def.description, parameters: def.schema, execute: def.execute },
|
|
590
593
|
{ name: def.name, description: def.description, inputSchema: def.schema, handler: def.execute },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ninkch/dsh-artcraft",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Drive the open-source ArtCraft studio apps (PhotoCraft / FilmCraft / EffectCraft) from DeepSeek Harness — agent tools, a same-origin HTTP API, and plugins-page status with self-update.",
|
|
6
6
|
"keywords": [
|