@rivus/agent 0.14.3 → 0.15.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.
Files changed (40) hide show
  1. package/README.md +1 -1
  2. package/dist/acp.js +1 -2
  3. package/dist/bootstrap/pi-feishu.d.ts +2 -2
  4. package/dist/bootstrap/pi-feishu.js +4119 -389
  5. package/dist/chunks/agent-loop.d.ts +55 -300
  6. package/dist/chunks/agent-loop.js +3 -1123
  7. package/dist/chunks/background-session-authority.js +230 -0
  8. package/dist/chunks/background-session-control-input.js +51 -0
  9. package/dist/chunks/background-session-service.d.ts +382 -0
  10. package/dist/chunks/index.d.ts +1294 -515
  11. package/dist/chunks/pi-tool-proxy.d.ts +22 -90
  12. package/dist/chunks/pi.js +60 -20
  13. package/dist/chunks/rivus-agent-definition-resolver.js +508 -0
  14. package/dist/chunks/rivus-daemon-cli.js +3004 -3164
  15. package/dist/chunks/rivus-model-management-wire.js +344 -0
  16. package/dist/chunks/rivus-plugin-testkit.d.ts +175 -2
  17. package/dist/chunks/rivus-plugin-testkit.js +11 -4
  18. package/dist/chunks/rivus-skill.d.ts +95 -0
  19. package/dist/chunks/rivus-tool.js +158 -0
  20. package/dist/chunks/sha256-digest.js +2 -7
  21. package/dist/chunks/src.js +13402 -8264
  22. package/dist/cli.js +901 -698
  23. package/dist/index.d.ts +7 -8
  24. package/dist/index.js +8 -9
  25. package/dist/mcp.d.ts +46 -7
  26. package/dist/mcp.js +145 -19
  27. package/dist/pi.d.ts +5 -4
  28. package/dist/pi.js +1 -1
  29. package/examples/pi-feishu-deployment.bootstrap.ts +557 -462
  30. package/package.json +9 -7
  31. package/skills/runtime-management/SKILL.md +61 -0
  32. package/dist/chunks/api.d.ts +0 -70
  33. package/dist/chunks/api.js +0 -471
  34. package/dist/chunks/api2.d.ts +0 -387
  35. package/dist/chunks/api2.js +0 -1331
  36. package/dist/chunks/api3.d.ts +0 -402
  37. package/dist/chunks/module.js +0 -267
  38. package/dist/chunks/pi-skill-tool.js +0 -460
  39. package/dist/chunks/spi.d.ts +0 -1
  40. package/dist/chunks/spi.js +0 -2
package/README.md CHANGED
@@ -79,7 +79,7 @@ vp install
79
79
  vp run check
80
80
  ```
81
81
 
82
- `vp run check` is the complete local and CI gate. Vite+ runs Oxfmt, type-aware Oxlint with TypeScript diagnostics, Vitest, and library packaging; the gate then packs and installs the npm archive in a clean temporary consumer, exercises both public exports and the CLI, runs the high-severity dependency audit, and checks documentation and repository safety. Use `vp check --fix` for deterministic formatting and safe lint fixes, then review the diff before committing. The project runtime is pinned in `.node-version`.
82
+ `vp run check` is the deterministic local and pull-request gate. Vite+ runs Oxfmt, type-aware Oxlint with TypeScript diagnostics, Vitest, and library packaging; the gate then packs and installs the npm archive in a clean temporary consumer, exercises both public exports and the CLI, and checks documentation and repository safety. High-severity production-dependency audit runs when production dependency inputs change, on a weekly workflow, and at publish/prepublish. Full CI and version preparation require explicit requests; ordinary pushes and PR metadata edits do not start heavy checks. Automatic Review provides repository/title feedback. Explicit CI always runs the complete gate for the current branch/head/base pair; see [Pull Request Gates](CONTRIBUTING.md#pull-request-gates) for dispatch and retry commands. Use `vp check --fix` for deterministic formatting and safe lint fixes, then review the diff before committing. The project runtime is pinned in `.node-version`.
83
83
 
84
84
  npm releases are produced only by the `Publish npm` GitHub Actions workflow after a GitHub Release is published for an exact `v<package version>` tag on `main`. The workflow uses npm Trusted Publishing through OIDC and contains no long-lived registry token. See the [npm release runbook](docs/en/operations/npm-release.md) for the one-time first-package bootstrap and normal release procedure.
85
85
 
package/dist/acp.js CHANGED
@@ -1,5 +1,4 @@
1
- import { B as createAgentLoopToolExecutionUpdate, I as createAgentLoopTextDelta, L as createAgentLoopThinkingDelta, R as createAgentLoopToolExecutionEnd, V as createAgentLoopTurnStart, c as toEffectAgentLoop, o as fromEffectAgentLoop, s as toCompatibilityAgentLoopInput, z as createAgentLoopToolExecutionStart } from "./chunks/agent-loop.js";
2
- import "./chunks/spi.js";
1
+ import { _ as createAgentLoopToolExecutionStart, c as toEffectAgentLoop, g as createAgentLoopToolExecutionEnd, h as createAgentLoopThinkingDelta, m as createAgentLoopTextDelta, o as fromEffectAgentLoop, s as toCompatibilityAgentLoopInput, v as createAgentLoopToolExecutionUpdate, y as createAgentLoopTurnStart } from "./chunks/agent-loop.js";
3
2
  import * as acp from "@agentclientprotocol/sdk";
4
3
  import { Effect, Stream } from "effect";
5
4
  import { randomUUID } from "node:crypto";
@@ -1,8 +1,8 @@
1
- import { A as CreateRivusDeploymentBackgroundSessionInput, F as RivusDeploymentBackgroundSession, Fc as AgentRuntimeInput, M as CreateRivusDeploymentEndpointInput, Mc as SessionSchedulerStatus, N as CreateRivusDeploymentRuntimeInput, Pc as AgentRuntimeCancellation, Rc as AgentRuntimeSteering, aa as RivusDeploymentBootstrapContext, dt as ScheduledAutomation, k as CreateRivusDeploymentAutomationInput, la as ProcessDeploymentEndpoint, pl as RecoveryControl } from "../chunks/index.js";
1
+ import { $u as AgentRuntimeSteering, Qt as ScheduledAutomation, Rd as RecoveryControl, Xu as AgentRuntimeInput, Yu as AgentRuntimeCancellation, ct as CreateRivusDeploymentAutomationInput, dt as CreateRivusDeploymentEndpointInput, ft as CreateRivusDeploymentRuntimeInput, js as RivusDeploymentBootstrapContext, lt as CreateRivusDeploymentBackgroundSessionInput, mt as RivusDeploymentBackgroundSession, qu as SessionSchedulerStatus, tc as ProcessDeploymentEndpoint } from "../chunks/index.js";
2
2
 
3
3
  //#region examples/pi-feishu-deployment.bootstrap.d.ts
4
4
  declare function createRivusDeploymentAdapters(context: RivusDeploymentBootstrapContext): Promise<{
5
- dispose: () => Promise<void> | undefined;
5
+ dispose: () => Promise<void>;
6
6
  createRecoveryControl: () => Promise<RecoveryControl>;
7
7
  createBackgroundSession: ((input: CreateRivusDeploymentBackgroundSessionInput) => RivusDeploymentBackgroundSession) | undefined;
8
8
  createAutomation: (input: CreateRivusDeploymentAutomationInput) => Promise<ScheduledAutomation>;