workspai 0.69.0 → 0.70.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/contracts/workspace-intelligence/decision-event.v1.json +20 -0
- package/contracts/workspace-intelligence/proof-carrying-change-capsule.v1.json +1 -0
- package/dist/analyze-OGWDSPXQ.js +1 -0
- package/dist/{artifact-remediation-plan-JHHZ4L24.js → artifact-remediation-plan-URQL5MBN.js} +1 -1
- package/dist/autopilot-release-QQDFEPT7.js +1 -0
- package/dist/capabilities-command-NFGX42CH.js +1 -0
- package/dist/chunk-37SWTS2B.js +1 -0
- package/dist/{chunk-M37ALD4V.js → chunk-3S2U7WRM.js} +1 -1
- package/dist/{chunk-N2Q4MSSP.js → chunk-4R7STECB.js} +5 -5
- package/dist/{chunk-AD4ZY3RF.js → chunk-AGZWDYMF.js} +1 -1
- package/dist/{chunk-OU3BBWH5.js → chunk-DNZHKBQ3.js} +5 -5
- package/dist/chunk-EP6Q2QBU.js +1 -0
- package/dist/chunk-FE5R6EUV.js +2 -0
- package/dist/{chunk-V6TIT6M3.js → chunk-GED7JURY.js} +1 -1
- package/dist/{chunk-EBEAJIBI.js → chunk-GL3KLNIG.js} +1 -1
- package/dist/{chunk-37ZLNFV5.js → chunk-IET57ZKN.js} +2 -2
- package/dist/{chunk-EG6EZ7HW.js → chunk-IFHM2SI6.js} +1 -1
- package/dist/chunk-IHKG5C6G.js +1 -0
- package/dist/{chunk-A3MYO55A.js → chunk-IRLKWRLP.js} +2 -2
- package/dist/chunk-JK6XEF7K.js +6 -0
- package/dist/{chunk-MAWHHHU3.js → chunk-LE2I2E6R.js} +2 -2
- package/dist/{chunk-BM2F5C4J.js → chunk-LU6CYDLN.js} +1 -1
- package/dist/chunk-N6FJZ62B.js +2 -0
- package/dist/chunk-PTSEDZIV.js +2 -0
- package/dist/chunk-QNHKUSBH.js +1 -0
- package/dist/chunk-QZODGRAI.js +2 -0
- package/dist/chunk-S2TOSHQW.js +4 -0
- package/dist/chunk-S42KDOGG.js +1 -0
- package/dist/chunk-TEMFNVO2.js +2 -0
- package/dist/{chunk-WZ5V5U2K.js → chunk-TLMP2MGH.js} +1 -1
- package/dist/chunk-UT57IFS4.js +8 -0
- package/dist/chunk-WUXJCSYO.js +9 -0
- package/dist/{chunk-MHQHRMKU.js → chunk-XSSNM4F5.js} +2 -2
- package/dist/{chunk-YKY4JFCF.js → chunk-XVTN5DDV.js} +1 -1
- package/dist/{chunk-3G5FF2JZ.js → chunk-Z7JIUA6I.js} +1 -1
- package/dist/{chunk-ABMB6MJT.js → chunk-ZLCLGIM6.js} +1 -1
- package/dist/{chunk-XPGCFVGC.js → chunk-ZPOZ6MDX.js} +1 -1
- package/dist/{create-GWBQ74ZI.js → create-BBALBC3U.js} +1 -1
- package/dist/{doctor-OQAXSMEM.js → doctor-WWVY7NB6.js} +1 -1
- package/dist/{goal-lifecycle-YWBVQ2DF.js → goal-lifecycle-CEUTKUNV.js} +1 -1
- package/dist/{goal-pack-KUXPZVNO.js → goal-pack-JQL3YOKT.js} +1 -1
- package/dist/index.js +40 -40
- package/dist/pipeline-V46WWMP4.js +5 -0
- package/dist/{project-agent-entry-H3JAGNLS.js → project-agent-entry-MRAYG7QD.js} +1 -1
- package/dist/{project-intelligence-lens-7NMKHV5N.js → project-intelligence-lens-4BKPN4PE.js} +1 -1
- package/dist/{project-test-coverage-3DKZKLWY.js → project-test-coverage-4RRCHY5W.js} +1 -1
- package/dist/proof-carrying-change-B7ONTBYO.js +1 -0
- package/dist/{verified-goal-7XHRWYSE.js → verified-goal-YNSBL7L3.js} +1 -1
- package/dist/{workspace-TJHCETBV.js → workspace-FJ6JRYWA.js} +1 -1
- package/dist/{workspace-agent-sync-Z35NTXCB.js → workspace-agent-sync-V33UGII3.js} +1 -1
- package/dist/{workspace-context-KNJQUJWC.js → workspace-context-O6UBCBEA.js} +1 -1
- package/dist/{workspace-contract-VIUQT5SZ.js → workspace-contract-S2JYDA4K.js} +1 -1
- package/dist/{workspace-explain-HM6GMK26.js → workspace-explain-RP6VJ6QM.js} +1 -1
- package/dist/{workspace-feedback-YSPEGCON.js → workspace-feedback-D6HJLKBQ.js} +1 -1
- package/dist/{workspace-foundation-PLXFPI3J.js → workspace-foundation-7QXEJJKZ.js} +1 -1
- package/dist/{workspace-graph-stream-FNRQ2FTB.js → workspace-graph-stream-YY65R5EC.js} +1 -1
- package/dist/{workspace-history-HDDFG6LH.js → workspace-history-WWPS4U7H.js} +1 -1
- package/dist/{workspace-intelligence-QLSD5EEV.js → workspace-intelligence-LMR42ICR.js} +1 -1
- package/dist/{workspace-intelligence-runner-4EW4T2OW.js → workspace-intelligence-runner-FXFSTCHC.js} +1 -1
- package/dist/{workspace-knowledge-graph-EEOW5VAJ.js → workspace-knowledge-graph-3564KQXT.js} +1 -1
- package/dist/workspace-knowledge-graph-snapshot-P27RPMV5.js +1 -0
- package/dist/workspace-mcp-serve-ZK46EZUD.js +3 -0
- package/dist/{workspace-model-NCOOY5LC.js → workspace-model-6UMQAGUK.js} +1 -1
- package/dist/{workspace-onboarding-JNC7ZFMR.js → workspace-onboarding-C57OQ7XZ.js} +1 -1
- package/dist/{workspace-readme-OV2ADTLW.js → workspace-readme-HA6XLDME.js} +2 -2
- package/dist/{workspace-registry-summary-ONT4VOJX.js → workspace-registry-summary-GLQO4ZUF.js} +1 -1
- package/dist/workspace-repair-engine-5ZSSF3T5.js +3 -0
- package/dist/workspace-run-UGWGT3K2.js +1 -0
- package/dist/{workspace-verify-MLABQUWK.js → workspace-verify-LQHXBH2D.js} +1 -1
- package/dist/{workspace-watch-MJOG5AZ3.js → workspace-watch-Z32443UP.js} +1 -1
- package/docs/README.md +34 -32
- package/docs/ci-workflows.md +1 -1
- package/docs/commands-reference.md +4 -1
- package/docs/contracts/PROOF_CARRYING_CHANGE_CONTRACT_PLAN.md +6 -3
- package/docs/proof-carrying-change.implementation.v1.json +3 -2
- package/docs/proof-carrying-change.md +42 -8
- package/docs/real-world-qualification.md +8 -3
- package/package.json +1 -1
- package/dist/analyze-GPYPXXRT.js +0 -1
- package/dist/autopilot-release-FL47VMF7.js +0 -1
- package/dist/capabilities-command-MYSLJIYS.js +0 -1
- package/dist/chunk-2LZWBUJD.js +0 -1
- package/dist/chunk-3HFFKW4Q.js +0 -2
- package/dist/chunk-ERVWW5HX.js +0 -1
- package/dist/chunk-GSSJJS5M.js +0 -6
- package/dist/chunk-I3UCODXU.js +0 -1
- package/dist/chunk-MBICKDYP.js +0 -1
- package/dist/chunk-OZXCNVGW.js +0 -2
- package/dist/chunk-RVOW3BHQ.js +0 -2
- package/dist/chunk-UW4SESKD.js +0 -2
- package/dist/chunk-VNKAISFE.js +0 -8
- package/dist/chunk-W6WRT77T.js +0 -1
- package/dist/chunk-WHR5SL33.js +0 -4
- package/dist/chunk-YWZBGSFE.js +0 -9
- package/dist/chunk-YZL7ZY7J.js +0 -2
- package/dist/pipeline-PGB5TEV3.js +0 -5
- package/dist/proof-carrying-change-QFH7WI2E.js +0 -1
- package/dist/workspace-knowledge-graph-snapshot-X347REDB.js +0 -1
- package/dist/workspace-mcp-serve-NQ42PE2I.js +0 -3
- package/dist/workspace-repair-engine-WMJCYWO4.js +0 -3
- package/dist/workspace-run-3S35MDX6.js +0 -1
|
@@ -47,6 +47,25 @@
|
|
|
47
47
|
},
|
|
48
48
|
"additionalProperties": false
|
|
49
49
|
},
|
|
50
|
+
"deletedArtifactReference": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"required": ["artifact", "observedAt", "digest"],
|
|
53
|
+
"properties": {
|
|
54
|
+
"artifact": { "type": "string", "minLength": 1 },
|
|
55
|
+
"observedAt": { "type": "string", "format": "date-time" },
|
|
56
|
+
"digest": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"required": ["algorithm", "semantics", "value"],
|
|
59
|
+
"properties": {
|
|
60
|
+
"algorithm": { "const": "sha256" },
|
|
61
|
+
"semantics": { "const": "deletion-tombstone-v1" },
|
|
62
|
+
"value": { "$ref": "#/$defs/sha256" }
|
|
63
|
+
},
|
|
64
|
+
"additionalProperties": false
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"additionalProperties": false
|
|
68
|
+
},
|
|
50
69
|
"scope": {
|
|
51
70
|
"type": "object",
|
|
52
71
|
"required": ["kind", "projects"],
|
|
@@ -76,6 +95,7 @@
|
|
|
76
95
|
"summary": { "type": "string", "minLength": 1 },
|
|
77
96
|
"command": { "type": "array", "items": { "type": "string" }, "minItems": 1 },
|
|
78
97
|
"artifacts": { "type": "array", "items": { "$ref": "#/$defs/artifactReference" } },
|
|
98
|
+
"deletedArtifacts": { "type": "array", "items": { "$ref": "#/$defs/deletedArtifactReference" }, "uniqueItems": true },
|
|
79
99
|
"observedAt": { "type": "string", "format": "date-time" },
|
|
80
100
|
"idempotencyKey": { "type": "string", "minLength": 1 }
|
|
81
101
|
},
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"actualOverlay": { "oneOf": [{ "$ref": "decision-event.v1.json#/$defs/artifactReference" }, { "type": "null" }] },
|
|
31
31
|
"surpriseReport": { "oneOf": [{ "$ref": "decision-event.v1.json#/$defs/artifactReference" }, { "type": "null" }] },
|
|
32
32
|
"effects": { "type": "array", "items": { "$ref": "decision-event.v1.json#/$defs/artifactReference" } },
|
|
33
|
+
"deletedArtifacts": { "type": "array", "items": { "$ref": "decision-event.v1.json#/$defs/deletedArtifactReference" }, "uniqueItems": true },
|
|
33
34
|
"verification": { "type": "array", "items": { "$ref": "decision-event.v1.json#/$defs/artifactReference" } },
|
|
34
35
|
"assurances": {
|
|
35
36
|
"type": "array",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{b as printAnalyzeReport,a as runAnalyze}from'./chunk-WUXJCSYO.js';
|
package/dist/{artifact-remediation-plan-JHHZ4L24.js → artifact-remediation-plan-URQL5MBN.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as buildArtifactRemediationPlan,b as writeArtifactRemediationPlan}from'./chunk-
|
|
1
|
+
export{a as buildArtifactRemediationPlan,b as writeArtifactRemediationPlan}from'./chunk-IRLKWRLP.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{b as AUTOPILOT_RELEASE_ALIAS_FILENAME,a as AUTOPILOT_RELEASE_LAST_RUN_FILENAME,c as runAutopilotRelease}from'./chunk-UT57IFS4.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{b as runDoctorCapabilities}from'./chunk-JK6XEF7K.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {f,h as h$1}from'./chunk-FE5R6EUV.js';import {t,s}from'./chunk-ODK4LCEL.js';import {t as t$1}from'./chunk-VQZ5PI5J.js';import u from'fs';import A from'path';var a=s.workspaceRunLast.schemaVersion,W="workspace-run-last.json",o=t.workspaceRunLast;var P=new Set(["init","test","build","start"]);function _(e){return P.has(e)}async function d(e){try{return await u.promises.access(e,u.constants.F_OK),true}catch{return false}}async function w(e){try{let r=await u.promises.readFile(e,"utf-8");return JSON.parse(r)}catch{return null}}function m(e){return !e||typeof e!="object"||Array.isArray(e)?null:e}function h(e){let r=e.stage;return typeof r!="string"||r.trim().length===0||!Array.isArray(e.projects)?false:_(r)||/^[a-z][a-z0-9_-]*$/i.test(r)}function T(e){let r=m(e);return !r||r.schemaVersion===a?false:h(r)}function C(e){let r=m(e);return r?r.schemaVersion===a&&r.stages!=null:false}function p(e){if(C(e))return e;if(T(e)){let r=e.stage;return {schemaVersion:a,generatedAt:e.generatedAt,workspacePath:e.workspacePath,latestStage:r,stages:{[r]:e},enterpriseControls:e.enterpriseControls??{jsonReady:true,evidencePath:o}}}return null}function U(e,r){let n=p(e);if(!n)return null;let t=r??n.latestStage;return n.stages[t]??null}async function V(e){let r=(await Promise.all(t$1(A.resolve(e),"reports",W).map(async t=>await d(t)?t:null))).find(t=>typeof t=="string");if(!r)return null;let n=await w(r);return p(n)}async function j(e,r){let n=A.resolve(e);return f(n,o,async()=>{let t=(await Promise.all(t$1(n,"reports",W).map(async s=>await d(s)?s:null))).find(s=>typeof s=="string"),R=t?await w(t):null,i=p(R);if(t&&!i)throw new Error(`Workspace run evidence is unreadable or invalid; refusing to overwrite: ${t}`);let l=i?{...i.stages}:{};l[r.stage]=r;let g={schemaVersion:a,generatedAt:r.generatedAt,workspacePath:r.workspacePath,latestStage:r.stage,stages:l,enterpriseControls:{jsonReady:true,evidencePath:o}};return await h$1(n,o,g),g})}export{W as a,o as b,U as c,V as d,j as e};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {l,f,e as e$2,g as g$1}from'./chunk-
|
|
1
|
+
import {l,f,e as e$2,g as g$1}from'./chunk-TLMP2MGH.js';import {b as b$4}from'./chunk-IFHM2SI6.js';import {b as b$7,a as a$3}from'./chunk-D5LLTUTY.js';import {b as b$2}from'./chunk-B6FJ6RG6.js';import {a as a$2}from'./chunk-EP6Q2QBU.js';import {e,g,h as h$1,c as c$1,i as i$1,f as f$1,b as b$6,d as d$4}from'./chunk-46QH3ZVI.js';import {g as g$2}from'./chunk-PTSEDZIV.js';import {d as d$1,b as b$1}from'./chunk-2LIVMG5C.js';import {h,e as e$1,b as b$3,d as d$2}from'./chunk-PKKSRXUS.js';import {a}from'./chunk-TQEMLBAG.js';import {i,b as b$5,k as k$1,j,m,t,s as s$1,q}from'./chunk-RGNCL5OB.js';import {b,a as a$1,c,d as d$3}from'./chunk-VQZ5PI5J.js';import {promises}from'fs';import*as k from'fs-extra';import d from'path';import s from'chalk';import {execa}from'execa';function ct(e){let n=e.projectCount??0,t=n===1?"project":"projects",o=e.pythonEngine==="installed"?`Python ${e.pythonVersion||"3.10+"} \xB7 ${e.installMethod||"local environment"}`:e.pythonEngine==="skipped"?"Python engine not installed":"Runtime-neutral foundation";return ["","\u2713 Workspace ready",`${e.workspaceName} \xB7 ${e.profile} \xB7 ${n} registered ${t}`,`Location ${e.workspacePath}`,`Runtime ${o}`,...e.note?[`Note ${e.note}`]:[],"","Workspace Intelligence"," \u2713 Contract and project registry"," \u2713 Canonical model and proof-backed graph"," \u2713 Agent context, grounding, and evidence index","","Next",` ${g$1(e.workspacePath)}`," npx workspai create"," npx workspai workspace intelligence run --for-agent generic --strict --json","","Evidence .workspai/reports/INDEX.json","Guide README.md",""]}function B(e){let n=ct(e);for(let t of n)t==="\u2713 Workspace ready"?console.log(s.green.bold(t)):t==="Workspace Intelligence"||t==="Next"?console.log(s.cyan.bold(t)):t.startsWith(" \u2713")?console.log(s.green(t)):t.startsWith("Location")||t.startsWith("Runtime")?console.log(s.gray(t)):console.log(t);}function T(){return i()}var pt="transactions";function dt(){return d.join(q(),pt)}async function He(){let e=dt();return await b$7(e),a$3({journalDirectory:e})}async function Ue(e){for(let n of s$1())await e.captureFile(n);}async function se(e){let n=await He();try{return await Ue(n),await n.captureOwnedTree(e),n}catch(t){return F(n,t)}}async function ut(e){let n=await He();try{await Ue(n),await n.captureOwnedTree(d.join(e,a$1)),await n.captureOwnedTree(d.join(e,".venv"));let t=[c,".gitignore",d.join(a$1,"workspace.json"),d.join(a$1,"toolchain.lock"),d.join(a$1,"policies.yml"),d.join(a$1,"cache-config.yml"),g$2,a$2,"pyproject.toml","poetry.toml","poetry.lock","rapidkit","rapidkit.cmd","README.md",".rapidkit-global"];for(let o of t)await n.captureFile(d.join(e,o));return n}catch(t){return F(n,t)}}async function J(e){await e.commit(),e.journalPath&&await promises.rm(d.dirname(e.journalPath),{recursive:true,force:true}).catch(n=>e$1.debug(`Could not remove committed lifecycle journal: ${n}`));}async function F(e,n){try{await e.rollback();}catch(t){throw new AggregateError([n,t],"Workspace lifecycle failed and rollback was incomplete.")}throw n}async function Q(e,n,t,o,a){let l=d$1(n,h(),t,a?.pythonEngine?{coreStatus:a.pythonEngine,...a.pythonEngineReason?{coreReason:a.pythonEngineReason}:{},...o?{pythonVersion:o}:{}}:void 0);o&&!a?.pythonEngine&&(l.metadata||(l.metadata={}),l.metadata.python={pythonVersion:o}),await b$1(e,l);}async function H(e){await k.outputFile(d.join(e,".gitignore"),`.venv/
|
|
2
2
|
__pycache__/
|
|
3
3
|
*.pyc
|
|
4
4
|
.env
|