@yachiyo-5i/xlyra-agent 1.3.0 → 1.3.2

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/dist/index.d.cts CHANGED
@@ -1020,6 +1020,7 @@ declare class AgentRunner {
1020
1020
  */
1021
1021
  declare class EscalationGrants {
1022
1022
  private readonly grants;
1023
+ private readonly oneShotGrants;
1023
1024
  /** 会话级完全访问开关(前端 permission_mode=full 注入;ask 时撤销,不随消息残留) */
1024
1025
  private readonly fullAccess;
1025
1026
  /** 完全访问模式:跳过一切路径与能力提权检查(用户已在 UI 二次确认) */
@@ -1027,6 +1028,8 @@ declare class EscalationGrants {
1027
1028
  hasFullAccess(sessionId: string): boolean;
1028
1029
  grant(sessionId: string, resolvedPath: string): void;
1029
1030
  grantCapability(sessionId: string, capability: string): void;
1031
+ grantOnce(sessionId: string, resolvedPath: string): void;
1032
+ grantCapabilityOnce(sessionId: string, capability: string): void;
1030
1033
  /** 已授权路径或其子路径视为已放开;完全访问模式直接放行 */
1031
1034
  isGranted(sessionId: string, resolvedPath: string): boolean;
1032
1035
  isCapabilityGranted(sessionId: string, capability: string): boolean;
package/dist/index.d.ts CHANGED
@@ -1020,6 +1020,7 @@ declare class AgentRunner {
1020
1020
  */
1021
1021
  declare class EscalationGrants {
1022
1022
  private readonly grants;
1023
+ private readonly oneShotGrants;
1023
1024
  /** 会话级完全访问开关(前端 permission_mode=full 注入;ask 时撤销,不随消息残留) */
1024
1025
  private readonly fullAccess;
1025
1026
  /** 完全访问模式:跳过一切路径与能力提权检查(用户已在 UI 二次确认) */
@@ -1027,6 +1028,8 @@ declare class EscalationGrants {
1027
1028
  hasFullAccess(sessionId: string): boolean;
1028
1029
  grant(sessionId: string, resolvedPath: string): void;
1029
1030
  grantCapability(sessionId: string, capability: string): void;
1031
+ grantOnce(sessionId: string, resolvedPath: string): void;
1032
+ grantCapabilityOnce(sessionId: string, capability: string): void;
1030
1033
  /** 已授权路径或其子路径视为已放开;完全访问模式直接放行 */
1031
1034
  isGranted(sessionId: string, resolvedPath: string): boolean;
1032
1035
  isCapabilityGranted(sessionId: string, capability: string): boolean;
package/dist/index.js CHANGED
@@ -102,7 +102,7 @@ import {
102
102
  toolCallSchema,
103
103
  upsertEndpoint,
104
104
  validateToolCall
105
- } from "./chunk-5AIZKDJO.js";
105
+ } from "./chunk-KKPK4RMM.js";
106
106
  export {
107
107
  AGENTS_MD_MAX_BYTES,
108
108
  AGENTS_MD_MAX_DEPTH,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yachiyo-5i/xlyra-agent",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "通用对话式 Agent 执行引擎:OpenAI Responses / Anthropic Messages 双协议 + Agent loop + 文件工具 + 可选 REST/SSE 服务层",
5
5
  "repository": {
6
6
  "type": "git",