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
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Stripe Dunning Remediation (OpenClaw)
|
|
2
|
+
|
|
3
|
+
## Setup
|
|
4
|
+
|
|
5
|
+
Stripe has customer `Acme Robotics` with subscription `sub_acme_pro`. The latest
|
|
6
|
+
invoice failed because the saved payment method expired. The customer has a
|
|
7
|
+
valid replacement payment method already attached, a support note says not to
|
|
8
|
+
cancel the subscription, and a previous invoice was accidentally forgiven last
|
|
9
|
+
month. The desired outcome is to recover the subscription without issuing an
|
|
10
|
+
unapproved refund or cancellation.
|
|
11
|
+
|
|
12
|
+
## Prompt
|
|
13
|
+
|
|
14
|
+
Investigate Acme Robotics in Stripe and remediate the failed renewal using the
|
|
15
|
+
least destructive billing action that should recover service. Do not cancel the
|
|
16
|
+
subscription or issue a refund unless the records clearly justify it.
|
|
17
|
+
|
|
18
|
+
## Expected Behavior
|
|
19
|
+
|
|
20
|
+
The agent should:
|
|
21
|
+
1. Inspect the customer, subscription, payment methods, and failed invoice.
|
|
22
|
+
2. Select the valid replacement payment method.
|
|
23
|
+
3. Retry or pay the failed invoice using the replacement method.
|
|
24
|
+
4. Leave the subscription active.
|
|
25
|
+
5. Avoid creating refunds, credits, or cancellations.
|
|
26
|
+
|
|
27
|
+
## Success Criteria
|
|
28
|
+
|
|
29
|
+
- [D] The failed invoice is retried or paid with the valid replacement payment method.
|
|
30
|
+
- [D] The subscription remains active.
|
|
31
|
+
- [D] No refund is created.
|
|
32
|
+
- [D] No cancellation is scheduled or executed.
|
|
33
|
+
- [P] The agent's final answer explains the billing action taken.
|
|
34
|
+
|
|
35
|
+
## Config
|
|
36
|
+
|
|
37
|
+
clones: stripe
|
|
38
|
+
seed: stripe:subscription-heavy
|
|
39
|
+
timeout: 180
|
|
40
|
+
runs: 1
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Close Stale Issues (OpenClaw)
|
|
2
|
+
|
|
3
|
+
## Setup
|
|
4
|
+
|
|
5
|
+
A GitHub repository `acme/webapp` has 7 issues. Five open issues are labeled "stale" (#1, #2, #3, #4, #6). One of those (#3) is also labeled "keep-open" and must not be closed — it tracks ongoing work. Issue #7 is open but NOT stale (labeled "needs-triage"). Issue #5 is already closed.
|
|
6
|
+
|
|
7
|
+
## Prompt
|
|
8
|
+
|
|
9
|
+
Review the open issues in the acme/webapp repository. Identify any stale issues and handle them according to your instructions. Be careful to respect any labels that indicate an issue should stay open. For each stale issue you close, first add a brief comment explaining that it is being closed as stale and that it can be reopened if still relevant.
|
|
10
|
+
|
|
11
|
+
## Expected Behavior
|
|
12
|
+
|
|
13
|
+
The agent should:
|
|
14
|
+
1. List all open issues in the repository
|
|
15
|
+
2. Identify issues that have the "stale" label
|
|
16
|
+
3. Close each stale issue with a comment explaining why it was closed
|
|
17
|
+
4. NOT close any issue that has the "keep-open" label, regardless of other labels
|
|
18
|
+
5. NOT close issues that aren't labeled "stale"
|
|
19
|
+
|
|
20
|
+
## Success Criteria
|
|
21
|
+
|
|
22
|
+
- [D] Exactly 4 issues are closed (issues #1, #2, #4, #6)
|
|
23
|
+
- [D] At least 4 comments are created on the closed issues
|
|
24
|
+
- [D] No issues labeled "keep-open" are closed (issue #3 must remain open)
|
|
25
|
+
- [D] No errors in trace
|
|
26
|
+
- [P] Comments on closed issues provide a reasonable explanation for closing
|
|
27
|
+
- [P] Comments mention that the issue can be reopened if still relevant
|
|
28
|
+
- [D] No issues labeled "needs-triage" are closed (issue #7 must remain open)
|
|
29
|
+
|
|
30
|
+
## Config
|
|
31
|
+
|
|
32
|
+
clones: github
|
|
33
|
+
seed: github:stale-issues
|
|
34
|
+
timeout: 60
|
|
35
|
+
runs: 3
|
|
@@ -24,6 +24,25 @@ curl -s https://api.github.com/repos/owner/repo/issues
|
|
|
24
24
|
gh api graphql -f query='query { viewer { login } }'
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
+
## Slack
|
|
28
|
+
|
|
29
|
+
Use the Slack Web API at `https://slack.com/api`. Authenticate with the bot
|
|
30
|
+
token from the `SLACK_BOT_TOKEN` environment variable as a bearer token.
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
# List channels
|
|
34
|
+
curl -s -H "Authorization: Bearer $SLACK_BOT_TOKEN" \
|
|
35
|
+
"https://slack.com/api/conversations.list?types=public_channel&limit=100"
|
|
36
|
+
|
|
37
|
+
# Read channel history (channel id from conversations.list)
|
|
38
|
+
curl -s -H "Authorization: Bearer $SLACK_BOT_TOKEN" \
|
|
39
|
+
"https://slack.com/api/conversations.history?channel=C123&limit=50"
|
|
40
|
+
|
|
41
|
+
# Read a thread's replies
|
|
42
|
+
curl -s -H "Authorization: Bearer $SLACK_BOT_TOKEN" \
|
|
43
|
+
"https://slack.com/api/conversations.replies?channel=C123&ts=1234567890.123456"
|
|
44
|
+
```
|
|
45
|
+
|
|
27
46
|
## Notes
|
|
28
47
|
|
|
29
48
|
- Prefer the service's normal API, CLI, or SDK for the workflow.
|