@oyasmi/pipiclaw 0.8.0 → 0.8.2
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 +115 -510
- package/dist/agent/channel-runner.d.ts +11 -6
- package/dist/agent/channel-runner.js +44 -24
- package/dist/agent/command-extension.js +5 -4
- package/dist/agent/commands.d.ts +50 -0
- package/dist/agent/commands.js +176 -67
- package/dist/agent/job-manager.d.ts +5 -5
- package/dist/agent/prompt-builder.d.ts +3 -13
- package/dist/agent/prompt-builder.js +44 -204
- package/dist/agent/run-queue.d.ts +1 -2
- package/dist/agent/run-queue.js +3 -5
- package/dist/agent/runner-factory.d.ts +1 -2
- package/dist/agent/runner-factory.js +2 -2
- package/dist/agent/status-render.d.ts +0 -7
- package/dist/agent/status-render.js +8 -3
- package/dist/agent/types.d.ts +4 -3
- package/dist/agent/workspace-resources.d.ts +1 -1
- package/dist/agent/workspace-resources.js +3 -15
- package/dist/executor.d.ts +20 -0
- package/dist/{sandbox.js → executor.js} +3 -95
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/log.d.ts +1 -3
- package/dist/log.js +1 -20
- package/dist/main.js +14 -4
- package/dist/memory/files.js +0 -0
- package/dist/memory/lifecycle.js +6 -5
- package/dist/memory/maintenance-jobs.d.ts +0 -1
- package/dist/memory/maintenance-jobs.js +2 -2
- package/dist/memory/maintenance-state.js +2 -1
- package/dist/memory/post-turn-review.d.ts +0 -1
- package/dist/memory/post-turn-review.js +4 -4
- package/dist/memory/scheduler.d.ts +0 -1
- package/dist/memory/scheduler.js +2 -2
- package/dist/memory/session.js +2 -2
- package/dist/paths.d.ts +2 -0
- package/dist/paths.js +11 -0
- package/dist/playbooks/event-scheduling.md +43 -0
- package/dist/playbooks/memory-and-learning.md +45 -0
- package/dist/playbooks/runtime-orientation.md +48 -0
- package/dist/playbooks/task-closeout.md +45 -0
- package/dist/playbooks/task-delegation.md +44 -0
- package/dist/playbooks/task-driving.md +43 -0
- package/dist/playbooks/task-planning.md +47 -0
- package/dist/playbooks/task-recurring.md +42 -0
- package/dist/playbooks/task-repair.md +43 -0
- package/dist/runtime/bootstrap.d.ts +7 -11
- package/dist/runtime/bootstrap.js +50 -57
- package/dist/runtime/delivery.js +4 -3
- package/dist/runtime/dingtalk.js +50 -57
- package/dist/runtime/durable-dispatch.d.ts +2 -0
- package/dist/runtime/durable-dispatch.js +29 -1
- package/dist/runtime/event-commands.js +4 -4
- package/dist/runtime/events.d.ts +1 -1
- package/dist/runtime/events.js +5 -5
- package/dist/runtime/task-commands.js +9 -4
- package/dist/runtime/task-driver.js +12 -14
- package/dist/security/config.js +2 -1
- package/dist/security/network.js +9 -2
- package/dist/security/path-guard.js +12 -24
- package/dist/security/types.d.ts +0 -1
- package/dist/shared/jsonl-appender.js +2 -1
- package/dist/shared/task-ledger.d.ts +9 -1
- package/dist/shared/task-ledger.js +28 -14
- package/dist/shared/text-utils.d.ts +1 -0
- package/dist/shared/text-utils.js +3 -0
- package/dist/subagents/discovery.js +3 -2
- package/dist/subagents/tool.d.ts +2 -3
- package/dist/subagents/tool.js +9 -24
- package/dist/tasks/control.js +2 -1
- package/dist/tasks/verification.js +2 -1
- package/dist/tools/bash.d.ts +1 -1
- package/dist/tools/bash.js +3 -5
- package/dist/tools/command-optimizer.d.ts +1 -1
- package/dist/tools/command-optimizer.js +4 -6
- package/dist/tools/config.js +4 -3
- package/dist/tools/edit.d.ts +1 -1
- package/dist/tools/edit.js +0 -0
- package/dist/tools/event-manage.d.ts +0 -1
- package/dist/tools/event-manage.js +9 -14
- package/dist/tools/grep.d.ts +1 -1
- package/dist/tools/grep.js +4 -6
- package/dist/tools/index.d.ts +1 -3
- package/dist/tools/index.js +1 -4
- package/dist/tools/read.d.ts +1 -1
- package/dist/tools/read.js +1 -2
- package/dist/tools/registry.d.ts +1 -2
- package/dist/tools/registry.js +3 -10
- package/dist/tools/skill-manage.d.ts +0 -1
- package/dist/tools/skill-manage.js +7 -14
- package/dist/tools/task-manage.d.ts +0 -1
- package/dist/tools/task-manage.js +18 -16
- package/dist/tools/write-content.d.ts +1 -1
- package/dist/tools/write-content.js +0 -1
- package/dist/tools/write.d.ts +1 -1
- package/dist/tui/app.d.ts +0 -2
- package/dist/tui/app.js +12 -7
- package/dist/tui/cli.d.ts +3 -2
- package/dist/tui/cli.js +12 -24
- package/dist/tui/commands.d.ts +4 -1
- package/dist/tui/commands.js +10 -14
- package/dist/tui/turn-controller.d.ts +7 -3
- package/dist/tui/turn-controller.js +18 -6
- package/dist/web/client.js +2 -1
- package/package.json +2 -2
- package/dist/sandbox.d.ts +0 -42
package/dist/sandbox.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export type SandboxConfig = {
|
|
2
|
-
type: "host";
|
|
3
|
-
} | {
|
|
4
|
-
type: "docker";
|
|
5
|
-
container: string;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Error raised when sandbox configuration is invalid or the target sandbox is not
|
|
9
|
-
* usable. Thrown instead of calling process.exit so callers (bootstrap) decide how
|
|
10
|
-
* to surface it and the functions stay testable.
|
|
11
|
-
*/
|
|
12
|
-
export declare class SandboxConfigError extends Error {
|
|
13
|
-
constructor(message: string);
|
|
14
|
-
}
|
|
15
|
-
export declare function parseSandboxArg(value: string): SandboxConfig;
|
|
16
|
-
export declare function validateSandbox(config: SandboxConfig): Promise<void>;
|
|
17
|
-
/**
|
|
18
|
-
* Create an executor that runs commands either on host or in Docker container
|
|
19
|
-
*/
|
|
20
|
-
export declare function createExecutor(config: SandboxConfig): Executor;
|
|
21
|
-
export interface Executor {
|
|
22
|
-
/**
|
|
23
|
-
* Execute a bash command
|
|
24
|
-
*/
|
|
25
|
-
exec(command: string, options?: ExecOptions): Promise<ExecResult>;
|
|
26
|
-
/**
|
|
27
|
-
* Get the workspace path prefix for this executor
|
|
28
|
-
* Host: returns the actual path
|
|
29
|
-
* Docker: returns /workspace
|
|
30
|
-
*/
|
|
31
|
-
getWorkspacePath(hostPath: string): string;
|
|
32
|
-
}
|
|
33
|
-
export interface ExecOptions {
|
|
34
|
-
timeout?: number;
|
|
35
|
-
signal?: AbortSignal;
|
|
36
|
-
stdin?: string;
|
|
37
|
-
}
|
|
38
|
-
export interface ExecResult {
|
|
39
|
-
stdout: string;
|
|
40
|
-
stderr: string;
|
|
41
|
-
code: number;
|
|
42
|
-
}
|