@skhema/cli 0.6.0 → 0.6.1
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/LICENSE +21 -0
- package/README.md +7 -0
- package/dist/lib/auth/api-key-admin.d.ts.map +1 -1
- package/dist/lib/auth/api-key-admin.js +4 -5
- package/dist/lib/config.js +4 -4
- package/dist/lib/contribute/api.d.ts +2 -2
- package/dist/lib/contribute/api.d.ts.map +1 -1
- package/dist/lib/contribute/api.js +3 -3
- package/dist/lib/contribute/types.d.ts.map +1 -1
- package/dist/lib/docs/reference-generator.js +3 -3
- package/package.json +11 -23
- package/skills/skhema-operate/references/author-elements.md +3 -2
- package/skills/skhema-pressure-test/references/pre-mortem.md +12 -7
- package/skills/.manifest.json +0 -13
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Skhema
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
> [!IMPORTANT]
|
|
2
|
+
> **Generated mirror of a private source repo — do not open PRs here.**
|
|
3
|
+
> This repository is an automatically generated, read-only mirror of a package
|
|
4
|
+
> built from Skhema's private monorepo. Pull requests are disabled and any change
|
|
5
|
+
> pushed here is overwritten on the next release. Questions and bug reports:
|
|
6
|
+
> support@skhema.com. Security: see [SECURITY.md](./SECURITY.md).
|
|
7
|
+
|
|
1
8
|
# @skhema/cli
|
|
2
9
|
|
|
3
10
|
The Skhema command-line interface (`skhema`). Authenticate as a human or an
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-key-admin.d.ts","sourceRoot":"","sources":["../../../src/lib/auth/api-key-admin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"api-key-admin.d.ts","sourceRoot":"","sources":["../../../src/lib/auth/api-key-admin.ts"],"names":[],"mappings":"AAYA,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,OAAO,GAAG,YAAY,CAAA;AAC9D,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,MAAM,CAAA;AAExC,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,cAAc,EAAE,MAAM,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,UAAU,EAAE,gBAAgB,CAAA;IAC5B,KAAK,EAAE,WAAW,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;CACzB;AAED,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD,4DAA4D;IAC5D,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,aAAa,EAAE,CAAA;IACrB,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CACtC;AAsDD,wBAAsB,YAAY,CAChC,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE;IACL,cAAc,EAAE,MAAM,CAAA;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,gBAAgB,CAAA;IAC5B,KAAK,EAAE,WAAW,CAAA;CACnB,GACA,OAAO,CAAC,aAAa,CAAC,CAKxB;AAED,wBAAsB,WAAW,CAC/B,WAAW,EAAE,MAAM,EACnB,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,iBAAiB,CAAC,CAK5B;AAED,wBAAsB,YAAY,CAChC,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAK9C"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { SkhemaApiError } from '@skhema/sdk';
|
|
2
2
|
import { SUPABASE_PUBLISHABLE_KEY, SUPABASE_URL } from '../config.js';
|
|
3
3
|
/**
|
|
4
|
-
* Client for
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* enforced server-side and unchanged. This is NOT the public gateway.
|
|
4
|
+
* Client for creating, listing, and revoking the caller's Skhema API keys.
|
|
5
|
+
* Authenticates with the user's OAuth bearer; key-issuance authorization
|
|
6
|
+
* (org role, plan limits, one-time key display, security notifications) is
|
|
7
|
+
* enforced by the server, not the CLI.
|
|
9
8
|
*/
|
|
10
9
|
const API_KEY_MANAGE_URL = `${SUPABASE_URL}/functions/v1/api-key-manage`;
|
|
11
10
|
async function callApiKeyManage(accessToken, body) {
|
package/dist/lib/config.js
CHANGED
|
@@ -25,10 +25,10 @@ export const API_KEY_ENV_VAR = 'SKHEMA_API_KEY';
|
|
|
25
25
|
// never injects a credential here.
|
|
26
26
|
// Override via env for staging/preview environments.
|
|
27
27
|
export const MCP_SERVER_URL = process.env.SKHEMA_MCP_URL ?? 'https://mcp.skhema.com/mcp';
|
|
28
|
-
//
|
|
29
|
-
//
|
|
30
|
-
//
|
|
31
|
-
//
|
|
28
|
+
// Backend project configuration for the CLI's authenticated data calls.
|
|
29
|
+
// The publishable key is safe to embed in client-side code — it carries no
|
|
30
|
+
// privileged access and relies on server-side authorization. Override via env
|
|
31
|
+
// for staging/preview environments.
|
|
32
32
|
export const SUPABASE_URL = process.env.SKHEMA_SUPABASE_URL ?? 'https://uiybgpcjjrdqmdbarqlx.supabase.co';
|
|
33
33
|
export const SUPABASE_PUBLISHABLE_KEY = process.env.SKHEMA_SUPABASE_PUBLISHABLE_KEY ??
|
|
34
34
|
'sb_publishable_G9uXii5AYDLK6vUpyaqy3A_-NmdwQF1';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** Backend actions the contributor commands invoke. */
|
|
2
2
|
export type ContributeEdgeFunction = 'contributor-manage' | 'embed-manage' | 'contributor-payout';
|
|
3
3
|
/**
|
|
4
|
-
* POST a JSON action to
|
|
4
|
+
* POST a JSON action to the contributor backend with the stored OAuth session.
|
|
5
5
|
* Shared by every authenticated `contribute` subcommand so the auth headers,
|
|
6
6
|
* base URL, and error mapping live in exactly one place.
|
|
7
7
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/lib/contribute/api.ts"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/lib/contribute/api.ts"],"names":[],"mappings":"AAGA,uDAAuD;AACvD,MAAM,MAAM,sBAAsB,GAC9B,oBAAoB,GACpB,cAAc,GACd,oBAAoB,CAAA;AAExB;;;;;;;;;GASG;AACH,wBAAsB,sBAAsB,CAAC,CAAC,EAC5C,EAAE,EAAE,sBAAsB,EAC1B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,OAAO,CAAC,CAAC,CAAC,CA+BZ"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getStoredCredentials } from '../auth/token-store.js';
|
|
2
2
|
import { SUPABASE_PUBLISHABLE_KEY, SUPABASE_URL } from '../config.js';
|
|
3
3
|
/**
|
|
4
|
-
* POST a JSON action to
|
|
4
|
+
* POST a JSON action to the contributor backend with the stored OAuth session.
|
|
5
5
|
* Shared by every authenticated `contribute` subcommand so the auth headers,
|
|
6
6
|
* base URL, and error mapping live in exactly one place.
|
|
7
7
|
*
|
|
@@ -25,8 +25,8 @@ export async function postContributeFunction(fn, body) {
|
|
|
25
25
|
body: JSON.stringify(body),
|
|
26
26
|
});
|
|
27
27
|
if (!response.ok) {
|
|
28
|
-
//
|
|
29
|
-
//
|
|
28
|
+
// The backend returns `{ message }`, while some handlers return
|
|
29
|
+
// `{ error }` — accept either before the generic fallback.
|
|
30
30
|
const detail = (await response.json().catch(() => ({})));
|
|
31
31
|
throw new Error(detail.error ||
|
|
32
32
|
detail.message ||
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/contribute/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,OA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CAAA;CACF;AAED,gFAAgF;AAChF,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE;QACP,YAAY,EAAE,MAAM,CAAA;QACpB,WAAW,EAAE,MAAM,CAAA;QACnB,YAAY,EAAE,MAAM,CAAA;QACpB,kBAAkB,EAAE,MAAM,CAAA;QAC1B,YAAY,EAAE,MAAM,CAAA;QACpB,YAAY,EAAE,MAAM,CAAA;QACpB,OAAO,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,KAAK,EAAE,KAAK,CAAC;QACX,OAAO,EAAE,MAAM,CAAA;QACf,SAAS,EAAE,MAAM,CAAA;QACjB,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,MAAM,CAAA;KACf,CAAC,CAAA;CACH;AAED,wCAAwC;AACxC,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,MAAM,CAAA;IACtB,YAAY,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,YAAY,EAAE,CAAA;CACxB"}
|
|
@@ -7,8 +7,8 @@ import { ExitCode } from '../api/run-command.js';
|
|
|
7
7
|
* options, or exit codes change — never on a plain version bump.
|
|
8
8
|
*
|
|
9
9
|
* The committed copy lives at docs/cli-reference.mdx and is drift-tested
|
|
10
|
-
* (src/__tests__/cli-reference-drift.test.ts).
|
|
11
|
-
*
|
|
10
|
+
* (src/__tests__/cli-reference-drift.test.ts). A copy is also published to the
|
|
11
|
+
* public docs site — regenerate and sync both when this file changes.
|
|
12
12
|
*/
|
|
13
13
|
/** Human meanings for the stable exit-code contract (run-command.ts). */
|
|
14
14
|
const EXIT_CODE_MEANINGS = {
|
|
@@ -137,7 +137,7 @@ export function generateCliReference() {
|
|
|
137
137
|
lines.push('---');
|
|
138
138
|
lines.push('');
|
|
139
139
|
lines.push('{/* AUTO-GENERATED from the @skhema/cli command tree — do not edit by hand.');
|
|
140
|
-
lines.push(' Regenerate with `npm run generate:cli-reference
|
|
140
|
+
lines.push(' Regenerate with `npm run generate:cli-reference`. */}');
|
|
141
141
|
lines.push('');
|
|
142
142
|
lines.push('This page is generated from the CLI itself, so it always matches the installed command surface. For a guided tour, start with [Using the CLI](/docs/guides/using-the-cli).');
|
|
143
143
|
lines.push('');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skhema/cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Skhema CLI - Authentication and AI skills management for agent platforms",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,29 +20,12 @@
|
|
|
20
20
|
"skills"
|
|
21
21
|
],
|
|
22
22
|
"scripts": {
|
|
23
|
-
"dev": "tsc --watch",
|
|
24
23
|
"build": "tsc",
|
|
25
|
-
"
|
|
26
|
-
"lint:fix": "eslint . --fix",
|
|
27
|
-
"format": "prettier --write .",
|
|
28
|
-
"format:check": "prettier --check .",
|
|
29
|
-
"typecheck": "tsc --noEmit",
|
|
30
|
-
"test": "vitest run",
|
|
31
|
-
"test:watch": "vitest",
|
|
32
|
-
"clean": "rm -rf dist node_modules skills",
|
|
33
|
-
"clean:dist": "rm -rf dist",
|
|
34
|
-
"sync-skills": "tsx scripts/sync-skills.ts",
|
|
35
|
-
"prebuild": "npm run clean:dist && npm run sync-skills",
|
|
36
|
-
"prepack": "npm run sync-skills",
|
|
37
|
-
"check": "npm run typecheck && npm run lint && npm run format:check",
|
|
38
|
-
"check:fix": "npm run format && npm run lint:fix",
|
|
39
|
-
"prepublishOnly": "npm run build",
|
|
40
|
-
"postinstall": "node dist/postinstall.js || true",
|
|
41
|
-
"generate:cli-reference": "tsx scripts/generate-cli-reference.ts"
|
|
24
|
+
"prebuild": "rm -rf dist"
|
|
42
25
|
},
|
|
43
26
|
"dependencies": {
|
|
44
27
|
"@skhema/agent-sdk": "0.1.4",
|
|
45
|
-
"@skhema/method": "0.4.
|
|
28
|
+
"@skhema/method": "0.4.1",
|
|
46
29
|
"@skhema/sdk": "0.2.4",
|
|
47
30
|
"chalk": "^5.3.0",
|
|
48
31
|
"commander": "^12.0.0",
|
|
@@ -50,8 +33,6 @@
|
|
|
50
33
|
},
|
|
51
34
|
"devDependencies": {
|
|
52
35
|
"@mdx-js/mdx": "3.1.1",
|
|
53
|
-
"@skhema/linter": "2.3.0",
|
|
54
|
-
"@skhema/prettier-config": "1.0.0",
|
|
55
36
|
"@types/node": "^22.0.0",
|
|
56
37
|
"eslint": "^9.0.0",
|
|
57
38
|
"prettier": "^3.0.0",
|
|
@@ -67,5 +48,12 @@
|
|
|
67
48
|
"publishConfig": {
|
|
68
49
|
"access": "public"
|
|
69
50
|
},
|
|
70
|
-
"homepage": "https://skhema.com/docs/
|
|
51
|
+
"homepage": "https://skhema.com/docs/cli",
|
|
52
|
+
"repository": {
|
|
53
|
+
"type": "git",
|
|
54
|
+
"url": "git+https://github.com/skhema/cli.git"
|
|
55
|
+
},
|
|
56
|
+
"bugs": {
|
|
57
|
+
"url": "https://github.com/skhema/cli/issues"
|
|
58
|
+
}
|
|
71
59
|
}
|
|
@@ -38,8 +38,9 @@ to *write* the element — indicative for a judgment, imperative for a command,
|
|
|
38
38
|
a noun phrase for a thing. It is a check on the sentence. **Placement** tells
|
|
39
39
|
you *where the element is allowed to live*, and the platform enforces a strict
|
|
40
40
|
type→component allow-list that does NOT follow mood. Put a type in the wrong
|
|
41
|
-
component and `element create` rejects it.
|
|
42
|
-
|
|
41
|
+
component and `element create` rejects it. Discover it locally (no network)
|
|
42
|
+
with `skhema element types` (add `--json` for machine-readable output); the
|
|
43
|
+
allow-list is:
|
|
43
44
|
|
|
44
45
|
| Component | Element types it accepts |
|
|
45
46
|
|---|---|
|
|
@@ -83,13 +83,18 @@ thing we've decided is true" and "a thing we've decided to do about a danger" is
|
|
|
83
83
|
the whole discipline — an assumption you never test and a risk you never watch
|
|
84
84
|
are the same landmine wearing two hats.
|
|
85
85
|
|
|
86
|
-
**Encoding this in Skhema.** There is no `risk` element type in the taxonomy
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
86
|
+
**Encoding this in Skhema.** There is no `risk` element type in the taxonomy —
|
|
87
|
+
a deliberate decision (2026-07-20), not a gap. Encode both halves with the
|
|
88
|
+
types that exist. A belief is the bet stated as a claim: an
|
|
89
|
+
`assumption_hypothesis`. A risk is *also* an `assumption_hypothesis` — the bet
|
|
90
|
+
that the danger stays away — paired with a linked `experiment` or `action` that
|
|
91
|
+
carries the tripwire: the signal you'll watch and what you'll do when it fires.
|
|
92
|
+
The tripwire condition goes in the element's `reasoning` field. One refinement:
|
|
93
|
+
when the risk is really "this quantity must hold for the solution to stay
|
|
94
|
+
valid" — a threshold, a rate, a level — encode it as a `performance_variable`
|
|
95
|
+
(in Measures) instead; that is exactly what the type means, and it gives the
|
|
96
|
+
tripwire a measurable home. Don't reach for a `risk` type; it doesn't exist,
|
|
97
|
+
and won't unless a feature ever needs to query risks as first-class objects.
|
|
93
98
|
|
|
94
99
|
```
|
|
95
100
|
CAUSE 1 → ASSUMPTION: Sales team can sell upmarket.
|
package/skills/.manifest.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"syncedAt": "2026-07-09T17:15:20.908Z",
|
|
3
|
-
"source": "/Users/michaellovell/Desktop/GitHub/skhema-skills",
|
|
4
|
-
"sourceSha": "2a3abbb24f2fb2539608102eabc90de10fc9984b",
|
|
5
|
-
"skills": [
|
|
6
|
-
"skhema-frame",
|
|
7
|
-
"skhema-compose",
|
|
8
|
-
"skhema-calibrate",
|
|
9
|
-
"skhema-pressure-test",
|
|
10
|
-
"skhema-communicate",
|
|
11
|
-
"skhema-operate"
|
|
12
|
-
]
|
|
13
|
-
}
|