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,133 @@
|
|
|
1
|
+
import { e as AutoloopActivePhase, f as AutoloopTraceSourceStatus, c as AutoloopExecutionPolicy, g as AutoloopRunResultSubmissionBody } from '../layer-1-ziaLpfLr.cjs';
|
|
2
|
+
|
|
3
|
+
type AutoloopWorkerFailureSubmissionBody = {
|
|
4
|
+
phase: AutoloopActivePhase;
|
|
5
|
+
workerId: string;
|
|
6
|
+
message: string;
|
|
7
|
+
sandboxId?: string | null;
|
|
8
|
+
runtimeSeconds?: number;
|
|
9
|
+
sandboxTemplate?: string | null;
|
|
10
|
+
diagnostics?: Record<string, unknown>;
|
|
11
|
+
logDir?: string | null;
|
|
12
|
+
artifactBundlePath?: string | null;
|
|
13
|
+
leaseOwner?: string;
|
|
14
|
+
leaseAttemptCount?: number;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
type AutoloopAgentStreamItemKind = 'thinking' | 'tool_call' | 'file_edit' | 'terminal' | 'stage';
|
|
18
|
+
type AutoloopAgentStreamItem = {
|
|
19
|
+
kind: AutoloopAgentStreamItemKind;
|
|
20
|
+
text: string;
|
|
21
|
+
path?: string;
|
|
22
|
+
lang?: string;
|
|
23
|
+
};
|
|
24
|
+
type AutoloopAgentStreamSource = 'fix' | 'reproduce';
|
|
25
|
+
type AutoloopAgentStreamPostBody = {
|
|
26
|
+
source: AutoloopAgentStreamSource;
|
|
27
|
+
items?: AutoloopAgentStreamItem[];
|
|
28
|
+
completed?: boolean;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
type AutoloopSourceStatus = AutoloopTraceSourceStatus;
|
|
32
|
+
type AutoloopSourceProvider = 'postgres' | 'supabase' | 'file' | 'http' | 'otel' | 'langfuse' | 'braintrust' | 's3' | 'gcs' | 'custom';
|
|
33
|
+
type AutoloopSourceProviderMode = 'hosted_poll' | 'client_upload';
|
|
34
|
+
type AutoloopFixStatus = 'pr_open' | 'checks_passing' | 'blocked' | 'failed';
|
|
35
|
+
type AutoloopCheckState = 'unknown' | 'pending' | 'passing' | 'failing' | 'blocked' | 'no_checks';
|
|
36
|
+
type AutoloopSource = {
|
|
37
|
+
id: string;
|
|
38
|
+
status: AutoloopSourceStatus;
|
|
39
|
+
workspaceId?: string;
|
|
40
|
+
provider?: AutoloopSourceProvider;
|
|
41
|
+
providerCapability?: {
|
|
42
|
+
mode: AutoloopSourceProviderMode;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
type LeasedRun = {
|
|
46
|
+
run: {
|
|
47
|
+
id: string;
|
|
48
|
+
workspaceId?: string;
|
|
49
|
+
repositoryFullName: string;
|
|
50
|
+
externalTraceId: string;
|
|
51
|
+
currentPhase?: AutoloopActivePhase;
|
|
52
|
+
executionPolicy?: AutoloopExecutionPolicy;
|
|
53
|
+
fixStatus?: AutoloopFixStatus | null;
|
|
54
|
+
issueUrl?: string | null;
|
|
55
|
+
prUrl?: string | null;
|
|
56
|
+
branchName?: string | null;
|
|
57
|
+
baseBranch?: string | null;
|
|
58
|
+
latestCheckState?: AutoloopCheckState | null;
|
|
59
|
+
githubInstallationId?: string | null;
|
|
60
|
+
};
|
|
61
|
+
lease?: {
|
|
62
|
+
owner: string;
|
|
63
|
+
attemptCount: number;
|
|
64
|
+
};
|
|
65
|
+
sourceSnapshot: unknown;
|
|
66
|
+
ragReplayPackage?: unknown;
|
|
67
|
+
continuationArtifacts?: Array<{
|
|
68
|
+
path: string;
|
|
69
|
+
data: string;
|
|
70
|
+
}>;
|
|
71
|
+
};
|
|
72
|
+
type AutoloopApiClient = {
|
|
73
|
+
workspaceId?: string;
|
|
74
|
+
hydrateExplicitSources?: boolean;
|
|
75
|
+
listSources(): Promise<AutoloopSource[]>;
|
|
76
|
+
importSource(source: AutoloopSource): Promise<void>;
|
|
77
|
+
requeueRun(input: {
|
|
78
|
+
workspaceId: string;
|
|
79
|
+
runId: string;
|
|
80
|
+
sourceId?: string;
|
|
81
|
+
phase?: AutoloopActivePhase;
|
|
82
|
+
reason?: string;
|
|
83
|
+
}): Promise<void>;
|
|
84
|
+
claimRun(source: AutoloopSource, options?: {
|
|
85
|
+
runId?: string;
|
|
86
|
+
}): Promise<LeasedRun | null>;
|
|
87
|
+
renewRunLease?(run: LeasedRun, options?: {
|
|
88
|
+
leaseSeconds?: number;
|
|
89
|
+
}): Promise<boolean>;
|
|
90
|
+
releaseRunLease?(run: LeasedRun): Promise<boolean>;
|
|
91
|
+
recordResult(run: LeasedRun, body: AutoloopRunResultSubmissionBody, options?: {
|
|
92
|
+
sandboxBundle?: {
|
|
93
|
+
path: string;
|
|
94
|
+
summary: string;
|
|
95
|
+
};
|
|
96
|
+
}): Promise<LeasedRun | void>;
|
|
97
|
+
appendAgentStream?(run: LeasedRun, body: AutoloopAgentStreamPostBody): Promise<{
|
|
98
|
+
truncated: boolean;
|
|
99
|
+
}>;
|
|
100
|
+
uploadArtifact(run: LeasedRun, input: {
|
|
101
|
+
path: string;
|
|
102
|
+
summary: string;
|
|
103
|
+
}): Promise<void>;
|
|
104
|
+
recordFailure(run: LeasedRun, body: AutoloopWorkerFailureSubmissionBody): Promise<void>;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
type HostedAutoloopControlPlaneAuth = {
|
|
108
|
+
kind: 'proof-token';
|
|
109
|
+
token: string;
|
|
110
|
+
} | {
|
|
111
|
+
kind: 'static-bearer-unsupported';
|
|
112
|
+
} | {
|
|
113
|
+
kind: 'rs256';
|
|
114
|
+
privateKey: string;
|
|
115
|
+
} | {
|
|
116
|
+
kind: 'rs256-missing-private-key';
|
|
117
|
+
} | {
|
|
118
|
+
kind: 'missing-rs256-config';
|
|
119
|
+
};
|
|
120
|
+
declare function resolveHostedAutoloopControlPlaneAuth(env: NodeJS.ProcessEnv): HostedAutoloopControlPlaneAuth;
|
|
121
|
+
declare function readHostedRuntimeManifest(env: NodeJS.ProcessEnv): Record<string, unknown> | null;
|
|
122
|
+
declare function runtimeManifestCapabilities(manifest: Record<string, unknown>): Set<string>;
|
|
123
|
+
declare function describeHostedRuntimeCapabilityGap(manifest: Record<string, unknown>): string;
|
|
124
|
+
declare function hostedRuntimeCapabilitiesForClaim(env?: NodeJS.ProcessEnv): string[];
|
|
125
|
+
declare function createAutoloopApiClient(input: {
|
|
126
|
+
apiBaseUrl: string;
|
|
127
|
+
workspaceId?: string;
|
|
128
|
+
workerId: string;
|
|
129
|
+
authorizationHeader?: (workspaceId: string) => string | Promise<string>;
|
|
130
|
+
}): AutoloopApiClient;
|
|
131
|
+
declare function createHostedAutoloopControlPlaneBearerToken(workspaceId: string): string;
|
|
132
|
+
|
|
133
|
+
export { type HostedAutoloopControlPlaneAuth, createAutoloopApiClient, createHostedAutoloopControlPlaneBearerToken, describeHostedRuntimeCapabilityGap, hostedRuntimeCapabilitiesForClaim, readHostedRuntimeManifest, resolveHostedAutoloopControlPlaneAuth, runtimeManifestCapabilities };
|