@m1a0rz/agent-identity 0.2.1 → 0.2.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.
Files changed (118) hide show
  1. package/LICENSE +201 -0
  2. package/README-cn.md +42 -32
  3. package/README.md +42 -32
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +15 -9
  6. package/dist/src/actions/identity-actions.d.ts.map +1 -1
  7. package/dist/src/actions/identity-actions.js +14 -3
  8. package/dist/src/commands/identity-commands.d.ts.map +1 -1
  9. package/dist/src/commands/identity-commands.js +14 -3
  10. package/dist/src/hooks/before-agent-start.d.ts.map +1 -1
  11. package/dist/src/hooks/before-agent-start.js +14 -5
  12. package/dist/src/hooks/before-tool-call.d.ts.map +1 -1
  13. package/dist/src/hooks/before-tool-call.js +13 -6
  14. package/dist/src/hooks/llm-input.d.ts +0 -5
  15. package/dist/src/hooks/llm-input.d.ts.map +1 -1
  16. package/dist/src/hooks/llm-input.js +15 -0
  17. package/dist/src/hooks/sessions-send-propagation.d.ts.map +1 -1
  18. package/dist/src/hooks/sessions-send-propagation.js +13 -5
  19. package/dist/src/hooks/sessions-spawn-propagation.d.ts.map +1 -1
  20. package/dist/src/hooks/sessions-spawn-propagation.js +13 -6
  21. package/dist/src/hooks/subagent-ended-cleanup.d.ts +0 -6
  22. package/dist/src/hooks/subagent-ended-cleanup.d.ts.map +1 -1
  23. package/dist/src/hooks/subagent-ended-cleanup.js +15 -0
  24. package/dist/src/risk/classify-risk.d.ts.map +1 -1
  25. package/dist/src/risk/classify-risk.js +14 -3
  26. package/dist/src/risk/diagnose-risk.d.ts.map +1 -1
  27. package/dist/src/risk/diagnose-risk.js +14 -3
  28. package/dist/src/risk/llm-risk-check.d.ts.map +1 -1
  29. package/dist/src/risk/llm-risk-check.js +14 -4
  30. package/dist/src/risk/low-risk-tools.d.ts +0 -3
  31. package/dist/src/risk/low-risk-tools.d.ts.map +1 -1
  32. package/dist/src/risk/low-risk-tools.js +15 -0
  33. package/dist/src/routes/oidc-login.d.ts.map +1 -1
  34. package/dist/src/routes/oidc-login.js +12 -5
  35. package/dist/src/services/identity-client.d.ts.map +1 -1
  36. package/dist/src/services/identity-client.js +13 -8
  37. package/dist/src/services/identity-credentials.d.ts +0 -8
  38. package/dist/src/services/identity-credentials.d.ts.map +1 -1
  39. package/dist/src/services/identity-credentials.js +15 -0
  40. package/dist/src/services/identity-service.d.ts.map +1 -1
  41. package/dist/src/services/identity-service.js +14 -3
  42. package/dist/src/services/oidc-client.d.ts.map +1 -1
  43. package/dist/src/services/oidc-client.js +13 -6
  44. package/dist/src/services/send-notification-feishu.d.ts.map +1 -1
  45. package/dist/src/services/send-notification-feishu.js +14 -4
  46. package/dist/src/services/session-refresh.d.ts +0 -4
  47. package/dist/src/services/session-refresh.d.ts.map +1 -1
  48. package/dist/src/services/session-refresh.js +15 -0
  49. package/dist/src/services/tip-acquisition.d.ts.map +1 -1
  50. package/dist/src/services/tip-acquisition.js +14 -3
  51. package/dist/src/services/tip-propagation.d.ts.map +1 -1
  52. package/dist/src/services/tip-propagation.js +14 -2
  53. package/dist/src/services/tip-with-refresh.d.ts.map +1 -1
  54. package/dist/src/services/tip-with-refresh.js +14 -4
  55. package/dist/src/store/credential-env-bindings.d.ts +0 -5
  56. package/dist/src/store/credential-env-bindings.d.ts.map +1 -1
  57. package/dist/src/store/credential-env-bindings.js +15 -0
  58. package/dist/src/store/credential-store.d.ts.map +1 -1
  59. package/dist/src/store/credential-store.js +14 -3
  60. package/dist/src/store/oidc-state-store.d.ts.map +1 -1
  61. package/dist/src/store/oidc-state-store.js +14 -3
  62. package/dist/src/store/session-store.d.ts +0 -5
  63. package/dist/src/store/session-store.d.ts.map +1 -1
  64. package/dist/src/store/session-store.js +15 -0
  65. package/dist/src/store/skill-path-store.d.ts +0 -5
  66. package/dist/src/store/skill-path-store.d.ts.map +1 -1
  67. package/dist/src/store/skill-path-store.js +15 -0
  68. package/dist/src/store/tip-store.d.ts +0 -6
  69. package/dist/src/store/tip-store.d.ts.map +1 -1
  70. package/dist/src/store/tip-store.js +15 -0
  71. package/dist/src/store/tool-approval-store.d.ts +0 -4
  72. package/dist/src/store/tool-approval-store.d.ts.map +1 -1
  73. package/dist/src/store/tool-approval-store.js +15 -0
  74. package/dist/src/tools/identity-approve-tool.d.ts.map +1 -1
  75. package/dist/src/tools/identity-approve-tool.js +14 -3
  76. package/dist/src/tools/identity-config-suggest.d.ts +0 -5
  77. package/dist/src/tools/identity-config-suggest.d.ts.map +1 -1
  78. package/dist/src/tools/identity-config-suggest.js +15 -0
  79. package/dist/src/tools/identity-config.d.ts.map +1 -1
  80. package/dist/src/tools/identity-config.js +14 -2
  81. package/dist/src/tools/identity-fetch.d.ts.map +1 -1
  82. package/dist/src/tools/identity-fetch.js +14 -4
  83. package/dist/src/tools/identity-list-credentials.d.ts.map +1 -1
  84. package/dist/src/tools/identity-list-credentials.js +14 -2
  85. package/dist/src/tools/identity-list-risk-patterns.d.ts.map +1 -1
  86. package/dist/src/tools/identity-list-risk-patterns.js +14 -3
  87. package/dist/src/tools/identity-list-tips.d.ts.map +1 -1
  88. package/dist/src/tools/identity-list-tips.js +14 -2
  89. package/dist/src/tools/identity-login.d.ts.map +1 -1
  90. package/dist/src/tools/identity-login.js +14 -3
  91. package/dist/src/tools/identity-logout.d.ts.map +1 -1
  92. package/dist/src/tools/identity-logout.js +14 -2
  93. package/dist/src/tools/identity-risk-check.d.ts.map +1 -1
  94. package/dist/src/tools/identity-risk-check.js +14 -3
  95. package/dist/src/tools/identity-set-binding.d.ts.map +1 -1
  96. package/dist/src/tools/identity-set-binding.js +14 -2
  97. package/dist/src/tools/identity-status.d.ts.map +1 -1
  98. package/dist/src/tools/identity-status.js +14 -2
  99. package/dist/src/tools/identity-unset-binding.d.ts.map +1 -1
  100. package/dist/src/tools/identity-unset-binding.js +14 -2
  101. package/dist/src/tools/identity-whoami.d.ts.map +1 -1
  102. package/dist/src/tools/identity-whoami.js +14 -2
  103. package/dist/src/types.d.ts.map +1 -1
  104. package/dist/src/types.js +14 -3
  105. package/dist/src/utils/approval-channel.d.ts +0 -4
  106. package/dist/src/utils/approval-channel.d.ts.map +1 -1
  107. package/dist/src/utils/approval-channel.js +15 -0
  108. package/dist/src/utils/auth.d.ts.map +1 -1
  109. package/dist/src/utils/auth.js +13 -4
  110. package/dist/src/utils/derive-session-key.d.ts.map +1 -1
  111. package/dist/src/utils/derive-session-key.js +14 -3
  112. package/dist/src/utils/logger.d.ts.map +1 -1
  113. package/dist/src/utils/logger.js +15 -0
  114. package/dist/src/utils/parse-available-skills.d.ts.map +1 -1
  115. package/dist/src/utils/parse-available-skills.js +15 -0
  116. package/dist/src/utils/token-errors.d.ts.map +1 -1
  117. package/dist/src/utils/token-errors.js +15 -0
  118. package/package.json +1 -1
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README-cn.md CHANGED
@@ -102,30 +102,36 @@ openclaw plugins install --link .
102
102
 
103
103
  **A. 平台侧访问配置(Identity)**:用于获取 TIP Token、拉取/托管凭据、做权限校验(可选)。
104
104
 
105
- - `endpoint`:Identity API 地址(例如 `https://id.cn-beijing.volcengineapi.com`)
106
- - `accessKeyId` / `secretAccessKey`:用于访问 Identity API(也可通过环境变量或凭据文件方式提供)
107
- - `workloadPoolName` / `workloadName`:用于签发 TIP Token
108
- - `audience` / `durationSeconds`:可选,令牌受众与有效期
105
+ - `endpoint`:Identity API 地址(例如 `https://id.cn-beijing.volcengineapi.com`)。不填时使用默认值。
106
+ - `accessKeyId` / `secretAccessKey`:用于访问 Identity API。**可选**,可使用环境变量或凭据文件(见下)。
107
+ - `workloadPoolName` / `workloadName`:用于签发 TIP Token。默认:`default`、`openclaw-agent`。
108
+ - `audience` / `durationSeconds`:可选,令牌受众与有效期。
109
+ - `credentialsFile`:凭据 JSON 文件路径。默认:`VOLCENGINE_CREDENTIALS_FILE` 环境变量或 `/var/run/secrets/iam/credential`。
110
+ - `roleTrn`:STS AssumeRole 的 Role TRN。设置后不传 workload name,后端使用 roleName。
111
+ - `sessionToken`:STS 会话令牌(或使用 `VOLCENGINE_SESSION_TOKEN` 环境变量)。
112
+
113
+ **凭据解析顺序**(AK/SK):1)显式 config → 2)环境变量(`VOLCENGINE_ACCESS_KEY`、`VOLCENGINE_SECRET_KEY`、`VOLCENGINE_SESSION_TOKEN`)→ 3)凭据文件(config 的 `credentialsFile`,或 `VOLCENGINE_CREDENTIALS_FILE` 环境变量,或 `/var/run/secrets/iam/credential`)。凭据文件格式(VeFaaS):`access_key_id`、`secret_access_key`、`session_token`(可选)、`role_trn`(可选,用于 AssumeRole)。`RUNTIME_IAM_ROLE_TRN` 环境变量可在从文件加载时提供 role TRN。
109
114
 
110
115
  **B. 用户登录配置(UserPool / OIDC)**:用于 `/identity login` 的用户登录与会话建立。
111
116
 
112
117
  - `discoveryUrl`(或 `userPoolName` + `clientName` 动态解析模式)
113
118
  - `clientId` / `clientSecret`(动态模式下可自动解析)
114
- - `callbackUrl`:OpenClaw 网关对外可访问的回调地址,例如 `http://127.0.0.1:18789/identity/oauth/callback"`
119
+ - `callbackUrl`:OpenClaw 网关对外可访问的回调地址,例如 `http://127.0.0.1:18789/identity/oauth/callback`
115
120
  - `scope`:一般包含 `openid profile email`
116
121
 
117
- **C. 工具调用权限与风险审批(AuthZ,可选)**:用于 `before_tool_call` 时的 TIP + CheckPermission + 风险评估与用户审批。
122
+ **C. 工具调用权限与风险审批(AuthZ,可选)**:用于 `before_tool_call` 时的 TIP + CheckPermission + 风险评估与用户审批。各开关独立,无统一 `enable`。
118
123
 
119
- - `enable`:是否启用 AuthZTIP、CheckPermission、风险审批),默认 false
120
- - `namespaceName`:CheckPermission Cedar 策略命名空间,默认 `default`
121
- - `lowRiskBypass`:内置低风险工具是否跳过 TIP+CheckPermission,默认 true
122
- - `lowRiskTools`:额外视为低风险的工具名列表
123
- - `requireRiskApproval`:高风险工具调用是否需用户审批,默认 true
124
- - `enableLlmRiskCheck`:规则返回 medium 时是否用 LLM 二次评估,默认 false
125
- - `llmRiskCheck`:LLM 配置(`endpoint`、`api`、`model`、`apiKey`、`timeoutMs`、`cacheTtlMs`)。`enableLlmRiskCheck` true 时必填
126
- - `approvalTtlSeconds`:审批链接/命令的 TTL(秒),默认 300
124
+ - `toolCheck`:对工具调用执行 CheckPermissionresource type tool)。默认 false
125
+ - `skillReadCheck`:对 SKILL.md 读取执行 CheckPermission(resource type skill)。解析 system prompt 中的 available_skills。默认 false。
126
+ - `requireRiskApproval`:高风险工具调用需用户审批。默认 false。
127
+ - `namespaceName`:CheckPermission Cedar 策略命名空间。默认 `default`。
128
+ - `lowRiskBypass`:内置低风险工具是否跳过 TIP+CheckPermission。默认 true
129
+ - `lowRiskTools`:额外视为低风险的工具名列表。
130
+ - `enableLlmRiskCheck`:规则返回 medium 时是否用 LLM 二次评估。默认 false。
131
+ - `llmRiskCheck`:LLM 配置(`endpoint`、`api`、`model`、`apiKey`、`timeoutMs`、`cacheTtlMs`)。`enableLlmRiskCheck` 为 true 时必填。
132
+ - `approvalTtlSeconds`:审批链接/命令的 TTL(秒)。默认 300。
127
133
 
128
- **预期结果**:配置完成后,插件可正常发起登录、获取 TIP Token。启用 AuthZ 后,高风险工具调用需用户通过 `/identity approve <approval_id>` 审批通过后才能执行。
134
+ **预期结果**:配置完成后,插件可正常发起登录、获取 TIP Token。开启 AuthZ 相关开关后,工具/skill 权限检查与高风险审批生效;使用 `/identity approve <approval_id>` 审批被拦截的调用。
129
135
 
130
136
  ---
131
137
 
@@ -139,12 +145,8 @@ openclaw plugins install --link .
139
145
  "config": {
140
146
  "identity": {
141
147
  "endpoint": "https://id.cn-beijing.volcengineapi.com",
142
- "accessKeyId": "<your-ak>",
143
- "secretAccessKey": "<your-sk>",
144
148
  "workloadPoolName": "default",
145
- "workloadName": "openclaw-agent",
146
- "audience": ["asi-gateway"],
147
- "durationSeconds": 3600
149
+ "workloadName": "openclaw-agent"
148
150
  },
149
151
  "userpool": {
150
152
  "discoveryUrl": "https://userpool-xxx.userpool.auth.id.cn-beijing.volces.com",
@@ -154,14 +156,13 @@ openclaw plugins install --link .
154
156
  "scope": "openid profile email"
155
157
  },
156
158
  "authz": {
157
- "enable": false,
159
+ "toolCheck": false,
160
+ "skillReadCheck": false,
161
+ "requireRiskApproval": false,
158
162
  "namespaceName": "default",
163
+ "lowRiskBypass": true,
159
164
  "enableLlmRiskCheck": false,
160
- "llmRiskCheck": {
161
- "endpoint": "http://localhost:11434",
162
- "api": "ollama",
163
- "model": "qwen3:8b"
164
- }
165
+ "approvalTtlSeconds": 300
165
166
  }
166
167
  }
167
168
  }
@@ -170,6 +171,8 @@ openclaw plugins install --link .
170
171
  }
171
172
  ```
172
173
 
174
+ **Identity 凭据**:省略 `accessKeyId`/`secretAccessKey` 时,使用环境变量(`VOLCENGINE_ACCESS_KEY`、`VOLCENGINE_SECRET_KEY`)或凭据文件(`VOLCENGINE_CREDENTIALS_FILE` 或 `/var/run/secrets/iam/credential`)。
175
+
173
176
  ### identity 配置(必填与可选)
174
177
 
175
178
  | 参数 | 类型 | 必填 | 含义 |
@@ -187,6 +190,8 @@ openclaw plugins install --link .
187
190
 
188
191
  \* AK/SK 至少通过 `accessKeyId`+`secretAccessKey`、环境变量或 `credentialsFile` 之一提供。
189
192
 
193
+ **环境变量**:`VOLCENGINE_ACCESS_KEY`、`VOLCENGINE_SECRET_KEY`、`VOLCENGINE_SESSION_TOKEN`、`VOLCENGINE_CREDENTIALS_FILE`、`RUNTIME_IAM_ROLE_TRN`(从文件加载时用于 AssumeRole)。
194
+
190
195
  ### userpool 配置(OIDC 登录)
191
196
 
192
197
  **Explicit 模式**(必填):`discoveryUrl`、`clientId`、`clientSecret`、`callbackUrl`、`scope`
@@ -195,15 +200,19 @@ openclaw plugins install --link .
195
200
 
196
201
  OAuth2 credential fetch 使用控制台配置的 redirect URL 和 scopes。可通过 `/identity fetch <provider> --redirectUrl` 和 `--scopes` 覆盖。
197
202
 
198
- ### authz 配置(可选,默认关闭)
203
+ ### authz 配置(可选,各开关独立)
199
204
 
200
205
  | 参数 | 类型 | 含义 |
201
206
  |------|------|------|
202
- | `enable` | boolean | 是否启用 TIP + CheckPermission + 风险审批,默认 false |
203
- | `namespaceName` | string | CheckPermission 命名空间,默认 `default` |
204
- | `requireRiskApproval` | boolean | 高风险工具调用需用户审批,默认 true |
205
- | `enableLlmRiskCheck` | boolean | 规则返回 medium 时用 LLM 二次评估,默认 false |
206
- | `llmRiskCheck` | object | LLM 配置:`endpoint`、`api`、`model` |
207
+ | `toolCheck` | boolean | 对工具调用执行 CheckPermission(resource type tool)。默认 false |
208
+ | `skillReadCheck` | boolean | 对 SKILL.md 读取执行 CheckPermission(resource type skill)。默认 false。 |
209
+ | `requireRiskApproval` | boolean | 高风险工具调用需用户审批。默认 false。 |
210
+ | `namespaceName` | string | CheckPermission Cedar 命名空间。默认 `default`。 |
211
+ | `lowRiskBypass` | boolean | 内置低风险工具是否跳过 TIP+CheckPermission。默认 true。 |
212
+ | `lowRiskTools` | string[] | 额外视为低风险的工具名列表。 |
213
+ | `enableLlmRiskCheck` | boolean | 规则返回 medium 时用 LLM 二次评估。默认 false。 |
214
+ | `llmRiskCheck` | object | LLM 配置:`endpoint`、`api`、`model` 等。`enableLlmRiskCheck` 为 true 时必填。 |
215
+ | `approvalTtlSeconds` | number | 审批 TTL(秒)。默认 300。 |
207
216
 
208
217
  ### 工作负载与 TIP
209
218
 
@@ -232,6 +241,7 @@ TIP token 通过 `GetWorkloadAccessTokenForJWT` 获取。工作负载行为:
232
241
  - **identity_list_credentials** - 列出 provider 和凭据(分页)
233
242
  - **identity_list_tips** - 列出有效 TIP 令牌和绑定
234
243
  - **identity_config** - 显示插件配置(脱敏)
244
+ - **identity_config_suggest** - 生成 openclaw.json 配置片段(intent、lang)
235
245
  - **identity_fetch** - 添加凭据(provider、flow?、redirectUrl?、scopes?)
236
246
  - **identity_set_binding** - 绑定 provider → 环境变量
237
247
  - **identity_unset_binding** - 移除环境变量绑定
package/README.md CHANGED
@@ -102,30 +102,36 @@ The plugin typically needs three types of config:
102
102
 
103
103
  **A. Platform access (Identity)**: For TIP Token, credential fetch/hosting, and optional permission checks.
104
104
 
105
- - `endpoint`: Identity API URL (e.g. `https://id.cn-beijing.volcengineapi.com`)
106
- - `accessKeyId` / `secretAccessKey`: For Identity API access (or via env vars / credentials file)
107
- - `workloadPoolName` / `workloadName`: For issuing TIP Token
108
- - `audience` / `durationSeconds`: Optional, token audience and validity
105
+ - `endpoint`: Identity API URL (e.g. `https://id.cn-beijing.volcengineapi.com`). Default when omitted.
106
+ - `accessKeyId` / `secretAccessKey`: For Identity API access. **Optional** when using env vars or credential file (see below).
107
+ - `workloadPoolName` / `workloadName`: For issuing TIP Token. Defaults: `default`, `openclaw-agent`.
108
+ - `audience` / `durationSeconds`: Optional, token audience and validity.
109
+ - `credentialsFile`: Path to credential JSON. Default: `VOLCENGINE_CREDENTIALS_FILE` env or `/var/run/secrets/iam/credential`.
110
+ - `roleTrn`: Role TRN for STS AssumeRole. When set, workload name is omitted; backend uses roleName.
111
+ - `sessionToken`: STS session token (or use `VOLCENGINE_SESSION_TOKEN` env).
112
+
113
+ **Credential resolution order** (AK/SK): 1) Explicit config → 2) Env vars (`VOLCENGINE_ACCESS_KEY`, `VOLCENGINE_SECRET_KEY`, `VOLCENGINE_SESSION_TOKEN`) → 3) Credential file (`credentialsFile` config, or `VOLCENGINE_CREDENTIALS_FILE` env, or `/var/run/secrets/iam/credential`). Credential file format (VeFaaS): `access_key_id`, `secret_access_key`, `session_token` (optional), `role_trn` (optional for AssumeRole). `RUNTIME_IAM_ROLE_TRN` env can supply role TRN when loading from file.
109
114
 
110
115
  **B. User login (UserPool / OIDC)**: For `/identity login` and session setup.
111
116
 
112
117
  - `discoveryUrl` (or `userPoolName` + `clientName` for dynamic resolution)
113
118
  - `clientId` / `clientSecret` (auto-resolved in dynamic mode)
114
- - `callbackUrl`: Public callback URL for OpenClaw gateway, e.g. `http://127.0.0.1:18789/identity/oauth/callback"`
119
+ - `callbackUrl`: Public callback URL for OpenClaw gateway, e.g. `http://127.0.0.1:18789/identity/oauth/callback`
115
120
  - `scope`: Typically `openid profile email`
116
121
 
117
- **C. Tool call AuthZ and risk approval (optional)**: For TIP + CheckPermission + risk evaluation and user approval in `before_tool_call`.
122
+ **C. Tool call AuthZ and risk approval (optional)**: For TIP + CheckPermission + risk evaluation and user approval in `before_tool_call`. Each flag is independent; no single "enable" switch.
118
123
 
119
- - `enable`: Enable AuthZ (TIP, CheckPermission, risk approval), default false
120
- - `namespaceName`: CheckPermission Cedar policy namespace, default `default`
121
- - `lowRiskBypass`: Skip TIP+CheckPermission for built-in low-risk tools, default true
122
- - `lowRiskTools`: Extra tool names treated as low-risk
123
- - `requireRiskApproval`: Require user approval for high-risk tool calls, default true
124
- - `enableLlmRiskCheck`: Use LLM to re-evaluate when rules return medium, default false
125
- - `llmRiskCheck`: LLM config (`endpoint`, `api`, `model`, `apiKey`, `timeoutMs`, `cacheTtlMs`). Required when `enableLlmRiskCheck` is true
126
- - `approvalTtlSeconds`: Approval link/command TTL (seconds), default 300
124
+ - `toolCheck`: Run CheckPermission for tools (resource type tool). Default false.
125
+ - `skillReadCheck`: Run CheckPermission for read of SKILL.md (resource type skill). Parses available_skills from system prompt. Default false.
126
+ - `requireRiskApproval`: Require user approval for high-risk tool calls. Default false.
127
+ - `namespaceName`: CheckPermission Cedar policy namespace. Default `default`.
128
+ - `lowRiskBypass`: Skip TIP+CheckPermission for built-in low-risk tools. Default true.
129
+ - `lowRiskTools`: Extra tool names treated as low-risk.
130
+ - `enableLlmRiskCheck`: Use LLM to re-evaluate when rules return medium. Default false.
131
+ - `llmRiskCheck`: LLM config (`endpoint`, `api`, `model`, `apiKey`, `timeoutMs`, `cacheTtlMs`). Required when `enableLlmRiskCheck` is true.
132
+ - `approvalTtlSeconds`: Approval link/command TTL (seconds). Default 300.
127
133
 
128
- **Expected outcome**: After config, the plugin can initiate login and obtain TIP Token. With AuthZ enabled, high-risk tool calls require user approval via `/identity approve <approval_id>` before execution.
134
+ **Expected outcome**: After config, the plugin can initiate login and obtain TIP Token. With AuthZ flags enabled, tool/skill permission checks and high-risk approvals apply; use `/identity approve <approval_id>` to approve blocked calls.
129
135
 
130
136
  ---
131
137
 
@@ -139,12 +145,8 @@ Add to `openclaw.json` under `plugins.entries.agent-identity.config`:
139
145
  "config": {
140
146
  "identity": {
141
147
  "endpoint": "https://id.cn-beijing.volcengineapi.com",
142
- "accessKeyId": "<your-ak>",
143
- "secretAccessKey": "<your-sk>",
144
148
  "workloadPoolName": "default",
145
- "workloadName": "openclaw-agent",
146
- "audience": ["asi-gateway"],
147
- "durationSeconds": 3600
149
+ "workloadName": "openclaw-agent"
148
150
  },
149
151
  "userpool": {
150
152
  "discoveryUrl": "https://userpool-xxx.userpool.auth.id.cn-beijing.volces.com",
@@ -154,14 +156,13 @@ Add to `openclaw.json` under `plugins.entries.agent-identity.config`:
154
156
  "scope": "openid profile email"
155
157
  },
156
158
  "authz": {
157
- "enable": false,
159
+ "toolCheck": false,
160
+ "skillReadCheck": false,
161
+ "requireRiskApproval": false,
158
162
  "namespaceName": "default",
163
+ "lowRiskBypass": true,
159
164
  "enableLlmRiskCheck": false,
160
- "llmRiskCheck": {
161
- "endpoint": "http://localhost:11434",
162
- "api": "ollama",
163
- "model": "qwen3:8b"
164
- }
165
+ "approvalTtlSeconds": 300
165
166
  }
166
167
  }
167
168
  }
@@ -170,6 +171,8 @@ Add to `openclaw.json` under `plugins.entries.agent-identity.config`:
170
171
  }
171
172
  ```
172
173
 
174
+ **Identity credentials**: Omit `accessKeyId`/`secretAccessKey` to use env vars (`VOLCENGINE_ACCESS_KEY`, `VOLCENGINE_SECRET_KEY`) or credential file (`VOLCENGINE_CREDENTIALS_FILE` or `/var/run/secrets/iam/credential`).
175
+
173
176
  ### identity config (required vs optional)
174
177
 
175
178
  | Param | Type | Required | Description |
@@ -187,6 +190,8 @@ Add to `openclaw.json` under `plugins.entries.agent-identity.config`:
187
190
 
188
191
  \* AK/SK must be provided via `accessKeyId`+`secretAccessKey`, environment variables, or `credentialsFile`.
189
192
 
193
+ **Environment variables**: `VOLCENGINE_ACCESS_KEY`, `VOLCENGINE_SECRET_KEY`, `VOLCENGINE_SESSION_TOKEN`, `VOLCENGINE_CREDENTIALS_FILE`, `RUNTIME_IAM_ROLE_TRN` (for AssumeRole when loading from file).
194
+
190
195
  ### userpool config (OIDC login)
191
196
 
192
197
  **Explicit mode** (required): `discoveryUrl`, `clientId`, `clientSecret`, `callbackUrl`, `scope`
@@ -195,15 +200,19 @@ Add to `openclaw.json` under `plugins.entries.agent-identity.config`:
195
200
 
196
201
  OAuth2 credential fetch uses control-plane redirect URL and scopes. Override via `/identity fetch <provider> --redirectUrl` and `--scopes`.
197
202
 
198
- ### authz config (optional, disabled by default)
203
+ ### authz config (optional, each flag independent)
199
204
 
200
205
  | Param | Type | Description |
201
206
  |-------|------|-------------|
202
- | `enable` | boolean | Enable TIP + CheckPermission + risk approval, default false |
203
- | `namespaceName` | string | CheckPermission namespace, default `default` |
204
- | `requireRiskApproval` | boolean | Require user approval for high-risk tools, default true |
205
- | `enableLlmRiskCheck` | boolean | Re-evaluate with LLM when rules return medium, default false |
206
- | `llmRiskCheck` | object | LLM config: `endpoint`, `api`, `model`, etc. |
207
+ | `toolCheck` | boolean | Run CheckPermission for tools (resource type tool). Default false. |
208
+ | `skillReadCheck` | boolean | Run CheckPermission for read of SKILL.md (resource type skill). Default false. |
209
+ | `requireRiskApproval` | boolean | Require user approval for high-risk tools. Default false. |
210
+ | `namespaceName` | string | CheckPermission Cedar namespace. Default `default`. |
211
+ | `lowRiskBypass` | boolean | Skip TIP+CheckPermission for built-in low-risk tools. Default true. |
212
+ | `lowRiskTools` | string[] | Extra tool names treated as low-risk. |
213
+ | `enableLlmRiskCheck` | boolean | Re-evaluate with LLM when rules return medium. Default false. |
214
+ | `llmRiskCheck` | object | LLM config: `endpoint`, `api`, `model`, etc. Required when `enableLlmRiskCheck` is true. |
215
+ | `approvalTtlSeconds` | number | Approval TTL (seconds). Default 300. |
207
216
 
208
217
  ### Workload and TIP
209
218
 
@@ -232,6 +241,7 @@ Follow-up messages (login success, credential fetch done) are not delivered when
232
241
  - **identity_list_credentials** - List providers and credentials (paginated)
233
242
  - **identity_list_tips** - List valid TIP tokens and bindings
234
243
  - **identity_config** - Show plugin config (redacted)
244
+ - **identity_config_suggest** - Generate config snippets for openclaw.json (intent, lang)
235
245
  - **identity_fetch** - Add credential (provider, flow?, redirectUrl?, scopes?)
236
246
  - **identity_set_binding** - Bind provider → env var
237
247
  - **identity_unset_binding** - Remove env binding
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AA8D7D,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,GAAG,EAAE,iBAAiB,QAqWtD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAgBA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AA8D7D,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,GAAG,EAAE,iBAAiB,QAuWtD"}
package/dist/index.js CHANGED
@@ -1,13 +1,17 @@
1
- /**
2
- * Agent Identity Plugin
1
+ /*
2
+ * Copyright (c) 2026 Beijing Volcano Engine Technology Co., Ltd. and/or its affiliates.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
3
9
  *
4
- * - UserPool login via /identity login (OIDC URL returned directly, no HTTP start endpoint)
5
- * - Credential hosting: list-credentials, fetch <provider>, set <provider> <envVar>
6
- * - TIP token via AgentIdentity GetWorkloadAccessTokenForJWT in before_agent_start
7
- * - TIP/session propagation: before_tool_call (sessions_send params.sessionKey), subagent_spawned (sessions_spawn)
8
- * - Optional AuthZ in before_tool_call
9
- * - HTTP callback: /identity/oauth/callback (OIDC login). Credential OAuth uses Identity-provided callback.
10
- * - Tools: identity_whoami, identity_logout
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
11
15
  */
12
16
  import { createIdentityCommand, createIdCommand } from "./src/commands/identity-commands.js";
13
17
  import { createBeforeAgentStartHandler } from "./src/hooks/before-agent-start.js";
@@ -218,6 +222,7 @@ export default function register(api) {
218
222
  if (dynamicOidcEnabled && getResolvedOidcConfig) {
219
223
  api.registerHttpRoute({
220
224
  path: "/identity/oauth/callback",
225
+ auth: "plugin",
221
226
  handler: createOIDCCallbackHandlerLazy({
222
227
  storeDir,
223
228
  getOidcConfig: getResolvedOidcConfig,
@@ -236,6 +241,7 @@ export default function register(api) {
236
241
  };
237
242
  api.registerHttpRoute({
238
243
  path: "/identity/oauth/callback",
244
+ auth: "plugin",
239
245
  handler: createOIDCCallbackHandler({
240
246
  storeDir,
241
247
  config: oidcConfig,
@@ -1 +1 @@
1
- {"version":3,"file":"identity-actions.d.ts","sourceRoot":"","sources":["../../../src/actions/identity-actions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EAAE,YAAY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,EACzB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE;IACN,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,SAAS,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,cAAc,CAAC,EAAE,wBAAwB,GAAG,IAAI,CAAC;IACjD,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB,GACA,OAAO,CAAC,WAAW,CAAC,CAsHtB;AAED,MAAM,MAAM,gBAAgB,GAAG;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEjF,wBAAsB,aAAa,CACjC,IAAI,EAAE,mBAAmB,EACzB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAC3C,OAAO,CAAC,gBAAgB,CAAC,CAkC3B;AAED,MAAM,MAAM,kBAAkB,GAAG;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnF,wBAAsB,eAAe,CACnC,IAAI,EAAE,mBAAmB,EACzB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,GAC3B,OAAO,CAAC,kBAAkB,CAAC,CAW7B"}
@@ -1,6 +1,17 @@
1
- /**
2
- * Shared identity actions: pure logic returning structured data.
3
- * Used by both commands (format to text) and tools (return jsonResult).
1
+ /*
2
+ * Copyright (c) 2026 Beijing Volcano Engine Technology Co., Ltd. and/or its affiliates.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
4
15
  */
5
16
  import { logDebug, logInfo, logWarn } from "../utils/logger.js";
6
17
  import { getOrRefreshTIPToken } from "../services/tip-with-refresh.js";
@@ -1 +1 @@
1
- {"version":3,"file":"identity-commands.d.ts","sourceRoot":"","sources":["../../../src/commands/identity-commands.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAUL,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACf,MAAM,gCAAgC,CAAC;AAWxC,YAAY,EAAE,oBAAoB,EAAE,SAAS,EAAE,CAAC;AAEhD,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,CAAC;AAioBvD,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,oBAAoB;;;;;mBA9e3C,oBAAoB,KAAG,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;EAufpE;AAED,0CAA0C;AAC1C,wBAAgB,eAAe,CAAC,IAAI,EAAE,oBAAoB;;;;;mBA1frC,oBAAoB,KAAG,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;EAmgBpE"}
1
+ {"version":3,"file":"identity-commands.d.ts","sourceRoot":"","sources":["../../../src/commands/identity-commands.ts"],"names":[],"mappings":"AAgBA;;;GAGG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAUL,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACf,MAAM,gCAAgC,CAAC;AAWxC,YAAY,EAAE,oBAAoB,EAAE,SAAS,EAAE,CAAC;AAEhD,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,CAAC;AAioBvD,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,oBAAoB;;;;;mBA9e3C,oBAAoB,KAAG,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;EAufpE;AAED,0CAA0C;AAC1C,wBAAgB,eAAe,CAAC,IAAI,EAAE,oBAAoB;;;;;mBA1frC,oBAAoB,KAAG,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;EAmgBpE"}
@@ -1,6 +1,17 @@
1
- /**
2
- * Unified /identity command: login, status, logout, list-credentials, fetch, set.
3
- * UserPool OIDC + credential hosting. Uses shared identity-actions for logic.
1
+ /*
2
+ * Copyright (c) 2026 Beijing Volcano Engine Technology Co., Ltd. and/or its affiliates.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
4
15
  */
5
16
  import { runStatus, runLogin, runLogout, runListCredentials, runListTips, runConfig, runFetch, runSetBinding, runUnsetBinding, } from "../actions/identity-actions.js";
6
17
  import { deriveSessionKey, deriveDeliveryTargetFromContext, } from "../utils/derive-session-key.js";
@@ -1 +1 @@
1
- {"version":3,"file":"before-agent-start.d.ts","sourceRoot":"","sources":["../../../src/hooks/before-agent-start.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAO3E,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,eAAe,CAAC;IACjC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,uBAAuB,CAAC,EAAE,MAAM,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAC9D,MAAM,EAAE;QAAE,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;QAAC,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;KAAE,CAAC;CACxE,CAAC;AAEF,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,oBAAoB,IAcpE,QAAQ;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAA;CAAE,EAChD,KAAK;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,KAC7C,OAAO,CAAC;IAAE,cAAc,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAAC,CA2B/C"}
1
+ {"version":3,"file":"before-agent-start.d.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