@robota-sdk/agent-session 3.2.3 → 3.2.5

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 CHANGED
@@ -1,5 +1,25 @@
1
1
  # @robota-sdk/agent-session
2
2
 
3
+ ## 3.2.5
4
+ ### Patch Changes
5
+
6
+ - The previous version of this package was tagged but never published to npm, because `main` moved past its release commit first. This version carries the same consolidated package set from the current `main`, with comment and test-name cleanups and no behavior change.
7
+
8
+ ## 3.2.4
9
+ ### Patch Changes
10
+
11
+ - 327999e: The contract packages are now one package, `@robota-sdk/agent-interface`, with one subpath per family: `session` (and `session/testing`), `session-mobility`, `command`, `execution`, `analytics`, `transport` (and `transport/testing`) and `tui`. Import the subpath of the family you use (`@robota-sdk/agent-interface/session`); there is no root export. `@robota-sdk/agent-core` is now an optional peer dependency: `analytics` and `tui` need nothing, and a project that imports another family installs `agent-core` itself (the SDK packages that import those families declare it). The exported names and signatures are unchanged. `@robota-sdk/agent-interface-session`, `-session-mobility`, `-command`, `-execution`, `-analytics`, `-transport` and `-tui` no longer receive releases. The SDK packages that import a contract depend on `@robota-sdk/agent-interface`.
12
+ - 913d334: The host primitives are now one package, `@robota-sdk/agent-os`, with one subpath each: `file-authority` (and `file-authority/testing`), `node-lock` and `process`. Import the subpath you use (`@robota-sdk/agent-os/process`); there is no root export, and a bundle that imports `process` contains no native binding. Koffi is now an optional peer dependency pinned to `3.3.1`: a project that imports `file-authority` or `node-lock` installs it itself, and a project that imports only `process` installs nothing. The exported names and signatures are unchanged. `@robota-sdk/agent-file-authority`, `@robota-sdk/agent-node-lock` and `@robota-sdk/agent-process` no longer receive releases. The framework, session, tools, executor and subagent-runner packages depend on `@robota-sdk/agent-os`; the packages that used the file authority or the lock declare `koffi` themselves, so their installs are unchanged.
13
+ - 6953fad: On Windows, session-log sealing, prompt-history compaction and every other in-place rewrite now work instead of refusing every file. The file is confirmed by its file index, since a Windows path reports no device number, and the replacement is made after the catch-up because Windows will not rename over an open file. A prompt-history path that is a directory is now an error there, as on Linux and macOS, instead of an empty history.
14
+ - Updated dependencies [1f900da]
15
+ - Updated dependencies [327999e]
16
+ - Updated dependencies [913d334]
17
+ - Updated dependencies [bf901d7]
18
+ - Updated dependencies [44f28ee]
19
+ - @robota-sdk/agent-core@3.2.3
20
+ - @robota-sdk/agent-interface@3.3.0
21
+ - @robota-sdk/agent-os@3.3.0
22
+
3
23
  ## 3.2.3
4
24
  ### Patch Changes
5
25
 
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { a as isSessionClaimedError, c as IExternalPayloadSink, d as IExternalPayloadReference, f as IFileSessionLoggerOptions, i as TSessionClaimRefusal, l as ISessionLogSink, m as TSessionLogValue, n as ISessionWriterHolder, o as IExternalPayloadSource, p as TSessionLogData, r as SessionClaimedError, s as ISessionLogSource, u as createSessionLogExternalPayloadReference } from "./session-claims-DELiAZkZ.cjs";
1
+ import { a as isSessionClaimedError, c as IExternalPayloadSink, d as IExternalPayloadReference, f as IFileSessionLoggerOptions, i as TSessionClaimRefusal, l as ISessionLogSink, m as TSessionLogValue, n as ISessionWriterHolder, o as IExternalPayloadSource, p as TSessionLogData, r as SessionClaimedError, s as ISessionLogSource, u as createSessionLogExternalPayloadReference } from "./session-claims-Rlw8sRxi.cjs";
2
2
  import { ConversationAgent, IAIProvider, IAgentConfig, IContextWindowState, IEventService, IExecutionJournal, IHistoryEntry, IHookTypeExecutor, IPathProtectionPolicy, IProviderRegistrationOptions, IRecoverableExecutionJournal, IResponseFormatConfig, IResumeExecutionOptions, IRunTraceContext, ISpinner, ISubprocessTraceEnv, ITerminalOutput, IToolAppView, IToolExecutionContext, IToolExecutionResult, IToolSchema, IToolWaitRequest, IToolWithEventService, IUserInteraction, TBackgroundPermissionPolicy, TModelEffort, TModelEffortSelection, TPermissionMode, TProviderOwnership, TResolveInWorkspace, TSessionEndReason, TToolArgs, TToolChoice, TToolParameters, TUniversalMessage, TUniversalMessagePart, TUniversalValue } from "@robota-sdk/agent-core";
3
- import { ICompactEvent, IInteractiveSessionRecord, IInteractiveSessionRecord as IInteractiveSessionRecord$1, IInteractiveSessionRecord as ISessionRecord, IInteractiveSessionStore, IInteractiveSessionStore as IInteractiveSessionStore$1, IInteractiveSessionStore as ISessionStore, IRuntimeToolInvokeOptions, ISessionConversationSnapshot, ISessionPendingExecution, ISessionRecordDecodeIssue, TCompactTrigger, TPermissionRequester, TPermissionResultValue, TSessionLoadOutcome } from "@robota-sdk/agent-interface-session";
3
+ import { ICompactEvent, IInteractiveSessionRecord, IInteractiveSessionRecord as IInteractiveSessionRecord$1, IInteractiveSessionRecord as ISessionRecord, IInteractiveSessionStore, IInteractiveSessionStore as IInteractiveSessionStore$1, IInteractiveSessionStore as ISessionStore, IRuntimeToolInvokeOptions, ISessionConversationSnapshot, ISessionPendingExecution, ISessionRecordDecodeIssue, TCompactTrigger, TPermissionRequester, TPermissionResultValue, TSessionLoadOutcome } from "@robota-sdk/agent-interface/session";
4
4
  //#region src/context-window-tracker.d.ts
5
5
  /** Auto-compact when context usage reaches this fraction */
6
6
  declare const AUTO_COMPACT_THRESHOLD = 0.835;
@@ -142,7 +142,7 @@ interface ICommandSandboxApproval {
142
142
  autoApproves(toolName: string, shellCommand: string): boolean;
143
143
  }
144
144
  /**
145
- * Permission handler result (the union is OWNED by `agent-interface-session` as
145
+ * Permission handler result (the union is OWNED by `agent-interface/session` as
146
146
  * `TPermissionResultValue`; this name is the session-layer alias, not a second declaration):
147
147
  * - true: allow this invocation
148
148
  * - false: deny this invocation
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { a as isSessionClaimedError, c as IExternalPayloadSink, d as IExternalPayloadReference, f as IFileSessionLoggerOptions, i as TSessionClaimRefusal, l as ISessionLogSink, m as TSessionLogValue, n as ISessionWriterHolder, o as IExternalPayloadSource, p as TSessionLogData, r as SessionClaimedError, s as ISessionLogSource, u as createSessionLogExternalPayloadReference } from "./session-claims-DELiAZkZ.js";
1
+ import { a as isSessionClaimedError, c as IExternalPayloadSink, d as IExternalPayloadReference, f as IFileSessionLoggerOptions, i as TSessionClaimRefusal, l as ISessionLogSink, m as TSessionLogValue, n as ISessionWriterHolder, o as IExternalPayloadSource, p as TSessionLogData, r as SessionClaimedError, s as ISessionLogSource, u as createSessionLogExternalPayloadReference } from "./session-claims-Rlw8sRxi.js";
2
2
  import { ConversationAgent, ExecutionSuspendedError, IAIProvider, IAgentConfig, IContextWindowState, IEventService, IExecutionJournal, IHistoryEntry, IHookTypeExecutor, IPathProtectionPolicy, IProviderRegistrationOptions, IRecoverableExecutionJournal, IResponseFormatConfig, IResumeExecutionOptions, IRunTraceContext, ISpinner, ISubprocessTraceEnv, ITerminalOutput, IToolAppView, IToolExecutionContext, IToolExecutionResult, IToolSchema, IToolWaitRequest, IToolWithEventService, IUserInteraction, TBackgroundPermissionPolicy, TModelEffort, TModelEffortSelection, TPermissionMode, TProviderOwnership, TResolveInWorkspace, TSessionEndReason, TToolArgs, TToolChoice, TToolParameters, TUniversalMessage, TUniversalMessagePart, TUniversalValue } from "@robota-sdk/agent-core";
3
- import { ICompactEvent, IInteractiveSessionRecord, IInteractiveSessionRecord as IInteractiveSessionRecord$1, IInteractiveSessionRecord as ISessionRecord, IInteractiveSessionStore, IInteractiveSessionStore as IInteractiveSessionStore$1, IInteractiveSessionStore as ISessionStore, IRuntimeToolInvokeOptions, ISessionConversationSnapshot, ISessionPendingExecution, ISessionRecordDecodeIssue, TCompactTrigger, TPermissionRequester, TPermissionResultValue, TSessionLoadOutcome } from "@robota-sdk/agent-interface-session";
3
+ import { ICompactEvent, IInteractiveSessionRecord, IInteractiveSessionRecord as IInteractiveSessionRecord$1, IInteractiveSessionRecord as ISessionRecord, IInteractiveSessionStore, IInteractiveSessionStore as IInteractiveSessionStore$1, IInteractiveSessionStore as ISessionStore, IRuntimeToolInvokeOptions, ISessionConversationSnapshot, ISessionPendingExecution, ISessionRecordDecodeIssue, TCompactTrigger, TPermissionRequester, TPermissionResultValue, TSessionLoadOutcome } from "@robota-sdk/agent-interface/session";
4
4
  //#region src/context-window-tracker.d.ts
5
5
  /** Auto-compact when context usage reaches this fraction */
6
6
  declare const AUTO_COMPACT_THRESHOLD = 0.835;
@@ -142,7 +142,7 @@ interface ICommandSandboxApproval {
142
142
  autoApproves(toolName: string, shellCommand: string): boolean;
143
143
  }
144
144
  /**
145
- * Permission handler result (the union is OWNED by `agent-interface-session` as
145
+ * Permission handler result (the union is OWNED by `agent-interface/session` as
146
146
  * `TPermissionResultValue`; this name is the session-layer alias, not a second declaration):
147
147
  * - true: allow this invocation
148
148
  * - false: deny this invocation