@oyasmi/pipiclaw 0.9.2-beta.3 → 0.9.2-beta.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.md +3 -0
- package/dist/agent/channel-runner.d.ts +45 -19
- package/dist/agent/channel-runner.js +156 -102
- package/dist/agent/command-extension.js +1 -1
- package/dist/agent/context-budget.d.ts +17 -1
- package/dist/agent/context-budget.js +20 -6
- package/dist/agent/job-manager.d.ts +3 -1
- package/dist/agent/job-manager.js +7 -1
- package/dist/agent/prompt/builder.d.ts +0 -1
- package/dist/agent/prompt/builder.js +1 -14
- package/dist/agent/prompt/manifest.js +2 -1
- package/dist/agent/prompt/sections.js +1 -1
- package/dist/agent/runner-factory.d.ts +19 -1
- package/dist/agent/runner-factory.js +8 -1
- package/dist/agent/session-events.d.ts +2 -2
- package/dist/agent/session-events.js +2 -22
- package/dist/agent/turn-prompt.d.ts +35 -0
- package/dist/agent/turn-prompt.js +37 -0
- package/dist/agent/turn-recovery.js +1 -1
- package/dist/agent/turn-state.d.ts +60 -0
- package/dist/agent/turn-state.js +95 -0
- package/dist/agent/types.d.ts +5 -4
- package/dist/{runtime → channel}/channel-context.d.ts +10 -2
- package/dist/{runtime → channel}/channel-context.js +6 -2
- package/dist/{runtime → channel}/channel-event.d.ts +39 -0
- package/dist/channel/channel-event.js +11 -0
- package/dist/channel/channel-paths.d.ts +16 -0
- package/dist/{runtime → channel}/channel-paths.js +20 -0
- package/dist/{runtime → channel}/project-scope-store.js +6 -11
- package/dist/{runtime → channel}/store.d.ts +7 -0
- package/dist/{agent/commands.d.ts → commands/catalog.d.ts} +17 -2
- package/dist/{agent/commands.js → commands/catalog.js} +30 -0
- package/dist/index.d.ts +1 -1
- package/dist/log.js +14 -5
- package/dist/main.js +29 -0
- package/dist/memory/bootstrap.js +3 -5
- package/dist/memory/candidates.js +2 -4
- package/dist/memory/commands.js +2 -2
- package/dist/memory/files.d.ts +0 -1
- package/dist/memory/files.js +6 -9
- package/dist/memory/maintenance-state.d.ts +8 -0
- package/dist/memory/maintenance-state.js +51 -4
- package/dist/memory/scheduler.d.ts +6 -0
- package/dist/memory/scheduler.js +19 -16
- package/dist/playbooks/agent-delegation.md +2 -2
- package/dist/runtime/bootstrap.d.ts +14 -8
- package/dist/runtime/bootstrap.js +158 -81
- package/dist/runtime/delivery.d.ts +3 -3
- package/dist/runtime/delivery.js +1 -0
- package/dist/runtime/dingtalk.d.ts +62 -6
- package/dist/runtime/dingtalk.js +194 -85
- package/dist/runtime/durable-dispatch.d.ts +7 -1
- package/dist/runtime/durable-dispatch.js +12 -2
- package/dist/runtime/event-commands.js +2 -2
- package/dist/runtime/events.d.ts +8 -1
- package/dist/runtime/events.js +15 -3
- package/dist/runtime/inbound-media.d.ts +60 -0
- package/dist/runtime/inbound-media.js +95 -0
- package/dist/runtime/project-commands.js +2 -2
- package/dist/runtime/skill-commands.d.ts +27 -0
- package/dist/runtime/skill-commands.js +72 -0
- package/dist/runtime/subagent-commands.js +1 -1
- package/dist/runtime/task-commands.js +2 -2
- package/dist/runtime/task-driver.d.ts +12 -1
- package/dist/runtime/task-driver.js +36 -56
- package/dist/runtime/task-migration.d.ts +11 -0
- package/dist/runtime/task-migration.js +14 -2
- package/dist/runtime/task-wake.d.ts +1 -1
- package/dist/runtime/task-wake.js +1 -1
- package/dist/security/command-guard.js +1 -3
- package/dist/security/config.d.ts +1 -1
- package/dist/security/config.js +8 -32
- package/dist/security/path-guard.js +1 -6
- package/dist/security/project-scope.js +1 -3
- package/dist/settings.d.ts +3 -2
- package/dist/settings.js +82 -20
- package/dist/shared/atomic-file.d.ts +2 -3
- package/dist/shared/atomic-file.js +8 -9
- package/dist/shared/config-diagnostic.d.ts +21 -0
- package/dist/shared/config-diagnostic.js +32 -0
- package/dist/shared/numeric.d.ts +7 -0
- package/dist/shared/numeric.js +19 -0
- package/dist/shared/text-utils.d.ts +10 -0
- package/dist/shared/text-utils.js +16 -0
- package/dist/shared/token-estimate.d.ts +1 -0
- package/dist/shared/token-estimate.js +19 -0
- package/dist/shared/types.d.ts +23 -0
- package/dist/shared/types.js +12 -0
- package/dist/shared/with-timeout.d.ts +3 -0
- package/dist/shared/with-timeout.js +8 -0
- package/dist/subagents/discovery.d.ts +7 -7
- package/dist/subagents/discovery.js +27 -59
- package/dist/subagents/runs.d.ts +15 -4
- package/dist/subagents/runs.js +118 -11
- package/dist/subagents/tool.js +199 -131
- package/dist/subagents/workspace-lease.js +1 -3
- package/dist/tasks/control.d.ts +2 -0
- package/dist/tasks/control.js +2 -0
- package/dist/tasks/ledger.d.ts +0 -9
- package/dist/tasks/ledger.js +92 -158
- package/dist/tools/config.d.ts +1 -1
- package/dist/tools/config.js +9 -46
- package/dist/tools/glob-match.d.ts +25 -4
- package/dist/tools/glob-match.js +175 -53
- package/dist/tools/glob.js +5 -2
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/registry.d.ts +1 -1
- package/dist/tools/send-media.d.ts +1 -1
- package/dist/tools/skill.d.ts +15 -0
- package/dist/tools/skill.js +17 -11
- package/dist/tools/truncate.js +24 -28
- package/dist/tui/app.js +6 -4
- package/dist/tui/commands.d.ts +1 -0
- package/dist/tui/commands.js +3 -1
- package/dist/tui/terminal-context.d.ts +2 -2
- package/dist/tui/terminal-media-sender.d.ts +1 -1
- package/dist/tui/turn-controller.d.ts +2 -1
- package/dist/tui/turn-controller.js +2 -1
- package/dist/web/config.js +3 -15
- package/examples/sub-agents/README.md +2 -2
- package/examples/sub-agents/builder.md +1 -1
- package/examples/sub-agents/documenter.md +1 -1
- package/examples/sub-agents/explorer.md +4 -4
- package/examples/sub-agents/git-committer.md +5 -4
- package/examples/sub-agents/log-sifter.md +4 -4
- package/examples/sub-agents/planner.md +1 -1
- package/examples/sub-agents/reviewer.md +1 -1
- package/examples/sub-agents/verifier.md +1 -1
- package/examples/sub-agents/worker.md +3 -3
- package/package.json +3 -2
- package/dist/agent/index.d.ts +0 -2
- package/dist/agent/index.js +0 -1
- package/dist/runtime/channel-event.js +0 -1
- package/dist/runtime/channel-paths.d.ts +0 -4
- /package/dist/{runtime → channel}/active-session-store.d.ts +0 -0
- /package/dist/{runtime → channel}/active-session-store.js +0 -0
- /package/dist/{runtime → channel}/channel-index.d.ts +0 -0
- /package/dist/{runtime → channel}/channel-index.js +0 -0
- /package/dist/{runtime → channel}/project-scope-store.d.ts +0 -0
- /package/dist/{runtime → channel}/store.js +0 -0
- /package/dist/{agent → commands}/reply-limits.d.ts +0 -0
- /package/dist/{agent → commands}/reply-limits.js +0 -0
|
@@ -12,10 +12,10 @@ memory: none
|
|
|
12
12
|
thinkingLevel: low
|
|
13
13
|
workload: light
|
|
14
14
|
mutates: read
|
|
15
|
-
maxTurns:
|
|
16
|
-
maxToolCalls:
|
|
17
|
-
maxWallTimeSec:
|
|
18
|
-
bashTimeoutSec:
|
|
15
|
+
maxTurns: 32
|
|
16
|
+
maxToolCalls: 96
|
|
17
|
+
maxWallTimeSec: 600
|
|
18
|
+
bashTimeoutSec: 180
|
|
19
19
|
---
|
|
20
20
|
|
|
21
21
|
你是代码探索者。你只读调查当前仓库,回答实现在哪里、组件如何连接、某个行为由什么代码产生。
|
|
@@ -11,10 +11,10 @@ memory: none
|
|
|
11
11
|
thinkingLevel: medium
|
|
12
12
|
workload: light
|
|
13
13
|
mutates: write
|
|
14
|
-
maxTurns:
|
|
15
|
-
maxToolCalls:
|
|
16
|
-
maxWallTimeSec:
|
|
17
|
-
bashTimeoutSec:
|
|
14
|
+
maxTurns: 32
|
|
15
|
+
maxToolCalls: 80
|
|
16
|
+
maxWallTimeSec: 1200
|
|
17
|
+
bashTimeoutSec: 600
|
|
18
18
|
---
|
|
19
19
|
|
|
20
20
|
你是 Git 提交整理者。你只处理已经存在的改动:读懂 diff、按授权范围精确暂存、创建清晰的本地 commit 并报告剩余状态。
|
|
@@ -35,6 +35,7 @@ bashTimeoutSec: 480
|
|
|
35
35
|
- 正常提交并让仓库 hooks 运行。hook 失败就报告,不用 `--no-verify`,也不改代码绕过失败。
|
|
36
36
|
- 提交后用 `git show --stat --oneline HEAD` 核对内容并取交付所需的 hash 与路径;hook 改过文件的话再看一眼 `git status`,但不自行修复或补充暂存。
|
|
37
37
|
- 不 amend、rebase、merge、reset、切分支、操作 tag 或改写历史,除非任务逐项明确授权。
|
|
38
|
+
- 不在提交消息中添加类似 'Co-Authored-By:' 这样的签名
|
|
38
39
|
|
|
39
40
|
## Push 需单独授权
|
|
40
41
|
|
|
@@ -12,10 +12,10 @@ memory: none
|
|
|
12
12
|
thinkingLevel: low
|
|
13
13
|
workload: light
|
|
14
14
|
mutates: read
|
|
15
|
-
maxTurns:
|
|
16
|
-
maxToolCalls:
|
|
17
|
-
maxWallTimeSec:
|
|
18
|
-
bashTimeoutSec:
|
|
15
|
+
maxTurns: 32
|
|
16
|
+
maxToolCalls: 64
|
|
17
|
+
maxWallTimeSec: 900
|
|
18
|
+
bashTimeoutSec: 300
|
|
19
19
|
---
|
|
20
20
|
|
|
21
21
|
你是日志筛查者。你在大量原始输出中定位与问题相关的证据,只把足以支撑结论的最小片段带回。
|
|
@@ -5,11 +5,11 @@ description: >-
|
|
|
5
5
|
runtime: external
|
|
6
6
|
harness: codex-cli
|
|
7
7
|
command: codex exec --sandbox workspace-write --skip-git-repo-check
|
|
8
|
-
model: gpt-5.6-
|
|
9
|
-
thinkingLevel:
|
|
8
|
+
model: gpt-5.6-sol
|
|
9
|
+
thinkingLevel: medium
|
|
10
10
|
workload: heavy
|
|
11
11
|
mutates: write
|
|
12
|
-
maxWallTimeSec:
|
|
12
|
+
maxWallTimeSec: 5400
|
|
13
13
|
---
|
|
14
14
|
|
|
15
15
|
你是通用任务执行者。你承接专用角色未覆盖的多步分析、转换和产出,说明口径与假设,并标出该交接的部分。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oyasmi/pipiclaw",
|
|
3
|
-
"version": "0.9.2-beta.
|
|
3
|
+
"version": "0.9.2-beta.6",
|
|
4
4
|
"description": "An AI assistant runtime for coding and team workflows, with DingTalk AI Cards, sub-agents, memory, and scheduled events.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
30
30
|
"deadcode": "knip",
|
|
31
31
|
"test": "vitest --run",
|
|
32
|
-
"test:e2e": "vitest --run --config vitest.config.e2e.ts",
|
|
32
|
+
"test:e2e": "vitest --run --config vitest.config.e2e.ts test/e2e/deterministic",
|
|
33
|
+
"test:e2e:live": "vitest --run --config vitest.config.e2e.ts test/e2e/live",
|
|
33
34
|
"eval:build": "tsc -p tsconfig.evals.json && node -e \"const fs=require('node:fs'); fs.cpSync('src/playbooks','dist-evals/src/playbooks',{recursive:true})\"",
|
|
34
35
|
"eval:typecheck": "tsc --noEmit -p tsconfig.evals.json",
|
|
35
36
|
"eval": "npm run eval:build && node dist-evals/evals/harness/run.js",
|
package/dist/agent/index.d.ts
DELETED
package/dist/agent/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { createRunner } from "./runner-factory.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare function isChannelId(value: string): boolean;
|
|
2
|
-
export declare function getChannelDirName(channelId: string): string;
|
|
3
|
-
export declare function getChannelDir(baseDir: string, channelId: string): string;
|
|
4
|
-
export declare function ensureChannelDir(baseDir: string, channelId: string): string;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|