kimi-code/packages/agent-core-v2/scripts
haozhe.yang 3c6f20d0be refactor(agent-core-v2): remove session context path fields and finalize guards
Implement the M8b slice, completing the first-stage rework:

- Add ISessionHostFiles, a typed lease capability that carries the
  session host-file facts (plan/log/media/agent dirs); local leases
  project it, headless leases get the absent value. All business
  services (plan, sessionLog, task display, MCP originals, agent
  lifecycle, session metadata, cron) read paths from it instead of
  ISessionContext, with wire-visible values byte-identical.
- Delete ISessionContext.sessionDir/metaScope, the transitional
  pathful context seed, the session.host_files/os.stdio capabilities,
  and the unused bootstrap scope builders; cwd/workspaceId stay as
  logical metadata fed from the lease.
- Stream the export pipeline end to end (stat-only walks, lazy entry
  contents, streamed staging) and derive revisions from the same
  content hashes so transfer window validation is unchanged.
- Fix fs-watch duplicate subscriptions when a bare id reroutes to a
  different runtime; finalize domain guards with documented allowlist
  owners and pathlessness pins; node-sdk reads host files from the
  lease for live sessions.
2026-07-29 10:48:45 +08:00
..
dep-graph refactor(agent-core-v2): remove session context path fields and finalize guards 2026-07-29 10:48:45 +08:00
lib feat(agent-core-v2): add generated config and wire-protocol manifests (#2086) 2026-07-23 11:17:10 +08:00
check-domain-layers.d.mts feat(v2): land agent-core-v2 engine and kap-server behind experimental flag (#1441) 2026-07-12 21:44:04 +08:00
check-domain-layers.mjs refactor(agent-core-v2): remove session context path fields and finalize guards 2026-07-29 10:48:45 +08:00
debarrel.mjs refactor(agent-core-v2): register tools as scoped services (#2196) 2026-07-26 14:32:59 +08:00
dep-graph.mjs feat(v2): land agent-core-v2 engine and kap-server behind experimental flag (#1441) 2026-07-12 21:44:04 +08:00
gen-config-manifest.mts feat(agent-core-v2): add generated config and wire-protocol manifests (#2086) 2026-07-23 11:17:10 +08:00
gen-contract-types.mjs feat(v2): land agent-core-v2 engine and kap-server behind experimental flag (#1441) 2026-07-12 21:44:04 +08:00
gen-state-manifest.mts feat(agent-core-v2): add per-scope keyed state container (#2192) 2026-07-26 10:10:15 +08:00
gen-wire-manifest.mts feat(agent-core-v2): add generated config and wire-protocol manifests (#2086) 2026-07-23 11:17:10 +08:00
generate-webp-dec-wasm.mjs feat(agent-core-v2): gate image formats and add media recovery resends (#1626) 2026-07-13 22:11:46 +08:00