archal 0.9.19 → 0.9.20
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 +9 -1
- package/agents/github-octokit/.archal.json +8 -0
- package/agents/github-octokit/Dockerfile +8 -0
- package/agents/github-octokit/README.md +113 -0
- package/agents/github-octokit/agent.mjs +54 -0
- package/agents/github-octokit/package.json +9 -0
- package/agents/github-octokit/scenarios/test-repo-access.md +27 -0
- package/agents/google-workspace-local-tools/Dockerfile +6 -0
- package/agents/google-workspace-local-tools/README.md +58 -0
- package/agents/google-workspace-local-tools/agent.mjs +196 -0
- package/agents/google-workspace-local-tools/archal-harness.json +7 -0
- package/agents/google-workspace-local-tools/run-input.yaml +16 -0
- package/agents/google-workspace-local-tools/scenario.md +29 -0
- package/agents/hermes/.archal.json +8 -0
- package/agents/hermes/Dockerfile +46 -0
- package/agents/hermes/README.md +87 -0
- package/agents/hermes/SOUL.md +27 -0
- package/agents/hermes/config.yaml +34 -0
- package/agents/hermes/drive.mjs +113 -0
- package/agents/hermes/scenarios/stripe-customers-read-only.md +32 -0
- package/agents/openclaw/.archal.json +8 -0
- package/agents/openclaw/Dockerfile +96 -0
- package/agents/openclaw/README.md +120 -0
- package/agents/openclaw/drive.mjs +311 -0
- package/agents/openclaw/package.json +9 -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 +35 -0
- package/agents/pagination-test/README.md +24 -0
- package/agents/pagination-test/scenario.md +24 -0
- package/agents/replay-capsule-harness/README.md +29 -0
- package/agents/replay-capsule-harness/observability-install-offline-e2e.mts +1517 -0
- package/agents/replay-capsule-harness/replay-capsule-e2e.mjs +104 -0
- package/clone-assets/apify/tools.json +256 -22
- package/clone-assets/calcom/tools.json +510 -0
- package/clone-assets/clickup/tools.json +1258 -0
- package/clone-assets/customerio/tools.json +386 -0
- package/clone-assets/datadog/tools.json +734 -0
- package/clone-assets/github/tools.json +306 -25
- package/clone-assets/gitlab/tools.json +999 -0
- package/clone-assets/google-workspace/tools.json +18 -6
- package/clone-assets/hubspot/tools.json +1406 -0
- package/clone-assets/jira/fidelity.json +1 -1
- package/clone-assets/jira/tools.json +266 -543
- package/clone-assets/linear/tools.json +238 -40
- package/clone-assets/ownerrez/tools.json +548 -0
- package/clone-assets/pricelabs/tools.json +343 -0
- package/clone-assets/sentry/tools.json +745 -0
- package/clone-assets/slack/tools.json +1 -2
- package/clone-assets/stripe/tools.json +185 -46
- package/clone-assets/supabase/tools.json +437 -0
- package/clone-assets/unipile/tools.json +408 -0
- package/clone-assets/webflow/tools.json +415 -0
- package/dist/autoloop-worker-types-BEb_E44z.d.cts +196 -0
- package/dist/cli.cjs +150299 -87430
- package/dist/commands/autoloop-hosted-worker.cjs +43942 -0
- package/dist/commands/autoloop-hosted-worker.d.cts +143 -0
- package/dist/commands/autoloop-pr-verification.cjs +4227 -0
- package/dist/commands/autoloop-pr-verification.d.cts +17 -0
- package/dist/{vitest/chunk-L36NXAU6.js → commands/autoloop-result-parser.cjs} +16445 -18852
- package/dist/commands/autoloop-result-parser.d.cts +39 -0
- package/dist/commands/autoloop-worker.cjs +36163 -0
- package/dist/commands/autoloop-worker.d.cts +97 -0
- package/dist/harness.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/replay.cjs +49624 -0
- package/dist/replay.d.cts +4625 -0
- package/dist/scenarios.cjs +80343 -0
- package/dist/scenarios.d.cts +562 -0
- package/dist/vitest/chunk-6CBYFCFK.js +4667 -0
- package/dist/vitest/chunk-ARVS45PP.js +2764 -0
- package/dist/vitest/index.cjs +6011 -75261
- package/dist/vitest/index.d.ts +7 -6
- package/dist/vitest/index.js +8 -8
- package/dist/vitest/runtime/hosted-session-reaper.cjs +792 -34359
- package/dist/vitest/runtime/hosted-session-reaper.js +1 -1
- package/dist/vitest/runtime/setup-files.js +2 -2
- package/package.json +8 -3
- package/skills/archal-agent/SKILL.md +87 -0
- package/skills/{attach → autoloop}/SKILL.md +94 -120
- package/skills/autoloop/references/hosted-sources.md +62 -0
- package/skills/autoloop/references/trace-schema-mapping.md +73 -0
- package/skills/eval/SKILL.md +35 -1
- package/skills/install-agent/SKILL.md +221 -0
- package/skills/onboard/SKILL.md +73 -5
- package/skills/scenario/SKILL.md +19 -4
- package/skills/seed/SKILL.md +237 -0
- 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
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { b as AutoloopWorkerJob, d as AzureCodexAuth, E as E2BAutoloopWorkerOptions, e as AutoloopWorker } from '../autoloop-worker-types-BEb_E44z.cjs';
|
|
2
|
+
export { f as AutoloopGithubInstallationTokenContext, g as AutoloopWorkerError, c as AutoloopWorkerResult, i as isAutoloopWorkerError, p as preflightGithubAutoloopPermissions } from '../autoloop-worker-types-BEb_E44z.cjs';
|
|
3
|
+
|
|
4
|
+
declare const PHASES: readonly [{
|
|
5
|
+
readonly id: "01-grade" | "02-seed" | "03-reproduce" | "04-fix-pr";
|
|
6
|
+
readonly title: "Grade trace";
|
|
7
|
+
readonly envKind: "grade";
|
|
8
|
+
readonly buildPrompt: typeof buildGradePrompt;
|
|
9
|
+
}, {
|
|
10
|
+
readonly id: "01-grade" | "02-seed" | "03-reproduce" | "04-fix-pr";
|
|
11
|
+
readonly title: "Create seed and scenario";
|
|
12
|
+
readonly envKind: "codex";
|
|
13
|
+
readonly buildPrompt: typeof buildSeedPrompt;
|
|
14
|
+
}, {
|
|
15
|
+
readonly id: "01-grade" | "02-seed" | "03-reproduce" | "04-fix-pr";
|
|
16
|
+
readonly title: "Reproduce generated scenario";
|
|
17
|
+
readonly envKind: "codex";
|
|
18
|
+
readonly buildPrompt: typeof buildReproducePrompt;
|
|
19
|
+
}, {
|
|
20
|
+
readonly id: "01-grade" | "02-seed" | "03-reproduce" | "04-fix-pr";
|
|
21
|
+
readonly title: "Fix and verify PR";
|
|
22
|
+
readonly envKind: "fix";
|
|
23
|
+
readonly buildPrompt: typeof buildFixPrPrompt;
|
|
24
|
+
}];
|
|
25
|
+
type AutoloopPhaseId = (typeof PHASES)[number]['id'];
|
|
26
|
+
declare function buildCodexPrompt(job: AutoloopWorkerJob): string;
|
|
27
|
+
declare function buildGradePrompt(job: AutoloopWorkerJob): string;
|
|
28
|
+
declare function buildSeedPrompt(job: AutoloopWorkerJob): string;
|
|
29
|
+
declare function buildReproducePrompt(job: AutoloopWorkerJob): string;
|
|
30
|
+
declare function buildFixPrPrompt(job: AutoloopWorkerJob): string;
|
|
31
|
+
|
|
32
|
+
declare function resolveNativeHarnessRuntimeEnv(repoDir: string, env?: NodeJS.ProcessEnv): Record<string, string>;
|
|
33
|
+
declare function buildSandboxPhaseEnvs(input: {
|
|
34
|
+
traceId: string;
|
|
35
|
+
contentHash?: string;
|
|
36
|
+
repoRemote: string;
|
|
37
|
+
gitRepository?: string;
|
|
38
|
+
codexAuth?: AzureCodexAuth;
|
|
39
|
+
archalEnv: Record<string, string>;
|
|
40
|
+
harnessModelEnv?: Record<string, string>;
|
|
41
|
+
nativeHarnessRuntimeEnv?: Record<string, string>;
|
|
42
|
+
githubInstallationToken?: string;
|
|
43
|
+
githubSourceBranch?: string;
|
|
44
|
+
githubPublishBranch?: string;
|
|
45
|
+
githubBaseBranch?: string;
|
|
46
|
+
ragReplayPackagePath?: string;
|
|
47
|
+
ragAnswerBenchmarkPath?: string;
|
|
48
|
+
ragRetrieverReplayPath?: string;
|
|
49
|
+
operatorEnv?: NodeJS.ProcessEnv;
|
|
50
|
+
}): Record<'setup' | (typeof PHASES)[number]['id'], Record<string, string>>;
|
|
51
|
+
declare function resolveArchalSandboxPackage(_cliVersion?: string, env?: NodeJS.ProcessEnv): string;
|
|
52
|
+
declare function resolveArchalSandboxPackageArchivePath(env?: NodeJS.ProcessEnv): string | undefined;
|
|
53
|
+
declare function resolveCodexReasoningEffort(env: NodeJS.ProcessEnv): string;
|
|
54
|
+
|
|
55
|
+
declare function buildSetupShellCommand(): string;
|
|
56
|
+
declare function buildFixPrPhaseShellCommand(phaseId: AutoloopPhaseId): string;
|
|
57
|
+
declare function buildGradePhaseShellCommand(phaseId: AutoloopPhaseId): string;
|
|
58
|
+
declare function buildSeedTemplateReproducePhaseShellCommand(phaseId: AutoloopPhaseId): string;
|
|
59
|
+
declare function buildSeedPhaseShellCommand(phaseId: AutoloopPhaseId): string;
|
|
60
|
+
|
|
61
|
+
declare function redactAutoloopTraceContents(contents: string): string;
|
|
62
|
+
declare function sanitizeAutoloopTraceContentsForSandbox(contents: string): string;
|
|
63
|
+
|
|
64
|
+
type ReusableSeedBundle = {
|
|
65
|
+
restored: boolean;
|
|
66
|
+
files: Array<{
|
|
67
|
+
path: string;
|
|
68
|
+
data: string;
|
|
69
|
+
}>;
|
|
70
|
+
};
|
|
71
|
+
type PhaseResumeDecision = {
|
|
72
|
+
reused: boolean;
|
|
73
|
+
reason: string;
|
|
74
|
+
};
|
|
75
|
+
declare function computeAutoloopPhaseFingerprint(job: AutoloopWorkerJob, sandboxPackageArchivePath: string | undefined): string;
|
|
76
|
+
declare function computeAutoloopSeedBundleFingerprint(job: AutoloopWorkerJob, sandboxPackageArchivePath: string | undefined): string;
|
|
77
|
+
declare function restoreReusableSeedBundle(job: AutoloopWorkerJob, fingerprint: string): ReusableSeedBundle;
|
|
78
|
+
declare function collectPhaseResumeArtifacts(job: AutoloopWorkerJob, fingerprint: string): Array<{
|
|
79
|
+
path: string;
|
|
80
|
+
data: string;
|
|
81
|
+
}>;
|
|
82
|
+
declare function phaseResumeDecision(job: AutoloopWorkerJob, phaseId: string, fingerprint: string, seedRestored: boolean): PhaseResumeDecision;
|
|
83
|
+
declare function persistReusablePhaseArtifacts(job: AutoloopWorkerJob, fingerprint: string): void;
|
|
84
|
+
declare function createE2BAutoloopWorker(options?: E2BAutoloopWorkerOptions): AutoloopWorker;
|
|
85
|
+
declare function localRepoSnapshotPackage(job: AutoloopWorkerJob): string | undefined;
|
|
86
|
+
declare function resolveSandboxPhaseCommandTimeoutMs(phaseId: string, phaseEnv: Record<string, string | undefined>): number;
|
|
87
|
+
|
|
88
|
+
declare const __autoloopWorkerTestInternals: {
|
|
89
|
+
collectPhaseResumeArtifacts: typeof collectPhaseResumeArtifacts;
|
|
90
|
+
computeAutoloopPhaseFingerprint: typeof computeAutoloopPhaseFingerprint;
|
|
91
|
+
computeAutoloopSeedBundleFingerprint: typeof computeAutoloopSeedBundleFingerprint;
|
|
92
|
+
persistReusablePhaseArtifacts: typeof persistReusablePhaseArtifacts;
|
|
93
|
+
phaseResumeDecision: typeof phaseResumeDecision;
|
|
94
|
+
restoreReusableSeedBundle: typeof restoreReusableSeedBundle;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export { AutoloopWorker, AutoloopWorkerJob, AzureCodexAuth, __autoloopWorkerTestInternals, buildCodexPrompt, buildFixPrPhaseShellCommand, buildGradePhaseShellCommand, buildSandboxPhaseEnvs, buildSeedPhaseShellCommand, buildSeedPrompt, buildSeedTemplateReproducePhaseShellCommand, buildSetupShellCommand, createE2BAutoloopWorker, localRepoSnapshotPackage, redactAutoloopTraceContents, resolveArchalSandboxPackage, resolveArchalSandboxPackageArchivePath, resolveCodexReasoningEffort, resolveNativeHarnessRuntimeEnv, resolveSandboxPhaseCommandTimeoutMs, sanitizeAutoloopTraceContentsForSandbox };
|
package/dist/harness.cjs
CHANGED