@kontextmind/kxm 0.7.97 → 0.7.98

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 (43) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.kxm/workflows/default.yaml +2 -0
  3. package/CHANGELOG.md +39 -2
  4. package/docs/concepts/architecture.md +1 -1
  5. package/docs/concepts/data-and-storage.md +1 -1
  6. package/docs/contracts/routing.md +1 -1
  7. package/docs/contributing/test-matrix.md +6 -5
  8. package/docs/operations/backup-and-restore.md +43 -24
  9. package/docs/operations/deploy.md +1 -1
  10. package/docs/reference/cli-reference.md +59 -24
  11. package/docs/reference/config-reference.md +24 -13
  12. package/docs/reference/harness-routing.md +3 -3
  13. package/docs/reference/http-api.md +1 -1
  14. package/docs/start/first-workflow.md +4 -4
  15. package/docs/start/quickstart-claude-code.md +2 -2
  16. package/package.json +1 -1
  17. package/plugins/kxm/.claude-plugin/plugin.json +1 -1
  18. package/plugins/kxm/dist/cli.js +393 -154
  19. package/plugins/kxm/dist/core.js +5 -2
  20. package/plugins/kxm/dist/mcp-server.js +1 -1
  21. package/plugins/kxm/dist/runtime-supervisor.js +231 -48
  22. package/plugins/kxm/dist/runtime.js +415 -92
  23. package/plugins/kxm/dist/server.js +7 -0
  24. package/plugins/kxm/package.json +1 -1
  25. package/plugins/kxm/skills/kxm-hub-ops/SKILL.md +4 -3
  26. package/plugins/kxm/skills/kxm-project-setup/SKILL.md +3 -2
  27. package/plugins/kxm/skills/kxm-routing-improve/SKILL.md +3 -0
  28. package/plugins/kxm/skills/kxm-runs/SKILL.md +8 -7
  29. package/plugins/kxm/src/cli/project.ts +22 -13
  30. package/plugins/kxm/src/cli/system.ts +22 -1
  31. package/plugins/kxm/src/cli.ts +11 -3
  32. package/plugins/kxm/src/database.ts +210 -36
  33. package/plugins/kxm/src/engine.ts +117 -2
  34. package/plugins/kxm/src/harness.ts +29 -0
  35. package/plugins/kxm/src/init-guide-setup.ts +43 -28
  36. package/plugins/kxm/src/mcp-server.ts +1 -1
  37. package/plugins/kxm/src/oneshot-producer.ts +16 -8
  38. package/plugins/kxm/src/prices.ts +33 -2
  39. package/plugins/kxm/src/routing.ts +13 -7
  40. package/plugins/kxm/src/studio-layout.ts +5 -4
  41. package/plugins/kxm/src/template.ts +31 -0
  42. package/plugins/kxm/src/worktree-witness.ts +71 -0
  43. package/schemas/backup-manifest.schema.json +33 -0
@@ -31,6 +31,17 @@
31
31
  "minItems": 1,
32
32
  "maxItems": 64
33
33
  },
34
+ "files": {
35
+ "type": "array",
36
+ "items": { "$ref": "#/$defs/backupFileRecord" },
37
+ "maxItems": 64
38
+ },
39
+ "complete": { "type": "boolean" },
40
+ "omitted": {
41
+ "type": "array",
42
+ "items": { "type": "string", "minLength": 1, "maxLength": 256 },
43
+ "maxItems": 64
44
+ },
34
45
  "manifestSha256": {
35
46
  "$ref": "common.schema.json#/$defs/sha256"
36
47
  }
@@ -84,6 +95,28 @@
84
95
  }
85
96
  },
86
97
  "additionalProperties": false
98
+ },
99
+ "backupFileRecord": {
100
+ "type": "object",
101
+ "required": ["id", "sourcePath", "backupFile", "sha256", "bytes"],
102
+ "properties": {
103
+ "id": {
104
+ "type": "string",
105
+ "minLength": 1,
106
+ "maxLength": 128,
107
+ "pattern": "^[a-zA-Z0-9_.:-]+$"
108
+ },
109
+ "sourcePath": { "type": "string", "minLength": 1, "maxLength": 1024 },
110
+ "backupFile": {
111
+ "type": "string",
112
+ "minLength": 1,
113
+ "maxLength": 256,
114
+ "pattern": "^[a-zA-Z0-9_.-]+$"
115
+ },
116
+ "sha256": { "$ref": "common.schema.json#/$defs/sha256" },
117
+ "bytes": { "type": "integer", "minimum": 0, "maximum": 107374182400 }
118
+ },
119
+ "additionalProperties": false
87
120
  }
88
121
  }
89
122
  }