@kindgi/cli 0.1.1 → 0.1.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 (35) hide show
  1. package/README.md +16 -7
  2. package/dist/build/defaults.d.ts +3 -3
  3. package/dist/build/defaults.d.ts.map +1 -1
  4. package/dist/build/defaults.js +6 -9
  5. package/dist/build/defaults.js.map +1 -1
  6. package/dist/build/python-image.d.ts +2 -0
  7. package/dist/build/python-image.d.ts.map +1 -1
  8. package/dist/build/python-image.js +12 -1
  9. package/dist/build/python-image.js.map +1 -1
  10. package/dist/build/runners.d.ts +6 -5
  11. package/dist/build/runners.d.ts.map +1 -1
  12. package/dist/commands/build.d.ts.map +1 -1
  13. package/dist/commands/build.js +43 -42
  14. package/dist/commands/build.js.map +1 -1
  15. package/dist/commands/key.d.ts.map +1 -1
  16. package/dist/commands/key.js +143 -11
  17. package/dist/commands/key.js.map +1 -1
  18. package/dist/dev/runtime-image.d.ts +1 -1
  19. package/dist/dev/runtime-image.js +1 -1
  20. package/dist/sdk-skills/kindgi-authoring-agents/SKILL.md +1 -1
  21. package/dist/sdk-skills/kindgi-authoring-flows/SKILL.md +1 -1
  22. package/dist/sdk-skills/kindgi-authoring-guardrails/SKILL.md +9 -3
  23. package/dist/sdk-skills/kindgi-authoring-mcp-servers/SKILL.md +1 -1
  24. package/dist/sdk-skills/kindgi-authoring-providers/SKILL.md +1 -1
  25. package/dist/sdk-skills/kindgi-authoring-tools/SKILL.md +13 -2
  26. package/dist/sdk-skills/kindgi-framework-feedback/SKILL.md +1 -1
  27. package/dist/sdk-skills/kindgi-getting-started/SKILL.md +44 -2
  28. package/dist/sdk-skills/kindgi-python-authoring-agents/SKILL.md +1 -1
  29. package/dist/sdk-skills/kindgi-python-authoring-flows/SKILL.md +1 -1
  30. package/dist/sdk-skills/kindgi-python-authoring-guardrails/SKILL.md +1 -1
  31. package/dist/sdk-skills/kindgi-python-authoring-tools/SKILL.md +1 -1
  32. package/dist/sdk-skills/kindgi-python-getting-started/SKILL.md +34 -3
  33. package/dist/templates/minimal/package.json.tmpl +1 -1
  34. package/dist/templates/sample/package.json.tmpl +1 -1
  35. package/package.json +13 -12
@@ -14,8 +14,8 @@ description: >
14
14
  kindgi-python-authoring-agents; models by kindgi-authoring-providers.
15
15
  type: core
16
16
  library: "kindgi (Python)"
17
- version: "0.1.1"
18
- sdk_version: "0.1.1"
17
+ version: "0.1.3"
18
+ sdk_version: "0.1.2"
19
19
  pack_languages: [python]
20
20
  sources:
21
21
  - sdks/python/README.md
@@ -26,7 +26,7 @@ sources:
26
26
  # Getting started with Kindgi in Python
27
27
 
28
28
  > **Running `kindgi`:** a Python pack has no Node project, so the
29
- > `kindgi` CLI (a Node 22+ program) is the one on `PATH`. Python
29
+ > `kindgi` CLI (a Node 22.12+ program) is the one on `PATH`. Python
30
30
  > commands run in the pack's environment: `uv run …`.
31
31
 
32
32
  ## What a pack is
@@ -182,6 +182,37 @@ for event in client.runs.stream(str(run.id)):
182
182
  `AsyncKindgi` is the asyncio twin. `kindgi dev` prints the URL and the
183
183
  token; `.kindgirc.json` in the pack holds them for the CLI.
184
184
 
185
+ ## Your app and Kindgi's data
186
+
187
+ When the app keeps something a run did (a ticket a flow triaged, an answer
188
+ an agent gave), its own row stores the run's id, in a column such as
189
+ `kindgi_run_id` (`run = client.runs.start(flow=…, input=…, options={"wait": False})`,
190
+ then `run.id`). The app reads the rest through the API, server side, with
191
+ `Kindgi()` from `kindgi.client`:
192
+
193
+ - **Status, output, timing:** `client.runs.get(run_id)`
194
+ (`GET /v1/runs/{runId}`); status and timing only: `client.runs.progress(run_id)`.
195
+ - **The audit, step by step:** `client.runs.journal(run_id).data`
196
+ (`GET /v1/runs/{runId}/journal`).
197
+ - **Where an agent's answer came from:** `client.provenance.get(run_id)`
198
+ (`GET /v1/provenance/{runId}`). A flow run has none of its own: each agent
199
+ step's `step.completed` entry in the flow's journal names its turn's run
200
+ (`entry.payload["output"]["runId"]`).
201
+ - **When a run finished:** the `run.finished` webhook (the run's id and
202
+ outcome, no output; then `runs.get`), not polling.
203
+
204
+ Show it in the app's own UI. **Never:**
205
+
206
+ - **query Kindgi's database**, even on the app's own Postgres server, and
207
+ never map its tables into the app's ORM (SQLAlchemy, Django models). Its
208
+ schema is private and changes with every release (migrations only go
209
+ forward), row-level security guards every tenant query, and a runtime
210
+ Kindgi hosts gives no database access.
211
+ - **link users to Kindgi's console** or any Kindgi UI for this data.
212
+
213
+ To keep a copy (reporting, search), pull it through the API into the app's
214
+ own tables. Docs: https://docs.kindgi.com/v0.1/guides/runs/show-runs-in-your-app/
215
+
185
216
  ## Build an image
186
217
 
187
218
  `kindgi build --env=<name>` (an `[tool.kindgi.environments.<name>]`
@@ -6,7 +6,7 @@
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
8
8
  "engines": {
9
- "node": ">=22.0.0"
9
+ "node": ">=22.12.0"
10
10
  },
11
11
  "scripts": {
12
12
  "typecheck": "tsc --noEmit",
@@ -6,7 +6,7 @@
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
8
8
  "engines": {
9
- "node": ">=22.0.0"
9
+ "node": ">=22.12.0"
10
10
  },
11
11
  "scripts": {
12
12
  "typecheck": "tsc --noEmit",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kindgi/cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Command-line interface for Kindgi™ — the sovereign AI OS. Create a pack, run it on your machine (`kindgi dev`), build, sign and deploy it, and work with a running Kindgi API from the terminal.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -21,7 +21,8 @@
21
21
  "exports": {
22
22
  ".": {
23
23
  "types": "./dist/index.d.ts",
24
- "import": "./dist/index.js"
24
+ "import": "./dist/index.js",
25
+ "default": "./dist/index.js"
25
26
  }
26
27
  },
27
28
  "files": [
@@ -29,22 +30,22 @@
29
30
  "README.md"
30
31
  ],
31
32
  "engines": {
32
- "node": ">=22.0.0"
33
+ "node": ">=22.12.0"
33
34
  },
34
35
  "publishConfig": {
35
36
  "access": "public",
36
37
  "provenance": true
37
38
  },
38
39
  "dependencies": {
39
- "@kindgi/client": "0.1.1",
40
- "@kindgi/dotenv-file": "0.1.1",
41
- "@kindgi/crypto": "0.1.1",
42
- "@kindgi/env-schema": "0.1.1",
43
- "@kindgi/handler-runtime": "0.1.1",
44
- "@kindgi/secrets-dotenv": "0.1.1",
45
- "@kindgi/platform": "0.1.1",
46
- "@kindgi/sdk": "0.1.1",
47
- "@kindgi/types": "0.1.1",
40
+ "@kindgi/client": "0.1.2",
41
+ "@kindgi/dotenv-file": "0.1.2",
42
+ "@kindgi/crypto": "0.1.2",
43
+ "@kindgi/env-schema": "0.1.2",
44
+ "@kindgi/handler-runtime": "0.1.2",
45
+ "@kindgi/secrets-dotenv": "0.1.2",
46
+ "@kindgi/platform": "0.1.2",
47
+ "@kindgi/sdk": "0.1.2",
48
+ "@kindgi/types": "0.1.2",
48
49
  "esbuild": "^0.24.0",
49
50
  "semver": "^7.8.5",
50
51
  "smol-toml": "^1.9.0",