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
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared type-only declarations for the seed-codegen modules.
|
|
3
|
-
*
|
|
4
|
-
* Lives as a leaf module so `test-overrides.ts` can describe its
|
|
5
|
-
* registry shape without importing back into `executor.ts`,
|
|
6
|
-
* `legacy-codegen.ts`, or `seed-llm.ts`. Previously the override file
|
|
7
|
-
* imported types from each producer, and each producer imported the
|
|
8
|
-
* registry value back, forming four interlocking cycles.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Audit row reported after a direct (non-proxy) seedgen LLM call.
|
|
13
|
-
*
|
|
14
|
-
* Structurally compatible with `infra/api/llm/usage-log.ts#ManagedLlmUsageInput`
|
|
15
|
-
* so the API route can pass `recordManagedLlmUsageLog` straight through. The
|
|
16
|
-
* proxy path already logs via the proxy hook; this callback closes the
|
|
17
|
-
* cooldown-fallback bypass where direct calls would otherwise miss accounting.
|
|
18
|
-
*/
|
|
19
|
-
interface SeedgenDirectUsage {
|
|
20
|
-
userId: string;
|
|
21
|
-
sessionId: string | null;
|
|
22
|
-
intent: 'seedgen';
|
|
23
|
-
model: string;
|
|
24
|
-
inputTokens: number;
|
|
25
|
-
outputTokens: number;
|
|
26
|
-
clientBringsOwnKey: boolean;
|
|
27
|
-
authKind: string | null;
|
|
28
|
-
}
|
|
29
|
-
type SeedgenDirectUsageReporter = (usage: SeedgenDirectUsage) => Promise<void>;
|
|
30
|
-
|
|
31
|
-
interface SeedPatch {
|
|
32
|
-
add?: Record<string, Record<string, unknown>[]>;
|
|
33
|
-
modify?: Record<string, Record<string, unknown>[]>;
|
|
34
|
-
remove?: Record<string, number[]>;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
interface SeedIntentEntityRef {
|
|
38
|
-
kind: string;
|
|
39
|
-
key: string;
|
|
40
|
-
value: string | number | boolean;
|
|
41
|
-
}
|
|
42
|
-
interface SeedIntent {
|
|
43
|
-
twinName: string;
|
|
44
|
-
setupSummary: string;
|
|
45
|
-
requiredSlots: string[];
|
|
46
|
-
extractedSlots: Record<string, string | number | boolean>;
|
|
47
|
-
entities: SeedIntentEntityRef[];
|
|
48
|
-
quotedStrings: string[];
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* LLM routing and cooldown logic for seed codegen.
|
|
53
|
-
*
|
|
54
|
-
* Extracted from dynamic-generator.ts so this module can be imported by the
|
|
55
|
-
* infra server without pulling in the full generator machinery.
|
|
56
|
-
*/
|
|
57
|
-
|
|
58
|
-
declare function resetManagedSeedBackendStateForTests(): void;
|
|
59
|
-
|
|
60
|
-
declare class DynamicSeedError extends Error {
|
|
61
|
-
readonly twinName: string;
|
|
62
|
-
readonly validationErrors: string[];
|
|
63
|
-
constructor(twinName: string, validationErrors: string[], hint?: string);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
interface DynamicSeedConfig {
|
|
67
|
-
noCache?: boolean;
|
|
68
|
-
/** When true, FK validation failures and coverage gaps become hard errors instead of warnings. */
|
|
69
|
-
strictSeed?: boolean;
|
|
70
|
-
/** When true, use the caller-prepared seed input verbatim instead of re-scoping it to one twin. */
|
|
71
|
-
skipTwinScoping?: boolean;
|
|
72
|
-
/**
|
|
73
|
-
* User identifier used to scope the managed-backend cooldown.
|
|
74
|
-
* When omitted (CLI usage), a global key is used — safe because each CLI
|
|
75
|
-
* invocation is a separate process. In the infra server, pass the userId so
|
|
76
|
-
* a 503 from one user's request does not block other users.
|
|
77
|
-
*/
|
|
78
|
-
userId?: string;
|
|
79
|
-
/**
|
|
80
|
-
* Server-side direct-fallback accounting hook. The API route wires this to
|
|
81
|
-
* `recordManagedLlmUsageLog` so cooldown-fallback calls (which use infra
|
|
82
|
-
* env keys, not the proxy) are still attributed to the requesting user.
|
|
83
|
-
* Undefined in CLI / vitest contexts — those use BYOK and don't need it.
|
|
84
|
-
*/
|
|
85
|
-
recordDirectUsage?: SeedgenDirectUsageReporter;
|
|
86
|
-
/** Auth kind for direct-usage attribution (`user` | `internal_service`). */
|
|
87
|
-
authKind?: string;
|
|
88
|
-
}
|
|
89
|
-
interface SeedPromptContext {
|
|
90
|
-
scenarioTitle?: string;
|
|
91
|
-
expectedBehavior?: string;
|
|
92
|
-
successCriteria?: string[];
|
|
93
|
-
}
|
|
94
|
-
interface DynamicSeedResult {
|
|
95
|
-
seed: Record<string, unknown[]>;
|
|
96
|
-
patch: SeedPatch;
|
|
97
|
-
fromCache: boolean;
|
|
98
|
-
source: 'llm' | 'cache';
|
|
99
|
-
/** The JavaScript code that produced this seed (only set when source==='llm'). */
|
|
100
|
-
generatedCode?: string;
|
|
101
|
-
/** SQL seed for Supabase twins — used instead of seed JSON when present. */
|
|
102
|
-
seedSql?: string;
|
|
103
|
-
}
|
|
104
|
-
declare function generateDynamicSeed(twinName: string, baseSeedName: string, baseSeedData: Record<string, unknown[]>, setupDescription: string, config: DynamicSeedConfig, intent?: SeedIntent, context?: SeedPromptContext): Promise<DynamicSeedResult>;
|
|
105
|
-
|
|
106
|
-
export { type DynamicSeedConfig, DynamicSeedError, type SeedPromptContext, generateDynamicSeed, resetManagedSeedBackendStateForTests };
|