@sokeai/cli 1.0.121 → 1.0.122
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/package.json +1 -1
- package/skills/ma-probe/README.md +10 -0
- package/skills/ma-probe/SKILL.md +14 -0
- package/skills/ma-probe/run.sh +11 -0
package/package.json
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Soke MA credential probe package
|
|
2
|
+
|
|
3
|
+
This package is for a controlled MA session test. It contains Linux `soke-ma` binaries and one read-only Skill. It is not the full business Skill release.
|
|
4
|
+
|
|
5
|
+
1. Upload the ZIP as a workspace Skill and bind it to the test Agent. Enable the Agent's bash tool, save a new Agent version, then create a new Session bound to one test Vault ID.
|
|
6
|
+
2. Configure the Vault HTTP credential target for `https://opendev.soke.cn` and allow GET. The preproduction OpenDev instance must have `QWENWORK_MA_ENABLED=true` and an exact `GET /skills/exam/list` entry in `QWENWORK_MA_ALLOWED_ROUTES_JSON` after that route's permission review.
|
|
7
|
+
3. Ask the Agent to use `soke-ma-probe` to query one exam. Repeat in a separate new Session bound to the second user's Vault. Compare only the authenticated user and returned business scope in server-side redacted audit; do not expose either JWT.
|
|
8
|
+
4. Repeat with a Session without a Vault. It must fail. Do not use an existing Session created before Vault binding.
|
|
9
|
+
|
|
10
|
+
The CLI binary is fixed to the OpenDev HTTPS origin and does not read `~/.soke-cli` or set an Authorization header. It sends `X-Soke-Client: ma` so a missing Vault injection fails before any legacy debug identity fallback. A successful request in this package proves only the listed probe path and GET method; other methods and business commands require separate verification.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: soke-ma-probe
|
|
3
|
+
description: Run a read-only Soke business request inside a QwenWork Managed Agent session to verify the session Vault HTTP credential.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Soke MA credential probe
|
|
7
|
+
|
|
8
|
+
Use this skill only when the user asks to check the current MA session's Soke business identity. Run the command from this skill's directory:
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
bash ./run.sh exam +list-exams --page 1 --page-size 1 --format json
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
The command makes one GET request to `https://opendev.soke.cn/skills/exam/list`. The CLI does not set `Authorization`; the MA HTTP connection credential must inject the current session Vault's Bearer value. Report the HTTP or business error and request ID if present. Never print request headers, the JWT, Vault contents, or signed URLs. Do not run write commands from this test package.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
set -eu
|
|
3
|
+
|
|
4
|
+
skill_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
|
5
|
+
case "$(uname -s)/$(uname -m)" in
|
|
6
|
+
Linux/x86_64) binary="$skill_dir/bin/linux-amd64/soke-ma" ;;
|
|
7
|
+
Linux/aarch64|Linux/arm64) binary="$skill_dir/bin/linux-arm64/soke-ma" ;;
|
|
8
|
+
*) printf '%s\n' 'Unsupported MA sandbox platform' >&2; exit 1 ;;
|
|
9
|
+
esac
|
|
10
|
+
|
|
11
|
+
exec "$binary" "$@"
|