archal 0.9.20 → 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 +59 -159
- package/agents/openclaw/Dockerfile +2 -1
- package/agents/openclaw/README.md +10 -17
- package/agents/openclaw/drive.mjs +21 -31
- package/agents/openclaw/extract-openclaw-response-text.mjs +49 -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/workspace/TOOLS.md +19 -0
- package/clone-assets/calcom/tools.json +1705 -153
- package/clone-assets/clickup/tools.json +2528 -541
- package/clone-assets/customerio/tools.json +2108 -144
- package/clone-assets/github/tools.json +1 -2
- package/clone-assets/gitlab/tools.json +10087 -398
- package/clone-assets/hubspot/tools.json +198 -0
- package/clone-assets/linear/tools.json +41 -1
- package/clone-assets/sentry/tools.json +2264 -188
- package/clone-assets/stripe/tools.json +114 -0
- package/clone-assets/webflow/tools.json +1895 -125
- package/dist/{autoloop-worker-types-BEb_E44z.d.cts → autoloop-worker-types-CHaclqtD.d.cts} +23 -59
- package/dist/cli.cjs +107175 -126959
- package/dist/commands/{autoloop-hosted-worker.cjs → autoloop-hosted-control-plane-client.cjs} +25657 -42736
- package/dist/commands/{autoloop-hosted-worker.d.cts → autoloop-hosted-control-plane-client.d.cts} +32 -42
- package/dist/commands/autoloop-pr-verification.cjs +607 -522
- package/dist/commands/autoloop-pr-verification.d.cts +3 -1
- package/dist/commands/autoloop-result-parser.cjs +2474 -2373
- package/dist/commands/autoloop-result-parser.d.cts +159 -2
- package/dist/commands/autoloop-worker.cjs +14565 -12240
- package/dist/commands/autoloop-worker.d.cts +10 -5
- 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/{replay.cjs → sdk/index.cjs} +42979 -40973
- package/dist/sdk/index.d.cts +626 -0
- package/dist/vitest/{chunk-6CBYFCFK.js → chunk-2PDHTPZC.js} +289 -89
- package/dist/vitest/{chunk-ARVS45PP.js → chunk-7L4BBB6M.js} +123 -274
- package/dist/vitest/index.cjs +500 -816
- package/dist/vitest/index.d.ts +16 -81
- package/dist/vitest/index.js +40 -409
- package/dist/vitest/runtime/hosted-session-reaper.cjs +143 -293
- 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 +14 -13
- package/skills/archal-agent/SKILL.md +0 -1
- package/skills/autoloop/SKILL.md +288 -273
- package/skills/autoloop/references/hosted-sources.md +49 -17
- package/skills/autoloop/references/trace-schema-mapping.md +83 -52
- package/skills/eval/SKILL.md +16 -48
- package/skills/free-account/SKILL.md +103 -0
- package/skills/install-agent/SKILL.md +16 -35
- package/skills/onboard/SKILL.md +13 -70
- package/skills/scenario/SKILL.md +30 -27
- package/skills/seed/SKILL.md +7 -6
- package/skills/vitest/SKILL.md +3 -2
- package/agents/github-octokit/.archal.json +0 -8
- package/agents/github-octokit/Dockerfile +0 -8
- package/agents/github-octokit/README.md +0 -113
- package/agents/github-octokit/agent.mjs +0 -54
- package/agents/github-octokit/package.json +0 -9
- package/agents/github-octokit/scenarios/test-repo-access.md +0 -27
- package/agents/google-workspace-local-tools/Dockerfile +0 -6
- package/agents/google-workspace-local-tools/README.md +0 -58
- package/agents/google-workspace-local-tools/agent.mjs +0 -196
- package/agents/google-workspace-local-tools/archal-harness.json +0 -7
- package/agents/google-workspace-local-tools/run-input.yaml +0 -16
- package/agents/google-workspace-local-tools/scenario.md +0 -29
- package/agents/hermes/.archal.json +0 -8
- package/agents/hermes/Dockerfile +0 -46
- package/agents/hermes/README.md +0 -87
- package/agents/hermes/SOUL.md +0 -27
- package/agents/hermes/config.yaml +0 -34
- package/agents/hermes/drive.mjs +0 -113
- package/agents/hermes/scenarios/stripe-customers-read-only.md +0 -32
- package/agents/pagination-test/README.md +0 -24
- package/agents/pagination-test/scenario.md +0 -24
- package/agents/replay-capsule-harness/README.md +0 -29
- package/agents/replay-capsule-harness/observability-install-offline-e2e.mts +0 -1517
- package/agents/replay-capsule-harness/replay-capsule-e2e.mjs +0 -104
- package/dist/harness.cjs +0 -63
- package/dist/harness.d.cts +0 -20
- package/dist/replay.d.cts +0 -4625
- package/dist/scenarios.cjs +0 -80343
- package/dist/scenarios.d.cts +0 -562
|
@@ -1,61 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
declare const AUTOLOOP_ACTIVE_PHASES: readonly ["grade", "seed", "reproduce", "fix_pr"];
|
|
3
|
-
declare const AUTOLOOP_PHASE_HEALTH_STATUSES: readonly ["running", "completed", "stream_reconnect_recovered", "stalled_no_artifact", "timeout", "failed"];
|
|
4
|
-
type AutoloopExecutionPolicy = 'observe' | 'grade' | 'seed' | 'reproduce' | 'fix';
|
|
5
|
-
type AutoloopRunResultSubmissionPhaseResult = {
|
|
6
|
-
phase: 'grade';
|
|
7
|
-
status: 'passed' | 'failed' | 'flaky' | 'inconclusive' | 'infrastructure';
|
|
8
|
-
summary: string;
|
|
9
|
-
confidence?: number | null;
|
|
10
|
-
failureClass?: string | null;
|
|
11
|
-
payload?: unknown;
|
|
12
|
-
} | {
|
|
13
|
-
phase: 'seed';
|
|
14
|
-
status: 'seeded' | 'blocked' | 'failed';
|
|
15
|
-
summary: string;
|
|
16
|
-
payload?: unknown;
|
|
17
|
-
} | {
|
|
18
|
-
phase: 'reproduce';
|
|
19
|
-
status: 'reproduced' | 'not_reproduced' | 'flaky' | 'blocked';
|
|
20
|
-
summary: string;
|
|
21
|
-
reason?: string | null;
|
|
22
|
-
diagnostic?: string | null;
|
|
23
|
-
hasCloneEvidence?: boolean;
|
|
24
|
-
hasCriteriaEvidence?: boolean;
|
|
25
|
-
payload?: unknown;
|
|
26
|
-
replayPlan?: unknown;
|
|
27
|
-
regressionPack?: unknown;
|
|
28
|
-
assertionResult?: unknown;
|
|
29
|
-
} | {
|
|
30
|
-
phase: 'fix_pr';
|
|
31
|
-
status: 'pr_open' | 'checks_passing' | 'blocked' | 'failed';
|
|
32
|
-
summary: string;
|
|
33
|
-
issueUrl?: string | null;
|
|
34
|
-
prUrl?: string | null;
|
|
35
|
-
branchName?: string | null;
|
|
36
|
-
baseBranch?: string | null;
|
|
37
|
-
latestCheckState?: 'unknown' | 'pending' | 'passing' | 'failing' | 'blocked' | 'no_checks' | null;
|
|
38
|
-
localValidationStatus?: string | null;
|
|
39
|
-
blockingReason?: string | null;
|
|
40
|
-
postFixReproduceStatus?: string | null;
|
|
41
|
-
postFixReproduceReason?: string | null;
|
|
42
|
-
postFixReproduceHasCloneEvidence?: boolean;
|
|
43
|
-
postFixReproduceHasCriteriaEvidence?: boolean;
|
|
44
|
-
postFixReproduceIdentityMatchesPreFix?: boolean;
|
|
45
|
-
postFixReproduceCommitSha?: string | null;
|
|
46
|
-
postFixReproduceFailureSummary?: string | null;
|
|
47
|
-
postFixReproduceCloneEvidenceExpected?: boolean;
|
|
48
|
-
reproductionReverified?: boolean;
|
|
49
|
-
payload?: unknown;
|
|
50
|
-
};
|
|
51
|
-
type AutoloopRunResultSubmissionBody = Record<string, unknown>;
|
|
52
|
-
type AutoloopBenchmarkExportConfig = {
|
|
53
|
-
enabled: boolean;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
type AutoloopPhase = (typeof AUTOLOOP_PHASES)[number];
|
|
57
|
-
type AutoloopActivePhase = (typeof AUTOLOOP_ACTIVE_PHASES)[number];
|
|
58
|
-
type AutoloopPhaseHealthStatus = (typeof AUTOLOOP_PHASE_HEALTH_STATUSES)[number];
|
|
1
|
+
import { b as AutoloopPhase, c as AutoloopExecutionPolicy, d as AutoloopBenchmarkExportConfig } from './layer-1-ziaLpfLr.cjs';
|
|
59
2
|
|
|
60
3
|
interface AutoloopGithubPreflightInput {
|
|
61
4
|
repository: string | undefined;
|
|
@@ -97,7 +40,12 @@ interface AutoloopWorkerJob {
|
|
|
97
40
|
githubInstallationId?: string;
|
|
98
41
|
githubInstallationToken?: string;
|
|
99
42
|
executionPolicy?: AutoloopExecutionPolicy;
|
|
43
|
+
phaseScope?: 'policy' | 'claimed';
|
|
100
44
|
benchmarkExport?: AutoloopBenchmarkExportConfig;
|
|
45
|
+
cloneFree?: boolean;
|
|
46
|
+
controlPlaneHarnessCommand?: string;
|
|
47
|
+
controlPlaneHarnessArgs?: string[];
|
|
48
|
+
controlPlaneJudgePrompt?: string;
|
|
101
49
|
continueFromPrOpen?: boolean;
|
|
102
50
|
ragReplayPackagePath?: string;
|
|
103
51
|
ragAnswerBenchmarkPath?: string;
|
|
@@ -152,6 +100,10 @@ interface AutoloopGithubInstallationTokenContext {
|
|
|
152
100
|
}
|
|
153
101
|
interface E2BAutoloopWorkerOptions {
|
|
154
102
|
resolveApiKey?: () => Promise<string | undefined>;
|
|
103
|
+
refreshArchalRuntimeEnv?: (job: AutoloopWorkerJob, context: {
|
|
104
|
+
phaseId: string;
|
|
105
|
+
currentEnv: Record<string, string>;
|
|
106
|
+
}) => Promise<Record<string, string>>;
|
|
155
107
|
resolveGithubInstallationToken?: (job: AutoloopWorkerJob, context: AutoloopGithubInstallationTokenContext) => Promise<string | undefined>;
|
|
156
108
|
preflightGithubAutoloopPermissions?: (input: AutoloopGithubPreflightInput) => Promise<AutoloopGithubPreflightResult>;
|
|
157
109
|
sandboxPlacementMaxAttempts?: number;
|
|
@@ -166,10 +118,18 @@ interface AutoloopSandboxCreateAttemptDiagnostic {
|
|
|
166
118
|
message: string;
|
|
167
119
|
}
|
|
168
120
|
interface AzureCodexAuth {
|
|
121
|
+
provider?: 'azure';
|
|
169
122
|
apiKey: string;
|
|
170
123
|
baseUrl: string;
|
|
171
124
|
deployment: string;
|
|
172
125
|
}
|
|
126
|
+
interface OpenAICodexAuth {
|
|
127
|
+
provider: 'openai';
|
|
128
|
+
apiKey: string;
|
|
129
|
+
baseUrl: string;
|
|
130
|
+
model: string;
|
|
131
|
+
}
|
|
132
|
+
type CodexAuth = AzureCodexAuth | OpenAICodexAuth;
|
|
173
133
|
declare class AutoloopWorkerError extends Error {
|
|
174
134
|
readonly sandboxId?: string;
|
|
175
135
|
readonly logDir?: string;
|
|
@@ -179,6 +139,8 @@ declare class AutoloopWorkerError extends Error {
|
|
|
179
139
|
readonly sandboxTemplate?: string;
|
|
180
140
|
readonly runtimeSeconds?: number;
|
|
181
141
|
readonly sandboxPlacementAttempts?: AutoloopSandboxCreateAttemptDiagnostic[];
|
|
142
|
+
readonly stdout?: string;
|
|
143
|
+
readonly stderr?: string;
|
|
182
144
|
constructor(message: string, details: {
|
|
183
145
|
sandboxId?: string;
|
|
184
146
|
logDir?: string;
|
|
@@ -188,9 +150,11 @@ declare class AutoloopWorkerError extends Error {
|
|
|
188
150
|
sandboxTemplate?: string;
|
|
189
151
|
runtimeSeconds?: number;
|
|
190
152
|
sandboxPlacementAttempts?: AutoloopSandboxCreateAttemptDiagnostic[];
|
|
153
|
+
stdout?: string;
|
|
154
|
+
stderr?: string;
|
|
191
155
|
cause?: unknown;
|
|
192
156
|
});
|
|
193
157
|
}
|
|
194
158
|
declare function isAutoloopWorkerError(error: unknown): error is AutoloopWorkerError;
|
|
195
159
|
|
|
196
|
-
export { type
|
|
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 };
|