mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-08-10 17:29:18 +00:00
|
Some checks are pending
CI / build (push) Waiting to run
CI / test (1) (push) Waiting to run
CI / test (2) (push) Waiting to run
CI / test (3) (push) Waiting to run
CI / test (4) (push) Waiting to run
CI / test (5) (push) Waiting to run
CI / test-pi-tui (push) Waiting to run
CI / test-windows (push) Waiting to run
CI / lint (push) Waiting to run
CI / typecheck (push) Waiting to run
Nix Build / Check flake.nix workspace sync (push) Waiting to run
Nix Build / nix build .#kimi-code (push) Blocked by required conditions
Release / Release (push) Waiting to run
Release / Deploy docs (push) Blocked by required conditions
Release / Native release artifact (push) Blocked by required conditions
Release / Publish native release assets (push) Blocked by required conditions
* refactor(agent-core-v2): register agent tools as DI services with profile-aware activation - replace module-level registerTool + Eager AgentBuiltinToolsRegistrar with registerAgentTool double registration (Agent-scope DI service + contribution table) - add toolActivation domain: AgentToolActivationService filters contributions by the bound Profile's tool policy using declared names, resolves instances lazily via accessor.get, and re-activates on agent.status.updated - rename BuiltinTool to AgentTool service interface; tools become Agent-scope services with decorator-injected dependencies (e.g. AgentTool -> SubagentTool/ISubagentTool) - AgentLifecycleService.create runs one activation pass after restore and profile binding so tools reflect the Profile before the first turn - update tool registrations, scripts, and tests; add toolActivationService tests * refactor(agent-core-v2): centralize builtin tools under agent/tools - move builtin tools from scattered domain folders (plan/tools, goal/tools, os/backends/node-local/tools, task/tools, etc.) into a unified agent/tools/ directory - split each tool into a kebab-case definition file (bash.ts) and a registration file (bashTool.ts) pairing with its prompt markdown - update imports across src, tests, kap-server, and TUI comments * fix(agent-core-v2): keep agent tools out of scope-creation instantiation Main's instantiateAll constructs every registered service at scope creation, but agent tool constructors may legitimately throw when their host capability is absent (e.g. WebSearchTool without a configured provider), and profile-aware activation must stay the only resolution path so the runtime registry holds real instances, never proxies. - add SyncDescriptor.instantiateWithScope (default true) and let registerScopedService opt registrations out of the instantiateAll sweep - registerAgentTool passes the opt-out, restoring lazy activation-driven construction on top of the eager-scope semantics - regenerate docs/state-manifest.d.ts * refactor(agent-core-v2): replace delayed DI with scope activation - add explicit OnScopeCreated and OnDemand activation modes - remove delayed proxy and idle initialization support - migrate service registrations, tests, and DI guidance |
||
|---|---|---|
| .. | ||
| __snapshots__ | ||
| helpers | ||
| services | ||
| apiSurface.snapshot.test.ts | ||
| approvals.test.ts | ||
| auth.test.ts | ||
| authMiddleware.test.ts | ||
| authTokenStore.test.ts | ||
| authWiring.e2e.test.ts | ||
| bindClassify.test.ts | ||
| boot.test.ts | ||
| config.test.ts | ||
| connections.test.ts | ||
| debugNonloopback.e2e.test.ts | ||
| disableAuth.e2e.test.ts | ||
| files.test.ts | ||
| fs-watch.e2e.test.ts | ||
| fs.test.ts | ||
| guiStore.test.ts | ||
| hostExposure.e2e.test.ts | ||
| hostnames.test.ts | ||
| inFlightTurnTracker.test.ts | ||
| instanceRegistry.test.ts | ||
| messages.test.ts | ||
| modelCatalog.test.ts | ||
| modelCatalogCatalog.test.ts | ||
| modelCatalogProviderWrite.test.ts | ||
| modelCatalogRefreshScheduler.test.ts | ||
| oauthUsage.test.ts | ||
| openapi.test.ts | ||
| origin.test.ts | ||
| prompts.test.ts | ||
| publicApi.test.ts | ||
| questions.test.ts | ||
| rateLimit.test.ts | ||
| requestLogging.test.ts | ||
| rpc.test.ts | ||
| securityExposure.test.ts | ||
| securityHeaders.test.ts | ||
| sessionEventBroadcaster.test.ts | ||
| sessionEventJournal.test.ts | ||
| sessions.test.ts | ||
| skills.test.ts | ||
| snapshot.test.ts | ||
| snapshotReader.unit.test.ts | ||
| subagentRosterTracker.test.ts | ||
| tasks.test.ts | ||
| terminals.test.ts | ||
| tools.test.ts | ||
| transcript.test.ts | ||
| transport-errors.test.ts | ||
| workspaceFs.test.ts | ||
| workspaces.test.ts | ||
| wsBearerProtocol.test.ts | ||
| wsConnectionV1.test.ts | ||
| wsHostOrigin.test.ts | ||
| wsUpgradeAuth.test.ts | ||
| wsV1Resync.test.ts | ||