@ai-setting/roy-agent-core 1.7.70 → 1.7.71
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/env/event-source/event-source-handlers.js +6 -6
- package/dist/env/event-source/index.js +7 -7
- package/dist/env/event-source/reset-command.d.ts +41 -0
- package/dist/env/index.js +11 -11
- package/dist/env/prompt/index.js +3 -3
- package/dist/env/prompt/prompts-index.d.ts +339 -1
- package/dist/env/task/delegate/delegate-tool.js +3 -3
- package/dist/env/task/delegate/index.js +3 -3
- package/dist/env/task/index.js +5 -5
- package/dist/env/task/mcp/index.js +2 -2
- package/dist/env/task/plugins/index.js +4 -4
- package/dist/env/task/plugins/lark-card-patch-notifier.d.ts +50 -0
- package/dist/env/task/plugins/lark-card-patch-notifier.js +3 -1
- package/dist/env/task/prompt/index.d.ts +11 -0
- package/dist/env/task/prompt/index.js +16 -0
- package/dist/env/task/prompt/task-discipline.d.ts +32 -0
- package/dist/env/task/tools/index.js +2 -2
- package/dist/env/workflow/plugins/index.js +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +30 -18
- package/dist/shared/@ai-setting/{roy-agent-core-0j94tj1z.js → roy-agent-core-101qtkyc.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-bk8kyzv8.js → roy-agent-core-1gsbqesr.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-8bjj3d1b.js → roy-agent-core-1w9y7mxj.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-tadj19vp.js → roy-agent-core-46rv4d7d.js} +71 -49
- package/dist/shared/@ai-setting/roy-agent-core-4jjwewvw.js +182 -0
- package/dist/shared/@ai-setting/{roy-agent-core-x3xpkx84.js → roy-agent-core-5repth1n.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-h5vmff8w.js → roy-agent-core-7sj9xs9c.js} +7 -33
- package/dist/shared/@ai-setting/{roy-agent-core-27f59kjv.js → roy-agent-core-9geem94g.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-hx46nhh1.js → roy-agent-core-k13pxrpk.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-nersksh1.js → roy-agent-core-mwa6apzx.js} +2 -2
- package/dist/shared/@ai-setting/roy-agent-core-qkdegdvc.js +0 -0
- package/dist/shared/@ai-setting/{roy-agent-core-npvejsg8.js → roy-agent-core-zsbh9bfv.js} +83 -3
- package/dist/shared/@ai-setting/{roy-agent-core-vaz9350j.js → roy-agent-core-zv8bswpw.js} +4 -159
- package/dist/test-utils/ipc-test-server.d.ts +10 -0
- package/package.json +6 -1
- package/dist/shared/@ai-setting/roy-agent-core-6m4bw8jy.js +0 -6
|
@@ -11,22 +11,22 @@ import {
|
|
|
11
11
|
patchCardByLarkCli,
|
|
12
12
|
renderRuleNoticeSection,
|
|
13
13
|
timerHandler
|
|
14
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
14
|
+
} from "../../shared/@ai-setting/roy-agent-core-zsbh9bfv.js";
|
|
15
15
|
import"../../shared/@ai-setting/roy-agent-core-bxkjk7zx.js";
|
|
16
16
|
import"../../shared/@ai-setting/roy-agent-core-add1zqsh.js";
|
|
17
17
|
import {
|
|
18
18
|
cliCommandHandler
|
|
19
19
|
} from "../../shared/@ai-setting/roy-agent-core-v0hf14bj.js";
|
|
20
20
|
import"../../shared/@ai-setting/roy-agent-core-tm1mxttk.js";
|
|
21
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
21
|
+
import"../../shared/@ai-setting/roy-agent-core-k13pxrpk.js";
|
|
22
22
|
import"../../shared/@ai-setting/roy-agent-core-na18zwj0.js";
|
|
23
|
+
import"../../shared/@ai-setting/roy-agent-core-zv8bswpw.js";
|
|
23
24
|
import"../../shared/@ai-setting/roy-agent-core-abqhkbn3.js";
|
|
24
25
|
import"../../shared/@ai-setting/roy-agent-core-1pg0fepg.js";
|
|
25
|
-
import"../../shared/@ai-setting/roy-agent-core-vaz9350j.js";
|
|
26
26
|
import"../../shared/@ai-setting/roy-agent-core-tr3ep81v.js";
|
|
27
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
28
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
29
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
27
|
+
import"../../shared/@ai-setting/roy-agent-core-4jjwewvw.js";
|
|
28
|
+
import"../../shared/@ai-setting/roy-agent-core-1w9y7mxj.js";
|
|
29
|
+
import"../../shared/@ai-setting/roy-agent-core-46rv4d7d.js";
|
|
30
30
|
import"../../shared/@ai-setting/roy-agent-core-c2gbt68e.js";
|
|
31
31
|
import"../../shared/@ai-setting/roy-agent-core-yr1mryb8.js";
|
|
32
32
|
import"../../shared/@ai-setting/roy-agent-core-mds8tqd0.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import"../../shared/@ai-setting/roy-agent-core-b4x6x4k2.js";
|
|
2
2
|
import {
|
|
3
3
|
EventSourceComponent
|
|
4
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
4
|
+
} from "../../shared/@ai-setting/roy-agent-core-5repth1n.js";
|
|
5
5
|
import {
|
|
6
6
|
BountyIMInstance,
|
|
7
7
|
COMMAND_PREFIX,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
timerHandler,
|
|
34
34
|
translateCardActionToCommand,
|
|
35
35
|
writeFallbackModelList
|
|
36
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
36
|
+
} from "../../shared/@ai-setting/roy-agent-core-zsbh9bfv.js";
|
|
37
37
|
import {
|
|
38
38
|
BUILT_IN_EVENT_SOURCE_TYPES,
|
|
39
39
|
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
|
@@ -52,20 +52,20 @@ import {
|
|
|
52
52
|
parseCliSessionChatId
|
|
53
53
|
} from "../../shared/@ai-setting/roy-agent-core-v0hf14bj.js";
|
|
54
54
|
import"../../shared/@ai-setting/roy-agent-core-tm1mxttk.js";
|
|
55
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
55
|
+
import"../../shared/@ai-setting/roy-agent-core-k13pxrpk.js";
|
|
56
56
|
import {
|
|
57
57
|
EventStoreImpl,
|
|
58
58
|
getSharedEventStore,
|
|
59
59
|
resetSharedEventStore,
|
|
60
60
|
setSharedEventStore
|
|
61
61
|
} from "../../shared/@ai-setting/roy-agent-core-na18zwj0.js";
|
|
62
|
+
import"../../shared/@ai-setting/roy-agent-core-zv8bswpw.js";
|
|
62
63
|
import"../../shared/@ai-setting/roy-agent-core-abqhkbn3.js";
|
|
63
64
|
import"../../shared/@ai-setting/roy-agent-core-1pg0fepg.js";
|
|
64
|
-
import"../../shared/@ai-setting/roy-agent-core-vaz9350j.js";
|
|
65
65
|
import"../../shared/@ai-setting/roy-agent-core-tr3ep81v.js";
|
|
66
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
67
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
68
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
66
|
+
import"../../shared/@ai-setting/roy-agent-core-4jjwewvw.js";
|
|
67
|
+
import"../../shared/@ai-setting/roy-agent-core-1w9y7mxj.js";
|
|
68
|
+
import"../../shared/@ai-setting/roy-agent-core-46rv4d7d.js";
|
|
69
69
|
import"../../shared/@ai-setting/roy-agent-core-c2gbt68e.js";
|
|
70
70
|
import"../../shared/@ai-setting/roy-agent-core-yr1mryb8.js";
|
|
71
71
|
import"../../shared/@ai-setting/roy-agent-core-mds8tqd0.js";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Task #4896 — `reset` command.
|
|
3
|
+
*
|
|
4
|
+
* User sends `##command##: reset` (optionally `reset <reason>`)
|
|
5
|
+
* to the roy-agent es frontend. This command notifies the
|
|
6
|
+
* deamon-for-roy daemon over a Unix socket (JSON line protocol):
|
|
7
|
+
*
|
|
8
|
+
* -> {"type":"reset","reason":"..."}
|
|
9
|
+
* <- {"type":"ack","action":"respawning"}
|
|
10
|
+
*
|
|
11
|
+
* The daemon then SIGTERMs this process and respawns the
|
|
12
|
+
* (possibly rebuilt) binary — hot version swap.
|
|
13
|
+
*
|
|
14
|
+
* ## Iron rule: the command must NEVER fail
|
|
15
|
+
*
|
|
16
|
+
* If the socket is missing / connect fails / daemon doesn't
|
|
17
|
+
* answer within 3s, we still return ok:true with text telling
|
|
18
|
+
* the user the daemon did NOT confirm. A broken IPC must not
|
|
19
|
+
* leave the user without any feedback (the es frontend renders
|
|
20
|
+
* CommandResult to a feishu card).
|
|
21
|
+
*
|
|
22
|
+
* ## Socket path resolution
|
|
23
|
+
*
|
|
24
|
+
* 1. env ROY_DAEMON_SOCKET (tests / ops override)
|
|
25
|
+
* 2. default /tmp/deamon-for-roy.sock
|
|
26
|
+
*/
|
|
27
|
+
import type { CommandDefinition } from "./command-registry";
|
|
28
|
+
import { type LarkCard } from "./command-cards";
|
|
29
|
+
/** Default IPC socket path of deamon-for-roy. */
|
|
30
|
+
export declare const DEFAULT_SOCKET_PATH = "/tmp/deamon-for-roy.sock";
|
|
31
|
+
/** How long to wait for the daemon ACK before giving up (ms). */
|
|
32
|
+
export declare const RESET_ACK_TIMEOUT_MS = 3000;
|
|
33
|
+
export declare function resolveSocketPath(): string;
|
|
34
|
+
/**
|
|
35
|
+
* Build the feishu interactive card for the reset result.
|
|
36
|
+
*
|
|
37
|
+
* Uses the repo's Card 2.0 convention (renderTextCard) so the reset card
|
|
38
|
+
* looks the same as the other command cards (header + markdown body).
|
|
39
|
+
*/
|
|
40
|
+
export declare function buildResetCard(text: string): LarkCard;
|
|
41
|
+
export declare const resetCommand: CommandDefinition;
|
package/dist/env/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseEnvironment
|
|
3
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
3
|
+
} from "../shared/@ai-setting/roy-agent-core-1gsbqesr.js";
|
|
4
4
|
import {
|
|
5
5
|
TaskComponent
|
|
6
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
6
|
+
} from "../shared/@ai-setting/roy-agent-core-mwa6apzx.js";
|
|
7
7
|
import"../shared/@ai-setting/roy-agent-core-58804s3j.js";
|
|
8
8
|
import"../shared/@ai-setting/roy-agent-core-jm136jzh.js";
|
|
9
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
9
|
+
import"../shared/@ai-setting/roy-agent-core-101qtkyc.js";
|
|
10
10
|
import"../shared/@ai-setting/roy-agent-core-fttgm52a.js";
|
|
11
11
|
import"../shared/@ai-setting/roy-agent-core-ntq0gz7q.js";
|
|
12
12
|
import"../shared/@ai-setting/roy-agent-core-8gxth0eh.js";
|
|
13
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
13
|
+
import"../shared/@ai-setting/roy-agent-core-7sj9xs9c.js";
|
|
14
14
|
import"../shared/@ai-setting/roy-agent-core-p5cz9m8v.js";
|
|
15
15
|
import {
|
|
16
16
|
EventSourceComponent
|
|
17
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
17
|
+
} from "../shared/@ai-setting/roy-agent-core-5repth1n.js";
|
|
18
18
|
import {
|
|
19
19
|
builtInHandlers,
|
|
20
20
|
larkCliHandler
|
|
21
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
21
|
+
} from "../shared/@ai-setting/roy-agent-core-zsbh9bfv.js";
|
|
22
22
|
import {
|
|
23
23
|
EventSourceInitHooks,
|
|
24
24
|
getDefaultConfigForType,
|
|
@@ -29,15 +29,15 @@ import {
|
|
|
29
29
|
import"../shared/@ai-setting/roy-agent-core-add1zqsh.js";
|
|
30
30
|
import"../shared/@ai-setting/roy-agent-core-v0hf14bj.js";
|
|
31
31
|
import"../shared/@ai-setting/roy-agent-core-tm1mxttk.js";
|
|
32
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
32
|
+
import"../shared/@ai-setting/roy-agent-core-k13pxrpk.js";
|
|
33
33
|
import"../shared/@ai-setting/roy-agent-core-na18zwj0.js";
|
|
34
|
+
import"../shared/@ai-setting/roy-agent-core-zv8bswpw.js";
|
|
34
35
|
import"../shared/@ai-setting/roy-agent-core-abqhkbn3.js";
|
|
35
36
|
import"../shared/@ai-setting/roy-agent-core-1pg0fepg.js";
|
|
36
|
-
import"../shared/@ai-setting/roy-agent-core-vaz9350j.js";
|
|
37
37
|
import"../shared/@ai-setting/roy-agent-core-tr3ep81v.js";
|
|
38
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
39
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
40
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
38
|
+
import"../shared/@ai-setting/roy-agent-core-4jjwewvw.js";
|
|
39
|
+
import"../shared/@ai-setting/roy-agent-core-1w9y7mxj.js";
|
|
40
|
+
import"../shared/@ai-setting/roy-agent-core-46rv4d7d.js";
|
|
41
41
|
import {
|
|
42
42
|
WorkflowComponent
|
|
43
43
|
} from "../shared/@ai-setting/roy-agent-core-37tj4y6a.js";
|
package/dist/env/prompt/index.js
CHANGED
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
PromptConfigSchema,
|
|
4
4
|
PromptPathSchema,
|
|
5
5
|
PromptRenderer
|
|
6
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
7
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
8
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
6
|
+
} from "../../shared/@ai-setting/roy-agent-core-9geem94g.js";
|
|
7
|
+
import"../../shared/@ai-setting/roy-agent-core-zv8bswpw.js";
|
|
8
|
+
import"../../shared/@ai-setting/roy-agent-core-4jjwewvw.js";
|
|
9
9
|
import"../../shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
10
10
|
import"../../shared/@ai-setting/roy-agent-core-7hh0brvs.js";
|
|
11
11
|
import"../../shared/@ai-setting/roy-agent-core-pgvcf91v.js";
|