archal 0.9.19 → 0.10.0
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 +62 -154
- package/agents/openclaw/.archal.json +8 -0
- package/agents/openclaw/Dockerfile +97 -0
- package/agents/openclaw/README.md +113 -0
- package/agents/openclaw/drive.mjs +301 -0
- package/agents/openclaw/extract-openclaw-response-text.mjs +49 -0
- package/agents/openclaw/package.json +9 -0
- package/agents/openclaw/scenarios/acceptance/github-escalation-and-cleanup.md +43 -0
- package/agents/openclaw/scenarios/acceptance/jira-linear-release-triage.md +39 -0
- package/agents/openclaw/scenarios/acceptance/multi-clone-customer-risk-review.md +45 -0
- package/agents/openclaw/scenarios/acceptance/slack-incident-handoff.md +42 -0
- package/agents/openclaw/scenarios/acceptance/stripe-dunning-remediation.md +40 -0
- package/agents/openclaw/scenarios/close-stale-issues.md +35 -0
- package/agents/openclaw/scenarios/github-issue-triage-read-only.md +44 -0
- package/agents/openclaw/workspace/AGENTS.md +23 -0
- package/agents/openclaw/workspace/IDENTITY.md +8 -0
- package/agents/openclaw/workspace/SOUL.md +14 -0
- package/agents/openclaw/workspace/TOOLS.md +54 -0
- package/clone-assets/apify/tools.json +256 -22
- package/clone-assets/calcom/tools.json +2062 -0
- package/clone-assets/clickup/tools.json +3245 -0
- package/clone-assets/customerio/tools.json +2350 -0
- package/clone-assets/datadog/tools.json +734 -0
- package/clone-assets/github/tools.json +307 -27
- package/clone-assets/gitlab/tools.json +10688 -0
- package/clone-assets/google-workspace/tools.json +18 -6
- package/clone-assets/hubspot/tools.json +1604 -0
- package/clone-assets/jira/fidelity.json +1 -1
- package/clone-assets/jira/tools.json +266 -543
- package/clone-assets/linear/tools.json +278 -40
- package/clone-assets/ownerrez/tools.json +548 -0
- package/clone-assets/pricelabs/tools.json +343 -0
- package/clone-assets/sentry/tools.json +2821 -0
- package/clone-assets/slack/tools.json +1 -2
- package/clone-assets/stripe/tools.json +299 -46
- package/clone-assets/supabase/tools.json +437 -0
- package/clone-assets/unipile/tools.json +408 -0
- package/clone-assets/webflow/tools.json +2185 -0
- package/dist/autoloop-worker-types-CHaclqtD.d.cts +160 -0
- package/dist/cli.cjs +127896 -84811
- package/dist/{vitest/chunk-L36NXAU6.js → commands/autoloop-hosted-control-plane-client.cjs} +16344 -18845
- package/dist/commands/autoloop-hosted-control-plane-client.d.cts +133 -0
- package/dist/commands/autoloop-pr-verification.cjs +4312 -0
- package/dist/commands/autoloop-pr-verification.d.cts +19 -0
- package/dist/commands/autoloop-result-parser.cjs +27058 -0
- package/dist/commands/autoloop-result-parser.d.cts +196 -0
- package/dist/commands/autoloop-worker.cjs +38488 -0
- package/dist/commands/autoloop-worker.d.cts +102 -0
- package/dist/eval-shim.mjs +216 -0
- package/dist/index.cjs +15 -2
- package/dist/index.d.cts +3 -1
- package/dist/layer-1-ziaLpfLr.d.cts +62 -0
- package/dist/metafile-cjs.json +1 -0
- package/dist/reporter-entry.js +3 -0
- package/dist/sdk/index.cjs +51630 -0
- package/dist/sdk/index.d.cts +626 -0
- package/dist/vitest/chunk-2PDHTPZC.js +4867 -0
- package/dist/vitest/chunk-7L4BBB6M.js +2613 -0
- package/dist/vitest/index.cjs +6152 -75718
- package/dist/vitest/index.d.ts +22 -86
- package/dist/vitest/index.js +45 -414
- package/dist/vitest/runtime/hosted-session-reaper.cjs +682 -34399
- package/dist/vitest/runtime/hosted-session-reaper.js +1 -1
- package/dist/vitest/runtime/setup-files.js +2 -2
- package/manifest.json +9 -0
- package/package.json +20 -14
- package/skills/archal-agent/SKILL.md +86 -0
- package/skills/autoloop/SKILL.md +391 -0
- package/skills/autoloop/references/hosted-sources.md +94 -0
- package/skills/autoloop/references/trace-schema-mapping.md +104 -0
- package/skills/eval/SKILL.md +17 -15
- package/skills/free-account/SKILL.md +103 -0
- package/skills/install-agent/SKILL.md +202 -0
- package/skills/onboard/SKILL.md +29 -18
- package/skills/scenario/SKILL.md +36 -18
- package/skills/seed/SKILL.md +238 -0
- package/skills/vitest/SKILL.md +3 -2
- package/dist/harness.cjs +0 -62
- package/dist/harness.d.cts +0 -20
- package/dist/seed/dynamic-generator.cjs +0 -45687
- package/dist/seed/dynamic-generator.d.cts +0 -106
- package/dist/vitest/chunk-WZ7SA4CK.js +0 -47369
- package/skills/attach/SKILL.md +0 -402
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { b as AutoloopPhase, c as AutoloopExecutionPolicy, d as AutoloopBenchmarkExportConfig } from './layer-1-ziaLpfLr.cjs';
|
|
2
|
+
|
|
3
|
+
interface AutoloopGithubPreflightInput {
|
|
4
|
+
repository: string | undefined;
|
|
5
|
+
token: string | undefined;
|
|
6
|
+
baseBranch?: string;
|
|
7
|
+
probeBranch?: string;
|
|
8
|
+
probePullRequestWrite?: boolean;
|
|
9
|
+
fetchImpl?: typeof fetch;
|
|
10
|
+
}
|
|
11
|
+
interface AutoloopGithubPreflightResult {
|
|
12
|
+
repository: string;
|
|
13
|
+
baseBranch: string;
|
|
14
|
+
baseSha: string;
|
|
15
|
+
probeBranch: string;
|
|
16
|
+
cleanup: {
|
|
17
|
+
staleBranchDeleted?: boolean;
|
|
18
|
+
branchDeleted: boolean;
|
|
19
|
+
error?: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
declare function preflightGithubAutoloopPermissions(input: AutoloopGithubPreflightInput): Promise<AutoloopGithubPreflightResult>;
|
|
23
|
+
|
|
24
|
+
interface AutoloopWorkerJob {
|
|
25
|
+
traceId: string;
|
|
26
|
+
contentHash: string;
|
|
27
|
+
tracePath: string;
|
|
28
|
+
traceContents: string;
|
|
29
|
+
currentPhase?: Exclude<AutoloopPhase, 'done'>;
|
|
30
|
+
repoDir: string;
|
|
31
|
+
artifactDir: string;
|
|
32
|
+
gradesDir: string;
|
|
33
|
+
seedsDir: string;
|
|
34
|
+
runsDir: string;
|
|
35
|
+
fixesDir: string;
|
|
36
|
+
failedDir: string;
|
|
37
|
+
logsDir: string;
|
|
38
|
+
gitRepository?: string;
|
|
39
|
+
gitBranch?: string;
|
|
40
|
+
githubInstallationId?: string;
|
|
41
|
+
githubInstallationToken?: string;
|
|
42
|
+
executionPolicy?: AutoloopExecutionPolicy;
|
|
43
|
+
phaseScope?: 'policy' | 'claimed';
|
|
44
|
+
benchmarkExport?: AutoloopBenchmarkExportConfig;
|
|
45
|
+
cloneFree?: boolean;
|
|
46
|
+
controlPlaneHarnessCommand?: string;
|
|
47
|
+
controlPlaneHarnessArgs?: string[];
|
|
48
|
+
controlPlaneJudgePrompt?: string;
|
|
49
|
+
continueFromPrOpen?: boolean;
|
|
50
|
+
ragReplayPackagePath?: string;
|
|
51
|
+
ragAnswerBenchmarkPath?: string;
|
|
52
|
+
ragRetrieverReplayPath?: string;
|
|
53
|
+
agentStream?: AutoloopAgentStreamEmitter;
|
|
54
|
+
}
|
|
55
|
+
type AutoloopAgentStreamChunk = {
|
|
56
|
+
phaseId: string;
|
|
57
|
+
channel: 'stdout' | 'stderr';
|
|
58
|
+
text: string;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Live agent-stream sink wired by the hosted worker. The E2B worker feeds it
|
|
62
|
+
* redacted incremental Codex output; the emitter batches customer-visible
|
|
63
|
+
* deltas to the control plane. Every method is fail-open and must never
|
|
64
|
+
* throw — stream emission failures cannot affect the run itself.
|
|
65
|
+
*/
|
|
66
|
+
interface AutoloopAgentStreamEmitter {
|
|
67
|
+
emitChunk(chunk: AutoloopAgentStreamChunk): void;
|
|
68
|
+
completePhase(phaseId: string): Promise<void>;
|
|
69
|
+
completeOpenPhases(): Promise<void>;
|
|
70
|
+
}
|
|
71
|
+
interface AutoloopWorkerResult {
|
|
72
|
+
sandboxId: string;
|
|
73
|
+
stdout: string;
|
|
74
|
+
stderr: string;
|
|
75
|
+
codexModel?: string;
|
|
76
|
+
sandboxTemplate?: string;
|
|
77
|
+
runtimeSeconds?: number;
|
|
78
|
+
logDir?: string;
|
|
79
|
+
artifactBundlePath?: string;
|
|
80
|
+
}
|
|
81
|
+
interface AutoloopWorkerProgressEvent {
|
|
82
|
+
stage: string;
|
|
83
|
+
sandboxId?: string;
|
|
84
|
+
phaseId?: string;
|
|
85
|
+
attempt?: number;
|
|
86
|
+
maxAttempts?: number;
|
|
87
|
+
message?: string;
|
|
88
|
+
artifactBundlePath?: string;
|
|
89
|
+
}
|
|
90
|
+
interface AutoloopWorkerRunOptions {
|
|
91
|
+
signal?: AbortSignal;
|
|
92
|
+
onProgress?: (event: AutoloopWorkerProgressEvent) => void;
|
|
93
|
+
}
|
|
94
|
+
interface AutoloopWorker {
|
|
95
|
+
run(job: AutoloopWorkerJob, options?: AutoloopWorkerRunOptions): Promise<AutoloopWorkerResult>;
|
|
96
|
+
}
|
|
97
|
+
type AutoloopGithubInstallationTokenPurpose = 'setup' | 'fix';
|
|
98
|
+
interface AutoloopGithubInstallationTokenContext {
|
|
99
|
+
purpose: AutoloopGithubInstallationTokenPurpose;
|
|
100
|
+
}
|
|
101
|
+
interface E2BAutoloopWorkerOptions {
|
|
102
|
+
resolveApiKey?: () => Promise<string | undefined>;
|
|
103
|
+
refreshArchalRuntimeEnv?: (job: AutoloopWorkerJob, context: {
|
|
104
|
+
phaseId: string;
|
|
105
|
+
currentEnv: Record<string, string>;
|
|
106
|
+
}) => Promise<Record<string, string>>;
|
|
107
|
+
resolveGithubInstallationToken?: (job: AutoloopWorkerJob, context: AutoloopGithubInstallationTokenContext) => Promise<string | undefined>;
|
|
108
|
+
preflightGithubAutoloopPermissions?: (input: AutoloopGithubPreflightInput) => Promise<AutoloopGithubPreflightResult>;
|
|
109
|
+
sandboxPlacementMaxAttempts?: number;
|
|
110
|
+
sandboxPlacementRetryDelayMs?: number;
|
|
111
|
+
sandboxPlacementAttemptTimeoutMs?: number;
|
|
112
|
+
}
|
|
113
|
+
interface AutoloopSandboxCreateAttemptDiagnostic {
|
|
114
|
+
attempt: number;
|
|
115
|
+
maxAttempts: number;
|
|
116
|
+
retryable: boolean;
|
|
117
|
+
status?: number;
|
|
118
|
+
message: string;
|
|
119
|
+
}
|
|
120
|
+
interface AzureCodexAuth {
|
|
121
|
+
provider?: 'azure';
|
|
122
|
+
apiKey: string;
|
|
123
|
+
baseUrl: string;
|
|
124
|
+
deployment: string;
|
|
125
|
+
}
|
|
126
|
+
interface OpenAICodexAuth {
|
|
127
|
+
provider: 'openai';
|
|
128
|
+
apiKey: string;
|
|
129
|
+
baseUrl: string;
|
|
130
|
+
model: string;
|
|
131
|
+
}
|
|
132
|
+
type CodexAuth = AzureCodexAuth | OpenAICodexAuth;
|
|
133
|
+
declare class AutoloopWorkerError extends Error {
|
|
134
|
+
readonly sandboxId?: string;
|
|
135
|
+
readonly logDir?: string;
|
|
136
|
+
readonly artifactBundlePath?: string;
|
|
137
|
+
readonly phaseId?: string;
|
|
138
|
+
readonly codexModel?: string;
|
|
139
|
+
readonly sandboxTemplate?: string;
|
|
140
|
+
readonly runtimeSeconds?: number;
|
|
141
|
+
readonly sandboxPlacementAttempts?: AutoloopSandboxCreateAttemptDiagnostic[];
|
|
142
|
+
readonly stdout?: string;
|
|
143
|
+
readonly stderr?: string;
|
|
144
|
+
constructor(message: string, details: {
|
|
145
|
+
sandboxId?: string;
|
|
146
|
+
logDir?: string;
|
|
147
|
+
artifactBundlePath?: string;
|
|
148
|
+
phaseId?: string;
|
|
149
|
+
codexModel?: string;
|
|
150
|
+
sandboxTemplate?: string;
|
|
151
|
+
runtimeSeconds?: number;
|
|
152
|
+
sandboxPlacementAttempts?: AutoloopSandboxCreateAttemptDiagnostic[];
|
|
153
|
+
stdout?: string;
|
|
154
|
+
stderr?: string;
|
|
155
|
+
cause?: unknown;
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
declare function isAutoloopWorkerError(error: unknown): error is AutoloopWorkerError;
|
|
159
|
+
|
|
160
|
+
export { type AutoloopWorkerJob as A, type CodexAuth as C, type E2BAutoloopWorkerOptions as E, type OpenAICodexAuth as O, type AutoloopWorkerResult as a, type AutoloopWorker as b, type AutoloopGithubInstallationTokenContext as c, AutoloopWorkerError as d, type AzureCodexAuth as e, isAutoloopWorkerError as i, preflightGithubAutoloopPermissions as p };
|