@lark-codem/lark-cli 0.1.1-test.20261024.1 → 0.1.1-test.20261024.3
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/README.md +6 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -23,3 +23,9 @@ Task-mode error hints follow the same identity boundary. Missing Tag user scopes
|
|
|
23
23
|
Native Linux fixture and installed-tarball tests verify protocol and packaging. Builds use CGO_ENABLED=0, -trimpath and -buildvcs=false; native manifests identify the exact executable bytes. Cross-compilation does not substitute for macOS and Windows native execution checks.
|
|
24
24
|
|
|
25
25
|
On local installations the dependency lives inside the selected CodeM version under `~/.codem/runtime/versions/`; sandbox images use their private runtime directory. Installation and update never uninstall or relink a user-owned global `lark-cli`. Existing published versions remain immutable; the no-bin contract applies when a new version is released.
|
|
26
|
+
|
|
27
|
+
Tag task authorization is checked during the existing `/codem/lark-cli/context` handshake, before a business request is constructed. A missing server grant returns a public `_codem_authorization` object (kind `server_user_authorization`, status `authorization_required`). The CLI emits that object to stdout and exits nonzero; the host displays its opaque CodeM short link and stops the turn. No token, personal profile or callback URL is read or persisted by this path. Malformed invitations, dependency failures and generic 403 responses never become authorization links.
|
|
28
|
+
|
|
29
|
+
After the initiator confirms completion, run exactly `lark-cli whoami` in the same task. For Tag this checks Base's keeper directly and reports identity `user` with `_codem_authorization.status=ready`, without an extra user-info API or replaying the blocked operation. If the grant is still absent, the new check may create a fresh invitation; display the current link and stop rather than polling. AI-node identity and capability policy are unchanged. Deploy the context authorization support in Base !2126 first, then release this adapter and the paired Bridge !709 instructions. Existing package versions remain immutable.
|
|
30
|
+
|
|
31
|
+
When an existing Tag UAT lacks a business scope, Base may return its own HTTP 403 authorization response marked `X-Codem-Authorization: server_user_authorization`. The transport adapter projects only validated public intent fields and stops with a nonzero exit; it does not retry the business request or borrow local credentials. Later requests in the same invocation are blocked, including batch shortcuts that normally return partial results as success; partial output is preserved with an explicit authorization error and nonzero exit. Ordinary responses, attachments and streams are not buffered or interpreted. Base owns the shared scope-upgrade allowlist, initiating-user binding and callback scope validation. Missing application permissions or resource ACL failures do not enter this flow. Deploy the Base response support before releasing this adapter; previously published packages are unchanged.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lark-codem/lark-cli",
|
|
3
|
-
"version": "0.1.1-test.20261024.
|
|
3
|
+
"version": "0.1.1-test.20261024.3",
|
|
4
4
|
"description": "Official Lark CLI with CodeM personal and task credential boundaries.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"test:package": "node scripts/test-package.mjs"
|
|
21
21
|
},
|
|
22
22
|
"optionalDependencies": {
|
|
23
|
-
"@lark-codem/lark-cli-darwin-x64": "0.1.1-test.20261024.
|
|
24
|
-
"@lark-codem/lark-cli-darwin-arm64": "0.1.1-test.20261024.
|
|
25
|
-
"@lark-codem/lark-cli-linux-x64": "0.1.1-test.20261024.
|
|
26
|
-
"@lark-codem/lark-cli-linux-arm64": "0.1.1-test.20261024.
|
|
27
|
-
"@lark-codem/lark-cli-win32-x64": "0.1.1-test.20261024.
|
|
28
|
-
"@lark-codem/lark-cli-win32-arm64": "0.1.1-test.20261024.
|
|
23
|
+
"@lark-codem/lark-cli-darwin-x64": "0.1.1-test.20261024.3",
|
|
24
|
+
"@lark-codem/lark-cli-darwin-arm64": "0.1.1-test.20261024.3",
|
|
25
|
+
"@lark-codem/lark-cli-linux-x64": "0.1.1-test.20261024.3",
|
|
26
|
+
"@lark-codem/lark-cli-linux-arm64": "0.1.1-test.20261024.3",
|
|
27
|
+
"@lark-codem/lark-cli-win32-x64": "0.1.1-test.20261024.3",
|
|
28
|
+
"@lark-codem/lark-cli-win32-arm64": "0.1.1-test.20261024.3"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
31
31
|
"node": ">=18"
|