workspai 0.43.0 → 0.44.0

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 (173) hide show
  1. package/README.md +26 -13
  2. package/contracts/agent-customization-pack.v1.json +1 -1
  3. package/contracts/autopilot-release.v1.json +204 -0
  4. package/contracts/cli-operation-result.v1.json +119 -0
  5. package/contracts/command-capabilities.v1.json +138 -0
  6. package/contracts/compatibility-matrix.v1.json +37 -0
  7. package/contracts/create-planner-capabilities.v1.json +156 -65
  8. package/contracts/doctor-project-scan.v2.json +60 -0
  9. package/contracts/doctor-remediation-plan.v1.json +19 -4
  10. package/contracts/doctor-remediation-plan.v2.json +7 -0
  11. package/contracts/doctor-workspace-cache.v2.json +82 -0
  12. package/contracts/extension-cli-compatibility.v1.json +47 -3
  13. package/contracts/infra-plan.v1.json +189 -0
  14. package/contracts/private-product-manifest.v1.json +155 -0
  15. package/contracts/product-factory-plan.v1.json +200 -0
  16. package/contracts/project-archive.v1.json +40 -0
  17. package/contracts/project-entry-capability.v1.json +127 -0
  18. package/contracts/published-contract-catalog.v1.json +334 -0
  19. package/contracts/runtime-command-surface.v1.json +239 -10
  20. package/contracts/version.v1.json +48 -0
  21. package/contracts/workspace-archive-capabilities.v1.json +90 -0
  22. package/contracts/workspace-archive-manifest.v1.json +107 -0
  23. package/contracts/workspace-archive-operation-result.v1.json +565 -0
  24. package/contracts/workspace-intelligence/agent-customization-pack-report.v1.json +98 -0
  25. package/contracts/workspace-intelligence/agent-hooks.v1.json +38 -0
  26. package/contracts/workspace-intelligence/agent-reports-index.v1.json +56 -0
  27. package/contracts/workspace-intelligence/mcp-design.v1.json +42 -0
  28. package/contracts/workspace-intelligence/workspace-context.v1.json +12 -0
  29. package/contracts/workspace-intelligence/workspace-explain.v1.json +1 -0
  30. package/contracts/workspace-intelligence-architecture.v1.json +723 -0
  31. package/contracts/workspace-intelligence-chain.v1.json +1194 -0
  32. package/contracts/workspace-list.v1.json +56 -0
  33. package/contracts/workspace-model-cache.v1.json +55 -0
  34. package/contracts/workspace-snapshot.v1.json +58 -0
  35. package/contracts/workspace-snapshot.v2.json +97 -0
  36. package/contracts/workspace-sync.v1.json +30 -0
  37. package/contracts/workspace-watch-event.v1.json +112 -0
  38. package/dist/analyze-6OCBM4ID.js +1 -0
  39. package/dist/{artifact-remediation-plan-5GJWPPRS.js → artifact-remediation-plan-Z7OCSME3.js} +3 -3
  40. package/dist/autopilot-release-LI2WJCEW.js +1 -0
  41. package/dist/{chunk-LZQNVH7D.js → chunk-2K3GYCPS.js} +1 -1
  42. package/dist/chunk-2QN6BMM7.js +2 -0
  43. package/dist/chunk-2QOWRBQD.js +1 -0
  44. package/dist/chunk-5AKYMAIL.js +1 -0
  45. package/dist/{chunk-RE773WOX.js → chunk-5PVEQ6CZ.js} +5 -5
  46. package/dist/{chunk-AFSZHLQT.js → chunk-7EIMPQR3.js} +1 -1
  47. package/dist/{chunk-3KXW53QI.js → chunk-7IHLTPZ6.js} +1 -1
  48. package/dist/chunk-7RIWU5TZ.js +1 -0
  49. package/dist/{chunk-T6OR6YOI.js → chunk-7UZVOYF5.js} +1 -1
  50. package/dist/chunk-B66A4TVP.js +1 -0
  51. package/dist/chunk-CL6TGI4Q.js +8 -0
  52. package/dist/chunk-FWJV7CCI.js +2 -0
  53. package/dist/chunk-J4AICQFB.js +1 -0
  54. package/dist/chunk-JICOD2GI.js +1 -0
  55. package/dist/{chunk-OJEWQO3Z.js → chunk-JP25YL3J.js} +17 -17
  56. package/dist/chunk-L2Q7B2OJ.js +1 -0
  57. package/dist/chunk-L3E6IRUQ.js +8 -0
  58. package/dist/chunk-LG6RFLPZ.js +1 -0
  59. package/dist/chunk-LGP6WXS2.js +4 -0
  60. package/dist/{chunk-VRDF2J46.js → chunk-M4VITK6X.js} +52 -50
  61. package/dist/chunk-NTXO7BMH.js +4 -0
  62. package/dist/{chunk-LPZFK3Y6.js → chunk-OW4UNG27.js} +65 -66
  63. package/dist/{chunk-LUP4U6EE.js → chunk-P424XYHP.js} +1 -1
  64. package/dist/chunk-P4SWTY5X.js +33 -0
  65. package/dist/chunk-TQEMLBAG.js +1 -0
  66. package/dist/chunk-TRMDODFM.js +13 -0
  67. package/dist/chunk-UNF72FTB.js +1 -0
  68. package/dist/chunk-V5JN4TDX.js +2 -0
  69. package/dist/chunk-VA5MRHKM.js +2 -0
  70. package/dist/chunk-XIVFLY6G.js +1 -0
  71. package/dist/chunk-YUX4YFGL.js +78 -0
  72. package/dist/{create-WRZO4HK2.js → create-DFAWAS5C.js} +1 -1
  73. package/dist/demo-kit-DZ7TPG7K.js +149 -0
  74. package/dist/doctor-PVSWDBJL.js +1 -0
  75. package/dist/{dotnet-webapi-clean-IPY3MCGQ.js → dotnet-webapi-clean-BYUUHX5Y.js} +20 -20
  76. package/dist/{gofiber-standard-N5N3QGH3.js → gofiber-standard-B6UK5GR7.js} +31 -31
  77. package/dist/{gogin-standard-LAWQTBWL.js → gogin-standard-BXU44VEM.js} +31 -31
  78. package/dist/index.d.ts +250 -24
  79. package/dist/index.js +218 -182
  80. package/dist/pipeline-ND734AJM.js +5 -0
  81. package/dist/{platform-capabilities-XAVU4HSM.js → platform-capabilities-YICBF4FA.js} +1 -1
  82. package/dist/{pythonRapidkitExec-3L3XJBSY.js → pythonRapidkitExec-UJYIB6FL.js} +1 -1
  83. package/dist/{springboot-standard-OZYF7ZM7.js → springboot-standard-PEHDKH2L.js} +27 -27
  84. package/dist/{workspace-PR6VZRBG.js → workspace-FQT3QIRS.js} +1 -1
  85. package/dist/workspace-agent-sync-ZYCPXTU3.js +1 -0
  86. package/dist/workspace-archive-EEGLHZDW.js +10 -0
  87. package/dist/workspace-context-WAGGJCDL.js +1 -0
  88. package/dist/{workspace-contract-XUGMCUSQ.js → workspace-contract-SEI4SNSG.js} +1 -1
  89. package/dist/workspace-explain-MVGGRCDN.js +1 -0
  90. package/dist/workspace-explain-contract-KT757JGQ.js +1 -0
  91. package/dist/{workspace-feedback-R6H4UFZB.js → workspace-feedback-RCB25NFO.js} +1 -1
  92. package/dist/{workspace-foundation-KGSV4E6D.js → workspace-foundation-KXDL6P6X.js} +1 -1
  93. package/dist/{workspace-history-CGCK2DJI.js → workspace-history-M4QQBIPB.js} +1 -1
  94. package/dist/workspace-intelligence-QOGD2TZS.js +1 -0
  95. package/dist/workspace-mcp-serve-CEFKEMYG.js +3 -0
  96. package/dist/{workspace-model-PNXXOGPO.js → workspace-model-GMSRBICO.js} +1 -1
  97. package/dist/workspace-registry-summary-S52SEJAG.js +1 -0
  98. package/dist/workspace-run-VC4OUPRF.js +1 -0
  99. package/dist/{workspace-verify-WSDUUTR5.js → workspace-verify-NP4GMFSV.js} +1 -1
  100. package/dist/workspace-watch-IIBH3Y25.js +1 -0
  101. package/docs/AI_FEATURES.md +67 -34
  102. package/docs/README.md +2 -1
  103. package/docs/commands-reference.md +26 -14
  104. package/docs/contracts/ARTIFACT_CATALOG.md +60 -36
  105. package/docs/contracts/README.md +3 -2
  106. package/docs/create-planner-capabilities.md +36 -18
  107. package/docs/workspace-operations.md +25 -0
  108. package/package.json +35 -13
  109. package/scripts/enterprise-package-smoke.mjs +40 -8
  110. package/scripts/prepack-enterprise.mjs +8 -0
  111. package/templates/kits/fastapi-ddd/.gitignore.j2 +11 -0
  112. package/templates/kits/fastapi-ddd/README.md.j2 +23 -18
  113. package/templates/kits/fastapi-ddd/common/env.example.j2 +2 -2
  114. package/templates/kits/fastapi-ddd/pyproject.toml.j2 +7 -7
  115. package/templates/kits/fastapi-ddd/src/app/config/__init__.py.j2 +1 -1
  116. package/templates/kits/fastapi-ddd/src/cli.py.j2 +6 -9
  117. package/templates/kits/fastapi-ddd/src/main.py.j2 +1 -1
  118. package/templates/kits/fastapi-standard/.gitignore.j2 +11 -0
  119. package/templates/kits/fastapi-standard/README.md.j2 +35 -30
  120. package/templates/kits/fastapi-standard/common/env.example.j2 +2 -2
  121. package/templates/kits/fastapi-standard/pyproject.toml.j2 +7 -7
  122. package/templates/kits/fastapi-standard/src/cli.py.j2 +7 -10
  123. package/templates/kits/fastapi-standard/src/main.py.j2 +1 -1
  124. package/templates/kits/fastapi-standard/src/routing/examples.py.j2 +1 -1
  125. package/templates/kits/fastapi-standard/tests/test_examples.py.j2 +1 -1
  126. package/templates/kits/nestjs-standard/.dockerignore.j2 +11 -0
  127. package/templates/kits/nestjs-standard/.eslintrc.js.j2 +25 -0
  128. package/templates/kits/nestjs-standard/.gitignore.j2 +22 -0
  129. package/templates/kits/nestjs-standard/.node-version.j2 +1 -0
  130. package/templates/kits/nestjs-standard/.nvmrc.j2 +1 -0
  131. package/templates/kits/nestjs-standard/.prettierrc.j2 +7 -0
  132. package/templates/kits/nestjs-standard/README.md.j2 +23 -18
  133. package/templates/kits/nestjs-standard/docs/README.md.j2 +2 -2
  134. package/templates/kits/nestjs-standard/jest.config.ts.j2 +1 -7
  135. package/templates/kits/nestjs-standard/package.json.j2 +1 -1
  136. package/templates/kits/nestjs-standard/src/config/configuration.ts.j2 +4 -4
  137. package/templates/kits/nestjs-standard/src/main.ts.j2 +1 -1
  138. package/templates/kits/nestjs-standard/src/modules/index.ts.j2 +1 -1
  139. package/templates/kits/nestjs-standard/tsconfig.build.json.j2 +1 -1
  140. package/templates/kits/nestjs-standard/tsconfig.json.j2 +1 -1
  141. package/dist/analyze-5BU4QIPK.js +0 -1
  142. package/dist/autopilot-release-QYUOVB26.js +0 -1
  143. package/dist/chunk-54XJNLYC.js +0 -13
  144. package/dist/chunk-5SWNSJGW.js +0 -1
  145. package/dist/chunk-753LOKFZ.js +0 -2
  146. package/dist/chunk-AAKUNWPR.js +0 -78
  147. package/dist/chunk-AQ4XZZC6.js +0 -1
  148. package/dist/chunk-CVTCPPEF.js +0 -1
  149. package/dist/chunk-DNAY5ALC.js +0 -1
  150. package/dist/chunk-EWYYLJQY.js +0 -2
  151. package/dist/chunk-LO4C4VXR.js +0 -4
  152. package/dist/chunk-LYC6AIF2.js +0 -2
  153. package/dist/chunk-NAAQMSO3.js +0 -1
  154. package/dist/chunk-NFUXULIF.js +0 -1
  155. package/dist/chunk-OL64GWQC.js +0 -9
  156. package/dist/chunk-PI5KUXDA.js +0 -7
  157. package/dist/chunk-SI3AQKIP.js +0 -1
  158. package/dist/chunk-VZKSNUEE.js +0 -2
  159. package/dist/chunk-WU4ZRRA5.js +0 -4
  160. package/dist/chunk-XEJD4KCV.js +0 -33
  161. package/dist/demo-kit-AJ5LIM5G.js +0 -149
  162. package/dist/doctor-MF3M3FS3.js +0 -1
  163. package/dist/pipeline-QCUHFWDY.js +0 -5
  164. package/dist/workspace-agent-sync-KTYF3HQR.js +0 -1
  165. package/dist/workspace-archive-GCZNI44O.js +0 -3
  166. package/dist/workspace-context-QUTOP2XV.js +0 -1
  167. package/dist/workspace-explain-JEONEGZZ.js +0 -1
  168. package/dist/workspace-explain-contract-DNS2YEL7.js +0 -1
  169. package/dist/workspace-intelligence-QJGVL37U.js +0 -1
  170. package/dist/workspace-mcp-serve-AK4MYEHQ.js +0 -3
  171. package/dist/workspace-registry-summary-RUJE6RPH.js +0 -1
  172. package/dist/workspace-run-Y7YMUIHX.js +0 -1
  173. package/dist/workspace-watch-AGPOJ74Q.js +0 -1
@@ -1,4 +1,4 @@
1
- import {c as c$1,b as b$1,d as d$1,e,f,a}from'./chunk-IBJEQHJR.js';import {c}from'./chunk-Y45WZR5N.js';import {promises}from'fs';import d from'path';import o from'chalk';import _ from'ora';import {execa}from'execa';function T(e){return `package main
1
+ import {c as c$2,b as b$2,d,e,f,a as a$1}from'./chunk-IBJEQHJR.js';import {c}from'./chunk-Y45WZR5N.js';import {b as b$1,a}from'./chunk-TQEMLBAG.js';import {promises}from'fs';import c$1 from'path';import o from'chalk';import O from'ora';import {execa}from'execa';function N(e){return `package main
2
2
 
3
3
  import (
4
4
  "context"
@@ -65,7 +65,7 @@ func main() {
65
65
  }
66
66
  slog.Info("server stopped")
67
67
  }
68
- `}function O(e){return `module ${e.module_path}
68
+ `}function b(e){return `module ${e.module_path}
69
69
 
70
70
  go ${e.go_version}
71
71
 
@@ -75,7 +75,7 @@ require (
75
75
  github.com/swaggo/gin-swagger v1.6.0
76
76
  github.com/swaggo/swag v1.16.3
77
77
  )
78
- `}function N(e){return `package config
78
+ `}function G(e){return `package config
79
79
 
80
80
  import (
81
81
  "log/slog"
@@ -130,7 +130,7 @@ func getEnv(key, fallback string) string {
130
130
  }
131
131
  return fallback
132
132
  }
133
- `}function b(e){return `package server
133
+ `}function q(e){return `package server
134
134
 
135
135
  import (
136
136
  "net/http"
@@ -182,7 +182,7 @@ func NewRouter(cfg *config.Config) *gin.Engine {
182
182
 
183
183
  return r
184
184
  }
185
- `}function G(){return `package handlers
185
+ `}function E(){return `package handlers
186
186
 
187
187
  import (
188
188
  "net/http"
@@ -221,7 +221,7 @@ func Readiness(c *gin.Context) {
221
221
  "time": time.Now().UTC().Format(time.RFC3339),
222
222
  })
223
223
  }
224
- `}function q(e){return `package handlers_test
224
+ `}function C(e){return `package handlers_test
225
225
 
226
226
  import (
227
227
  "encoding/json"
@@ -266,7 +266,7 @@ func TestReadiness(t *testing.T) {
266
266
  t.Fatalf("expected 200, got %d: %s", w.Code, w.Body.String())
267
267
  }
268
268
  }
269
- `}function E(){return `# \u2500\u2500 Build stage \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
269
+ `}function L(){return `# \u2500\u2500 Build stage \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
270
270
  FROM golang:1.24-alpine AS builder
271
271
 
272
272
  # Build-time version injection
@@ -295,7 +295,7 @@ EXPOSE 8080
295
295
  HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \\
296
296
  CMD wget -qO- http://localhost:8080/api/v1/health/live || exit 1
297
297
  ENTRYPOINT ["/server"]
298
- `}function L(e){return `version: "3.9"
298
+ `}function y(e){return `version: "3.9"
299
299
 
300
300
  services:
301
301
  api:
@@ -311,7 +311,7 @@ services:
311
311
  CORS_ALLOW_ORIGINS: "*"
312
312
  RATE_LIMIT_RPS: "100"
313
313
  restart: unless-stopped
314
- `}function C(e){return d$1({projectName:e.project_name,devCommand:"GIN_MODE=debug $(GOBIN)/air",runCommand:"GIN_MODE=debug go run $(LDFLAGS) ./cmd/server",testCommand:"GIN_MODE=test go test ./... -v -race",includeLintAndFmt:true})}function y(e){return `# Application
314
+ `}function I(e){return d({projectName:e.project_name,devCommand:"GIN_MODE=debug $(GOBIN)/air",runCommand:"GIN_MODE=debug go run $(LDFLAGS) ./cmd/server",testCommand:"GIN_MODE=test go test ./... -v -race",includeLintAndFmt:true})}function k(e){return `# Application
315
315
  PORT=${e.port}
316
316
  APP_ENV=development
317
317
  GIN_MODE=debug
@@ -322,7 +322,7 @@ CORS_ALLOW_ORIGINS=*
322
322
 
323
323
  # Rate limiting \u2014 max requests per IP per second
324
324
  RATE_LIMIT_RPS=100
325
- `}function I(){return `# Binaries
325
+ `}function x(){return `# Binaries
326
326
  bin/
327
327
  *.exe
328
328
  *.exe~
@@ -362,7 +362,7 @@ docs/docs.go
362
362
  # OS
363
363
  .DS_Store
364
364
  Thumbs.db
365
- `}function x(e){return `name: CI
365
+ `}function M(e){return `name: CI
366
366
 
367
367
  on:
368
368
  push:
@@ -416,7 +416,7 @@ jobs:
416
416
  uses: golangci/golangci-lint-action@v6
417
417
  with:
418
418
  version: latest
419
- `}function k(e){return `# ${b$1(e.project_name)}
419
+ `}function A(e){return `# ${b$2(e.project_name)}
420
420
 
421
421
  > ${e.description}
422
422
 
@@ -532,7 +532,7 @@ ${e.project_name}/
532
532
  ## License
533
533
 
534
534
  ${e.app_version} \xB7 ${e.author}
535
- `}function M(){return `package middleware
535
+ `}function P(){return `package middleware
536
536
 
537
537
  import (
538
538
  "crypto/rand"
@@ -584,7 +584,7 @@ func newID() string {
584
584
  }
585
585
  return hex.EncodeToString(b)
586
586
  }
587
- `}function A(e){return `package middleware_test
587
+ `}function D(e){return `package middleware_test
588
588
 
589
589
  import (
590
590
  "net/http"
@@ -633,7 +633,7 @@ func TestRequestID_IsReused(t *testing.T) {
633
633
  t.Fatalf("expected X-Request-ID to be reused, got %q", id)
634
634
  }
635
635
  }
636
- `}function P(){return `// Package apierr provides a consistent JSON error envelope for all API responses.
636
+ `}function H(){return `// Package apierr provides a consistent JSON error envelope for all API responses.
637
637
  //
638
638
  // Every error response looks like:
639
639
  //
@@ -696,7 +696,7 @@ func InternalError(c *gin.Context, _ error) {
696
696
  func TooManyRequests(c *gin.Context) {
697
697
  reply(c, http.StatusTooManyRequests, "rate limit exceeded", "TOO_MANY_REQUESTS")
698
698
  }
699
- `}function D(e){return `package apierr_test
699
+ `}function F(e){return `package apierr_test
700
700
 
701
701
  import (
702
702
  "encoding/json"
@@ -822,11 +822,11 @@ func TestTooManyRequests(t *testing.T) {
822
822
  t.Fatalf("expected TOO_MANY_REQUESTS, got %q", body.Code)
823
823
  }
824
824
  }
825
- `}function H(e){return `// Package docs provides the swaggo-generated OpenAPI specification.
825
+ `}function $(e){return `// Package docs provides the swaggo-generated OpenAPI specification.
826
826
  //
827
827
  // Run \`make docs\` to regenerate after changing handler annotations.
828
828
  //
829
- // @title ${b$1(e.project_name)} API
829
+ // @title ${b$2(e.project_name)} API
830
830
  // @version ${e.app_version}
831
831
  // @description ${e.description}
832
832
  // @host localhost:${e.port}
@@ -836,7 +836,7 @@ func TestTooManyRequests(t *testing.T) {
836
836
  // @contact.name ${e.author}
837
837
  // @license.name MIT
838
838
  package docs
839
- `}function F(e){return `package handlers
839
+ `}function j(e){return `package handlers
840
840
 
841
841
  import (
842
842
  "net/http"
@@ -878,7 +878,7 @@ func EchoParams(c *gin.Context) {
878
878
  RequestID: c.GetString("X-Request-ID"),
879
879
  })
880
880
  }
881
- `}function $(e){return `package handlers_test
881
+ `}function U(e){return `package handlers_test
882
882
 
883
883
  import (
884
884
  "encoding/json"
@@ -943,7 +943,7 @@ func TestEchoParams_EmptyName(t *testing.T) {
943
943
  t.Fatalf("expected code=BAD_REQUEST, got %v", body["code"])
944
944
  }
945
945
  }
946
- `}function j(e){return `package config_test
946
+ `}function B(e){return `package config_test
947
947
 
948
948
  import (
949
949
  "log/slog"
@@ -1019,7 +1019,7 @@ func TestLoad_Defaults(t *testing.T) {
1019
1019
  t.Errorf("expected default GinMode=debug, got %q", cfg.GinMode)
1020
1020
  }
1021
1021
  }
1022
- `}function U(){return `package middleware
1022
+ `}function V(){return `package middleware
1023
1023
 
1024
1024
  import (
1025
1025
  "net/http"
@@ -1067,7 +1067,7 @@ func CORS() gin.HandlerFunc {
1067
1067
  c.Next()
1068
1068
  }
1069
1069
  }
1070
- `}function B(e){return `package middleware_test
1070
+ `}function W(e){return `package middleware_test
1071
1071
 
1072
1072
  import (
1073
1073
  "net/http"
@@ -1153,7 +1153,7 @@ func TestCORS_Default_Origin(t *testing.T) {
1153
1153
  t.Fatal("expected CORS header when CORS_ALLOW_ORIGINS defaults to *")
1154
1154
  }
1155
1155
  }
1156
- `}function V(e){return `package server_test
1156
+ `}function J(e){return `package server_test
1157
1157
 
1158
1158
  import (
1159
1159
  "encoding/json"
@@ -1263,7 +1263,7 @@ func TestServer_ReleaseMode(t *testing.T) {
1263
1263
  t.Fatalf("expected 200 in release mode, got %d", w.Code)
1264
1264
  }
1265
1265
  }
1266
- `}function W(e){return `package middleware
1266
+ `}function K(e){return `package middleware
1267
1267
 
1268
1268
  import (
1269
1269
  "os"
@@ -1314,7 +1314,7 @@ func RateLimit() gin.HandlerFunc {
1314
1314
  c.Next()
1315
1315
  }
1316
1316
  }
1317
- `}function J(e){return `package middleware_test
1317
+ `}function X(e){return `package middleware_test
1318
1318
 
1319
1319
  import (
1320
1320
  "net/http"
@@ -1383,7 +1383,7 @@ func TestRateLimit_InvalidRPS(t *testing.T) {
1383
1383
  t.Fatalf("expected 200 with invalid RPS env, got %d", w.Code)
1384
1384
  }
1385
1385
  }
1386
- `}function K(e){return `# Air \u2014 live reload for Go projects
1386
+ `}function Q(e){return `# Air \u2014 live reload for Go projects
1387
1387
  # https://github.com/air-verse/air
1388
1388
  root = "."
1389
1389
  tmp_dir = "tmp"
@@ -1408,7 +1408,7 @@ tmp_dir = "tmp"
1408
1408
 
1409
1409
  [log]
1410
1410
  time = false
1411
- `}function X(e){return `run:
1411
+ `}function z(e){return `run:
1412
1412
  timeout: 5m
1413
1413
 
1414
1414
  linters:
@@ -1454,6 +1454,6 @@ issues:
1454
1454
  linters:
1455
1455
  - errcheck
1456
1456
  - wrapcheck
1457
- `}function Q(){return JSON.stringify({engine:"npm",runtime:"go"},null,2)}function z(e,n){return JSON.stringify({kit_name:"gogin.standard",runtime:"go",module_support:false,project_name:e.project_name,module_path:e.module_path,app_version:e.app_version,created_by:"workspai",workspai_version:n,rapidkit_version:n,created_at:new Date().toISOString()},null,2)}function Y(e$1){return e({runtimeLabel:"Go/Gin",projectName:e$1.project_name,fallbackDevCommand:'cd "$SCRIPT_DIR" && GIN_MODE=debug exec go run ./cmd/server "$@"'})}function Z(e){return f({runtimeLabel:"Go/Gin",projectName:e.project_name})}async function ce(e,n){let r={project_name:n.project_name,module_path:n.module_path||n.project_name,author:n.author||"Workspai User",description:n.description||`Go/Gin REST API \u2014 ${n.project_name}`,go_version:n.go_version||a,app_version:n.app_version||"0.1.0",port:n.port||"8080",skipGit:n.skipGit??false,skipInstall:n.skipInstall??false},f=c();try{await execa("go",["version"],{timeout:3e3});}catch{console.log(o.yellow("\n\u26A0 Go not found in PATH \u2014 project will be scaffolded, but `go mod tidy` requires Go 1.21+")),console.log(o.gray(` Install: https://go.dev/dl/
1458
- `));}let i=_(`Generating Go/Gin project: ${r.project_name}\u2026`).start();try{let t=(v,S)=>c$1(d.join(e,v),S),w=d.join(e,"rapidkit"),R=d.join(e,"rapidkit.cmd");if(await Promise.all([t("cmd/server/main.go",T(r)),t("go.mod",O(r)),t("internal/config/config.go",N(r)),t("internal/server/server.go",b(r)),t("internal/middleware/requestid.go",M()),t("internal/middleware/requestid_test.go",A(r)),t("internal/apierr/apierr.go",P()),t("internal/apierr/apierr_test.go",D(r)),t("internal/handlers/health.go",G()),t("internal/handlers/health_test.go",q(r)),t("internal/handlers/example.go",F(r)),t("internal/handlers/example_test.go",$(r)),t("internal/config/config_test.go",j(r)),t("internal/middleware/cors.go",U()),t("internal/middleware/cors_test.go",B(r)),t("internal/middleware/ratelimit.go",W(r)),t("internal/middleware/ratelimit_test.go",J(r)),t("internal/server/server_test.go",V(r)),t("docs/doc.go",H(r)),t(".air.toml",K(r)),t("Dockerfile",E()),t("docker-compose.yml",L(r)),t("Makefile",C(r)),t(".golangci.yml",X(r.module_path)),t(".env.example",y(r)),t(".gitignore",I()),t(".github/workflows/ci.yml",x(r)),t("README.md",k(r)),t(".workspai/project.json",z(r,f)),t(".workspai/context.json",Q()),t("rapidkit",Y(r)),t("rapidkit.cmd",Z(r))]),await promises.chmod(w,493),await promises.chmod(R,493),i.succeed(o.green(`Project created at ${e}`)),r.skipInstall)i.info(o.gray("Skipped Go dependency warm-up (--skip-install)."));else try{i.start("Fetching Go dependencies\u2026"),await execa("go",["mod","tidy"],{cwd:e,timeout:12e4}),i.succeed(o.gray("\u2713 go mod tidy completed"));}catch{i.warn(o.yellow("\u26A0 go mod tidy failed \u2014 run manually: go mod tidy"));}if(!r.skipGit)try{await execa("git",["init"],{cwd:e}),await execa("git",["add","-A"],{cwd:e}),await execa("git",["commit","-m","chore: initial scaffold (rapidkit gogin.standard)"],{cwd:e}),console.log(o.gray("\u2713 git repository initialized"));}catch{console.log(o.gray("\u26A0 git init skipped (git not found or error)"));}console.log(""),console.log(o.bold("\u2705 Go/Gin project ready!")),console.log(""),console.log(o.cyan("Next steps:")),console.log(o.white(` cd ${r.project_name}`)),console.log(o.white(" make run # start dev server")),console.log(o.white(" make test # run tests")),console.log(""),console.log(o.gray("Server will listen on port "+r.port)),console.log(o.gray(" http://localhost:"+r.port+"/api/v1/health/live")),console.log(o.gray(" http://localhost:"+r.port+"/api/v1/health/ready")),console.log(""),console.log(o.yellow("\u2139 RapidKit Core modules are not available for Go projects (module system uses Python/pip).")),console.log("");}catch(t){throw i.fail(o.red("Failed to generate Go/Gin project")),t}}
1459
- export{ce as generateGoGinKit};
1457
+ `}function Y(){return JSON.stringify({engine:"npm",runtime:"go"},null,2)}function Z(e,n){return JSON.stringify({kit_name:"gogin.standard",runtime:"go",module_support:false,project_name:e.project_name,module_path:e.module_path,app_version:e.app_version,created_by:"workspai",workspai_version:n,rapidkit_version:n,created_at:new Date().toISOString()},null,2)}function ee(e$1){return e({runtimeLabel:"Go/Gin",projectName:e$1.project_name,fallbackDevCommand:'cd "$SCRIPT_DIR" && GIN_MODE=debug exec go run ./cmd/server "$@"'})}function te(e){return f({runtimeLabel:"Go/Gin",projectName:e.project_name})}async function ge(e,n){let r={project_name:n.project_name,module_path:n.module_path||n.project_name,author:n.author||"Workspai User",description:n.description||`Go/Gin REST API \u2014 ${n.project_name}`,go_version:n.go_version||a$1,app_version:n.app_version||"0.1.0",port:n.port||"8080",skipGit:n.skipGit??false,skipInstall:n.skipInstall??false},R=c();try{await execa("go",["version"],{timeout:3e3});}catch{console.log(o.yellow("\n\u26A0 Go not found in PATH \u2014 project will be scaffolded, but `go mod tidy` requires Go 1.21+")),console.log(o.gray(` Install: https://go.dev/dl/
1458
+ `));}let i=O(`Generating Go/Gin project: ${r.project_name}\u2026`).start();try{let t=(_,T)=>c$2(c$1.join(e,_),T),v=c$1.join(e,"rapidkit"),S=c$1.join(e,"rapidkit.cmd");if(await Promise.all([t("cmd/server/main.go",N(r)),t("go.mod",b(r)),t("internal/config/config.go",G(r)),t("internal/server/server.go",q(r)),t("internal/middleware/requestid.go",P()),t("internal/middleware/requestid_test.go",D(r)),t("internal/apierr/apierr.go",H()),t("internal/apierr/apierr_test.go",F(r)),t("internal/handlers/health.go",E()),t("internal/handlers/health_test.go",C(r)),t("internal/handlers/example.go",j(r)),t("internal/handlers/example_test.go",U(r)),t("internal/config/config_test.go",B(r)),t("internal/middleware/cors.go",V()),t("internal/middleware/cors_test.go",W(r)),t("internal/middleware/ratelimit.go",K(r)),t("internal/middleware/ratelimit_test.go",X(r)),t("internal/server/server_test.go",J(r)),t("docs/doc.go",$(r)),t(".air.toml",Q(r)),t("Dockerfile",L()),t("docker-compose.yml",y(r)),t("Makefile",I(r)),t(".golangci.yml",z(r.module_path)),t(".env.example",k(r)),t(".gitignore",x()),t(".github/workflows/ci.yml",M(r)),t("README.md",A(r)),t(".workspai/project.json",Z(r,R)),t(".workspai/context.json",Y()),t("rapidkit",ee(r)),t("rapidkit.cmd",te(r))]),await promises.chmod(v,493),await promises.chmod(S,493),i.succeed(o.green(`Project created at ${e}`)),r.skipInstall)i.info(o.gray("Skipped Go dependency warm-up (--skip-install)."));else try{i.start("Fetching Go dependencies\u2026"),await execa("go",["mod","tidy"],{cwd:e,timeout:12e4}),i.succeed(o.gray("\u2713 go mod tidy completed"));}catch{i.warn(o.yellow("\u26A0 go mod tidy failed \u2014 run manually: go mod tidy"));}if(!r.skipGit)try{await b$1(e)?console.log(o.gray("\u26A0 git init skipped (target is inside an existing git worktree)")):(await execa("git",["init"],{cwd:e,env:a()}),await execa("git",["add","-A"],{cwd:e,env:a()}),await execa("git",["commit","-m","chore: initial scaffold (rapidkit gogin.standard)"],{cwd:e,env:a()}),console.log(o.gray("\u2713 git repository initialized")));}catch{console.log(o.gray("\u26A0 git init skipped (git not found or error)"));}console.log(""),console.log(o.bold("\u2705 Go/Gin project ready!")),console.log(""),console.log(o.cyan("Next steps:")),console.log(o.white(` cd ${r.project_name}`)),console.log(o.white(" make run # start dev server")),console.log(o.white(" make test # run tests")),console.log(""),console.log(o.gray("Server will listen on port "+r.port)),console.log(o.gray(" http://localhost:"+r.port+"/api/v1/health/live")),console.log(o.gray(" http://localhost:"+r.port+"/api/v1/health/ready")),console.log(""),console.log(o.yellow("\u2139 RapidKit Core modules are not available for Go projects (module system uses Python/pip).")),console.log("");}catch(t){throw i.fail(o.red("Failed to generate Go/Gin project")),t}}
1459
+ export{ge as generateGoGinKit};
package/dist/index.d.ts CHANGED
@@ -1,19 +1,66 @@
1
1
  #!/usr/bin/env node
2
2
  declare const PROJECT_COMMANDS_CORE_FALLBACK: readonly ["lint", "format", "docs"];
3
3
 
4
+ declare const COMMAND_CAPABILITIES_SCHEMA_VERSION: "rapidkit-command-capabilities-v1";
5
+ declare const VERSION_CONTRACT_SCHEMA_VERSION: "rapidkit-version-v1";
6
+
4
7
  declare function getPublishedContractVersions(): {
8
+ autopilotRelease: "autopilot-release-v1";
9
+ workspaceList: "rapidkit-workspace-list-v1";
10
+ workspaceSync: "rapidkit-workspace-sync-v1";
11
+ compatibilityMatrix: "rapidkit.compatibility-matrix.v1";
12
+ mcpDesign: "workspai-mcp-design.v1";
13
+ agentHooks: "workspai-agent-hooks.v1";
14
+ projectArchive: "rapidkit-project-archive-v1";
15
+ workspaceSnapshot: "rapidkit-workspace-snapshot-v1";
16
+ workspaceSnapshotV2: "rapidkit-workspace-snapshot-v2";
17
+ infraPlan: "rapidkit.infra-plan.v1";
18
+ privateProductManifest: "rapidkit.private-product-manifest.v1";
19
+ productFactoryPlan: "rapidkit.product-factory-plan.v1";
20
+ workspaceModelCache: "workspace-model-cache.v1";
21
+ workspaceWatchEvent: "workspace-watch-event.v1";
22
+ doctorProjectScan: "doctor-project-scan-v2";
23
+ doctorWorkspaceCache: "doctor-workspace-cache-v2";
5
24
  runtimeCommandSurface: string;
25
+ cliOperationResult: "workspai-cli-operation-result-v1";
26
+ publishedContractCatalog: "workspai-published-contract-catalog-v1";
27
+ workspaceArchiveCapabilities: "workspai-workspace-archive-capabilities-v1";
28
+ workspaceArchiveManifest: "workspai-workspace-archive-manifest-v1";
29
+ workspaceArchiveOperationResult: "workspai-workspace-archive-operation-result-v1";
30
+ projectEntryCapability: string;
31
+ workspaceIntelligenceArchitecture: string;
32
+ workspaceIntelligenceChain: "workspai-workspace-intelligence-chain-v1";
33
+ workspaceIntelligenceArtifacts: {
34
+ readonly model: "workspace-model.v1";
35
+ readonly snapshot: "workspace-model-snapshot.v1";
36
+ readonly diff: "workspace-model-diff.v1";
37
+ readonly impact: "workspace-impact.v1";
38
+ readonly analyze: "rapidkit-analyze-v1";
39
+ readonly doctor: "doctor-workspace-evidence-v1";
40
+ readonly contractVerify: "workspace-contract-verify.v1";
41
+ readonly readiness: "release-readiness-v1";
42
+ readonly verify: "workspace-verify.v1";
43
+ readonly history: "workspace-intelligence-history.v1";
44
+ readonly agentContext: "workspace-context.v1";
45
+ readonly agentIndex: "rapidkit-agent-reports-index.v1";
46
+ readonly agentCustomizationPack: "rapidkit-agent-customization-pack.v1";
47
+ readonly skillsIndex: "workspace-skills-index.v1";
48
+ readonly agents: null;
49
+ readonly explain: "workspace-explain.v1";
50
+ };
6
51
  cliLogEvent: "cli-log-event-v1";
7
52
  freshnessMetadata: "rapidkit-freshness-metadata-v1";
8
53
  factFreshness: "rapidkit-fact-freshness-v1";
9
54
  blockerResolution: "rapidkit-blocker-resolution-v1";
10
- workspaceModel: string;
11
- workspaceImpact: string;
12
- workspaceVerify: string;
13
- workspaceContext: string;
55
+ workspaceModel: "workspace-model.v1";
56
+ workspaceImpact: "workspace-impact.v1";
57
+ workspaceVerify: "workspace-verify.v1";
58
+ workspaceContext: "workspace-context.v1";
14
59
  workspaceDependencyGraph: "workspace-dependency-graph.v1";
15
60
  workspaceIntelligenceHistory: "workspace-intelligence-history.v1";
16
- agentCustomizationPack: string;
61
+ agentCustomizationPackCapabilities: "workspai-agent-customization-pack-capabilities.v1";
62
+ agentCustomizationPackReport: "rapidkit-agent-customization-pack.v1";
63
+ agentReportsIndex: "rapidkit-agent-reports-index.v1";
17
64
  workspaceOperationalSkill: "workspace-operational-skill.v1";
18
65
  workspaceSkillsIndex: "workspace-skills-index.v1";
19
66
  workspaceExplain: "workspace-explain.v1";
@@ -22,35 +69,108 @@ declare function getPublishedContractVersions(): {
22
69
  artifactRemediationPlan: "artifact-remediation-plan-v1";
23
70
  doctorFixResult: "rapidkit-doctor-fix-result-v1";
24
71
  };
72
+ declare function getPublishedContractCatalog(): {
73
+ [k: string]: {
74
+ artifacts?: {
75
+ [k: string]: {
76
+ path: ".workspai/reports/workspace-model.json" | ".workspai/reports/workspace-model-snapshot.json" | ".workspai/reports/workspace-model-diff-last-run.json" | ".workspai/reports/workspace-impact-last-run.json" | ".workspai/reports/analyze-last-run.json" | ".workspai/reports/doctor-last-run.json" | ".workspai/reports/workspace-contract-verify-last-run.json" | ".workspai/reports/release-readiness-last-run.json" | ".workspai/reports/workspace-verify-last-run.json" | ".workspai/reports/workspace-intelligence-history.json" | ".workspai/reports/workspace-context-agent.json" | ".workspai/reports/INDEX.json" | ".workspai/reports/agent-customization-pack.json" | ".workspai/reports/workspace-skills-index.json" | "AGENTS.md" | ".workspai/reports/workspace-explain-last-run.json";
77
+ schemaVersion: "workspace-model.v1" | "workspace-model-snapshot.v1" | "workspace-model-diff.v1" | "workspace-impact.v1" | "rapidkit-analyze-v1" | "doctor-workspace-evidence-v1" | "workspace-contract-verify.v1" | "release-readiness-v1" | "workspace-verify.v1" | "workspace-intelligence-history.v1" | "workspace-context.v1" | "rapidkit-agent-reports-index.v1" | "rapidkit-agent-customization-pack.v1" | "workspace-skills-index.v1" | "workspace-explain.v1" | null;
78
+ contractPath: "contracts/workspace-intelligence/workspace-model.v1.json" | "contracts/workspace-intelligence/workspace-model-snapshot.v1.json" | "contracts/workspace-intelligence/workspace-model-diff.v1.json" | "contracts/workspace-intelligence/workspace-impact.v1.json" | "contracts/analyze-last-run.v1.json" | "contracts/doctor-workspace-evidence.v1.json" | "contracts/workspace-intelligence/workspace-contract-verify.v1.json" | "contracts/release-readiness.v1.json" | "contracts/workspace-intelligence/workspace-verify.v1.json" | "contracts/workspace-intelligence/workspace-intelligence-history.v1.json" | "contracts/workspace-intelligence/workspace-context.v1.json" | "contracts/workspace-intelligence/agent-reports-index.v1.json" | "contracts/workspace-intelligence/agent-customization-pack-report.v1.json" | "contracts/workspace-intelligence/workspace-skills-index.v1.json" | "contracts/workspace-intelligence/workspace-explain.v1.json" | null;
79
+ };
80
+ } | undefined;
81
+ schemaVersion: string | {
82
+ readonly model: "workspace-model.v1";
83
+ readonly snapshot: "workspace-model-snapshot.v1";
84
+ readonly diff: "workspace-model-diff.v1";
85
+ readonly impact: "workspace-impact.v1";
86
+ readonly analyze: "rapidkit-analyze-v1";
87
+ readonly doctor: "doctor-workspace-evidence-v1";
88
+ readonly contractVerify: "workspace-contract-verify.v1";
89
+ readonly readiness: "release-readiness-v1";
90
+ readonly verify: "workspace-verify.v1";
91
+ readonly history: "workspace-intelligence-history.v1";
92
+ readonly agentContext: "workspace-context.v1";
93
+ readonly agentIndex: "rapidkit-agent-reports-index.v1";
94
+ readonly agentCustomizationPack: "rapidkit-agent-customization-pack.v1";
95
+ readonly skillsIndex: "workspace-skills-index.v1";
96
+ readonly agents: null;
97
+ readonly explain: "workspace-explain.v1";
98
+ };
99
+ contractPath: string | null;
100
+ publication: "capability-contract" | "json-schema" | "embedded-type";
101
+ };
102
+ };
25
103
 
26
104
  declare function handleCreateOrFallback(args: string[]): Promise<number>;
27
- declare const NPM_ONLY_TOP_LEVEL_COMMANDS: readonly ["analyze", "readiness", "doctor", "autopilot", "pipeline", "import", "adopt", "snapshot", "workspace", "bootstrap", "setup", "cache", "mirror", "ai", "config", "product", "infra", "shell", "commands"];
105
+ declare const NPM_ONLY_TOP_LEVEL_COMMANDS: readonly ["analyze", "readiness", "doctor", "workspace", "autopilot", "pipeline", "import", "adopt", "snapshot", "bootstrap", "setup", "cache", "mirror", "ai", "config", "product", "infra", "shell", "commands"];
28
106
  declare const NPM_ONLY_SCOPED_COMMANDS: readonly [readonly ["project", "commands"], readonly ["project", "archives"], readonly ["project", "archive"], readonly ["project", "restore"], readonly ["project", "delete"]];
29
107
  declare const WRAPPER_ORCHESTRATED_PROJECT_COMMANDS: readonly ["init"];
30
108
  declare function isNpmExecInvocation(env?: NodeJS.ProcessEnv): boolean;
31
- declare const COMMAND_CAPABILITIES_SCHEMA_VERSION = "rapidkit-command-capabilities-v1";
32
- declare const VERSION_CONTRACT_SCHEMA_VERSION = "rapidkit-version-v1";
33
109
 
34
110
  declare function getVersionContract(): {
35
- schemaVersion: string;
111
+ schemaVersion: "rapidkit-version-v1";
36
112
  cli: string;
37
113
  version: string;
38
114
  node: string;
39
115
  platform: NodeJS.Platform;
40
- capabilitiesSchemaVersion: string;
116
+ capabilitiesSchemaVersion: "rapidkit-command-capabilities-v1";
41
117
  contracts: {
118
+ autopilotRelease: "autopilot-release-v1";
119
+ workspaceList: "rapidkit-workspace-list-v1";
120
+ workspaceSync: "rapidkit-workspace-sync-v1";
121
+ compatibilityMatrix: "rapidkit.compatibility-matrix.v1";
122
+ mcpDesign: "workspai-mcp-design.v1";
123
+ agentHooks: "workspai-agent-hooks.v1";
124
+ projectArchive: "rapidkit-project-archive-v1";
125
+ workspaceSnapshot: "rapidkit-workspace-snapshot-v1";
126
+ workspaceSnapshotV2: "rapidkit-workspace-snapshot-v2";
127
+ infraPlan: "rapidkit.infra-plan.v1";
128
+ privateProductManifest: "rapidkit.private-product-manifest.v1";
129
+ productFactoryPlan: "rapidkit.product-factory-plan.v1";
130
+ workspaceModelCache: "workspace-model-cache.v1";
131
+ workspaceWatchEvent: "workspace-watch-event.v1";
132
+ doctorProjectScan: "doctor-project-scan-v2";
133
+ doctorWorkspaceCache: "doctor-workspace-cache-v2";
42
134
  runtimeCommandSurface: string;
135
+ cliOperationResult: "workspai-cli-operation-result-v1";
136
+ publishedContractCatalog: "workspai-published-contract-catalog-v1";
137
+ workspaceArchiveCapabilities: "workspai-workspace-archive-capabilities-v1";
138
+ workspaceArchiveManifest: "workspai-workspace-archive-manifest-v1";
139
+ workspaceArchiveOperationResult: "workspai-workspace-archive-operation-result-v1";
140
+ projectEntryCapability: string;
141
+ workspaceIntelligenceArchitecture: string;
142
+ workspaceIntelligenceChain: "workspai-workspace-intelligence-chain-v1";
143
+ workspaceIntelligenceArtifacts: {
144
+ readonly model: "workspace-model.v1";
145
+ readonly snapshot: "workspace-model-snapshot.v1";
146
+ readonly diff: "workspace-model-diff.v1";
147
+ readonly impact: "workspace-impact.v1";
148
+ readonly analyze: "rapidkit-analyze-v1";
149
+ readonly doctor: "doctor-workspace-evidence-v1";
150
+ readonly contractVerify: "workspace-contract-verify.v1";
151
+ readonly readiness: "release-readiness-v1";
152
+ readonly verify: "workspace-verify.v1";
153
+ readonly history: "workspace-intelligence-history.v1";
154
+ readonly agentContext: "workspace-context.v1";
155
+ readonly agentIndex: "rapidkit-agent-reports-index.v1";
156
+ readonly agentCustomizationPack: "rapidkit-agent-customization-pack.v1";
157
+ readonly skillsIndex: "workspace-skills-index.v1";
158
+ readonly agents: null;
159
+ readonly explain: "workspace-explain.v1";
160
+ };
43
161
  cliLogEvent: "cli-log-event-v1";
44
162
  freshnessMetadata: "rapidkit-freshness-metadata-v1";
45
163
  factFreshness: "rapidkit-fact-freshness-v1";
46
164
  blockerResolution: "rapidkit-blocker-resolution-v1";
47
- workspaceModel: string;
48
- workspaceImpact: string;
49
- workspaceVerify: string;
50
- workspaceContext: string;
165
+ workspaceModel: "workspace-model.v1";
166
+ workspaceImpact: "workspace-impact.v1";
167
+ workspaceVerify: "workspace-verify.v1";
168
+ workspaceContext: "workspace-context.v1";
51
169
  workspaceDependencyGraph: "workspace-dependency-graph.v1";
52
170
  workspaceIntelligenceHistory: "workspace-intelligence-history.v1";
53
- agentCustomizationPack: string;
171
+ agentCustomizationPackCapabilities: "workspai-agent-customization-pack-capabilities.v1";
172
+ agentCustomizationPackReport: "rapidkit-agent-customization-pack.v1";
173
+ agentReportsIndex: "rapidkit-agent-reports-index.v1";
54
174
  workspaceOperationalSkill: "workspace-operational-skill.v1";
55
175
  workspaceSkillsIndex: "workspace-skills-index.v1";
56
176
  workspaceExplain: "workspace-explain.v1";
@@ -59,26 +179,101 @@ declare function getVersionContract(): {
59
179
  artifactRemediationPlan: "artifact-remediation-plan-v1";
60
180
  doctorFixResult: "rapidkit-doctor-fix-result-v1";
61
181
  };
182
+ contractCatalog: {
183
+ [k: string]: {
184
+ artifacts?: {
185
+ [k: string]: {
186
+ path: ".workspai/reports/workspace-model.json" | ".workspai/reports/workspace-model-snapshot.json" | ".workspai/reports/workspace-model-diff-last-run.json" | ".workspai/reports/workspace-impact-last-run.json" | ".workspai/reports/analyze-last-run.json" | ".workspai/reports/doctor-last-run.json" | ".workspai/reports/workspace-contract-verify-last-run.json" | ".workspai/reports/release-readiness-last-run.json" | ".workspai/reports/workspace-verify-last-run.json" | ".workspai/reports/workspace-intelligence-history.json" | ".workspai/reports/workspace-context-agent.json" | ".workspai/reports/INDEX.json" | ".workspai/reports/agent-customization-pack.json" | ".workspai/reports/workspace-skills-index.json" | "AGENTS.md" | ".workspai/reports/workspace-explain-last-run.json";
187
+ schemaVersion: "workspace-model.v1" | "workspace-model-snapshot.v1" | "workspace-model-diff.v1" | "workspace-impact.v1" | "rapidkit-analyze-v1" | "doctor-workspace-evidence-v1" | "workspace-contract-verify.v1" | "release-readiness-v1" | "workspace-verify.v1" | "workspace-intelligence-history.v1" | "workspace-context.v1" | "rapidkit-agent-reports-index.v1" | "rapidkit-agent-customization-pack.v1" | "workspace-skills-index.v1" | "workspace-explain.v1" | null;
188
+ contractPath: "contracts/workspace-intelligence/workspace-model.v1.json" | "contracts/workspace-intelligence/workspace-model-snapshot.v1.json" | "contracts/workspace-intelligence/workspace-model-diff.v1.json" | "contracts/workspace-intelligence/workspace-impact.v1.json" | "contracts/analyze-last-run.v1.json" | "contracts/doctor-workspace-evidence.v1.json" | "contracts/workspace-intelligence/workspace-contract-verify.v1.json" | "contracts/release-readiness.v1.json" | "contracts/workspace-intelligence/workspace-verify.v1.json" | "contracts/workspace-intelligence/workspace-intelligence-history.v1.json" | "contracts/workspace-intelligence/workspace-context.v1.json" | "contracts/workspace-intelligence/agent-reports-index.v1.json" | "contracts/workspace-intelligence/agent-customization-pack-report.v1.json" | "contracts/workspace-intelligence/workspace-skills-index.v1.json" | "contracts/workspace-intelligence/workspace-explain.v1.json" | null;
189
+ };
190
+ } | undefined;
191
+ schemaVersion: string | {
192
+ readonly model: "workspace-model.v1";
193
+ readonly snapshot: "workspace-model-snapshot.v1";
194
+ readonly diff: "workspace-model-diff.v1";
195
+ readonly impact: "workspace-impact.v1";
196
+ readonly analyze: "rapidkit-analyze-v1";
197
+ readonly doctor: "doctor-workspace-evidence-v1";
198
+ readonly contractVerify: "workspace-contract-verify.v1";
199
+ readonly readiness: "release-readiness-v1";
200
+ readonly verify: "workspace-verify.v1";
201
+ readonly history: "workspace-intelligence-history.v1";
202
+ readonly agentContext: "workspace-context.v1";
203
+ readonly agentIndex: "rapidkit-agent-reports-index.v1";
204
+ readonly agentCustomizationPack: "rapidkit-agent-customization-pack.v1";
205
+ readonly skillsIndex: "workspace-skills-index.v1";
206
+ readonly agents: null;
207
+ readonly explain: "workspace-explain.v1";
208
+ };
209
+ contractPath: string | null;
210
+ publication: "capability-contract" | "json-schema" | "embedded-type";
211
+ };
212
+ };
62
213
  };
63
214
  declare function getGlobalCommandCapabilities(): {
64
- schemaVersion: string;
215
+ schemaVersion: "rapidkit-command-capabilities-v1";
65
216
  scope: string;
66
217
  cli: string;
67
218
  version: string;
68
219
  cwd: string;
69
220
  contracts: {
221
+ autopilotRelease: "autopilot-release-v1";
222
+ workspaceList: "rapidkit-workspace-list-v1";
223
+ workspaceSync: "rapidkit-workspace-sync-v1";
224
+ compatibilityMatrix: "rapidkit.compatibility-matrix.v1";
225
+ mcpDesign: "workspai-mcp-design.v1";
226
+ agentHooks: "workspai-agent-hooks.v1";
227
+ projectArchive: "rapidkit-project-archive-v1";
228
+ workspaceSnapshot: "rapidkit-workspace-snapshot-v1";
229
+ workspaceSnapshotV2: "rapidkit-workspace-snapshot-v2";
230
+ infraPlan: "rapidkit.infra-plan.v1";
231
+ privateProductManifest: "rapidkit.private-product-manifest.v1";
232
+ productFactoryPlan: "rapidkit.product-factory-plan.v1";
233
+ workspaceModelCache: "workspace-model-cache.v1";
234
+ workspaceWatchEvent: "workspace-watch-event.v1";
235
+ doctorProjectScan: "doctor-project-scan-v2";
236
+ doctorWorkspaceCache: "doctor-workspace-cache-v2";
70
237
  runtimeCommandSurface: string;
238
+ cliOperationResult: "workspai-cli-operation-result-v1";
239
+ publishedContractCatalog: "workspai-published-contract-catalog-v1";
240
+ workspaceArchiveCapabilities: "workspai-workspace-archive-capabilities-v1";
241
+ workspaceArchiveManifest: "workspai-workspace-archive-manifest-v1";
242
+ workspaceArchiveOperationResult: "workspai-workspace-archive-operation-result-v1";
243
+ projectEntryCapability: string;
244
+ workspaceIntelligenceArchitecture: string;
245
+ workspaceIntelligenceChain: "workspai-workspace-intelligence-chain-v1";
246
+ workspaceIntelligenceArtifacts: {
247
+ readonly model: "workspace-model.v1";
248
+ readonly snapshot: "workspace-model-snapshot.v1";
249
+ readonly diff: "workspace-model-diff.v1";
250
+ readonly impact: "workspace-impact.v1";
251
+ readonly analyze: "rapidkit-analyze-v1";
252
+ readonly doctor: "doctor-workspace-evidence-v1";
253
+ readonly contractVerify: "workspace-contract-verify.v1";
254
+ readonly readiness: "release-readiness-v1";
255
+ readonly verify: "workspace-verify.v1";
256
+ readonly history: "workspace-intelligence-history.v1";
257
+ readonly agentContext: "workspace-context.v1";
258
+ readonly agentIndex: "rapidkit-agent-reports-index.v1";
259
+ readonly agentCustomizationPack: "rapidkit-agent-customization-pack.v1";
260
+ readonly skillsIndex: "workspace-skills-index.v1";
261
+ readonly agents: null;
262
+ readonly explain: "workspace-explain.v1";
263
+ };
71
264
  cliLogEvent: "cli-log-event-v1";
72
265
  freshnessMetadata: "rapidkit-freshness-metadata-v1";
73
266
  factFreshness: "rapidkit-fact-freshness-v1";
74
267
  blockerResolution: "rapidkit-blocker-resolution-v1";
75
- workspaceModel: string;
76
- workspaceImpact: string;
77
- workspaceVerify: string;
78
- workspaceContext: string;
268
+ workspaceModel: "workspace-model.v1";
269
+ workspaceImpact: "workspace-impact.v1";
270
+ workspaceVerify: "workspace-verify.v1";
271
+ workspaceContext: "workspace-context.v1";
79
272
  workspaceDependencyGraph: "workspace-dependency-graph.v1";
80
273
  workspaceIntelligenceHistory: "workspace-intelligence-history.v1";
81
- agentCustomizationPack: string;
274
+ agentCustomizationPackCapabilities: "workspai-agent-customization-pack-capabilities.v1";
275
+ agentCustomizationPackReport: "rapidkit-agent-customization-pack.v1";
276
+ agentReportsIndex: "rapidkit-agent-reports-index.v1";
82
277
  workspaceOperationalSkill: "workspace-operational-skill.v1";
83
278
  workspaceSkillsIndex: "workspace-skills-index.v1";
84
279
  workspaceExplain: "workspace-explain.v1";
@@ -87,6 +282,37 @@ declare function getGlobalCommandCapabilities(): {
87
282
  artifactRemediationPlan: "artifact-remediation-plan-v1";
88
283
  doctorFixResult: "rapidkit-doctor-fix-result-v1";
89
284
  };
285
+ contractCatalog: {
286
+ [k: string]: {
287
+ artifacts?: {
288
+ [k: string]: {
289
+ path: ".workspai/reports/workspace-model.json" | ".workspai/reports/workspace-model-snapshot.json" | ".workspai/reports/workspace-model-diff-last-run.json" | ".workspai/reports/workspace-impact-last-run.json" | ".workspai/reports/analyze-last-run.json" | ".workspai/reports/doctor-last-run.json" | ".workspai/reports/workspace-contract-verify-last-run.json" | ".workspai/reports/release-readiness-last-run.json" | ".workspai/reports/workspace-verify-last-run.json" | ".workspai/reports/workspace-intelligence-history.json" | ".workspai/reports/workspace-context-agent.json" | ".workspai/reports/INDEX.json" | ".workspai/reports/agent-customization-pack.json" | ".workspai/reports/workspace-skills-index.json" | "AGENTS.md" | ".workspai/reports/workspace-explain-last-run.json";
290
+ schemaVersion: "workspace-model.v1" | "workspace-model-snapshot.v1" | "workspace-model-diff.v1" | "workspace-impact.v1" | "rapidkit-analyze-v1" | "doctor-workspace-evidence-v1" | "workspace-contract-verify.v1" | "release-readiness-v1" | "workspace-verify.v1" | "workspace-intelligence-history.v1" | "workspace-context.v1" | "rapidkit-agent-reports-index.v1" | "rapidkit-agent-customization-pack.v1" | "workspace-skills-index.v1" | "workspace-explain.v1" | null;
291
+ contractPath: "contracts/workspace-intelligence/workspace-model.v1.json" | "contracts/workspace-intelligence/workspace-model-snapshot.v1.json" | "contracts/workspace-intelligence/workspace-model-diff.v1.json" | "contracts/workspace-intelligence/workspace-impact.v1.json" | "contracts/analyze-last-run.v1.json" | "contracts/doctor-workspace-evidence.v1.json" | "contracts/workspace-intelligence/workspace-contract-verify.v1.json" | "contracts/release-readiness.v1.json" | "contracts/workspace-intelligence/workspace-verify.v1.json" | "contracts/workspace-intelligence/workspace-intelligence-history.v1.json" | "contracts/workspace-intelligence/workspace-context.v1.json" | "contracts/workspace-intelligence/agent-reports-index.v1.json" | "contracts/workspace-intelligence/agent-customization-pack-report.v1.json" | "contracts/workspace-intelligence/workspace-skills-index.v1.json" | "contracts/workspace-intelligence/workspace-explain.v1.json" | null;
292
+ };
293
+ } | undefined;
294
+ schemaVersion: string | {
295
+ readonly model: "workspace-model.v1";
296
+ readonly snapshot: "workspace-model-snapshot.v1";
297
+ readonly diff: "workspace-model-diff.v1";
298
+ readonly impact: "workspace-impact.v1";
299
+ readonly analyze: "rapidkit-analyze-v1";
300
+ readonly doctor: "doctor-workspace-evidence-v1";
301
+ readonly contractVerify: "workspace-contract-verify.v1";
302
+ readonly readiness: "release-readiness-v1";
303
+ readonly verify: "workspace-verify.v1";
304
+ readonly history: "workspace-intelligence-history.v1";
305
+ readonly agentContext: "workspace-context.v1";
306
+ readonly agentIndex: "rapidkit-agent-reports-index.v1";
307
+ readonly agentCustomizationPack: "rapidkit-agent-customization-pack.v1";
308
+ readonly skillsIndex: "workspace-skills-index.v1";
309
+ readonly agents: null;
310
+ readonly explain: "workspace-explain.v1";
311
+ };
312
+ contractPath: string | null;
313
+ publication: "capability-contract" | "json-schema" | "embedded-type";
314
+ };
315
+ };
90
316
  commands: {
91
317
  npmOwned: string[];
92
318
  coreBacked: string[];
@@ -94,8 +320,8 @@ declare function getGlobalCommandCapabilities(): {
94
320
  };
95
321
  workspace: {
96
322
  command: string;
97
- subcommands: ("init" | "import" | "snapshot" | "archive" | "list" | "diff" | "sync" | "registry" | "foundation" | "model" | "impact" | "verify" | "graph" | "watch" | "context" | "agent-sync" | "remediation-plan" | "explain" | "why" | "trace" | "feedback" | "mcp" | "policy" | "contract" | "share" | "export" | "hydrate" | "run")[];
98
- intelligenceSubcommands: ("snapshot" | "diff" | "model" | "impact" | "verify" | "context" | "agent-sync" | "remediation-plan" | "explain" | "why" | "trace")[];
323
+ subcommands: ("init" | "import" | "snapshot" | "archive" | "model" | "diff" | "impact" | "verify" | "explain" | "list" | "sync" | "registry" | "foundation" | "graph" | "watch" | "context" | "agent-sync" | "remediation-plan" | "why" | "trace" | "feedback" | "mcp" | "policy" | "contract" | "share" | "export" | "hydrate" | "run")[];
324
+ intelligenceSubcommands: ("snapshot" | "model" | "diff" | "impact" | "verify" | "explain" | "context" | "agent-sync" | "remediation-plan" | "why" | "trace")[];
99
325
  };
100
326
  commandMap: any;
101
327
  };
@@ -138,4 +364,4 @@ declare function handleMirrorCommand(args: string[]): Promise<number>;
138
364
  declare function handleInitCommand(args: string[]): Promise<number>;
139
365
  declare function shouldForwardToCore(args: string[]): Promise<boolean>;
140
366
 
141
- export { COMMAND_CAPABILITIES_SCHEMA_VERSION, type DoctorWorkspaceShadowDiagnostic, NPM_ONLY_SCOPED_COMMANDS, NPM_ONLY_TOP_LEVEL_COMMANDS, PROJECT_COMMANDS_CORE_FALLBACK, VERSION_CONTRACT_SCHEMA_VERSION, WRAPPER_ORCHESTRATED_PROJECT_COMMANDS, detectWindowsDoctorWorkspaceShadow, getGlobalCommandCapabilities, getPublishedContractVersions, getVersionContract, handleAdoptCommand, handleBootstrapCommand, handleCacheCommand, handleCreateOrFallback, handleImportCommand, handleInitCommand, handleMirrorCommand, handleSetupCommand, installWorkspaceDependencies, isNpmExecInvocation, shouldForwardToCore };
367
+ export { COMMAND_CAPABILITIES_SCHEMA_VERSION, type DoctorWorkspaceShadowDiagnostic, NPM_ONLY_SCOPED_COMMANDS, NPM_ONLY_TOP_LEVEL_COMMANDS, PROJECT_COMMANDS_CORE_FALLBACK, VERSION_CONTRACT_SCHEMA_VERSION, WRAPPER_ORCHESTRATED_PROJECT_COMMANDS, detectWindowsDoctorWorkspaceShadow, getGlobalCommandCapabilities, getPublishedContractCatalog, getPublishedContractVersions, getVersionContract, handleAdoptCommand, handleBootstrapCommand, handleCacheCommand, handleCreateOrFallback, handleImportCommand, handleInitCommand, handleMirrorCommand, handleSetupCommand, installWorkspaceDependencies, isNpmExecInvocation, shouldForwardToCore };