workspai 0.45.0 → 0.47.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 +307 -532
- package/contracts/agent-customization-pack.v1.json +6 -1
- package/contracts/bootstrap-compliance.v1.json +14 -0
- package/contracts/cli-runtime-command-inventory.v1.snapshot.json +8 -0
- package/contracts/extension-cli-compatibility.v1.json +9 -2
- package/contracts/mirror-ops.v1.json +16 -0
- package/contracts/published-contract-catalog.v1.json +38 -1
- package/contracts/runtime-command-surface.v1.json +190 -7
- package/contracts/transparency-evidence.v1.json +13 -0
- package/contracts/workspace-archive-capabilities.v1.json +17 -6
- package/contracts/workspace-contract.v1.json +78 -0
- package/contracts/workspace-intelligence/studio-blocker-handoff.v1.json +4 -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-run.v1.json +212 -0
- 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 +7 -4
- package/contracts/workspace-intelligence-chain.v1.json +51 -4
- package/contracts/workspace-share-bundle.v1.json +16 -0
- package/dist/analyze-UVXPRGYZ.js +1 -0
- package/dist/artifact-remediation-plan-EPALZ2LC.js +3 -0
- package/dist/autopilot-release-5BQ6F5L2.js +1 -0
- package/dist/chunk-22NJ2ZMG.js +2 -0
- package/dist/{chunk-XIVFLY6G.js → chunk-2GHUZDYA.js} +1 -1
- package/dist/chunk-2TEDAKP6.js +2 -0
- package/dist/chunk-52PBRX7F.js +1 -0
- package/dist/chunk-6SWRNA47.js +4 -0
- package/dist/chunk-76YOPAOT.js +1 -0
- package/dist/chunk-7VLCK5JW.js +1 -0
- package/dist/{chunk-DXPU4DDV.js → chunk-BSRVO52Y.js} +92 -78
- package/dist/chunk-COARSXRC.js +1 -0
- package/dist/chunk-CV5HKU4P.js +1 -0
- package/dist/chunk-CW7PGBIQ.js +13 -0
- package/dist/{chunk-KU4S7RCM.js → chunk-DV6GJD4K.js} +1 -1
- package/dist/chunk-EYJ2CQSK.js +1 -0
- package/dist/chunk-FB7SCXAZ.js +1 -0
- package/dist/chunk-FPJNWPKU.js +1 -0
- package/dist/{chunk-JP25YL3J.js → chunk-FTY7GGXJ.js} +2 -2
- package/dist/chunk-FXQJX34Z.js +1 -0
- package/dist/{chunk-J4AICQFB.js → chunk-HSGFUKCN.js} +1 -1
- package/dist/{chunk-OOOPYUL2.js → chunk-ITCAMC2E.js} +1 -1
- package/dist/chunk-KB44JP4M.js +2 -0
- package/dist/{chunk-WANW4QA4.js → chunk-KZZ36CK5.js} +1 -1
- package/dist/chunk-LNRAB7UY.js +1 -0
- package/dist/chunk-MEMHNE7Y.js +80 -0
- package/dist/chunk-MER6ZBN2.js +13 -0
- package/dist/chunk-NOFM7MNA.js +2 -0
- package/dist/chunk-NRYS4CLR.js +2 -0
- package/dist/chunk-OA537ZQ5.js +1 -0
- package/dist/chunk-PBHP6JNY.js +8 -0
- package/dist/chunk-QDWYIRHR.js +8 -0
- package/dist/chunk-RWRLFSKW.js +2 -0
- package/dist/chunk-SK6XRKGG.js +1 -0
- package/dist/chunk-THIOE2PB.js +2 -0
- package/dist/chunk-TNQI5VCW.js +36 -0
- package/dist/chunk-TWNFECMN.js +2 -0
- package/dist/{chunk-2QOWRBQD.js → chunk-U5EZHZBX.js} +1 -1
- package/dist/{chunk-K63BSU56.js → chunk-VBSQ7MF6.js} +62 -51
- package/dist/chunk-WDKNMTJQ.js +1 -0
- package/dist/chunk-YCL3I2JO.js +2 -0
- package/dist/chunk-ZDN7RHXJ.js +1 -0
- package/dist/chunk-ZM5NQ5Z2.js +1 -0
- package/dist/{create-KFR6FLRT.js → create-7JKJDAQV.js} +1 -1
- package/dist/doctor-PGPNIS76.js +1 -0
- package/dist/{dotnet-webapi-clean-BYUUHX5Y.js → dotnet-webapi-clean-6TVFBTVI.js} +20 -20
- package/dist/{gofiber-standard-B6UK5GR7.js → gofiber-standard-2BL7GWZB.js} +1 -1
- package/dist/{gogin-standard-BXU44VEM.js → gogin-standard-XGP3KBXA.js} +1 -1
- package/dist/index.d.ts +112 -16
- package/dist/index.js +198 -195
- package/dist/pipeline-IB6ILJSV.js +5 -0
- package/dist/{platform-capabilities-YICBF4FA.js → platform-capabilities-2B4QMZXE.js} +1 -1
- package/dist/{pythonRapidkitExec-UJYIB6FL.js → pythonRapidkitExec-CVCIK225.js} +1 -1
- package/dist/{springboot-standard-PEHDKH2L.js → springboot-standard-JJNUID6M.js} +6 -6
- package/dist/workspace-H3QXBFGB.js +1 -0
- package/dist/{workspace-agent-sync-G5YVI3BJ.js → workspace-agent-sync-C7SG2Z5W.js} +1 -1
- package/dist/workspace-archive-P76EDIUG.js +10 -0
- package/dist/{workspace-context-E3UFWL5X.js → workspace-context-BKQBKA4C.js} +1 -1
- package/dist/workspace-contract-RPQQBQXR.js +1 -0
- package/dist/workspace-dependency-graph-23BI2HG7.js +1 -0
- package/dist/workspace-explain-WVN7JH3U.js +1 -0
- package/dist/workspace-explain-contract-SEFTVF6J.js +1 -0
- package/dist/{workspace-feedback-YY6WQPWQ.js → workspace-feedback-WAID3IOE.js} +1 -1
- package/dist/{workspace-foundation-3C2DLCVI.js → workspace-foundation-5OOJEO2D.js} +1 -1
- package/dist/workspace-graph-token-efficiency-CFGFCJ5V.js +1 -0
- package/dist/{workspace-history-VF3CHDYQ.js → workspace-history-C6OP3IAQ.js} +1 -1
- package/dist/workspace-intelligence-VKDL3H2J.js +1 -0
- package/dist/workspace-intelligence-runner-LVALAZY7.js +1 -0
- package/dist/workspace-knowledge-graph-FE2NTZKV.js +1 -0
- package/dist/workspace-knowledge-graph-change-overlay-XG6FC4IX.js +1 -0
- package/dist/workspace-knowledge-graph-query-VOSPPH4W.js +1 -0
- package/dist/workspace-mcp-serve-KT2I676Z.js +3 -0
- package/dist/workspace-model-S33CIB2R.js +1 -0
- package/dist/workspace-model-hash-MHXK5MEI.js +1 -0
- package/dist/workspace-python-engine-state-2MLKJYQG.js +2 -0
- package/dist/workspace-registry-summary-A3YDL63D.js +1 -0
- package/dist/workspace-run-M4LNJILC.js +1 -0
- package/dist/{workspace-verify-ZNT6JX7D.js → workspace-verify-ZGH3NXAH.js} +1 -1
- package/dist/workspace-watch-EVBJTMV7.js +1 -0
- package/docs/AI_DYNAMIC_INTEGRATION.md +73 -432
- package/docs/AI_EXAMPLES.md +37 -395
- package/docs/AI_FEATURES.md +76 -465
- package/docs/AI_QUICKSTART.md +49 -209
- package/docs/DEVELOPMENT.md +5 -5
- package/docs/From Code to Shared Understanding.png +0 -0
- package/docs/GLOSSARY.md +60 -0
- package/docs/OPEN_SOURCE_USER_SCENARIOS.md +91 -9
- package/docs/OPTIMIZATION_GUIDE.md +19 -51
- package/docs/PACKAGE_MANAGER_POLICY.md +4 -1
- package/docs/README.md +91 -42
- package/docs/SECURITY.md +13 -6
- package/docs/SETUP.md +6 -3
- package/docs/UTILITIES.md +8 -20
- package/docs/WORKSPACE_MARKER_SPEC.md +27 -20
- package/docs/ci-workflows.md +19 -5
- package/docs/commands-reference.md +88 -13
- package/docs/config-file-guide.md +67 -246
- package/docs/contracts/ARTIFACT_CATALOG.md +78 -36
- package/docs/contracts/CLI_LOG_EVENT_STREAM.md +1 -1
- package/docs/contracts/README.md +48 -9
- package/docs/contracts/RUNTIME_ACCEPTANCE_MATRIX.md +4 -4
- package/docs/contracts/RUNTIME_SUPPORT_MATRIX.md +14 -10
- package/docs/creating-workspaces-and-projects.md +649 -0
- package/docs/doctor-command.md +5 -4
- package/docs/examples/ci-agent-grounding.yml +16 -10
- package/docs/from-code-to-shared-understanding.md +69 -38
- package/docs/graph-benchmark-methodology.md +121 -0
- package/docs/workspace-intelligence-runner.md +186 -0
- package/docs/workspace-knowledge-graph.md +295 -0
- package/docs/workspace-operations.md +78 -11
- package/docs/workspace-run.md +4 -1
- package/package.json +10 -8
- package/rapidkit.config.example.cjs +5 -5
- package/scripts/enforce-package-manager.cjs +1 -1
- package/scripts/prepack-enterprise.mjs +4 -0
- package/workspai.config.example.cjs +12 -47
- package/dist/analyze-YLV7NVLF.js +0 -1
- package/dist/artifact-remediation-plan-WLZGROUU.js +0 -3
- package/dist/autopilot-release-YBN3SWAA.js +0 -1
- package/dist/chunk-2K3GYCPS.js +0 -1
- package/dist/chunk-42G2OK64.js +0 -1
- package/dist/chunk-5AKYMAIL.js +0 -1
- package/dist/chunk-5GNT4RJI.js +0 -8
- package/dist/chunk-5PVEQ6CZ.js +0 -13
- package/dist/chunk-6AA3WWQZ.js +0 -2
- package/dist/chunk-6ZENXBMG.js +0 -33
- package/dist/chunk-7RIWU5TZ.js +0 -1
- package/dist/chunk-7UZVOYF5.js +0 -2
- package/dist/chunk-BJLE5CH7.js +0 -4
- package/dist/chunk-G3H5R3RR.js +0 -1
- package/dist/chunk-HYJK7W3B.js +0 -1
- package/dist/chunk-IMUU5Q2V.js +0 -13
- package/dist/chunk-KPPGZCUW.js +0 -78
- package/dist/chunk-LCRROMRR.js +0 -2
- package/dist/chunk-LG6RFLPZ.js +0 -1
- package/dist/chunk-P424XYHP.js +0 -1
- package/dist/chunk-P7SCWJFG.js +0 -8
- package/dist/chunk-QWU2CZBG.js +0 -2
- package/dist/chunk-V2H2KRMZ.js +0 -1
- package/dist/chunk-XZGVNGRB.js +0 -1
- package/dist/chunk-ZWO6K24C.js +0 -2
- package/dist/doctor-YJDM5XBH.js +0 -1
- package/dist/imported-projects-registry-FOIE27WT.js +0 -1
- package/dist/pipeline-FEDYO3IA.js +0 -5
- package/dist/workspace-PLXOO6ST.js +0 -1
- package/dist/workspace-archive-EEGLHZDW.js +0 -10
- package/dist/workspace-contract-LQJDZV36.js +0 -1
- package/dist/workspace-explain-G74ZIF23.js +0 -1
- package/dist/workspace-explain-contract-KT757JGQ.js +0 -1
- package/dist/workspace-intelligence-3GG7GEDQ.js +0 -1
- package/dist/workspace-mcp-serve-MJMUV4RY.js +0 -3
- package/dist/workspace-model-NG45SRM5.js +0 -1
- package/dist/workspace-python-engine-state-MTWIIZPY.js +0 -2
- package/dist/workspace-registry-summary-JM2XY52C.js +0 -1
- package/dist/workspace-run-WEQYIERE.js +0 -1
- package/dist/workspace-watch-W47T4RX2.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {b,c}from'./chunk-IBJEQHJR.js';import {c as c$1}from'./chunk-Y45WZR5N.js';import {b as b$
|
|
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 n 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>
|
|
@@ -16,7 +16,7 @@ import {b,c}from'./chunk-IBJEQHJR.js';import {c as c$1}from'./chunk-Y45WZR5N.js'
|
|
|
16
16
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2" />
|
|
17
17
|
</ItemGroup>
|
|
18
18
|
</Project>
|
|
19
|
-
`}function
|
|
19
|
+
`}function k(e){return `<Project Sdk="Microsoft.NET.Sdk">
|
|
20
20
|
<PropertyGroup>
|
|
21
21
|
<TargetFramework>${e.target_framework}</TargetFramework>
|
|
22
22
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
@@ -36,7 +36,7 @@ import {b,c}from'./chunk-IBJEQHJR.js';import {c as c$1}from'./chunk-Y45WZR5N.js'
|
|
|
36
36
|
<ProjectReference Include="..\\src\\${e.project_name}.csproj" />
|
|
37
37
|
</ItemGroup>
|
|
38
38
|
</Project>
|
|
39
|
-
`}function
|
|
39
|
+
`}function T(e){return `using ${e.root_namespace}.Application;
|
|
40
40
|
using ${e.root_namespace}.Infrastructure;
|
|
41
41
|
using ${e.root_namespace}.Presentation;
|
|
42
42
|
|
|
@@ -81,7 +81,7 @@ public sealed class ApplicationInfoOptions
|
|
|
81
81
|
|
|
82
82
|
public string Description { get; init; } = "${e.description}";
|
|
83
83
|
}
|
|
84
|
-
`}function
|
|
84
|
+
`}function x(e){return `using Microsoft.Extensions.DependencyInjection;
|
|
85
85
|
|
|
86
86
|
namespace ${e.root_namespace}.Application;
|
|
87
87
|
|
|
@@ -93,7 +93,7 @@ public static class ApplicationServiceRegistration
|
|
|
93
93
|
return services;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
`}function
|
|
96
|
+
`}function v(e){return `using Microsoft.Extensions.Options;
|
|
97
97
|
|
|
98
98
|
namespace ${e.root_namespace}.Application;
|
|
99
99
|
|
|
@@ -117,7 +117,7 @@ public sealed class SystemInfoService(IOptions<ApplicationInfoOptions> options)
|
|
|
117
117
|
DateTimeOffset.UtcNow);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
`}function
|
|
120
|
+
`}function N(e){return `using Microsoft.Extensions.DependencyInjection;
|
|
121
121
|
|
|
122
122
|
namespace ${e.root_namespace}.Infrastructure;
|
|
123
123
|
|
|
@@ -128,7 +128,7 @@ public static class InfrastructureServiceRegistration
|
|
|
128
128
|
return services;
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
`}function
|
|
131
|
+
`}function h(e){return `using Microsoft.AspNetCore.Diagnostics;
|
|
132
132
|
using Microsoft.AspNetCore.Http;
|
|
133
133
|
using Microsoft.Extensions.DependencyInjection;
|
|
134
134
|
|
|
@@ -162,7 +162,7 @@ internal sealed class GlobalExceptionHandler : IExceptionHandler
|
|
|
162
162
|
return true;
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
`}function
|
|
165
|
+
`}function V(e){return `using ${e.root_namespace}.Application;
|
|
166
166
|
|
|
167
167
|
namespace ${e.root_namespace}.Presentation;
|
|
168
168
|
|
|
@@ -180,7 +180,7 @@ public static class SystemEndpoints
|
|
|
180
180
|
return app;
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
`}function g(e){return JSON.stringify({Workspai:{Name:e.project_name,Version:e.app_version,Description:e.description},Logging:{LogLevel:{Default:"Information","Microsoft.AspNetCore":"Warning"}},AllowedHosts:"*",Kestrel:{Endpoints:{Http:{Url:`http://0.0.0.0:${e.port}`}}}},null,2)}function
|
|
183
|
+
`}function g(e){return JSON.stringify({Workspai:{Name:e.project_name,Version:e.app_version,Description:e.description},Logging:{LogLevel:{Default:"Information","Microsoft.AspNetCore":"Warning"}},AllowedHosts:"*",Kestrel:{Endpoints:{Http:{Url:`http://0.0.0.0:${e.port}`}}}},null,2)}function U(e){return `FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
|
184
184
|
WORKDIR /src
|
|
185
185
|
COPY src/*.csproj ./src/
|
|
186
186
|
COPY tests/*.csproj ./tests/
|
|
@@ -197,7 +197,7 @@ ENV ASPNETCORE_URLS=http://+:${e.port}
|
|
|
197
197
|
COPY --from=build /app/publish .
|
|
198
198
|
HEALTHCHECK --interval=30s --timeout=5s --retries=3 CMD curl -fsS http://localhost:${e.port}/health/live || exit 1
|
|
199
199
|
ENTRYPOINT ["dotnet", "${e.root_namespace}.dll"]
|
|
200
|
-
`}function
|
|
200
|
+
`}function O(e){return `services:
|
|
201
201
|
api:
|
|
202
202
|
build: .
|
|
203
203
|
ports:
|
|
@@ -210,7 +210,7 @@ ENTRYPOINT ["dotnet", "${e.root_namespace}.dll"]
|
|
|
210
210
|
interval: 30s
|
|
211
211
|
timeout: 5s
|
|
212
212
|
retries: 3
|
|
213
|
-
`}function
|
|
213
|
+
`}function W(e){return `.PHONY: init dev start build test lint format docker-up docker-down
|
|
214
214
|
|
|
215
215
|
init:
|
|
216
216
|
dotnet restore src/${e.project_name}.csproj
|
|
@@ -241,7 +241,7 @@ docker-up:
|
|
|
241
241
|
|
|
242
242
|
docker-down:
|
|
243
243
|
docker compose down
|
|
244
|
-
`}function
|
|
244
|
+
`}function M(e){return `#!/usr/bin/env sh
|
|
245
245
|
SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
|
246
246
|
CMD="\${1:-help}"
|
|
247
247
|
shift 2>/dev/null || true
|
|
@@ -270,7 +270,7 @@ case "$CMD" in
|
|
|
270
270
|
;;
|
|
271
271
|
*) echo "rapidkit: unknown command: $CMD" >&2; exit 1 ;;
|
|
272
272
|
esac
|
|
273
|
-
`}function
|
|
273
|
+
`}function G(e){return `@echo off
|
|
274
274
|
set CMD=%1
|
|
275
275
|
if "%CMD%"=="" set CMD=help
|
|
276
276
|
shift
|
|
@@ -300,7 +300,7 @@ if "%CMD%"=="format" (
|
|
|
300
300
|
|
|
301
301
|
echo Available: init, dev, start, build, test, lint, format
|
|
302
302
|
exit /b 1
|
|
303
|
-
`}function
|
|
303
|
+
`}function F(e){return `name: CI
|
|
304
304
|
|
|
305
305
|
on:
|
|
306
306
|
push:
|
|
@@ -327,10 +327,10 @@ jobs:
|
|
|
327
327
|
dotnet format src/${e.project_name}.csproj --verify-no-changes
|
|
328
328
|
dotnet format tests/${e.project_name}.Tests.csproj --verify-no-changes
|
|
329
329
|
- name: Build
|
|
330
|
-
run: dotnet build
|
|
330
|
+
run: dotnet build tests/${e.project_name}.Tests.csproj -c Release --no-restore
|
|
331
331
|
- name: Test
|
|
332
332
|
run: dotnet test tests/${e.project_name}.Tests.csproj -c Release --no-build --collect:"XPlat Code Coverage"
|
|
333
|
-
`}function
|
|
333
|
+
`}function L(e){return `using System.Net;
|
|
334
334
|
using Microsoft.AspNetCore.Mvc.Testing;
|
|
335
335
|
using Xunit;
|
|
336
336
|
|
|
@@ -361,7 +361,7 @@ public sealed class RuntimeSmokeTests : IClassFixture<WebApplicationFactory<Prog
|
|
|
361
361
|
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
`}function
|
|
364
|
+
`}function H(e){return `
|
|
365
365
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
|
366
366
|
# Visual Studio Version 17
|
|
367
367
|
VisualStudioVersion = 17.0.31903.59
|
|
@@ -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
|
|
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,o={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},A=S(`Creating ASP.NET Core Web API project ${s}`).start();await promises.mkdir(e,{recursive:true}),await c(n.join(e,`${s}.sln`),H(o)),await c(n.join(e,"src",`${s}.csproj`),P(o)),await c(n.join(e,"src","Program.cs"),T(o)),await c(n.join(e,"src","Application","ApplicationInfoOptions.cs"),w(o)),await c(n.join(e,"src","Application","ApplicationServiceRegistration.cs"),x(o)),await c(n.join(e,"src","Application","SystemInfoService.cs"),v(o)),await c(n.join(e,"src","Infrastructure","InfrastructureServiceRegistration.cs"),N(o)),await c(n.join(e,"src","Presentation","PresentationServiceRegistration.cs"),h(o)),await c(n.join(e,"src","Presentation","SystemEndpoints.cs"),V(o)),await c(n.join(e,"src","appsettings.json"),g(o)),await c(n.join(e,"src","appsettings.Development.json"),g(o)),await c(n.join(e,"tests",`${s}.Tests.csproj`),k(o)),await c(n.join(e,"tests","RuntimeSmokeTests.cs"),L(o)),await c(n.join(e,"Dockerfile"),U(o)),await c(n.join(e,"docker-compose.yml"),O(o)),await c(n.join(e,"Makefile"),W(o)),await c(n.join(e,"rapidkit"),M(o)),await c(n.join(e,"rapidkit.cmd"),G(o)),await c(n.join(e,".env.example"),`ASPNETCORE_ENVIRONMENT=Development
|
|
421
421
|
PORT=${o.port}
|
|
422
|
-
`),await c(n.join(e,".github","workflows","ci.yml"),
|
|
422
|
+
`),await c(n.join(e,".github","workflows","ci.yml"),F(o)),await c(n.join(e,".workspai","context.json"),$()),await c(n.join(e,".workspai","project.json"),I(o,c$1())),process.platform!=="win32"&&await promises.chmod(n.join(e,"rapidkit"),493),await q(e,o.skipGit),A.succeed("ASP.NET Core Web API project ready"),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
|
-
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{
|
|
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};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { Command } from 'commander';
|
|
3
|
+
|
|
2
4
|
declare const PROJECT_COMMANDS_CORE_FALLBACK: readonly ["lint", "format", "docs"];
|
|
3
5
|
|
|
4
6
|
declare const COMMAND_CAPABILITIES_SCHEMA_VERSION: "rapidkit-command-capabilities-v1";
|
|
5
7
|
declare const VERSION_CONTRACT_SCHEMA_VERSION: "rapidkit-version-v1";
|
|
6
8
|
|
|
9
|
+
declare const NPM_ONLY_MANUAL_HANDLER_COMMANDS: readonly ["bootstrap", "setup", "cache", "mirror"];
|
|
10
|
+
|
|
11
|
+
interface AdoptProjectFilePreimage {
|
|
12
|
+
path: string;
|
|
13
|
+
contents: Buffer | null;
|
|
14
|
+
}
|
|
15
|
+
interface AdoptProjectRollbackSnapshot {
|
|
16
|
+
workspacePath: string;
|
|
17
|
+
projectPath: string;
|
|
18
|
+
files: AdoptProjectFilePreimage[];
|
|
19
|
+
}
|
|
20
|
+
|
|
7
21
|
declare function getPublishedContractVersions(): {
|
|
8
22
|
autopilotRelease: "autopilot-release-v1";
|
|
9
23
|
workspaceList: "rapidkit-workspace-list-v1";
|
|
@@ -21,6 +35,7 @@ declare function getPublishedContractVersions(): {
|
|
|
21
35
|
workspaceWatchEvent: "workspace-watch-event.v1";
|
|
22
36
|
doctorProjectScan: "doctor-project-scan-v2";
|
|
23
37
|
doctorWorkspaceCache: "doctor-workspace-cache-v2";
|
|
38
|
+
workspaceContract: number;
|
|
24
39
|
runtimeCommandSurface: string;
|
|
25
40
|
cliRuntimeCommandInventory: "workspai-cli-runtime-command-inventory-v1";
|
|
26
41
|
cliOperationResult: "workspai-cli-operation-result-v1";
|
|
@@ -33,6 +48,7 @@ declare function getPublishedContractVersions(): {
|
|
|
33
48
|
workspaceIntelligenceChain: "workspai-workspace-intelligence-chain-v1";
|
|
34
49
|
workspaceIntelligenceArtifacts: {
|
|
35
50
|
readonly model: "workspace-model.v1";
|
|
51
|
+
readonly knowledgeGraph: "workspace-knowledge-graph.v1";
|
|
36
52
|
readonly snapshot: "workspace-model-snapshot.v1";
|
|
37
53
|
readonly diff: "workspace-model-diff.v1";
|
|
38
54
|
readonly impact: "workspace-impact.v1";
|
|
@@ -48,6 +64,7 @@ declare function getPublishedContractVersions(): {
|
|
|
48
64
|
readonly skillsIndex: "workspace-skills-index.v1";
|
|
49
65
|
readonly agents: null;
|
|
50
66
|
readonly explain: "workspace-explain.v1";
|
|
67
|
+
readonly intelligenceRun: "workspace-intelligence-run.v1";
|
|
51
68
|
};
|
|
52
69
|
cliLogEvent: "cli-log-event-v1";
|
|
53
70
|
freshnessMetadata: "rapidkit-freshness-metadata-v1";
|
|
@@ -58,6 +75,10 @@ declare function getPublishedContractVersions(): {
|
|
|
58
75
|
workspaceVerify: "workspace-verify.v1";
|
|
59
76
|
workspaceContext: "workspace-context.v1";
|
|
60
77
|
workspaceDependencyGraph: "workspace-dependency-graph.v1";
|
|
78
|
+
workspaceKnowledgeGraph: "workspace-knowledge-graph.v1";
|
|
79
|
+
workspaceKnowledgeGraphChangeOverlay: "workspace-knowledge-graph-change-overlay.v1";
|
|
80
|
+
workspaceKnowledgeSearch: "workspace-knowledge-search.v1";
|
|
81
|
+
workspaceGraphTokenEfficiency: "workspace-graph-token-efficiency.v1";
|
|
61
82
|
workspaceIntelligenceHistory: "workspace-intelligence-history.v1";
|
|
62
83
|
agentCustomizationPackCapabilities: "workspai-agent-customization-pack-capabilities.v1";
|
|
63
84
|
agentCustomizationPackReport: "rapidkit-agent-customization-pack.v1";
|
|
@@ -74,13 +95,14 @@ declare function getPublishedContractCatalog(): {
|
|
|
74
95
|
[k: string]: {
|
|
75
96
|
artifacts?: {
|
|
76
97
|
[k: string]: {
|
|
77
|
-
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";
|
|
78
|
-
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;
|
|
79
|
-
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;
|
|
98
|
+
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";
|
|
99
|
+
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" | null;
|
|
100
|
+
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" | null;
|
|
80
101
|
};
|
|
81
102
|
} | undefined;
|
|
82
|
-
schemaVersion: string | {
|
|
103
|
+
schemaVersion: string | number | {
|
|
83
104
|
readonly model: "workspace-model.v1";
|
|
105
|
+
readonly knowledgeGraph: "workspace-knowledge-graph.v1";
|
|
84
106
|
readonly snapshot: "workspace-model-snapshot.v1";
|
|
85
107
|
readonly diff: "workspace-model-diff.v1";
|
|
86
108
|
readonly impact: "workspace-impact.v1";
|
|
@@ -96,6 +118,7 @@ declare function getPublishedContractCatalog(): {
|
|
|
96
118
|
readonly skillsIndex: "workspace-skills-index.v1";
|
|
97
119
|
readonly agents: null;
|
|
98
120
|
readonly explain: "workspace-explain.v1";
|
|
121
|
+
readonly intelligenceRun: "workspace-intelligence-run.v1";
|
|
99
122
|
};
|
|
100
123
|
contractPath: string | null;
|
|
101
124
|
publication: "capability-contract" | "json-schema" | "embedded-type";
|
|
@@ -104,8 +127,36 @@ declare function getPublishedContractCatalog(): {
|
|
|
104
127
|
|
|
105
128
|
declare const NPM_ONLY_SCOPED_COMMANDS: readonly (readonly string[])[];
|
|
106
129
|
declare const NPM_ONLY_TOP_LEVEL_COMMANDS: readonly string[];
|
|
130
|
+
|
|
131
|
+
type BridgeFailureCode = 'PYTHON_NOT_FOUND' | 'BRIDGE_VENV_BOOTSTRAP_FAILED' | 'BRIDGE_VENV_CREATE_FAILED' | 'BRIDGE_PIP_BOOTSTRAP_FAILED';
|
|
132
|
+
declare function bridgeFailureCode(err: unknown): BridgeFailureCode | null;
|
|
133
|
+
declare function resolveInvokedCliName(argv?: string[]): 'workspai' | 'rapidkit';
|
|
134
|
+
declare function normalizeFallbackTemplate(kit: string): 'fastapi' | 'nestjs' | null;
|
|
135
|
+
declare function readFlagValue(argv: string[], flag: string): string | undefined;
|
|
136
|
+
declare function parseMaxWorkersOption(raw: string | undefined): number | undefined;
|
|
137
|
+
declare function hostPythonCandidates(): string[];
|
|
138
|
+
declare function buildDelegationEnvForInit(): NodeJS.ProcessEnv;
|
|
139
|
+
declare function commandAvailable(command: string, cwd: string): Promise<boolean>;
|
|
140
|
+
type InferredRuntime = 'python' | 'node' | 'go' | 'java' | 'dotnet' | null;
|
|
141
|
+
declare function inferRuntimeByFiles(targetPath: string): Promise<InferredRuntime>;
|
|
142
|
+
interface PythonProjectOrchestrationDependencies {
|
|
143
|
+
runCommand?: typeof runCommandInCwd;
|
|
144
|
+
pythonCandidates?: readonly string[];
|
|
145
|
+
}
|
|
146
|
+
declare function createWorkspaceVenv(workspacePath: string, dependencies?: PythonProjectOrchestrationDependencies): Promise<number>;
|
|
147
|
+
declare function createProjectVenv(projectPath: string, dependencies?: PythonProjectOrchestrationDependencies): Promise<number>;
|
|
148
|
+
declare function ensurePythonProjectUsesLocalVenv(projectPath: string, dependencies?: PythonProjectOrchestrationDependencies): Promise<number>;
|
|
149
|
+
declare function installPythonDependenciesWithPipFallback(projectPath: string, dependencies?: PythonProjectOrchestrationDependencies): Promise<number>;
|
|
150
|
+
declare function validateNpmKitFlags(kitId: string, args: readonly string[]): string | null;
|
|
151
|
+
declare function runCreateFallback(args: string[], reasonCode: BridgeFailureCode): Promise<number>;
|
|
107
152
|
declare function handleCreateOrFallback(args: string[]): Promise<number>;
|
|
108
153
|
declare const WRAPPER_ORCHESTRATED_PROJECT_COMMANDS: readonly ["init"];
|
|
154
|
+
declare function isNpmOnlyTopLevelCommand(command: string | undefined): boolean;
|
|
155
|
+
declare function isNpmOnlyScopedCommand(args: readonly string[]): boolean;
|
|
156
|
+
declare function isNpmOnlyInvocation(args: readonly string[]): boolean;
|
|
157
|
+
declare function isNpmOnlyParseDirectCommand(command: string | undefined): boolean;
|
|
158
|
+
declare function isNpmOnlyParseDirectInvocation(args: readonly string[]): boolean;
|
|
159
|
+
declare function isNpmOnlyManualHandlerCommand(command: string | undefined): command is (typeof NPM_ONLY_MANUAL_HANDLER_COMMANDS)[number];
|
|
109
160
|
declare function isNpmExecInvocation(env?: NodeJS.ProcessEnv): boolean;
|
|
110
161
|
|
|
111
162
|
declare function getVersionContract(): {
|
|
@@ -132,6 +183,7 @@ declare function getVersionContract(): {
|
|
|
132
183
|
workspaceWatchEvent: "workspace-watch-event.v1";
|
|
133
184
|
doctorProjectScan: "doctor-project-scan-v2";
|
|
134
185
|
doctorWorkspaceCache: "doctor-workspace-cache-v2";
|
|
186
|
+
workspaceContract: number;
|
|
135
187
|
runtimeCommandSurface: string;
|
|
136
188
|
cliRuntimeCommandInventory: "workspai-cli-runtime-command-inventory-v1";
|
|
137
189
|
cliOperationResult: "workspai-cli-operation-result-v1";
|
|
@@ -144,6 +196,7 @@ declare function getVersionContract(): {
|
|
|
144
196
|
workspaceIntelligenceChain: "workspai-workspace-intelligence-chain-v1";
|
|
145
197
|
workspaceIntelligenceArtifacts: {
|
|
146
198
|
readonly model: "workspace-model.v1";
|
|
199
|
+
readonly knowledgeGraph: "workspace-knowledge-graph.v1";
|
|
147
200
|
readonly snapshot: "workspace-model-snapshot.v1";
|
|
148
201
|
readonly diff: "workspace-model-diff.v1";
|
|
149
202
|
readonly impact: "workspace-impact.v1";
|
|
@@ -159,6 +212,7 @@ declare function getVersionContract(): {
|
|
|
159
212
|
readonly skillsIndex: "workspace-skills-index.v1";
|
|
160
213
|
readonly agents: null;
|
|
161
214
|
readonly explain: "workspace-explain.v1";
|
|
215
|
+
readonly intelligenceRun: "workspace-intelligence-run.v1";
|
|
162
216
|
};
|
|
163
217
|
cliLogEvent: "cli-log-event-v1";
|
|
164
218
|
freshnessMetadata: "rapidkit-freshness-metadata-v1";
|
|
@@ -169,6 +223,10 @@ declare function getVersionContract(): {
|
|
|
169
223
|
workspaceVerify: "workspace-verify.v1";
|
|
170
224
|
workspaceContext: "workspace-context.v1";
|
|
171
225
|
workspaceDependencyGraph: "workspace-dependency-graph.v1";
|
|
226
|
+
workspaceKnowledgeGraph: "workspace-knowledge-graph.v1";
|
|
227
|
+
workspaceKnowledgeGraphChangeOverlay: "workspace-knowledge-graph-change-overlay.v1";
|
|
228
|
+
workspaceKnowledgeSearch: "workspace-knowledge-search.v1";
|
|
229
|
+
workspaceGraphTokenEfficiency: "workspace-graph-token-efficiency.v1";
|
|
172
230
|
workspaceIntelligenceHistory: "workspace-intelligence-history.v1";
|
|
173
231
|
agentCustomizationPackCapabilities: "workspai-agent-customization-pack-capabilities.v1";
|
|
174
232
|
agentCustomizationPackReport: "rapidkit-agent-customization-pack.v1";
|
|
@@ -185,13 +243,14 @@ declare function getVersionContract(): {
|
|
|
185
243
|
[k: string]: {
|
|
186
244
|
artifacts?: {
|
|
187
245
|
[k: string]: {
|
|
188
|
-
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";
|
|
189
|
-
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;
|
|
190
|
-
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;
|
|
246
|
+
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";
|
|
247
|
+
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" | null;
|
|
248
|
+
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" | null;
|
|
191
249
|
};
|
|
192
250
|
} | undefined;
|
|
193
|
-
schemaVersion: string | {
|
|
251
|
+
schemaVersion: string | number | {
|
|
194
252
|
readonly model: "workspace-model.v1";
|
|
253
|
+
readonly knowledgeGraph: "workspace-knowledge-graph.v1";
|
|
195
254
|
readonly snapshot: "workspace-model-snapshot.v1";
|
|
196
255
|
readonly diff: "workspace-model-diff.v1";
|
|
197
256
|
readonly impact: "workspace-impact.v1";
|
|
@@ -207,6 +266,7 @@ declare function getVersionContract(): {
|
|
|
207
266
|
readonly skillsIndex: "workspace-skills-index.v1";
|
|
208
267
|
readonly agents: null;
|
|
209
268
|
readonly explain: "workspace-explain.v1";
|
|
269
|
+
readonly intelligenceRun: "workspace-intelligence-run.v1";
|
|
210
270
|
};
|
|
211
271
|
contractPath: string | null;
|
|
212
272
|
publication: "capability-contract" | "json-schema" | "embedded-type";
|
|
@@ -265,6 +325,7 @@ declare function getGlobalCommandCapabilities(): {
|
|
|
265
325
|
workspaceWatchEvent: "workspace-watch-event.v1";
|
|
266
326
|
doctorProjectScan: "doctor-project-scan-v2";
|
|
267
327
|
doctorWorkspaceCache: "doctor-workspace-cache-v2";
|
|
328
|
+
workspaceContract: number;
|
|
268
329
|
runtimeCommandSurface: string;
|
|
269
330
|
cliRuntimeCommandInventory: "workspai-cli-runtime-command-inventory-v1";
|
|
270
331
|
cliOperationResult: "workspai-cli-operation-result-v1";
|
|
@@ -277,6 +338,7 @@ declare function getGlobalCommandCapabilities(): {
|
|
|
277
338
|
workspaceIntelligenceChain: "workspai-workspace-intelligence-chain-v1";
|
|
278
339
|
workspaceIntelligenceArtifacts: {
|
|
279
340
|
readonly model: "workspace-model.v1";
|
|
341
|
+
readonly knowledgeGraph: "workspace-knowledge-graph.v1";
|
|
280
342
|
readonly snapshot: "workspace-model-snapshot.v1";
|
|
281
343
|
readonly diff: "workspace-model-diff.v1";
|
|
282
344
|
readonly impact: "workspace-impact.v1";
|
|
@@ -292,6 +354,7 @@ declare function getGlobalCommandCapabilities(): {
|
|
|
292
354
|
readonly skillsIndex: "workspace-skills-index.v1";
|
|
293
355
|
readonly agents: null;
|
|
294
356
|
readonly explain: "workspace-explain.v1";
|
|
357
|
+
readonly intelligenceRun: "workspace-intelligence-run.v1";
|
|
295
358
|
};
|
|
296
359
|
cliLogEvent: "cli-log-event-v1";
|
|
297
360
|
freshnessMetadata: "rapidkit-freshness-metadata-v1";
|
|
@@ -302,6 +365,10 @@ declare function getGlobalCommandCapabilities(): {
|
|
|
302
365
|
workspaceVerify: "workspace-verify.v1";
|
|
303
366
|
workspaceContext: "workspace-context.v1";
|
|
304
367
|
workspaceDependencyGraph: "workspace-dependency-graph.v1";
|
|
368
|
+
workspaceKnowledgeGraph: "workspace-knowledge-graph.v1";
|
|
369
|
+
workspaceKnowledgeGraphChangeOverlay: "workspace-knowledge-graph-change-overlay.v1";
|
|
370
|
+
workspaceKnowledgeSearch: "workspace-knowledge-search.v1";
|
|
371
|
+
workspaceGraphTokenEfficiency: "workspace-graph-token-efficiency.v1";
|
|
305
372
|
workspaceIntelligenceHistory: "workspace-intelligence-history.v1";
|
|
306
373
|
agentCustomizationPackCapabilities: "workspai-agent-customization-pack-capabilities.v1";
|
|
307
374
|
agentCustomizationPackReport: "rapidkit-agent-customization-pack.v1";
|
|
@@ -318,13 +385,14 @@ declare function getGlobalCommandCapabilities(): {
|
|
|
318
385
|
[k: string]: {
|
|
319
386
|
artifacts?: {
|
|
320
387
|
[k: string]: {
|
|
321
|
-
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";
|
|
322
|
-
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;
|
|
323
|
-
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;
|
|
388
|
+
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";
|
|
389
|
+
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" | null;
|
|
390
|
+
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" | null;
|
|
324
391
|
};
|
|
325
392
|
} | undefined;
|
|
326
|
-
schemaVersion: string | {
|
|
393
|
+
schemaVersion: string | number | {
|
|
327
394
|
readonly model: "workspace-model.v1";
|
|
395
|
+
readonly knowledgeGraph: "workspace-knowledge-graph.v1";
|
|
328
396
|
readonly snapshot: "workspace-model-snapshot.v1";
|
|
329
397
|
readonly diff: "workspace-model-diff.v1";
|
|
330
398
|
readonly impact: "workspace-impact.v1";
|
|
@@ -340,6 +408,7 @@ declare function getGlobalCommandCapabilities(): {
|
|
|
340
408
|
readonly skillsIndex: "workspace-skills-index.v1";
|
|
341
409
|
readonly agents: null;
|
|
342
410
|
readonly explain: "workspace-explain.v1";
|
|
411
|
+
readonly intelligenceRun: "workspace-intelligence-run.v1";
|
|
343
412
|
};
|
|
344
413
|
contractPath: string | null;
|
|
345
414
|
publication: "capability-contract" | "json-schema" | "embedded-type";
|
|
@@ -352,12 +421,16 @@ declare function getGlobalCommandCapabilities(): {
|
|
|
352
421
|
};
|
|
353
422
|
workspace: {
|
|
354
423
|
command: string;
|
|
355
|
-
subcommands: ("archive" | "snapshot" | "list" | "import" | "init" | "model" | "diff" | "impact" | "verify" | "explain" | "sync" | "registry" | "foundation" | "graph" | "watch" | "context" | "agent-sync" | "remediation-plan" | "why" | "trace" | "feedback" | "mcp" | "policy" | "contract" | "share" | "export" | "hydrate" | "run")[];
|
|
356
|
-
intelligenceSubcommands: ("snapshot" | "model" | "diff" | "impact" | "verify" | "explain" | "graph" | "watch" | "context" | "agent-sync" | "remediation-plan" | "why" | "trace" | "feedback" | "mcp" | "contract")[];
|
|
424
|
+
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")[];
|
|
425
|
+
intelligenceSubcommands: ("snapshot" | "model" | "diff" | "impact" | "verify" | "explain" | "intelligence" | "graph" | "watch" | "context" | "agent-sync" | "remediation-plan" | "why" | "trace" | "feedback" | "mcp" | "contract")[];
|
|
357
426
|
};
|
|
358
427
|
commandMap: any;
|
|
359
428
|
runtimeInventory: RuntimeCommandInventoryPayload;
|
|
360
429
|
};
|
|
430
|
+
declare function hasWorkspaceRootMarkers(targetDir: string): boolean;
|
|
431
|
+
declare function findContextFileUp(start: string): string | null;
|
|
432
|
+
declare function findWorkspaceMarkerUp(start: string): string | null;
|
|
433
|
+
declare function findWorkspaceUp(start: string): string | null;
|
|
361
434
|
interface DoctorWorkspaceShadowDiagnostic {
|
|
362
435
|
detected: boolean;
|
|
363
436
|
candidatePath?: string;
|
|
@@ -367,6 +440,16 @@ declare function detectWindowsDoctorWorkspaceShadow(params: {
|
|
|
367
440
|
scope?: string;
|
|
368
441
|
workspaceFlag?: boolean | string;
|
|
369
442
|
}, cwd?: string, platform?: NodeJS.Platform): Promise<DoctorWorkspaceShadowDiagnostic>;
|
|
443
|
+
declare function findLegacyWorkspaceUp(start: string): string | null;
|
|
444
|
+
type WorkspacePolicyRuleKey = 'enforce_workspace_marker' | 'enforce_toolchain_lock' | 'disallow_untrusted_tool_sources' | 'enforce_compatibility_matrix' | 'require_mirror_lock_for_offline';
|
|
445
|
+
declare function replaceOrInsertTopLevelPolicyLine(content: string, key: string, value: string): string;
|
|
446
|
+
declare function replaceOrInsertRulePolicyLine(content: string, key: WorkspacePolicyRuleKey, value: boolean): string;
|
|
447
|
+
declare function defaultWorkspacePolicyYaml(): string;
|
|
448
|
+
declare function parsePolicyBooleanLiteral(value: string): boolean | null;
|
|
449
|
+
declare function runCommandInCwd(command: string, commandArgs: string[], cwd: string, options?: {
|
|
450
|
+
timeoutMs?: number;
|
|
451
|
+
}): Promise<number>;
|
|
452
|
+
declare function parseNodeEvalScript(script: string): string | null;
|
|
370
453
|
declare function handleImportCommand(source: string, options: {
|
|
371
454
|
workspace?: string;
|
|
372
455
|
name?: string;
|
|
@@ -387,14 +470,27 @@ declare function handleAdoptCommand(source: string | undefined, options: {
|
|
|
387
470
|
syncWorkspaceProjects?: (workspacePath: string) => Promise<void>;
|
|
388
471
|
registerWorkspace?: (workspacePath: string, workspaceName: string) => Promise<void>;
|
|
389
472
|
registerProjectInWorkspace?: (workspacePath: string, projectName: string, projectPath: string) => Promise<void>;
|
|
390
|
-
rollbackAdoptedProjectImport?: (workspacePath: string, projectPath: string,
|
|
473
|
+
rollbackAdoptedProjectImport?: (workspacePath: string, projectPath: string, snapshot: AdoptProjectRollbackSnapshot) => Promise<void>;
|
|
391
474
|
}): Promise<number>;
|
|
392
475
|
declare function installWorkspaceDependencies(workspacePath: string): Promise<number>;
|
|
476
|
+
declare function handleGoInit(projectPath: string): Promise<number>;
|
|
477
|
+
declare function handleNodeCommand(action: 'init' | 'dev' | 'test' | 'build' | 'start' | 'lint' | 'format', projectPath: string): Promise<number>;
|
|
478
|
+
declare function handleJavaCommand(action: 'init' | 'dev' | 'test' | 'build' | 'start' | 'lint' | 'format', projectPath: string): Promise<number>;
|
|
393
479
|
declare function handleBootstrapCommand(args: string[], initRunner?: (nextArgs: string[]) => Promise<number>): Promise<number>;
|
|
394
480
|
declare function handleSetupCommand(args: string[]): Promise<number>;
|
|
481
|
+
declare function parseCacheConfig(content: string): {
|
|
482
|
+
strategy: string;
|
|
483
|
+
prune_on_bootstrap: boolean;
|
|
484
|
+
self_heal: boolean;
|
|
485
|
+
verify_integrity: boolean;
|
|
486
|
+
};
|
|
395
487
|
declare function handleCacheCommand(args: string[]): Promise<number>;
|
|
396
488
|
declare function handleMirrorCommand(args: string[]): Promise<number>;
|
|
397
489
|
declare function handleInitCommand(args: string[]): Promise<number>;
|
|
490
|
+
declare function checkStrictPolicyPreflightForDelegation(cwd: string): Promise<string[]>;
|
|
491
|
+
declare const program: Command;
|
|
398
492
|
declare function shouldForwardToCore(args: string[]): Promise<boolean>;
|
|
493
|
+
declare function printHelp(): void;
|
|
494
|
+
declare function bootstrapCli(): Promise<void>;
|
|
399
495
|
|
|
400
|
-
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 };
|
|
496
|
+
export { type BridgeFailureCode, COMMAND_CAPABILITIES_SCHEMA_VERSION, type DoctorWorkspaceShadowDiagnostic, NPM_ONLY_SCOPED_COMMANDS, NPM_ONLY_TOP_LEVEL_COMMANDS, PROJECT_COMMANDS_CORE_FALLBACK, type PythonProjectOrchestrationDependencies, VERSION_CONTRACT_SCHEMA_VERSION, WRAPPER_ORCHESTRATED_PROJECT_COMMANDS, bootstrapCli, bridgeFailureCode, buildDelegationEnvForInit, checkStrictPolicyPreflightForDelegation, commandAvailable, createProjectVenv, createWorkspaceVenv, defaultWorkspacePolicyYaml, detectWindowsDoctorWorkspaceShadow, ensurePythonProjectUsesLocalVenv, findContextFileUp, findLegacyWorkspaceUp, findWorkspaceMarkerUp, findWorkspaceUp, getGlobalCommandCapabilities, getPublishedContractCatalog, getPublishedContractVersions, getVersionContract, handleAdoptCommand, handleBootstrapCommand, handleCacheCommand, handleCreateOrFallback, handleGoInit, handleImportCommand, handleInitCommand, handleJavaCommand, handleMirrorCommand, handleNodeCommand, handleSetupCommand, hasWorkspaceRootMarkers, hostPythonCandidates, inferRuntimeByFiles, installPythonDependenciesWithPipFallback, installWorkspaceDependencies, isNpmExecInvocation, isNpmOnlyInvocation, isNpmOnlyManualHandlerCommand, isNpmOnlyParseDirectCommand, isNpmOnlyParseDirectInvocation, isNpmOnlyScopedCommand, isNpmOnlyTopLevelCommand, normalizeFallbackTemplate, parseCacheConfig, parseMaxWorkersOption, parseNodeEvalScript, parsePolicyBooleanLiteral, printHelp, program, readFlagValue, replaceOrInsertRulePolicyLine, replaceOrInsertTopLevelPolicyLine, resolveInvokedCliName, runCommandInCwd, runCreateFallback, shouldForwardToCore, validateNpmKitFlags };
|