@qilin-agent/tool-schedule 3.1.4 → 3.1.6
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/README.i18n.yaml +2 -2
- package/README.md +0 -1
- package/README.zh.md +0 -1
- package/package.json +14 -14
package/README.i18n.yaml
CHANGED
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
en: 2fbf2175168e8244
|
|
64
64
|
zh: 9c4c1964ae59e661
|
|
65
65
|
/qilin-agent-tool-schedule/known-limitations-and-deferred-work:
|
|
66
|
-
en:
|
|
67
|
-
zh:
|
|
66
|
+
en: 8227ac9f1baa7c33
|
|
67
|
+
zh: 8246a9386a0c3fff
|
|
68
68
|
/qilin-agent-tool-schedule/known-limitations-and-deferred-work/dev-note:
|
|
69
69
|
en: e67f633dc6fe7773
|
|
70
70
|
zh: b2ee0fbaa165910d
|
package/README.md
CHANGED
|
@@ -117,7 +117,6 @@ Append-only; newly visible content follows the reusable request prefix and does
|
|
|
117
117
|
- **Deletion does not retract a queued message** — a reminder the Host already delivered stays in the Session inbox after `schedule_delete`.
|
|
118
118
|
- **Reminder timing belongs to the Host** — the tools expose no target-time correction, clock source, or delivery retry; those limits are the service's.
|
|
119
119
|
- **Every tool refuses a delegated caller** — each of `schedule_create`, `schedule_list`, `schedule_update`, and `schedule_delete` reads the calling Agent's delegation depth before dispatch and returns `{ code: 'subagent_session', message: 'A delegated subagent cannot use reminders.' }` when that depth is above zero. The guard lives in this package and reads `delegationDepthOf` from `@qilin-agent/subagent`, the same accounting the delegation cap enforces, so it holds under any preset that mounts the tools.
|
|
120
|
-
- **A preset's delegation rows remove the four tools from a child's prompt** — the `standard`, `cordis`, and `ptc` presets declare `toolFilter.deny` for `schedule_create`, `schedule_delete`, `schedule_list`, and `schedule_update` on both the `tool-subagent` and `tool-subagent-fork` rows. The provider applies that filter through `ctx.tools.restrict()` in the child scope, so the four tools leave a delegated child's prompt; delegating further on that chain intersects the same restriction.
|
|
121
120
|
- **A Session a delegated child owns cannot arm a reminder** — `ScheduleService.create` throws `ScheduleInputError` with code `subagent_session`, and `ScheduleService.update` returns the non-mutating `subagent_session` result, when the Session's Agent has a delegation depth above zero. The delegation depth is the accounting the delegation cap itself reads, and the persisted session header carries it across a cold resume. The rule sits in the service, not in these tools, so other in-process consumers reach it too: the Automation surface included. `schedule_list` and `schedule_delete` still serve that Session, so a reminder stored before this rule stays removable.
|
|
122
121
|
|
|
123
122
|
<a id="dev-note"></a>
|
package/README.zh.md
CHANGED
|
@@ -117,7 +117,6 @@ kind: "package-reference"
|
|
|
117
117
|
- **删除不会撤回已排队的消息** —— 宿主已经投递的提醒在 `schedule_delete` 之后仍留在 Session 收件箱中。
|
|
118
118
|
- **提醒时间由宿主负责** —— 这些工具不提供目标时间校正、时钟来源或投递重试;这些限制属于该服务。
|
|
119
119
|
- **每个工具都拒绝被委派的调用方** —— `schedule_create`、`schedule_list`、`schedule_update` 与 `schedule_delete` 都会在派发前读取调用方 Agent 的委派深度,当该深度大于零时返回 `{ code: 'subagent_session', message: 'A delegated subagent cannot use reminders.' }`。该守卫位于本包内,读取来自 `@qilin-agent/subagent` 的 `delegationDepthOf`,即委派封顶本身执行的同一份记账,因此在任何挂载这些工具的 preset 下都成立。
|
|
120
|
-
- **preset 的委派行让这四个工具从子 agent 的 prompt 中消失** —— `standard`、`cordis` 与 `ptc` preset 在 `tool-subagent` 与 `tool-subagent-fork` 两行上都声明 `toolFilter.deny`,拒绝 `schedule_create`、`schedule_delete`、`schedule_list` 和 `schedule_update`。provider 会在子作用域内通过 `ctx.tools.restrict()` 应用该过滤,因此这四个工具会从被委派子 agent 的 prompt 中消失;在子链上继续委派会沿链求交同一限制。
|
|
121
120
|
- **被委派子 agent 拥有的 Session 不能设置提醒** —— 当 Session 的 Agent 委派深度大于零时,`ScheduleService.create` 会抛出 `ScheduleInputError`(code 为 `subagent_session`),`ScheduleService.update` 则返回非变更的 `subagent_session` 结果。委派深度正是委派封顶本身读取的同一份记账,持久化 session header 让它在冷恢复后仍然成立。这条规则在服务层而非这些工具里,因此其它进程内消费方(包括自动化任务页面)也会命中。`schedule_list` 与 `schedule_delete` 仍可服务该 Session,所以在这条规则之前存储的提醒仍可删除。
|
|
122
121
|
|
|
123
122
|
<a id="dev-note"></a>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qilin-agent/tool-schedule",
|
|
3
3
|
"description": "Model-facing reminder management tools (schedule_create, schedule_list, schedule_update, schedule_delete) over the Host ctx.schedule service",
|
|
4
|
-
"version": "3.1.
|
|
4
|
+
"version": "3.1.6",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -30,20 +30,20 @@
|
|
|
30
30
|
],
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@qilin-agent/kylin": "~4.0.
|
|
34
|
-
"@qilin-agent/schedule": "3.1.
|
|
35
|
-
"@qilin-agent/llm": "3.1.
|
|
36
|
-
"@qilin-agent/subagent": "3.1.
|
|
37
|
-
"@qilin-agent/tools": "3.1.
|
|
33
|
+
"@qilin-agent/kylin": "~4.0.5",
|
|
34
|
+
"@qilin-agent/schedule": "3.1.6",
|
|
35
|
+
"@qilin-agent/llm": "3.1.6",
|
|
36
|
+
"@qilin-agent/subagent": "3.1.6",
|
|
37
|
+
"@qilin-agent/tools": "3.1.6"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@qilin-agent/
|
|
41
|
-
"@qilin-agent/
|
|
42
|
-
"@qilin-agent/
|
|
43
|
-
"@qilin-agent/
|
|
44
|
-
"@qilin-agent/
|
|
45
|
-
"@qilin-agent/
|
|
46
|
-
"@qilin-agent/subagent": "3.1.
|
|
47
|
-
"@qilin-agent/tools": "3.1.
|
|
40
|
+
"@qilin-agent/kylin": "~4.0.5",
|
|
41
|
+
"@qilin-agent/agent": "3.1.6",
|
|
42
|
+
"@qilin-agent/scope": "3.1.6",
|
|
43
|
+
"@qilin-agent/session": "3.1.6",
|
|
44
|
+
"@qilin-agent/schedule": "3.1.6",
|
|
45
|
+
"@qilin-agent/llm": "3.1.6",
|
|
46
|
+
"@qilin-agent/subagent": "3.1.6",
|
|
47
|
+
"@qilin-agent/tools": "3.1.6"
|
|
48
48
|
}
|
|
49
49
|
}
|