akm-cli 0.9.0-beta.56 → 0.9.0-beta.57

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.
@@ -1,7 +1,13 @@
1
1
  // This Source Code Form is subject to the terms of the Mozilla Public
2
2
  // License, v. 2.0. If a copy of the MPL was not distributed with this
3
3
  // file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
- const COMMON_PASSTHROUGH = ["HOME", "PATH", "USER", "LANG", "LC_ALL", "TERM", "TMPDIR"];
4
+ // AKM_EVENT_SOURCE carries usage-event provenance (improve/task) so that akm
5
+ // invocations a spawned agent makes are recorded as machine traffic, not user
6
+ // demand (DRIFT-6). Without it in the passthrough whitelist, buildChildEnv drops
7
+ // the stamp at the agent boundary — e.g. `akm wiki ingest` spawns an agent whose
8
+ // `akm curate/show/search` tool-calls then log source='user', silently inflating
9
+ // every lane's read-back (GRR). It is a provenance tag, never a secret.
10
+ const COMMON_PASSTHROUGH = ["HOME", "PATH", "USER", "LANG", "LC_ALL", "TERM", "TMPDIR", "AKM_EVENT_SOURCE"];
5
11
  /**
6
12
  * Built-in profiles for the five agent CLIs the v1 spec calls out
7
13
  * explicitly. The fields here are conservative defaults — every value is
@@ -11179,7 +11179,7 @@ var init_opencode = __esm(() => {
11179
11179
  // src/integrations/agent/profiles.ts
11180
11180
  var COMMON_PASSTHROUGH, BUILTINS, HEADLESS_BUILTINS, BUILTIN_AGENT_PROFILE_NAMES;
11181
11181
  var init_profiles = __esm(() => {
11182
- COMMON_PASSTHROUGH = ["HOME", "PATH", "USER", "LANG", "LC_ALL", "TERM", "TMPDIR"];
11182
+ COMMON_PASSTHROUGH = ["HOME", "PATH", "USER", "LANG", "LC_ALL", "TERM", "TMPDIR", "AKM_EVENT_SOURCE"];
11183
11183
  BUILTINS = {
11184
11184
  opencode: {
11185
11185
  name: "opencode",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akm-cli",
3
- "version": "0.9.0-beta.56",
3
+ "version": "0.9.0-beta.57",
4
4
  "type": "module",
5
5
  "description": "akm (Agent Knowledge Management) — A package manager for AI agent skills, commands, tools, and knowledge. Works with Claude Code, OpenCode, Cursor, and any AI coding assistant.",
6
6
  "keywords": [