@axonflow/openclaw 1.3.2 → 2.0.1
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/CHANGELOG.md +71 -0
- package/README.md +111 -7
- package/dist/audit.d.ts +2 -2
- package/dist/audit.d.ts.map +1 -1
- package/dist/audit.js +2 -2
- package/dist/audit.js.map +1 -1
- package/dist/axonflow-client.d.ts +22 -0
- package/dist/axonflow-client.d.ts.map +1 -1
- package/dist/axonflow-client.js +56 -0
- package/dist/axonflow-client.js.map +1 -1
- package/dist/cache-dir.d.ts +34 -0
- package/dist/cache-dir.d.ts.map +1 -0
- package/dist/cache-dir.js +106 -0
- package/dist/cache-dir.js.map +1 -0
- package/dist/client-ref.d.ts +19 -0
- package/dist/client-ref.d.ts.map +1 -0
- package/dist/client-ref.js +16 -0
- package/dist/client-ref.js.map +1 -0
- package/dist/community-saas-bootstrap.d.ts +85 -0
- package/dist/community-saas-bootstrap.d.ts.map +1 -0
- package/dist/community-saas-bootstrap.js +256 -0
- package/dist/community-saas-bootstrap.js.map +1 -0
- package/dist/community-saas-context.d.ts +82 -0
- package/dist/community-saas-context.d.ts.map +1 -0
- package/dist/community-saas-context.js +196 -0
- package/dist/community-saas-context.js.map +1 -0
- package/dist/config.d.ts +26 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +60 -30
- package/dist/config.js.map +1 -1
- package/dist/governance.d.ts +3 -2
- package/dist/governance.d.ts.map +1 -1
- package/dist/governance.js +2 -2
- package/dist/governance.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +98 -12
- package/dist/index.js.map +1 -1
- package/dist/llm-audit.d.ts +3 -3
- package/dist/llm-audit.d.ts.map +1 -1
- package/dist/llm-audit.js +3 -3
- package/dist/llm-audit.js.map +1 -1
- package/dist/message-guard.d.ts +2 -2
- package/dist/message-guard.d.ts.map +1 -1
- package/dist/message-guard.js +2 -2
- package/dist/message-guard.js.map +1 -1
- package/dist/plugin-version-check.d.ts +50 -0
- package/dist/plugin-version-check.d.ts.map +1 -0
- package/dist/plugin-version-check.js +89 -0
- package/dist/plugin-version-check.js.map +1 -0
- package/dist/telemetry-config.d.ts +5 -3
- package/dist/telemetry-config.d.ts.map +1 -1
- package/dist/telemetry-config.js +1 -15
- package/dist/telemetry-config.js.map +1 -1
- package/dist/telemetry-context.d.ts +65 -0
- package/dist/telemetry-context.d.ts.map +1 -0
- package/dist/telemetry-context.js +116 -0
- package/dist/telemetry-context.js.map +1 -0
- package/dist/telemetry.d.ts +42 -18
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +113 -54
- package/dist/telemetry.js.map +1 -1
- package/openclaw.plugin.json +60 -6
- package/package.json +10 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,76 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.0.1] - 2026-04-30 — Restore ClawHub install + explicit Community-SaaS consent surface
|
|
4
|
+
|
|
5
|
+
ClawHub's static-analysis scanner blocked install of `@axonflow/openclaw@2.0.0` because the telemetry and Community-SaaS bootstrap modules co-located `process.env.*` access and `fs.readFileSync(...)` calls with the outbound `fetch(...)` in the same compiled file — a pattern the scanner heuristically flags as credential-harvesting / potential data exfiltration. This release restores a clean install path on every supported OpenClaw host, adds a real opt-out for Community-SaaS auto-registration, and ships a CI gate so this class of regression cannot recur.
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **`AXONFLOW_COMMUNITY_SAAS=0` opt-out** for the default Community-SaaS auto-registration. When set (also accepts `false`, `off`, `no`), the plugin loads but does not POST to `try.getaxonflow.com/api/v1/register` and does not write `try-registration.json`. Operators who want explicit control over outbound traffic — air-gapped labs, regulated networks — can now turn the auto-bootstrap off without removing the plugin.
|
|
10
|
+
- **First-load Community-SaaS consent disclosure banner.** Before the registration POST fires, the plugin emits a warn-level log line via the OpenClaw plugin logger listing exactly what gets sent off-host (tool name + arguments, outbound message bodies), what does not (LLM provider keys, conversation history outside governed tools), and how to opt out. Banner shows once per machine; presence of the disclosure stamp prevents re-warning on subsequent loads.
|
|
11
|
+
- **Pre-publish security scan gate.** `npm run scan` packs the plugin, extracts the tarball into an isolated state directory, and runs the official OpenClaw scanner against the exact artifact ClawHub re-scans at publish time. A new `.github/workflows/security-scan.yml` runs the same script PR-blocking on every change to `src/`, `dist/`, `package.json`, `openclaw.plugin.json`. Catches scanner regressions before they ship instead of after.
|
|
12
|
+
- **`envVars` and `runtimeBehavior` declarations** in `openclaw.plugin.json`. Documents the four user-facing environment variables (`AXONFLOW_TELEMETRY`, `AXONFLOW_COMMUNITY_SAAS`, `AXONFLOW_CACHE_DIR`, `AXONFLOW_CONFIG_DIR`), the auto-bootstrap data flow, the four persisted files and their permission modes. Registry metadata now matches what the code actually does.
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- **Telemetry module split into `telemetry.ts` + `telemetry-context.ts`.** Environment reads (harness override) and stamp-file reads/writes live in the context module; the network-sending module imports plain values. Behaviour is identical to v2.0.0; only the on-disk module boundary moved. Same change applied to `community-saas-bootstrap.ts` + new `community-saas-context.ts`.
|
|
17
|
+
- **`README.md` rewritten** around a new **"Where your data goes"** section. Replaces the previous data-locality paragraph (which was accurate before v2.0.0 made Community SaaS the default but became misleading after) with three explicit deployment modes: default Community SaaS (what's sent off-host, link to the trial-server disclosure page), self-hosted (your own AxonFlow), and air-gapped (`AXONFLOW_COMMUNITY_SAAS=0` + `AXONFLOW_TELEMETRY=off` = zero outbound). Cross-links the [Try AxonFlow — Free Trial Server](https://docs.getaxonflow.com/docs/deployment/community-saas/) docs page so users can read the full Community SaaS terms.
|
|
18
|
+
- **Removed** the legacy `showCommunitySaasDisclosureOnce` info-level banner that fired *after* the connection was established. The new warn-level banner fires *before* the registration POST, with explicit data-flow disclosure and opt-out instructions, so the consent surface is real rather than after-the-fact.
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- **`clawhub:@axonflow/openclaw` install no longer blocked** by the host static-analysis scanner on OpenClaw `>=2026.4.15`. Verified with the local `openclaw plugins install` against the packed tarball: scanner reports `0 criticals, 0 warnings`.
|
|
23
|
+
|
|
24
|
+
### Security
|
|
25
|
+
|
|
26
|
+
- The OpenClaw `>=2026.4.15` peer floor remains in place — it is a real CVE floor (Feishu webhook + card-action validation fail-open in OpenClaw `<2026.4.15`, [GHSA-xh72-v6v9-mwhc](https://github.com/getaxonflow/axonflow-openclaw-plugin/security/advisories/GHSA-cqmh-pcgr-q42f)) and is not relaxed by this release. Anyone running an older OpenClaw should upgrade their host.
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## [2.0.0] - 2026-04-29 — Production, quality, and security hardening — upgrade encouraged
|
|
30
|
+
|
|
31
|
+
**Upgrade strongly recommended.** Over the past month we've shipped substantial production, quality, and security hardening across the AxonFlow plugin and platform — upgrade to the latest version for a more secure, reliable, and bug-free experience.
|
|
32
|
+
|
|
33
|
+
**Security highlights from this release cycle:**
|
|
34
|
+
- **Plugin cache and credential-file permission hardening** (this release). Cache and config directories are tightened to mode `0700` on every invocation; `try-registration.json` is written with mode `0600`. Pre-existing world-readable credential files are detected and refused on first load. Documented in [`GHSA-cqmh-pcgr-q42f`](https://github.com/getaxonflow/axonflow-openclaw-plugin/security/advisories/GHSA-cqmh-pcgr-q42f).
|
|
35
|
+
- **Hook-closure dead-code fix** (this release). Hooks registered against the AxonFlow client previously captured the pre-bootstrap client by value, so the post-bootstrap re-construction was invisible to every registered hook. Refactored to a `ClientRef` holder so all 5 factory paths see the live client. Closes a P0 governance bypass on the hook-driven enforcement path.
|
|
36
|
+
- **Telemetry opt-out reliability** (this release). `DO_NOT_TRACK` was unreliable because host CLIs commonly inject `DO_NOT_TRACK=1` regardless of user intent; the canonical opt-out is now `AXONFLOW_TELEMETRY=off`, an AxonFlow-scoped signal hosts can't unilaterally set.
|
|
37
|
+
|
|
38
|
+
The full set of platform-side security fixes shipped alongside this release — including multi-tenant isolation in MAP execution, cross-tenant audit-log isolation, and SQLi enforcement on the Community SaaS endpoint — is documented in the consolidated platform advisory [`GHSA-9h64-2846-7x7f`](https://github.com/getaxonflow/axonflow/security/advisories/GHSA-9h64-2846-7x7f). Bundled OpenClaw upstream advisories closed by the dependency bump in this release are tracked in this repo's Dependabot alerts.
|
|
39
|
+
|
|
40
|
+
**Reliability and bug-fix highlights:**
|
|
41
|
+
- **7-day delivered-heartbeat with stamp-on-success** (this release). Telemetry stamp advances only after the POST returns 2xx, so a transient network failure no longer silences telemetry until the next 7-day window. Concurrent invocations are de-duplicated by an in-flight gate.
|
|
42
|
+
- **Mode-clarity canary log line** on every plugin init (this release). Logs `[AxonFlow] Connected to AxonFlow at <URL> (mode=...)` and a PR-blocking CI gate asserts the canary matches the actual outbound destination, guarding against silent endpoint drift.
|
|
43
|
+
- **PR-blocking install-to-use smoke against the live community stack** (this release). Catches plugin-side regressions against `try.getaxonflow.com` before they reach a user's host process.
|
|
44
|
+
|
|
45
|
+
### BREAKING
|
|
46
|
+
|
|
47
|
+
- **`DO_NOT_TRACK` is no longer honored as an AxonFlow telemetry opt-out.** Use `AXONFLOW_TELEMETRY=off` instead. Host tools and CLIs commonly inject `DO_NOT_TRACK=1` regardless of user intent, which makes it unreliable as a signal.
|
|
48
|
+
- **`default` values for `endpoint` / `clientId` / `clientSecret` removed from `openclaw.plugin.json`.** The plugin loader now sees `pluginConfig.endpoint` as `undefined` when the user hasn't configured it — required by the Community-SaaS-default resolver to distinguish "no choice" from "explicit localhost".
|
|
49
|
+
|
|
50
|
+
### Added
|
|
51
|
+
|
|
52
|
+
- **First-run Community-SaaS bootstrap** — plugin connects to AxonFlow Community SaaS at `https://try.getaxonflow.com` when no `endpoint` / `clientId` / `clientSecret` is supplied in `pluginConfig`. Registers via `/api/v1/register` on first run and persists the credential to `~/.config/axonflow/try-registration.json` (mode 0600). Set any of those keys to opt into self-hosted.
|
|
53
|
+
- **Mode-clarity canary** on every plugin init: `[AxonFlow] Connected to AxonFlow at <url> (mode=community-saas|self-hosted)`.
|
|
54
|
+
- **One-time setup disclosure** on first Community-SaaS connection. Stamped at `<cache-dir>/openclaw-plugin-disclosure-shown` so it fires exactly once per install.
|
|
55
|
+
- **Plugin/platform version compatibility check** on startup. Reads `plugin_compatibility.min_plugin_version["openclaw"]` from the agent's `/health` endpoint and `console.warn`s if the runtime version is below the floor.
|
|
56
|
+
- **`deployment_mode=community-saas`** telemetry value, distinguishing first-class Community-SaaS users from self-hosted production / development (previously bucketed inside `production`).
|
|
57
|
+
- **`AXONFLOW_CACHE_DIR` / `AXONFLOW_CONFIG_DIR`** environment overrides for the cache/config directory resolver. Useful for sandboxed containers and any deployment that needs to redirect AxonFlow state.
|
|
58
|
+
|
|
59
|
+
### Changed
|
|
60
|
+
|
|
61
|
+
- **Telemetry switched to a 7-day delivered-heartbeat.** At most one anonymous ping per environment every 7 days, with the stamp advanced only after the POST returns 2xx — a transient network failure doesn't silence telemetry until the next window. Concurrent invocations are de-duplicated by an in-flight gate.
|
|
62
|
+
- `pluginConfig` is now optional (was required). `registerAxonFlowGovernance` with no `pluginConfig`, `undefined`, or `{}` resolves to Community SaaS mode rather than throwing `requires configuration`.
|
|
63
|
+
|
|
64
|
+
### Fixed
|
|
65
|
+
|
|
66
|
+
- The `DO_NOT_TRACK=1 is deprecated...` `console.warn` is no longer emitted on every plugin init when `DO_NOT_TRACK=1` is set.
|
|
67
|
+
- Hooks now correctly see Community-SaaS credentials produced by the asynchronous bootstrap. Previously the hook handlers captured the AxonFlowClient by value at registration time, so the post-bootstrap reassignment was invisible — every governed tool call kept shipping `Authorization: Basic :` against try.getaxonflow.com. Hooks now read through a mutable client holder.
|
|
68
|
+
|
|
69
|
+
### Security
|
|
70
|
+
|
|
71
|
+
- Cache and config directories tightened to `0700` on every plugin init (was: only set on directory creation via `mkdirSync({ mode: 0o700 })`, which left existing 0755 dirs unchanged).
|
|
72
|
+
|
|
73
|
+
|
|
3
74
|
## [1.3.2] - 2026-04-22
|
|
4
75
|
|
|
5
76
|
### Deprecated
|
package/README.md
CHANGED
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
> **→ Full integration walkthrough:** **[docs.getaxonflow.com/docs/integration/openclaw](https://docs.getaxonflow.com/docs/integration/openclaw/)** — architecture, hook coverage, policy examples, and troubleshooting.
|
|
10
10
|
|
|
11
|
+
> **Upgrade strongly recommended.** AxonFlow ships substantial monthly security and quality hardening; staying on the latest major is the security-supported release line. [Latest release](https://github.com/getaxonflow/axonflow-openclaw-plugin/releases/latest) · [Security advisories](https://github.com/getaxonflow/axonflow-openclaw-plugin/security/advisories)
|
|
12
|
+
|
|
11
13
|
---
|
|
12
14
|
|
|
13
15
|
## Why this plugin exists
|
|
@@ -21,7 +23,61 @@ OpenClaw is a strong agent runtime. It is also a serious production security pro
|
|
|
21
23
|
|
|
22
24
|
OpenClaw handles agent runtime, MCP connectivity, channels, and tool execution. It was never intended to be the place you enforce governance. This plugin adds the governance layer on top, so OpenClaw keeps doing what it does well and AxonFlow takes over the "is this allowed, should this redact, who approved, where is the audit record" questions.
|
|
23
25
|
|
|
24
|
-
**AxonFlow governs. OpenClaw orchestrates
|
|
26
|
+
**AxonFlow governs. OpenClaw orchestrates.** OpenClaw still makes every LLM call; AxonFlow only evaluates policies and records audit trails. LLM provider keys never leave your machine. Where the rest of your data goes — tool inputs, message bodies — depends on which deployment mode you pick. See **[Where your data goes](#where-your-data-goes)** below.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Where your data goes
|
|
31
|
+
|
|
32
|
+
The plugin governs tool calls and outbound messages by sending each one to an AxonFlow endpoint for policy evaluation + audit. The endpoint can be the AxonFlow Community SaaS (default, zero-config), a self-hosted AxonFlow instance you run, or nothing at all if you opt out.
|
|
33
|
+
|
|
34
|
+
### Default: AxonFlow Community SaaS
|
|
35
|
+
|
|
36
|
+
If you install the plugin without setting `pluginConfig.endpoint`, it auto-registers with **`try.getaxonflow.com`** (Community SaaS) on first load and sends governed traffic there. The first-load disclosure banner surfaces this in your plugin logs before the registration POST fires.
|
|
37
|
+
|
|
38
|
+
| What goes to `try.getaxonflow.com` | What does NOT |
|
|
39
|
+
|---|---|
|
|
40
|
+
| Tool name + arguments before each governed call | LLM provider API keys |
|
|
41
|
+
| Outbound message bodies before delivery (PII/secret scan) | OpenClaw conversation history outside governed tools |
|
|
42
|
+
| Anonymous 7-day heartbeat (plugin version, OS, runtime) | Files outside the OpenClaw runtime |
|
|
43
|
+
|
|
44
|
+
Community SaaS is intended for evaluation and prototyping. It has no SLA, no production guarantees, runs against shared Ollama models, and rate-limits at 20 req/min · 500 req/day per tenant. Read the [Try AxonFlow — Free Trial Server](https://docs.getaxonflow.com/docs/deployment/community-saas/) page for the full disclosure, including [data retention](https://docs.getaxonflow.com/docs/deployment/community-saas/#limitations-and-disclaimers) and [registration mechanics](https://docs.getaxonflow.com/docs/deployment/community-saas/#registration).
|
|
45
|
+
|
|
46
|
+
Auto-registration credentials persist at `$AXONFLOW_CONFIG_DIR/try-registration.json` (mode `0600`).
|
|
47
|
+
|
|
48
|
+
### Self-hosted: your own AxonFlow
|
|
49
|
+
|
|
50
|
+
Point the plugin at an AxonFlow instance you run. Nothing leaves your network except the anonymous 7-day heartbeat.
|
|
51
|
+
|
|
52
|
+
```yaml
|
|
53
|
+
plugins:
|
|
54
|
+
axonflow-governance:
|
|
55
|
+
endpoint: https://axonflow.your-corp.example.com
|
|
56
|
+
clientId: your-client-id
|
|
57
|
+
clientSecret: your-secret
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
This is the recommended setup for any real workflow, real systems, or sensitive data. See [Getting Started](https://docs.getaxonflow.com/docs/getting-started/) for deployment options or the [OpenClaw integration guide](https://docs.getaxonflow.com/docs/integration/openclaw/) for the architecture.
|
|
61
|
+
|
|
62
|
+
### Air-gapped: zero outbound
|
|
63
|
+
|
|
64
|
+
If you need the plugin to make *no* outbound calls at all — air-gapped lab, regulated network, etc. — set both:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
export AXONFLOW_COMMUNITY_SAAS=0 # disable auto-bootstrap
|
|
68
|
+
export AXONFLOW_TELEMETRY=off # disable 7-day heartbeat
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
…and configure `pluginConfig.endpoint` to a self-hosted AxonFlow on the same network. With these set, no traffic leaves your environment.
|
|
72
|
+
|
|
73
|
+
### Environment variables (optional)
|
|
74
|
+
|
|
75
|
+
| Variable | Effect |
|
|
76
|
+
|---|---|
|
|
77
|
+
| `AXONFLOW_TELEMETRY=off` | Disables the 7-day anonymous heartbeat to `checkpoint.getaxonflow.com`. Accepted off-values: `off`, `0`, `false`, `no`. |
|
|
78
|
+
| `AXONFLOW_COMMUNITY_SAAS=0` | Disables auto-registration with `try.getaxonflow.com`. You must then set `pluginConfig.endpoint` for the plugin to enforce policy. Accepted off-values: `0`, `false`, `off`, `no`. |
|
|
79
|
+
| `AXONFLOW_CACHE_DIR` | Overrides the per-user cache dir (telemetry stamp, rate-limit backoff). Defaults to `$XDG_CACHE_HOME/axonflow` (Linux), `~/Library/Caches/axonflow` (macOS), `%LOCALAPPDATA%\axonflow` (Windows). |
|
|
80
|
+
| `AXONFLOW_CONFIG_DIR` | Overrides the per-user config dir (Community-SaaS registration file, disclosure stamp). Defaults to OS conventions. |
|
|
25
81
|
|
|
26
82
|
---
|
|
27
83
|
|
|
@@ -104,6 +160,42 @@ Six months later, a regulator asks: *"For this interaction on March 14, which to
|
|
|
104
160
|
|
|
105
161
|
---
|
|
106
162
|
|
|
163
|
+
## Try AxonFlow on a real plugin rollout
|
|
164
|
+
|
|
165
|
+
We're opening limited **Plugin Design Partner** slots.
|
|
166
|
+
|
|
167
|
+
30-minute hook lifecycle review, policy pack scoping, override workflow design, and IDE/CLI rollout pattern walkthrough — for solo developers and small teams putting governance on OpenClaw.
|
|
168
|
+
|
|
169
|
+
[Apply here](https://getaxonflow.com/plugins/design-partner?utm_source=readme_plugin_openclaw) or email [design-partners@getaxonflow.com](mailto:design-partners@getaxonflow.com). Personal email is fine — solo developers welcome.
|
|
170
|
+
|
|
171
|
+
### See AxonFlow in Action
|
|
172
|
+
|
|
173
|
+
Three short videos covering different angles of the platform:
|
|
174
|
+
|
|
175
|
+
- **[Community Quickstart Demo (Code + Terminal, 2.5 min)](https://youtu.be/BSqU1z0xxCo)** — governed calls, PII block, Gateway Mode with LangChain/CrewAI, and MAP from YAML
|
|
176
|
+
- **[Runtime Control Demo (Portal + Workflow, 3 min)](https://youtu.be/6UatGpn7KwE)** — approvals, retry safety, execution state, and the audit viewer
|
|
177
|
+
- **[Architecture Deep Dive (12 min)](https://youtu.be/Q2CZ1qnquhg)** — how the control plane works, policy enforcement flow, and multi-agent planning
|
|
178
|
+
|
|
179
|
+
### Plugin Evaluation Tier (Free 90-day License)
|
|
180
|
+
|
|
181
|
+
Outgrown Community on a real plugin install? Evaluation unlocks the capacity and features that matter for plugin users — without moving to Enterprise yet:
|
|
182
|
+
|
|
183
|
+
| Capability | Community | Evaluation (Free) | Enterprise |
|
|
184
|
+
|---|---|---|---|
|
|
185
|
+
| Tenant policies | 20 | 50 | Unlimited |
|
|
186
|
+
| Org-wide policies | 0 | 5 | Unlimited |
|
|
187
|
+
| Audit retention | 3 days | 14 days | Up to 10 years |
|
|
188
|
+
| HITL approval gates | — | 25 pending, 24h expiry | Unlimited, 24h |
|
|
189
|
+
| Evidence export (CSV/JSON) | — | 5,000 records · 14d window · 3/day | Unlimited |
|
|
190
|
+
| Policy simulation | — | 300/day | Unlimited |
|
|
191
|
+
| Session overrides (self-service unblock) | — | — | Enterprise-only |
|
|
192
|
+
|
|
193
|
+
Org-wide policies and session overrides are **Enterprise-only** — those are the actual upgrade triggers for plugin users.
|
|
194
|
+
|
|
195
|
+
[Get a free Plugin Evaluation license](https://getaxonflow.com/plugins/evaluation-license?utm_source=readme_plugin_openclaw_eval)
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
107
199
|
## Install
|
|
108
200
|
|
|
109
201
|
Requires OpenClaw **2026.4.14 or later**. Upgrade with `npm install -g openclaw@latest` if needed.
|
|
@@ -141,7 +233,13 @@ See [Getting Started](https://docs.getaxonflow.com/docs/getting-started/) for pr
|
|
|
141
233
|
|
|
142
234
|
## Configure
|
|
143
235
|
|
|
144
|
-
|
|
236
|
+
The plugin works without any configuration. Install it and run a tool — on first run it registers against AxonFlow Community SaaS at `https://try.getaxonflow.com` and persists the resulting credentials to `~/.config/axonflow/try-registration.json` (mode 0600). Every plugin init logs:
|
|
237
|
+
|
|
238
|
+
```
|
|
239
|
+
[AxonFlow] Connected to AxonFlow at https://try.getaxonflow.com (mode=community-saas)
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
Community SaaS is intended for basic testing and evaluation. For real workflows, real systems, or sensitive data, point the plugin at a self-hosted AxonFlow:
|
|
145
243
|
|
|
146
244
|
```yaml
|
|
147
245
|
# openclaw.config.yaml
|
|
@@ -153,15 +251,19 @@ plugins:
|
|
|
153
251
|
- message
|
|
154
252
|
```
|
|
155
253
|
|
|
156
|
-
|
|
254
|
+
Setting any of `endpoint` / `clientId` / `clientSecret` opts you into self-hosted mode. The Community-SaaS bootstrap is skipped, and the plugin uses your values verbatim. The same canary log line confirms the destination on every init:
|
|
255
|
+
|
|
256
|
+
```
|
|
257
|
+
[AxonFlow] Connected to AxonFlow at http://localhost:8080 (mode=self-hosted)
|
|
258
|
+
```
|
|
157
259
|
|
|
158
260
|
### Full configuration reference
|
|
159
261
|
|
|
160
262
|
| Option | Required | Default | Description |
|
|
161
263
|
|--------|----------|---------|-------------|
|
|
162
|
-
| `endpoint` |
|
|
163
|
-
| `clientId` | No | `"community"` | Tenant identity for data isolation. Override for evaluation/enterprise. |
|
|
164
|
-
| `clientSecret` | No | `""` | Basic-auth secret paired with `clientId`. Required for evaluation/enterprise tenants; leave unset in community mode. |
|
|
264
|
+
| `endpoint` | No | `https://try.getaxonflow.com` (Community SaaS) when unset; `http://localhost:8080` when self-hosted with no endpoint specified | AxonFlow agent gateway URL |
|
|
265
|
+
| `clientId` | No | `"community"` (self-hosted) or auto-bootstrapped `cs_<uuid>` (Community SaaS) | Tenant identity for data isolation. Override for evaluation/enterprise. |
|
|
266
|
+
| `clientSecret` | No | `""` (self-hosted) or auto-bootstrapped (Community SaaS) | Basic-auth secret paired with `clientId`. Required for evaluation/enterprise tenants; leave unset in community mode. |
|
|
165
267
|
| `userEmail` | No | — | Per-user identity forwarded on explain/override calls. Shared agents should set this from session context. |
|
|
166
268
|
| `highRiskTools` | No | `[]` | Tools that require human approval even when policy allows |
|
|
167
269
|
| `governedTools` | No | `[]` (all) | Tools to govern. Empty = all tools. |
|
|
@@ -274,7 +376,9 @@ The [policies directory](./policies) ships research-backed starter policies addr
|
|
|
274
376
|
|
|
275
377
|
The plugin sends a one-time anonymous ping on initialization so AxonFlow can understand adoption and environment shape. Includes plugin version, OS/arch, Node.js version, AxonFlow platform version, hook configuration summary. **Never** includes message contents, tool arguments, or policy data.
|
|
276
378
|
|
|
277
|
-
Opt out
|
|
379
|
+
Opt out: set `AXONFLOW_TELEMETRY=off` in the environment OpenClaw runs in.
|
|
380
|
+
|
|
381
|
+
`DO_NOT_TRACK` is **not** honored as an opt-out for AxonFlow telemetry. It is commonly inherited from host tools and developer environments, which makes it an unreliable expression of user intent.
|
|
278
382
|
|
|
279
383
|
---
|
|
280
384
|
|
package/dist/audit.d.ts
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
* Records every tool execution to AxonFlow's audit trail.
|
|
5
5
|
* Fire-and-forget: audit failures do not block tool execution.
|
|
6
6
|
*/
|
|
7
|
-
import type {
|
|
7
|
+
import type { ClientRef } from "./client-ref.js";
|
|
8
8
|
import type { AxonFlowPluginConfig } from "./config.js";
|
|
9
9
|
/**
|
|
10
10
|
* Create the after_tool_call hook handler.
|
|
11
11
|
*
|
|
12
12
|
* Logs tool execution details to AxonFlow for compliance audit.
|
|
13
13
|
*/
|
|
14
|
-
export declare function createAfterToolCallHandler(
|
|
14
|
+
export declare function createAfterToolCallHandler(clientRef: ClientRef, config: AxonFlowPluginConfig): (event: {
|
|
15
15
|
toolName: string;
|
|
16
16
|
params: Record<string, unknown>;
|
|
17
17
|
runId?: string;
|
package/dist/audit.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../src/audit.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../src/audit.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAIxD;;;;GAIG;AACH,wBAAgB,0BAA0B,CACxC,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,oBAAoB,IAEd,OAAO;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,KAAG,OAAO,CAAC,IAAI,CAAC,CAkBlB"}
|
package/dist/audit.js
CHANGED
|
@@ -11,13 +11,13 @@ import { recordAuditEventSent } from "./metrics.js";
|
|
|
11
11
|
*
|
|
12
12
|
* Logs tool execution details to AxonFlow for compliance audit.
|
|
13
13
|
*/
|
|
14
|
-
export function createAfterToolCallHandler(
|
|
14
|
+
export function createAfterToolCallHandler(clientRef, config) {
|
|
15
15
|
return async (event) => {
|
|
16
16
|
if (!shouldGovernTool(event.toolName, config)) {
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
19
|
try {
|
|
20
|
-
await
|
|
20
|
+
await clientRef.current.auditToolCall(event.toolName, event.params, event.result, event.error, event.durationMs);
|
|
21
21
|
recordAuditEventSent();
|
|
22
22
|
}
|
|
23
23
|
catch {
|
package/dist/audit.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit.js","sourceRoot":"","sources":["../src/audit.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD;;;;GAIG;AACH,MAAM,UAAU,0BAA0B,CACxC,
|
|
1
|
+
{"version":3,"file":"audit.js","sourceRoot":"","sources":["../src/audit.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD;;;;GAIG;AACH,MAAM,UAAU,0BAA0B,CACxC,SAAoB,EACpB,MAA4B;IAE5B,OAAO,KAAK,EAAE,KAQb,EAAiB,EAAE;QAClB,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE,CAAC;YAC9C,OAAO;QACT,CAAC;QAED,IAAI,CAAC;YACH,MAAM,SAAS,CAAC,OAAO,CAAC,aAAa,CACnC,KAAK,CAAC,QAAQ,EACd,KAAK,CAAC,MAAM,EACZ,KAAK,CAAC,MAAM,EACZ,KAAK,CAAC,KAAK,EACX,KAAK,CAAC,UAAU,CACjB,CAAC;YACF,oBAAoB,EAAE,CAAC;QACzB,CAAC;QAAC,MAAM,CAAC;YACP,wEAAwE;QAC1E,CAAC;IACH,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -131,6 +131,28 @@ export declare class AxonFlowClient {
|
|
|
131
131
|
error?: string;
|
|
132
132
|
}>;
|
|
133
133
|
healthCheck(): Promise<boolean>;
|
|
134
|
+
/**
|
|
135
|
+
* Fetch the platform's plugin_compatibility map from /health.
|
|
136
|
+
*
|
|
137
|
+
* Mirrors the SDK pattern (Python `health_check_detailed()` etc.) — the
|
|
138
|
+
* plugin queries `/health` at startup and reads the per-plugin
|
|
139
|
+
* `min_plugin_version` and `recommended_plugin_version` entries so it
|
|
140
|
+
* can log an actionable upgrade warning when its own runtime version
|
|
141
|
+
* is below the floor the platform expects.
|
|
142
|
+
*
|
|
143
|
+
* Returns null when:
|
|
144
|
+
* - the request fails (network error, timeout, non-2xx)
|
|
145
|
+
* - the platform is older than v7.5.0 and doesn't advertise
|
|
146
|
+
* `plugin_compatibility` (graceful degradation — same posture as
|
|
147
|
+
* SDK clients reading older platforms)
|
|
148
|
+
* - the response body is malformed
|
|
149
|
+
*
|
|
150
|
+
* Callers treat null as "no signal" rather than an error.
|
|
151
|
+
*/
|
|
152
|
+
getPluginCompatibility(): Promise<{
|
|
153
|
+
minPluginVersion: Record<string, string>;
|
|
154
|
+
recommendedPluginVersion: Record<string, string>;
|
|
155
|
+
} | null>;
|
|
134
156
|
/**
|
|
135
157
|
* Fetch the full explanation for a previously-made policy decision.
|
|
136
158
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axonflow-client.d.ts","sourceRoot":"","sources":["../src/axonflow-client.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD;;;;;;;;;;GAUG;AACH,qBAAa,iBAAkB,SAAQ,KAAK;IAC1C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBAG7C,MAAM,EAAE,MAAM,EACd,UAAU,EAAE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AAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC;IAmB9E;;;;;;;;;;;OAWG;IACG,cAAc,CAAC,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IA8BhF,4CAA4C;IACtC,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAkBvD,qDAAqD;IAC/C,aAAa,CAAC,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,cAAc,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC;QACtF,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;QAC1C,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CAmBH"}
|
package/dist/axonflow-client.js
CHANGED
|
@@ -43,6 +43,22 @@ export class AxonFlowHttpError extends Error {
|
|
|
43
43
|
* governance.ts couldn't surface the richer reasoning even when the platform
|
|
44
44
|
* returned it.
|
|
45
45
|
*/
|
|
46
|
+
/**
|
|
47
|
+
* Type guard for the per-plugin map shape returned under
|
|
48
|
+
* `plugin_compatibility.min_plugin_version` and `recommended_plugin_version`.
|
|
49
|
+
* The platform sends `{ openclaw: "1.3.2", claude: "0.5.2", ... }` — every
|
|
50
|
+
* key and value must be a string for the map to be useful for comparison.
|
|
51
|
+
*/
|
|
52
|
+
function isStringMap(value) {
|
|
53
|
+
if (value === null || typeof value !== "object" || Array.isArray(value)) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
for (const v of Object.values(value)) {
|
|
57
|
+
if (typeof v !== "string")
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
46
62
|
function extractRicherContext(data) {
|
|
47
63
|
const ctx = {};
|
|
48
64
|
if (typeof data["decision_id"] === "string" && data["decision_id"]) {
|
|
@@ -311,6 +327,46 @@ export class AxonFlowClient {
|
|
|
311
327
|
return false;
|
|
312
328
|
}
|
|
313
329
|
}
|
|
330
|
+
/**
|
|
331
|
+
* Fetch the platform's plugin_compatibility map from /health.
|
|
332
|
+
*
|
|
333
|
+
* Mirrors the SDK pattern (Python `health_check_detailed()` etc.) — the
|
|
334
|
+
* plugin queries `/health` at startup and reads the per-plugin
|
|
335
|
+
* `min_plugin_version` and `recommended_plugin_version` entries so it
|
|
336
|
+
* can log an actionable upgrade warning when its own runtime version
|
|
337
|
+
* is below the floor the platform expects.
|
|
338
|
+
*
|
|
339
|
+
* Returns null when:
|
|
340
|
+
* - the request fails (network error, timeout, non-2xx)
|
|
341
|
+
* - the platform is older than v7.5.0 and doesn't advertise
|
|
342
|
+
* `plugin_compatibility` (graceful degradation — same posture as
|
|
343
|
+
* SDK clients reading older platforms)
|
|
344
|
+
* - the response body is malformed
|
|
345
|
+
*
|
|
346
|
+
* Callers treat null as "no signal" rather than an error.
|
|
347
|
+
*/
|
|
348
|
+
async getPluginCompatibility() {
|
|
349
|
+
try {
|
|
350
|
+
const response = await this.fetchWithTimeout(`${this.endpoint}/health`);
|
|
351
|
+
if (!response.ok)
|
|
352
|
+
return null;
|
|
353
|
+
const body = (await response.json());
|
|
354
|
+
const compat = body["plugin_compatibility"];
|
|
355
|
+
if (!compat || typeof compat !== "object")
|
|
356
|
+
return null;
|
|
357
|
+
const min = compat["min_plugin_version"];
|
|
358
|
+
const rec = compat["recommended_plugin_version"];
|
|
359
|
+
if (!isStringMap(min) || !isStringMap(rec))
|
|
360
|
+
return null;
|
|
361
|
+
return {
|
|
362
|
+
minPluginVersion: min,
|
|
363
|
+
recommendedPluginVersion: rec,
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
catch {
|
|
367
|
+
return null;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
314
370
|
// ============================================================================
|
|
315
371
|
// Plugin Batch 1: ADR-042 session overrides + ADR-043 explain
|
|
316
372
|
// ============================================================================
|
|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E,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,GAAG,EAAE;YAChD,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE;SAC5B,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;YACjB,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;QACrC,CAAC;QACD,OAAO,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAG5B,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cross-platform cache directory resolution.
|
|
3
|
+
*
|
|
4
|
+
* Returns a writable per-user cache directory under which the plugin can
|
|
5
|
+
* persist long-lived state (telemetry stamps, Community-SaaS registration).
|
|
6
|
+
* Per OS conventions:
|
|
7
|
+
* - Linux: $XDG_CACHE_HOME/axonflow or $HOME/.cache/axonflow
|
|
8
|
+
* - macOS: $HOME/Library/Caches/axonflow
|
|
9
|
+
* - Windows: %LOCALAPPDATA%\axonflow or %APPDATA%\axonflow
|
|
10
|
+
*
|
|
11
|
+
* Uses Node stdlib only (no third-party deps). On any error, returns the
|
|
12
|
+
* empty string so callers can fall back to "no persistence" without
|
|
13
|
+
* crashing the plugin.
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* Returns the absolute path to the AxonFlow cache directory for this user,
|
|
17
|
+
* or "" if no writable user-cache location can be resolved (e.g. $HOME
|
|
18
|
+
* unset and no platform fallback).
|
|
19
|
+
*
|
|
20
|
+
* Does NOT create the directory. Callers should mkdir it before writing,
|
|
21
|
+
* with mode 0o700 to avoid world-readable credential leakage.
|
|
22
|
+
*/
|
|
23
|
+
export declare function axonflowCacheDir(): string;
|
|
24
|
+
/**
|
|
25
|
+
* Returns the absolute path to the AxonFlow config directory for this user,
|
|
26
|
+
* or "" if it can't be resolved. Used for the Community-SaaS registration
|
|
27
|
+
* file (which holds the credential — different lifecycle from cache).
|
|
28
|
+
*
|
|
29
|
+
* Linux: $XDG_CONFIG_HOME/axonflow or $HOME/.config/axonflow
|
|
30
|
+
* macOS: $HOME/Library/Application Support/axonflow
|
|
31
|
+
* Windows: %APPDATA%\axonflow (Roaming) — tied to user identity, syncs across devices
|
|
32
|
+
*/
|
|
33
|
+
export declare function axonflowConfigDir(): string;
|
|
34
|
+
//# sourceMappingURL=cache-dir.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache-dir.d.ts","sourceRoot":"","sources":["../src/cache-dir.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAKH;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CA2CzC;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAmC1C"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cross-platform cache directory resolution.
|
|
3
|
+
*
|
|
4
|
+
* Returns a writable per-user cache directory under which the plugin can
|
|
5
|
+
* persist long-lived state (telemetry stamps, Community-SaaS registration).
|
|
6
|
+
* Per OS conventions:
|
|
7
|
+
* - Linux: $XDG_CACHE_HOME/axonflow or $HOME/.cache/axonflow
|
|
8
|
+
* - macOS: $HOME/Library/Caches/axonflow
|
|
9
|
+
* - Windows: %LOCALAPPDATA%\axonflow or %APPDATA%\axonflow
|
|
10
|
+
*
|
|
11
|
+
* Uses Node stdlib only (no third-party deps). On any error, returns the
|
|
12
|
+
* empty string so callers can fall back to "no persistence" without
|
|
13
|
+
* crashing the plugin.
|
|
14
|
+
*/
|
|
15
|
+
import * as os from "os";
|
|
16
|
+
import * as path from "path";
|
|
17
|
+
/**
|
|
18
|
+
* Returns the absolute path to the AxonFlow cache directory for this user,
|
|
19
|
+
* or "" if no writable user-cache location can be resolved (e.g. $HOME
|
|
20
|
+
* unset and no platform fallback).
|
|
21
|
+
*
|
|
22
|
+
* Does NOT create the directory. Callers should mkdir it before writing,
|
|
23
|
+
* with mode 0o700 to avoid world-readable credential leakage.
|
|
24
|
+
*/
|
|
25
|
+
export function axonflowCacheDir() {
|
|
26
|
+
// Explicit override wins. Useful for sandboxed containers (read-only HOME),
|
|
27
|
+
// CI test isolation (os.homedir() ignores process.env.HOME on macOS), and
|
|
28
|
+
// users who want to redirect AxonFlow state to a non-default location.
|
|
29
|
+
const override = process.env["AXONFLOW_CACHE_DIR"];
|
|
30
|
+
if (override && override.length > 0) {
|
|
31
|
+
return override;
|
|
32
|
+
}
|
|
33
|
+
const platform = process.platform;
|
|
34
|
+
const home = os.homedir();
|
|
35
|
+
if (platform === "win32") {
|
|
36
|
+
const localAppData = process.env["LOCALAPPDATA"];
|
|
37
|
+
if (localAppData && localAppData.length > 0) {
|
|
38
|
+
return path.join(localAppData, "axonflow");
|
|
39
|
+
}
|
|
40
|
+
const appData = process.env["APPDATA"];
|
|
41
|
+
if (appData && appData.length > 0) {
|
|
42
|
+
return path.join(appData, "axonflow");
|
|
43
|
+
}
|
|
44
|
+
if (home) {
|
|
45
|
+
return path.join(home, "AppData", "Local", "axonflow");
|
|
46
|
+
}
|
|
47
|
+
return "";
|
|
48
|
+
}
|
|
49
|
+
if (platform === "darwin") {
|
|
50
|
+
if (home) {
|
|
51
|
+
return path.join(home, "Library", "Caches", "axonflow");
|
|
52
|
+
}
|
|
53
|
+
return "";
|
|
54
|
+
}
|
|
55
|
+
// Linux / *BSD / generic POSIX
|
|
56
|
+
const xdg = process.env["XDG_CACHE_HOME"];
|
|
57
|
+
if (xdg && xdg.length > 0) {
|
|
58
|
+
return path.join(xdg, "axonflow");
|
|
59
|
+
}
|
|
60
|
+
if (home) {
|
|
61
|
+
return path.join(home, ".cache", "axonflow");
|
|
62
|
+
}
|
|
63
|
+
return "";
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Returns the absolute path to the AxonFlow config directory for this user,
|
|
67
|
+
* or "" if it can't be resolved. Used for the Community-SaaS registration
|
|
68
|
+
* file (which holds the credential — different lifecycle from cache).
|
|
69
|
+
*
|
|
70
|
+
* Linux: $XDG_CONFIG_HOME/axonflow or $HOME/.config/axonflow
|
|
71
|
+
* macOS: $HOME/Library/Application Support/axonflow
|
|
72
|
+
* Windows: %APPDATA%\axonflow (Roaming) — tied to user identity, syncs across devices
|
|
73
|
+
*/
|
|
74
|
+
export function axonflowConfigDir() {
|
|
75
|
+
const override = process.env["AXONFLOW_CONFIG_DIR"];
|
|
76
|
+
if (override && override.length > 0) {
|
|
77
|
+
return override;
|
|
78
|
+
}
|
|
79
|
+
const platform = process.platform;
|
|
80
|
+
const home = os.homedir();
|
|
81
|
+
if (platform === "win32") {
|
|
82
|
+
const appData = process.env["APPDATA"];
|
|
83
|
+
if (appData && appData.length > 0) {
|
|
84
|
+
return path.join(appData, "axonflow");
|
|
85
|
+
}
|
|
86
|
+
if (home) {
|
|
87
|
+
return path.join(home, "AppData", "Roaming", "axonflow");
|
|
88
|
+
}
|
|
89
|
+
return "";
|
|
90
|
+
}
|
|
91
|
+
if (platform === "darwin") {
|
|
92
|
+
if (home) {
|
|
93
|
+
return path.join(home, "Library", "Application Support", "axonflow");
|
|
94
|
+
}
|
|
95
|
+
return "";
|
|
96
|
+
}
|
|
97
|
+
const xdg = process.env["XDG_CONFIG_HOME"];
|
|
98
|
+
if (xdg && xdg.length > 0) {
|
|
99
|
+
return path.join(xdg, "axonflow");
|
|
100
|
+
}
|
|
101
|
+
if (home) {
|
|
102
|
+
return path.join(home, ".config", "axonflow");
|
|
103
|
+
}
|
|
104
|
+
return "";
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=cache-dir.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache-dir.js","sourceRoot":"","sources":["../src/cache-dir.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAA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