workspai 0.46.0 → 0.48.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.
- package/README.md +225 -81
- package/contracts/agent-customization-pack.v1.json +11 -1
- package/contracts/bootstrap-compliance.v1.json +14 -0
- package/contracts/cli-runtime-command-inventory.v1.snapshot.json +4 -0
- package/contracts/extension-cli-compatibility.v1.json +13 -2
- package/contracts/mirror-ops.v1.json +16 -0
- package/contracts/published-contract-catalog.v1.json +59 -1
- package/contracts/runtime-command-surface.v1.json +294 -2
- package/contracts/transparency-evidence.v1.json +13 -0
- package/contracts/workspace-contract.v1.json +78 -0
- package/contracts/workspace-intelligence/model-usage-event.v1.json +82 -0
- package/contracts/workspace-intelligence/workspace-context.v1.json +20 -0
- package/contracts/workspace-intelligence/workspace-graph-token-efficiency.v1.json +72 -0
- package/contracts/workspace-intelligence/workspace-intelligence-evaluation-comparison.v1.json +53 -0
- package/contracts/workspace-intelligence/workspace-intelligence-evaluation.v1.json +120 -0
- package/contracts/workspace-intelligence/workspace-intelligence-run.v1.json +6 -1
- package/contracts/workspace-intelligence/workspace-knowledge-graph-change-overlay.v1.json +200 -0
- package/contracts/workspace-intelligence/workspace-knowledge-graph.v1.json +260 -0
- package/contracts/workspace-intelligence/workspace-knowledge-search.v1.json +60 -0
- package/contracts/workspace-intelligence-architecture.v1.json +37 -5
- package/contracts/workspace-intelligence-chain.v1.json +58 -6
- package/contracts/workspace-share-bundle.v1.json +16 -0
- package/dist/analyze-EEEU3MIF.js +1 -0
- package/dist/artifact-remediation-plan-SPOUHMK5.js +3 -0
- package/dist/autopilot-release-XGVXPOZI.js +1 -0
- package/dist/chunk-32OJDBIG.js +2 -0
- package/dist/chunk-37CVKXBD.js +1 -0
- package/dist/chunk-3NU32T4A.js +2 -0
- package/dist/chunk-3VFA7D5T.js +1 -0
- package/dist/chunk-4HDYADHT.js +13 -0
- package/dist/chunk-54EP5CEV.js +8 -0
- package/dist/chunk-5S3DJQEP.js +8 -0
- package/dist/chunk-AFL3ACCR.js +2 -0
- package/dist/{chunk-VFDM65IE.js → chunk-BFLJ2R4D.js} +22 -22
- package/dist/chunk-BGPXQQNY.js +4 -0
- package/dist/chunk-BMWFQXGW.js +1 -0
- package/dist/{chunk-UQWOVV6V.js → chunk-CRHYBQI3.js} +1 -1
- package/dist/chunk-CV5HKU4P.js +1 -0
- package/dist/chunk-ESLPI3XZ.js +1 -0
- package/dist/chunk-FB7SCXAZ.js +1 -0
- package/dist/{chunk-WPEEC5BX.js → chunk-HDXNIN4N.js} +1 -1
- package/dist/chunk-HZDXO65G.js +36 -0
- package/dist/{chunk-J5PIZCAU.js → chunk-I46XEIPL.js} +1 -1
- package/dist/chunk-J5ENLXDF.js +1 -0
- package/dist/chunk-KB44JP4M.js +2 -0
- package/dist/chunk-LHOZXC2M.js +2 -0
- package/dist/chunk-NAJCUQ4X.js +2 -0
- package/dist/chunk-OA537ZQ5.js +1 -0
- package/dist/chunk-OW42TZFB.js +1 -0
- package/dist/chunk-P3D5YQB2.js +1 -0
- package/dist/chunk-PHXQR6PX.js +2 -0
- package/dist/{chunk-ZKAI3PJE.js → chunk-PRTR2DQ2.js} +1 -1
- package/dist/{chunk-QA5BGEQW.js → chunk-QNONOO4F.js} +1 -1
- package/dist/chunk-RHQW3DTP.js +1 -0
- package/dist/chunk-T4YR4RAI.js +2 -0
- package/dist/chunk-THIOE2PB.js +2 -0
- package/dist/{chunk-4LGXSBCN.js → chunk-VU7NZHPM.js} +1 -1
- package/dist/chunk-WDKNMTJQ.js +1 -0
- package/dist/{chunk-YUATNVOT.js → chunk-Y5UJLPS4.js} +16 -16
- package/dist/{chunk-6IIZJQLV.js → chunk-YJZOMRAS.js} +1 -1
- package/dist/{create-WCV3L6XH.js → create-DBQNAMKP.js} +1 -1
- package/dist/{doctor-5BWM2EMJ.js → doctor-4NNUDNGZ.js} +1 -1
- package/dist/{dotnet-webapi-clean-6TVFBTVI.js → dotnet-webapi-clean-A6MVDYXX.js} +4 -4
- package/dist/{gofiber-standard-2BL7GWZB.js → gofiber-standard-I5YPQG5V.js} +1 -1
- package/dist/{gogin-standard-XGP3KBXA.js → gogin-standard-VY2L4QT5.js} +1 -1
- package/dist/index.d.ts +56 -14
- package/dist/index.js +322 -320
- package/dist/pipeline-TQM43A3K.js +5 -0
- package/dist/{springboot-standard-JJNUID6M.js → springboot-standard-55XKCBIZ.js} +4 -4
- package/dist/{workspace-7OXW5YTJ.js → workspace-NCWRINEF.js} +1 -1
- package/dist/{workspace-agent-sync-O4IA6VOA.js → workspace-agent-sync-662QHXGF.js} +1 -1
- package/dist/{workspace-archive-H74NBBNW.js → workspace-archive-P76EDIUG.js} +1 -1
- package/dist/{workspace-context-R7IPUBPG.js → workspace-context-23YYCUCP.js} +1 -1
- package/dist/workspace-contract-TU2I7GC2.js +1 -0
- package/dist/workspace-dependency-graph-BP4EXYQ5.js +1 -0
- package/dist/workspace-explain-MWUEN643.js +1 -0
- package/dist/workspace-explain-contract-ZPI3JXJU.js +1 -0
- package/dist/{workspace-feedback-REOS36ZZ.js → workspace-feedback-SUVH2LUJ.js} +1 -1
- package/dist/{workspace-foundation-KXT4QI5O.js → workspace-foundation-WXJ6I7ES.js} +1 -1
- package/dist/workspace-graph-token-efficiency-CFGFCJ5V.js +1 -0
- package/dist/{workspace-history-OGOVSKZG.js → workspace-history-BANOJRQ2.js} +1 -1
- package/dist/workspace-intelligence-MFJE7W67.js +1 -0
- package/dist/workspace-intelligence-evaluation-IPH7M3WV.js +1 -0
- package/dist/workspace-intelligence-runner-THYLHHMF.js +1 -0
- package/dist/workspace-knowledge-graph-ARDC6HHG.js +1 -0
- package/dist/workspace-knowledge-graph-change-overlay-XG6FC4IX.js +1 -0
- package/dist/workspace-knowledge-graph-export-UYAYFTWX.js +10 -0
- package/dist/workspace-knowledge-graph-query-VOSPPH4W.js +1 -0
- package/dist/workspace-mcp-serve-EZR6O76D.js +3 -0
- package/dist/workspace-model-7OU2M3LE.js +1 -0
- package/dist/workspace-model-hash-MHXK5MEI.js +1 -0
- package/dist/{workspace-registry-summary-SZ46R5PD.js → workspace-registry-summary-ORDK7A36.js} +1 -1
- package/dist/workspace-run-RLIYSOTN.js +1 -0
- package/dist/{workspace-verify-MFQ7IXGD.js → workspace-verify-EBVL7FWT.js} +1 -1
- package/dist/workspace-watch-3BPGLFLB.js +1 -0
- package/docs/AI_DYNAMIC_INTEGRATION.md +73 -428
- package/docs/AI_EXAMPLES.md +37 -395
- package/docs/AI_FEATURES.md +76 -456
- package/docs/AI_QUICKSTART.md +49 -212
- package/docs/GLOSSARY.md +64 -0
- package/docs/OPEN_SOURCE_USER_SCENARIOS.md +68 -7
- package/docs/README.md +70 -41
- package/docs/README_CONTENT_CONTRACT.md +154 -0
- package/docs/commands-reference.md +64 -4
- package/docs/config-file-guide.md +6 -2
- package/docs/contracts/ARTIFACT_CATALOG.md +76 -37
- package/docs/contracts/README.md +47 -8
- package/docs/graph-benchmark-methodology.md +121 -0
- package/docs/workspace-intelligence-evaluation.md +147 -0
- package/docs/workspace-knowledge-graph.md +316 -0
- package/docs/workspace-operations.md +49 -0
- package/package.json +2 -1
- package/dist/analyze-BEBEZSZK.js +0 -1
- package/dist/artifact-remediation-plan-FFQSESAM.js +0 -3
- package/dist/autopilot-release-WUR4CQIT.js +0 -1
- package/dist/chunk-2G7FASAO.js +0 -2
- package/dist/chunk-4EPHWD27.js +0 -8
- package/dist/chunk-CVHMUSRX.js +0 -1
- package/dist/chunk-DIPD72H4.js +0 -2
- package/dist/chunk-EFYHGCGX.js +0 -2
- package/dist/chunk-FWRXA435.js +0 -2
- package/dist/chunk-HDURFXW5.js +0 -2
- package/dist/chunk-HMUKBW2S.js +0 -4
- package/dist/chunk-K4WNYXKK.js +0 -33
- package/dist/chunk-LG6RFLPZ.js +0 -1
- package/dist/chunk-N7DV5L7C.js +0 -1
- package/dist/chunk-PRBVYW3T.js +0 -1
- package/dist/chunk-QZLIURER.js +0 -13
- package/dist/chunk-RIEF2DDX.js +0 -8
- package/dist/chunk-SXMTSV5M.js +0 -1
- package/dist/chunk-SXPY523X.js +0 -1
- package/dist/chunk-V3LRQZ36.js +0 -1
- package/dist/chunk-WYFPXTTS.js +0 -2
- package/dist/pipeline-ORIWVVYM.js +0 -5
- package/dist/workspace-contract-HKCMOMFE.js +0 -1
- package/dist/workspace-explain-GOPQYTPQ.js +0 -1
- package/dist/workspace-explain-contract-SVFJAAEI.js +0 -1
- package/dist/workspace-intelligence-7IESQSXY.js +0 -1
- package/dist/workspace-intelligence-runner-6GJ5M4HB.js +0 -1
- package/dist/workspace-mcp-serve-FRVWBO36.js +0 -3
- package/dist/workspace-model-PPYX7B4S.js +0 -1
- package/dist/workspace-run-V3KKHTVF.js +0 -1
- package/dist/workspace-watch-SOPZHRWA.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {b as b$1,c}from'./chunk-IBJEQHJR.js';import {c as c$1}from'./chunk-Y45WZR5N.js';import {b as b$2,a}from'./chunk-TQEMLBAG.js';import {promises}from'fs';import
|
|
1
|
+
import {b as b$1,c}from'./chunk-IBJEQHJR.js';import {c as c$1}from'./chunk-Y45WZR5N.js';import {b as b$2,a}from'./chunk-TQEMLBAG.js';import {promises}from'fs';import o from'path';import i from'chalk';import S from'ora';import {execa}from'execa';var b="net8.0",j="8080";function y(e){return e.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").replace(/-{2,}/g,"-")}function E(e,r){return e.trim().replace(/[^A-Za-z0-9_.]+/g,".").replace(/^\.+|\.+$/g,"").replace(/\.{2,}/g,".").split(".").map(a=>a.replace(/^[^A-Za-z_]+/,"").replace(/[^A-Za-z0-9_]/g,"")).filter(Boolean).join(".")||r}function _(e,r){return e.replace(/[\r\n\t]+/g," ").trim()||r}function D(e){return e.trim()===b}function $(){return JSON.stringify({engine:"npm",runtime:"dotnet"},null,2)}function I(e,r){return JSON.stringify({kit_name:"dotnet.webapi.clean",runtime:"dotnet",framework:"dotnet",module_support:false,project_name:e.project_name,root_namespace:e.root_namespace,target_framework:e.target_framework,app_version:e.app_version,created_by:"workspai",workspai_version:r,rapidkit_version:r,created_at:new Date().toISOString()},null,2)}function P(e){return `<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
2
2
|
<PropertyGroup>
|
|
3
3
|
<TargetFramework>${e.target_framework}</TargetFramework>
|
|
4
4
|
<Nullable>enable</Nullable>
|
|
@@ -417,9 +417,9 @@ Global
|
|
|
417
417
|
{22222222-2222-2222-2222-222222222222} = {44444444-4444-4444-4444-444444444444}
|
|
418
418
|
EndGlobalSection
|
|
419
419
|
EndGlobal
|
|
420
|
-
`.trimStart()}async function q(e,r){if(!r)try{if(await b$2(e)){console.log(i.gray("\u26A0 git init skipped (target is inside an existing git worktree)"));return}await execa("git",["init"],{cwd:e,stdio:"ignore",env:a()});}catch{console.log(i.gray("\u26A0 git init skipped (git not found or error)"));}}async function B(e){try{await execa("dotnet",["--version"],{cwd:e,timeout:3e3,stdio:"pipe"});}catch{console.log(i.yellow("\u26A0 .NET SDK not found in PATH - project scaffolded, but init/build need .NET 8+")),console.log(i.gray(" Install: https://dotnet.microsoft.com/download"));}}async function oe(e,r){let s=y(r.project_name)||"dotnet-api",c$2=E(r.root_namespace||`Workspai.${b$1(s)}`,"Workspai.App"),a=r.target_framework?.trim(),C=a&&D(a)?a:b,R=r.port&&/^\d+$/.test(r.port)?r.port:j,
|
|
421
|
-
PORT=${
|
|
422
|
-
`),await c(
|
|
420
|
+
`.trimStart()}async function q(e,r){if(!r)try{if(await b$2(e)){console.log(i.gray("\u26A0 git init skipped (target is inside an existing git worktree)"));return}await execa("git",["init"],{cwd:e,stdio:"ignore",env:a()});}catch{console.log(i.gray("\u26A0 git init skipped (git not found or error)"));}}async function B(e){try{await execa("dotnet",["--version"],{cwd:e,timeout:3e3,stdio:"pipe"});}catch{console.log(i.yellow("\u26A0 .NET SDK not found in PATH - project scaffolded, but init/build need .NET 8+")),console.log(i.gray(" Install: https://dotnet.microsoft.com/download"));}}async function oe(e,r){let s=y(r.project_name)||"dotnet-api",c$2=E(r.root_namespace||`Workspai.${b$1(s)}`,"Workspai.App"),a=r.target_framework?.trim(),C=a&&D(a)?a:b,R=r.port&&/^\d+$/.test(r.port)?r.port:j,t={project_name:s,root_namespace:c$2,description:_(r.description||"","Production-ready ASP.NET Core Web API scaffolded by Workspai."),target_framework:C,app_version:r.app_version||"0.1.0",port:R,skipGit:r.skipGit??false,skipInstall:r.skipInstall??false},A=S(`Creating ASP.NET Core Web API project ${s}`).start();await promises.mkdir(e,{recursive:true}),await c(o.join(e,`${s}.sln`),H(t)),await c(o.join(e,"src",`${s}.csproj`),P(t)),await c(o.join(e,"src","Program.cs"),T(t)),await c(o.join(e,"src","Application","ApplicationInfoOptions.cs"),w(t)),await c(o.join(e,"src","Application","ApplicationServiceRegistration.cs"),x(t)),await c(o.join(e,"src","Application","SystemInfoService.cs"),v(t)),await c(o.join(e,"src","Infrastructure","InfrastructureServiceRegistration.cs"),N(t)),await c(o.join(e,"src","Presentation","PresentationServiceRegistration.cs"),h(t)),await c(o.join(e,"src","Presentation","SystemEndpoints.cs"),V(t)),await c(o.join(e,"src","appsettings.json"),g(t)),await c(o.join(e,"src","appsettings.Development.json"),g(t)),await c(o.join(e,"tests",`${s}.Tests.csproj`),k(t)),await c(o.join(e,"tests","RuntimeSmokeTests.cs"),L(t)),await c(o.join(e,"Dockerfile"),U(t)),await c(o.join(e,"docker-compose.yml"),O(t)),await c(o.join(e,"Makefile"),W(t)),await c(o.join(e,"rapidkit"),M(t)),await c(o.join(e,"rapidkit.cmd"),G(t)),await c(o.join(e,".env.example"),`ASPNETCORE_ENVIRONMENT=Development
|
|
421
|
+
PORT=${t.port}
|
|
422
|
+
`),await c(o.join(e,".github","workflows","ci.yml"),F(t)),await c(o.join(e,".workspai","context.json"),$()),await c(o.join(e,".workspai","project.json"),I(t,c$1())),process.platform!=="win32"&&await promises.chmod(o.join(e,"rapidkit"),493),await q(e,t.skipGit),A.succeed("ASP.NET Core Web API project ready"),t.skipInstall||await B(e),console.log(i.green(`
|
|
423
423
|
\u2705 ASP.NET Core project ready!
|
|
424
424
|
`)),console.log(i.gray("Next steps:")),console.log(i.white(` cd ${s}`)),console.log(i.white(" npx workspai init")),console.log(i.white(" npx workspai dev")),console.log(i.gray(`
|
|
425
425
|
Endpoints: /health/live, /health/ready, /api/v1/system/info, /docs`)),console.log(i.gray("\u2139 RapidKit Core modules are not available for .NET projects yet."));}export{j as DEFAULT_DOTNET_PORT,b as DEFAULT_DOTNET_TARGET_FRAMEWORK,oe as generateDotnetWebApiCleanKit};
|
|
@@ -1392,6 +1392,6 @@ issues:
|
|
|
1392
1392
|
linters:
|
|
1393
1393
|
- errcheck
|
|
1394
1394
|
- wrapcheck
|
|
1395
|
-
`}function z(){return JSON.stringify({engine:"npm",runtime:"go"},null,2)}function Z(e$1){return e({runtimeLabel:"Go/Fiber",projectName:e$1.project_name,fallbackDevCommand:'exec go run ./cmd/server "$@"'})}function ee(e){return f({runtimeLabel:"Go/Fiber",projectName:e.project_name})}function te(e,i){return JSON.stringify({kit_name:"gofiber.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:i,rapidkit_version:i,created_at:new Date().toISOString()},null,2)}async function ce(e,i){let r={project_name:i.project_name,module_path:i.module_path||i.project_name,author:i.author||"Workspai User",description:i.description||`Go/Fiber REST API \u2014 ${i.project_name}`,go_version:i.go_version||a$1,app_version:i.app_version||"0.1.0",port:i.port||"3000",skipGit:i.skipGit??false,skipInstall:i.skipInstall??false},v=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/
|
|
1395
|
+
`}function z(){return JSON.stringify({engine:"npm",runtime:"go"},null,2)}function Z(e$1){return e({runtimeLabel:"Go/Fiber",projectName:e$1.project_name,fallbackDevCommand:'exec go run ./cmd/server "$@"'})}function ee(e){return f({runtimeLabel:"Go/Fiber",projectName:e.project_name})}function te(e,i){return JSON.stringify({kit_name:"gofiber.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:i,rapidkit_version:i,created_at:new Date().toISOString()},null,2)}async function ce(e,i){let r={project_name:i.project_name,module_path:i.module_path||i.project_name,author:i.author||"Workspai User",description:i.description||`Go/Fiber REST API \u2014 ${i.project_name}`,go_version:i.go_version||a$1,app_version:i.app_version||"0.1.0",port:i.port||"3000",skipGit:i.skipGit??false,skipInstall:i.skipInstall??false},v=c();if(!r.skipInstall)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/
|
|
1396
1396
|
`));}let n=T(`Generating Go/Fiber project: ${r.project_name}\u2026`).start();try{let t=(S,_)=>c$1(p.join(e,S),_),w=p.join(e,"rapidkit"),R=p.join(e,"rapidkit.cmd");if(await Promise.all([t("cmd/server/main.go",q(r)),t("go.mod",O(r)),t("internal/config/config.go",y(r)),t("internal/server/server.go",C(r)),t("internal/middleware/requestid.go",P()),t("internal/middleware/requestid_test.go",D(r)),t("internal/apierr/apierr.go",M()),t("internal/apierr/apierr_test.go",B(r)),t("internal/handlers/health.go",N()),t("internal/handlers/health_test.go",E(r)),t("internal/handlers/example.go",j(r)),t("internal/handlers/example_test.go",H(r)),t("internal/config/config_test.go",U(r)),t("internal/middleware/cors.go",V()),t("internal/middleware/cors_test.go",J(r)),t("internal/middleware/ratelimit.go",K(r)),t("internal/middleware/ratelimit_test.go",X(r)),t("internal/server/server_test.go",W(r)),t("docs/doc.go",$(r)),t(".air.toml",Q(r)),t("Dockerfile",L()),t("docker-compose.yml",G(r)),t("Makefile",A(r)),t(".golangci.yml",Y(r.module_path)),t(".env.example",I(r)),t(".gitignore",k()),t(".github/workflows/ci.yml",F(r)),t("README.md",x(r)),t(".workspai/project.json",te(r,v)),t(".workspai/context.json",z()),t("rapidkit",Z(r)),t("rapidkit.cmd",ee(r))]),await promises.chmod(w,493),await promises.chmod(R,493),n.succeed(o.green(`Project created at ${e}`)),r.skipInstall)n.info(o.gray("Skipped Go dependency warm-up (--skip-install)."));else try{n.start("Fetching Go dependencies\u2026"),await execa("go",["mod","tidy"],{cwd:e,timeout:12e4}),n.succeed(o.gray("\u2713 go mod tidy completed"));}catch{n.warn(o.yellow("\u26A0 go mod tidy failed \u2014 run manually: go mod tidy"));}if(!r.skipGit)try{await b(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 gofiber.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/Fiber 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 n.fail(o.red("Failed to generate Go/Fiber project")),t}}
|
|
1397
1397
|
export{ce as generateGoFiberKit};
|
|
@@ -1454,6 +1454,6 @@ issues:
|
|
|
1454
1454
|
linters:
|
|
1455
1455
|
- errcheck
|
|
1456
1456
|
- wrapcheck
|
|
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/
|
|
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();if(!r.skipInstall)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
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
1459
|
export{ge as generateGoGinKit};
|
package/dist/index.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ declare function getPublishedContractVersions(): {
|
|
|
35
35
|
workspaceWatchEvent: "workspace-watch-event.v1";
|
|
36
36
|
doctorProjectScan: "doctor-project-scan-v2";
|
|
37
37
|
doctorWorkspaceCache: "doctor-workspace-cache-v2";
|
|
38
|
+
workspaceContract: number;
|
|
38
39
|
runtimeCommandSurface: string;
|
|
39
40
|
cliRuntimeCommandInventory: "workspai-cli-runtime-command-inventory-v1";
|
|
40
41
|
cliOperationResult: "workspai-cli-operation-result-v1";
|
|
@@ -47,6 +48,7 @@ declare function getPublishedContractVersions(): {
|
|
|
47
48
|
workspaceIntelligenceChain: "workspai-workspace-intelligence-chain-v1";
|
|
48
49
|
workspaceIntelligenceArtifacts: {
|
|
49
50
|
readonly model: "workspace-model.v1";
|
|
51
|
+
readonly knowledgeGraph: "workspace-knowledge-graph.v1";
|
|
50
52
|
readonly snapshot: "workspace-model-snapshot.v1";
|
|
51
53
|
readonly diff: "workspace-model-diff.v1";
|
|
52
54
|
readonly impact: "workspace-impact.v1";
|
|
@@ -63,6 +65,8 @@ declare function getPublishedContractVersions(): {
|
|
|
63
65
|
readonly agents: null;
|
|
64
66
|
readonly explain: "workspace-explain.v1";
|
|
65
67
|
readonly intelligenceRun: "workspace-intelligence-run.v1";
|
|
68
|
+
readonly evaluationLive: "workspace-intelligence-evaluation.v1";
|
|
69
|
+
readonly evaluationLastRun: "workspace-intelligence-evaluation.v1";
|
|
66
70
|
};
|
|
67
71
|
cliLogEvent: "cli-log-event-v1";
|
|
68
72
|
freshnessMetadata: "rapidkit-freshness-metadata-v1";
|
|
@@ -73,6 +77,13 @@ declare function getPublishedContractVersions(): {
|
|
|
73
77
|
workspaceVerify: "workspace-verify.v1";
|
|
74
78
|
workspaceContext: "workspace-context.v1";
|
|
75
79
|
workspaceDependencyGraph: "workspace-dependency-graph.v1";
|
|
80
|
+
workspaceKnowledgeGraph: "workspace-knowledge-graph.v1";
|
|
81
|
+
workspaceKnowledgeGraphChangeOverlay: "workspace-knowledge-graph-change-overlay.v1";
|
|
82
|
+
workspaceKnowledgeSearch: "workspace-knowledge-search.v1";
|
|
83
|
+
workspaceGraphTokenEfficiency: "workspace-graph-token-efficiency.v1";
|
|
84
|
+
modelUsageEvent: "model-usage-event.v1";
|
|
85
|
+
workspaceIntelligenceEvaluation: "workspace-intelligence-evaluation.v1";
|
|
86
|
+
workspaceIntelligenceEvaluationComparison: "workspace-intelligence-evaluation-comparison.v1";
|
|
76
87
|
workspaceIntelligenceHistory: "workspace-intelligence-history.v1";
|
|
77
88
|
agentCustomizationPackCapabilities: "workspai-agent-customization-pack-capabilities.v1";
|
|
78
89
|
agentCustomizationPackReport: "rapidkit-agent-customization-pack.v1";
|
|
@@ -89,13 +100,14 @@ declare function getPublishedContractCatalog(): {
|
|
|
89
100
|
[k: string]: {
|
|
90
101
|
artifacts?: {
|
|
91
102
|
[k: string]: {
|
|
92
|
-
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" | ".workspai/reports/workspace-intelligence-run-last-run.json";
|
|
93
|
-
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" | "workspace-intelligence-run.v1" | null;
|
|
94
|
-
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" | "contracts/workspace-intelligence/workspace-intelligence-run.v1.json" | null;
|
|
103
|
+
path: ".workspai/reports/workspace-model.json" | ".workspai/reports/workspace-knowledge-graph.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" | ".workspai/reports/workspace-intelligence-run-last-run.json" | ".workspai/reports/workspace-intelligence-evaluation-live.json" | ".workspai/reports/workspace-intelligence-evaluation-last-run.json";
|
|
104
|
+
schemaVersion: "workspace-model.v1" | "workspace-knowledge-graph.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" | "workspace-intelligence-run.v1" | "workspace-intelligence-evaluation.v1" | null;
|
|
105
|
+
contractPath: "contracts/workspace-intelligence/workspace-model.v1.json" | "contracts/workspace-intelligence/workspace-knowledge-graph.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" | "contracts/workspace-intelligence/workspace-intelligence-run.v1.json" | "contracts/workspace-intelligence/workspace-intelligence-evaluation.v1.json" | null;
|
|
95
106
|
};
|
|
96
107
|
} | undefined;
|
|
97
|
-
schemaVersion: string | {
|
|
108
|
+
schemaVersion: string | number | {
|
|
98
109
|
readonly model: "workspace-model.v1";
|
|
110
|
+
readonly knowledgeGraph: "workspace-knowledge-graph.v1";
|
|
99
111
|
readonly snapshot: "workspace-model-snapshot.v1";
|
|
100
112
|
readonly diff: "workspace-model-diff.v1";
|
|
101
113
|
readonly impact: "workspace-impact.v1";
|
|
@@ -112,6 +124,8 @@ declare function getPublishedContractCatalog(): {
|
|
|
112
124
|
readonly agents: null;
|
|
113
125
|
readonly explain: "workspace-explain.v1";
|
|
114
126
|
readonly intelligenceRun: "workspace-intelligence-run.v1";
|
|
127
|
+
readonly evaluationLive: "workspace-intelligence-evaluation.v1";
|
|
128
|
+
readonly evaluationLastRun: "workspace-intelligence-evaluation.v1";
|
|
115
129
|
};
|
|
116
130
|
contractPath: string | null;
|
|
117
131
|
publication: "capability-contract" | "json-schema" | "embedded-type";
|
|
@@ -176,6 +190,7 @@ declare function getVersionContract(): {
|
|
|
176
190
|
workspaceWatchEvent: "workspace-watch-event.v1";
|
|
177
191
|
doctorProjectScan: "doctor-project-scan-v2";
|
|
178
192
|
doctorWorkspaceCache: "doctor-workspace-cache-v2";
|
|
193
|
+
workspaceContract: number;
|
|
179
194
|
runtimeCommandSurface: string;
|
|
180
195
|
cliRuntimeCommandInventory: "workspai-cli-runtime-command-inventory-v1";
|
|
181
196
|
cliOperationResult: "workspai-cli-operation-result-v1";
|
|
@@ -188,6 +203,7 @@ declare function getVersionContract(): {
|
|
|
188
203
|
workspaceIntelligenceChain: "workspai-workspace-intelligence-chain-v1";
|
|
189
204
|
workspaceIntelligenceArtifacts: {
|
|
190
205
|
readonly model: "workspace-model.v1";
|
|
206
|
+
readonly knowledgeGraph: "workspace-knowledge-graph.v1";
|
|
191
207
|
readonly snapshot: "workspace-model-snapshot.v1";
|
|
192
208
|
readonly diff: "workspace-model-diff.v1";
|
|
193
209
|
readonly impact: "workspace-impact.v1";
|
|
@@ -204,6 +220,8 @@ declare function getVersionContract(): {
|
|
|
204
220
|
readonly agents: null;
|
|
205
221
|
readonly explain: "workspace-explain.v1";
|
|
206
222
|
readonly intelligenceRun: "workspace-intelligence-run.v1";
|
|
223
|
+
readonly evaluationLive: "workspace-intelligence-evaluation.v1";
|
|
224
|
+
readonly evaluationLastRun: "workspace-intelligence-evaluation.v1";
|
|
207
225
|
};
|
|
208
226
|
cliLogEvent: "cli-log-event-v1";
|
|
209
227
|
freshnessMetadata: "rapidkit-freshness-metadata-v1";
|
|
@@ -214,6 +232,13 @@ declare function getVersionContract(): {
|
|
|
214
232
|
workspaceVerify: "workspace-verify.v1";
|
|
215
233
|
workspaceContext: "workspace-context.v1";
|
|
216
234
|
workspaceDependencyGraph: "workspace-dependency-graph.v1";
|
|
235
|
+
workspaceKnowledgeGraph: "workspace-knowledge-graph.v1";
|
|
236
|
+
workspaceKnowledgeGraphChangeOverlay: "workspace-knowledge-graph-change-overlay.v1";
|
|
237
|
+
workspaceKnowledgeSearch: "workspace-knowledge-search.v1";
|
|
238
|
+
workspaceGraphTokenEfficiency: "workspace-graph-token-efficiency.v1";
|
|
239
|
+
modelUsageEvent: "model-usage-event.v1";
|
|
240
|
+
workspaceIntelligenceEvaluation: "workspace-intelligence-evaluation.v1";
|
|
241
|
+
workspaceIntelligenceEvaluationComparison: "workspace-intelligence-evaluation-comparison.v1";
|
|
217
242
|
workspaceIntelligenceHistory: "workspace-intelligence-history.v1";
|
|
218
243
|
agentCustomizationPackCapabilities: "workspai-agent-customization-pack-capabilities.v1";
|
|
219
244
|
agentCustomizationPackReport: "rapidkit-agent-customization-pack.v1";
|
|
@@ -230,13 +255,14 @@ declare function getVersionContract(): {
|
|
|
230
255
|
[k: string]: {
|
|
231
256
|
artifacts?: {
|
|
232
257
|
[k: string]: {
|
|
233
|
-
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" | ".workspai/reports/workspace-intelligence-run-last-run.json";
|
|
234
|
-
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" | "workspace-intelligence-run.v1" | null;
|
|
235
|
-
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" | "contracts/workspace-intelligence/workspace-intelligence-run.v1.json" | null;
|
|
258
|
+
path: ".workspai/reports/workspace-model.json" | ".workspai/reports/workspace-knowledge-graph.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" | ".workspai/reports/workspace-intelligence-run-last-run.json" | ".workspai/reports/workspace-intelligence-evaluation-live.json" | ".workspai/reports/workspace-intelligence-evaluation-last-run.json";
|
|
259
|
+
schemaVersion: "workspace-model.v1" | "workspace-knowledge-graph.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" | "workspace-intelligence-run.v1" | "workspace-intelligence-evaluation.v1" | null;
|
|
260
|
+
contractPath: "contracts/workspace-intelligence/workspace-model.v1.json" | "contracts/workspace-intelligence/workspace-knowledge-graph.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" | "contracts/workspace-intelligence/workspace-intelligence-run.v1.json" | "contracts/workspace-intelligence/workspace-intelligence-evaluation.v1.json" | null;
|
|
236
261
|
};
|
|
237
262
|
} | undefined;
|
|
238
|
-
schemaVersion: string | {
|
|
263
|
+
schemaVersion: string | number | {
|
|
239
264
|
readonly model: "workspace-model.v1";
|
|
265
|
+
readonly knowledgeGraph: "workspace-knowledge-graph.v1";
|
|
240
266
|
readonly snapshot: "workspace-model-snapshot.v1";
|
|
241
267
|
readonly diff: "workspace-model-diff.v1";
|
|
242
268
|
readonly impact: "workspace-impact.v1";
|
|
@@ -253,6 +279,8 @@ declare function getVersionContract(): {
|
|
|
253
279
|
readonly agents: null;
|
|
254
280
|
readonly explain: "workspace-explain.v1";
|
|
255
281
|
readonly intelligenceRun: "workspace-intelligence-run.v1";
|
|
282
|
+
readonly evaluationLive: "workspace-intelligence-evaluation.v1";
|
|
283
|
+
readonly evaluationLastRun: "workspace-intelligence-evaluation.v1";
|
|
256
284
|
};
|
|
257
285
|
contractPath: string | null;
|
|
258
286
|
publication: "capability-contract" | "json-schema" | "embedded-type";
|
|
@@ -311,6 +339,7 @@ declare function getGlobalCommandCapabilities(): {
|
|
|
311
339
|
workspaceWatchEvent: "workspace-watch-event.v1";
|
|
312
340
|
doctorProjectScan: "doctor-project-scan-v2";
|
|
313
341
|
doctorWorkspaceCache: "doctor-workspace-cache-v2";
|
|
342
|
+
workspaceContract: number;
|
|
314
343
|
runtimeCommandSurface: string;
|
|
315
344
|
cliRuntimeCommandInventory: "workspai-cli-runtime-command-inventory-v1";
|
|
316
345
|
cliOperationResult: "workspai-cli-operation-result-v1";
|
|
@@ -323,6 +352,7 @@ declare function getGlobalCommandCapabilities(): {
|
|
|
323
352
|
workspaceIntelligenceChain: "workspai-workspace-intelligence-chain-v1";
|
|
324
353
|
workspaceIntelligenceArtifacts: {
|
|
325
354
|
readonly model: "workspace-model.v1";
|
|
355
|
+
readonly knowledgeGraph: "workspace-knowledge-graph.v1";
|
|
326
356
|
readonly snapshot: "workspace-model-snapshot.v1";
|
|
327
357
|
readonly diff: "workspace-model-diff.v1";
|
|
328
358
|
readonly impact: "workspace-impact.v1";
|
|
@@ -339,6 +369,8 @@ declare function getGlobalCommandCapabilities(): {
|
|
|
339
369
|
readonly agents: null;
|
|
340
370
|
readonly explain: "workspace-explain.v1";
|
|
341
371
|
readonly intelligenceRun: "workspace-intelligence-run.v1";
|
|
372
|
+
readonly evaluationLive: "workspace-intelligence-evaluation.v1";
|
|
373
|
+
readonly evaluationLastRun: "workspace-intelligence-evaluation.v1";
|
|
342
374
|
};
|
|
343
375
|
cliLogEvent: "cli-log-event-v1";
|
|
344
376
|
freshnessMetadata: "rapidkit-freshness-metadata-v1";
|
|
@@ -349,6 +381,13 @@ declare function getGlobalCommandCapabilities(): {
|
|
|
349
381
|
workspaceVerify: "workspace-verify.v1";
|
|
350
382
|
workspaceContext: "workspace-context.v1";
|
|
351
383
|
workspaceDependencyGraph: "workspace-dependency-graph.v1";
|
|
384
|
+
workspaceKnowledgeGraph: "workspace-knowledge-graph.v1";
|
|
385
|
+
workspaceKnowledgeGraphChangeOverlay: "workspace-knowledge-graph-change-overlay.v1";
|
|
386
|
+
workspaceKnowledgeSearch: "workspace-knowledge-search.v1";
|
|
387
|
+
workspaceGraphTokenEfficiency: "workspace-graph-token-efficiency.v1";
|
|
388
|
+
modelUsageEvent: "model-usage-event.v1";
|
|
389
|
+
workspaceIntelligenceEvaluation: "workspace-intelligence-evaluation.v1";
|
|
390
|
+
workspaceIntelligenceEvaluationComparison: "workspace-intelligence-evaluation-comparison.v1";
|
|
352
391
|
workspaceIntelligenceHistory: "workspace-intelligence-history.v1";
|
|
353
392
|
agentCustomizationPackCapabilities: "workspai-agent-customization-pack-capabilities.v1";
|
|
354
393
|
agentCustomizationPackReport: "rapidkit-agent-customization-pack.v1";
|
|
@@ -365,13 +404,14 @@ declare function getGlobalCommandCapabilities(): {
|
|
|
365
404
|
[k: string]: {
|
|
366
405
|
artifacts?: {
|
|
367
406
|
[k: string]: {
|
|
368
|
-
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" | ".workspai/reports/workspace-intelligence-run-last-run.json";
|
|
369
|
-
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" | "workspace-intelligence-run.v1" | null;
|
|
370
|
-
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" | "contracts/workspace-intelligence/workspace-intelligence-run.v1.json" | null;
|
|
407
|
+
path: ".workspai/reports/workspace-model.json" | ".workspai/reports/workspace-knowledge-graph.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" | ".workspai/reports/workspace-intelligence-run-last-run.json" | ".workspai/reports/workspace-intelligence-evaluation-live.json" | ".workspai/reports/workspace-intelligence-evaluation-last-run.json";
|
|
408
|
+
schemaVersion: "workspace-model.v1" | "workspace-knowledge-graph.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" | "workspace-intelligence-run.v1" | "workspace-intelligence-evaluation.v1" | null;
|
|
409
|
+
contractPath: "contracts/workspace-intelligence/workspace-model.v1.json" | "contracts/workspace-intelligence/workspace-knowledge-graph.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" | "contracts/workspace-intelligence/workspace-intelligence-run.v1.json" | "contracts/workspace-intelligence/workspace-intelligence-evaluation.v1.json" | null;
|
|
371
410
|
};
|
|
372
411
|
} | undefined;
|
|
373
|
-
schemaVersion: string | {
|
|
412
|
+
schemaVersion: string | number | {
|
|
374
413
|
readonly model: "workspace-model.v1";
|
|
414
|
+
readonly knowledgeGraph: "workspace-knowledge-graph.v1";
|
|
375
415
|
readonly snapshot: "workspace-model-snapshot.v1";
|
|
376
416
|
readonly diff: "workspace-model-diff.v1";
|
|
377
417
|
readonly impact: "workspace-impact.v1";
|
|
@@ -388,6 +428,8 @@ declare function getGlobalCommandCapabilities(): {
|
|
|
388
428
|
readonly agents: null;
|
|
389
429
|
readonly explain: "workspace-explain.v1";
|
|
390
430
|
readonly intelligenceRun: "workspace-intelligence-run.v1";
|
|
431
|
+
readonly evaluationLive: "workspace-intelligence-evaluation.v1";
|
|
432
|
+
readonly evaluationLastRun: "workspace-intelligence-evaluation.v1";
|
|
391
433
|
};
|
|
392
434
|
contractPath: string | null;
|
|
393
435
|
publication: "capability-contract" | "json-schema" | "embedded-type";
|
|
@@ -400,8 +442,8 @@ declare function getGlobalCommandCapabilities(): {
|
|
|
400
442
|
};
|
|
401
443
|
workspace: {
|
|
402
444
|
command: string;
|
|
403
|
-
subcommands: ("archive" | "snapshot" | "list" | "import" | "init" | "model" | "diff" | "impact" | "verify" | "explain" | "sync" | "registry" | "foundation" | "intelligence" | "graph" | "watch" | "context" | "agent-sync" | "remediation-plan" | "why" | "trace" | "feedback" | "mcp" | "policy" | "contract" | "share" | "export" | "hydrate" | "run")[];
|
|
404
|
-
intelligenceSubcommands: ("snapshot" | "model" | "diff" | "impact" | "verify" | "explain" | "intelligence" | "graph" | "watch" | "context" | "agent-sync" | "remediation-plan" | "why" | "trace" | "feedback" | "mcp" | "contract")[];
|
|
445
|
+
subcommands: ("archive" | "snapshot" | "list" | "import" | "init" | "model" | "diff" | "impact" | "verify" | "explain" | "sync" | "registry" | "foundation" | "intelligence" | "graph" | "watch" | "context" | "agent-sync" | "remediation-plan" | "why" | "trace" | "feedback" | "eval" | "mcp" | "policy" | "contract" | "share" | "export" | "hydrate" | "run")[];
|
|
446
|
+
intelligenceSubcommands: ("snapshot" | "model" | "diff" | "impact" | "verify" | "explain" | "intelligence" | "graph" | "watch" | "context" | "agent-sync" | "remediation-plan" | "why" | "trace" | "feedback" | "eval" | "mcp" | "contract")[];
|
|
405
447
|
};
|
|
406
448
|
commandMap: any;
|
|
407
449
|
runtimeInventory: RuntimeCommandInventoryPayload;
|