@skhema/cli 0.4.1 → 0.4.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../src/commands/workspace.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AA0BnC;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../src/commands/workspace.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AA0BnC;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA8JhE"}
|
|
@@ -53,8 +53,13 @@ export function registerWorkspaceCommands(program) {
|
|
|
53
53
|
.description('List workspaces')
|
|
54
54
|
.action(async () => {
|
|
55
55
|
await runCommand('workspace list', async () => {
|
|
56
|
-
const { client } = await resolveClient();
|
|
57
|
-
|
|
56
|
+
const { client, credential } = await resolveClient();
|
|
57
|
+
// The OAuth lane's user JWT carries no org claim; the org selected at
|
|
58
|
+
// consent (or via `skhema auth switch`) is stored locally — forward it.
|
|
59
|
+
// API-key lanes leave it undefined; the gateway injects the key's org.
|
|
60
|
+
const data = await client.workspaces.list({
|
|
61
|
+
organizationId: credential.organizationId,
|
|
62
|
+
});
|
|
58
63
|
const rows = coerceList(data, 'workspaces');
|
|
59
64
|
if (!getGlobalOptions().json) {
|
|
60
65
|
logHeader(`Workspaces (${rows.length})`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skhema/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Skhema CLI - Authentication and AI skills management for agent platforms",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"ora": "^8.0.0",
|
|
46
46
|
"@skhema/agent-sdk": "0.1.4",
|
|
47
47
|
"@skhema/method": "0.3.0",
|
|
48
|
-
"@skhema/sdk": "0.2.
|
|
48
|
+
"@skhema/sdk": "0.2.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@skhema/linter": "2.2.0",
|