@hamsterbase/evidra 0.4.0 → 0.6.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/dist/sdk/conformance-rules.js +145 -17
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/main.d.ts +6 -0
- package/dist/sdk/main.js +11 -4
- package/dist/sdk/rules.d.ts +9 -2
- package/dist/sdk/{types-DHfARqti.d.ts → types--o0ku6ya.d.ts} +6 -0
- package/dist/service/cli.js +143 -46
- package/dist/web/assets/{cssMode-CT7qaTm_.js → cssMode-BQHpX9hf.js} +1 -1
- package/dist/web/assets/{editor.api-CsVhWQDt.js → editor.api-aTVJPcBz.js} +1 -1
- package/dist/web/assets/{freemarker2-Biydhqq4.js → freemarker2-C69zfyrS.js} +1 -1
- package/dist/web/assets/{handlebars-OLGn3O0q.js → handlebars-Bw1zaGO-.js} +1 -1
- package/dist/web/assets/{html-Cw5ATHyh.js → html-fMjDlgec.js} +1 -1
- package/dist/web/assets/{htmlMode-BI1zICew.js → htmlMode-DeWQtbEo.js} +1 -1
- package/dist/web/assets/{index-C49ToWrK.js → index-Dn6cBPut.js} +2 -2
- package/dist/web/assets/{javascript-BS1aYt5R.js → javascript-DGw6XfQa.js} +1 -1
- package/dist/web/assets/{jsonMode-DCJhJggA.js → jsonMode-DWLxiN48.js} +1 -1
- package/dist/web/assets/{liquid-DoQa4FNY.js → liquid-mVy7oRfH.js} +1 -1
- package/dist/web/assets/{lspLanguageFeatures-D9tA1yBW.js → lspLanguageFeatures-DHZ5ydHq.js} +1 -1
- package/dist/web/assets/main-CAvFOBUt.css +2 -0
- package/dist/web/assets/main-DNImWnRE.css +1 -0
- package/dist/web/assets/main-ELN7vuxW.js +18 -0
- package/dist/web/assets/main-iME7bfou.js +26 -0
- package/dist/web/assets/{mdx-CA3qWzFi.js → mdx-B4GGuoLa.js} +1 -1
- package/dist/web/assets/{monaco-BtL7JKYj.js → monaco-Dgn-_pxJ.js} +4 -4
- package/dist/web/assets/{python-BrQiqC89.js → python-CEoHsiCM.js} +1 -1
- package/dist/web/assets/{razor-08hjtCNT.js → razor-BOuSd6jI.js} +1 -1
- package/dist/web/assets/{tsMode-DC-2vqQt.js → tsMode-B_TRe0Su.js} +1 -1
- package/dist/web/assets/{typescript-9DOCFqrz.js → typescript-CZE3GYFR.js} +1 -1
- package/dist/web/assets/useDisplayPreference-DTZ1jElj.js +89 -0
- package/dist/web/assets/{workers-BcFJUhLI.js → workers-wfsBwNFd.js} +1 -1
- package/dist/web/assets/{xml-ZJo8Un2M.js → xml-BlMZHhHB.js} +1 -1
- package/dist/web/assets/{yaml-8EZC7v3K.js → yaml-B8E4SMPe.js} +1 -1
- package/dist/web/index.html +1 -1
- package/package.json +3 -2
- package/packages/conformance/rules/baseline-max-diff-pixels/RULE.md +21 -0
- package/packages/conformance/rules/index.md +1 -1
- package/skills/evidra/SKILL.md +7 -1
- package/dist/types/modules/core/contracts/comparison.d.ts +0 -41
- package/dist/types/modules/core/contracts/config.d.ts +0 -19
- package/dist/types/modules/core/contracts/context.d.ts +0 -6
- package/dist/types/modules/core/contracts/functions/addCase.d.ts +0 -128
- package/dist/types/modules/core/contracts/functions/addTask.d.ts +0 -14
- package/dist/types/modules/core/contracts/functions/approve.d.ts +0 -8
- package/dist/types/modules/core/contracts/functions/baselineChanges.d.ts +0 -14
- package/dist/types/modules/core/contracts/functions/compare.d.ts +0 -14
- package/dist/types/modules/core/contracts/functions/compareTask.d.ts +0 -6
- package/dist/types/modules/core/contracts/functions/compareTasks.d.ts +0 -18
- package/dist/types/modules/core/contracts/functions/deleteBaselineFile.d.ts +0 -8
- package/dist/types/modules/core/contracts/functions/finishTask.d.ts +0 -8
- package/dist/types/modules/core/contracts/functions/getBaseline.d.ts +0 -10
- package/dist/types/modules/core/contracts/functions/getBaselineChanges.d.ts +0 -6
- package/dist/types/modules/core/contracts/functions/getGitChanges.d.ts +0 -6
- package/dist/types/modules/core/contracts/functions/getGitDiff.d.ts +0 -8
- package/dist/types/modules/core/contracts/functions/getTaskCase.d.ts +0 -23
- package/dist/types/modules/core/contracts/functions/getTaskTree.d.ts +0 -21
- package/dist/types/modules/core/contracts/functions/gitChanges.d.ts +0 -25
- package/dist/types/modules/core/contracts/functions/index.d.ts +0 -18
- package/dist/types/modules/core/contracts/functions/listBaselines.d.ts +0 -5
- package/dist/types/modules/core/contracts/functions/listRuns.d.ts +0 -7
- package/dist/types/modules/core/contracts/functions/listTaskSummaries.d.ts +0 -15
- package/dist/types/modules/core/contracts/functions/listTasks.d.ts +0 -15
- package/dist/types/modules/core/contracts/functions/loadConfig.d.ts +0 -5
- package/dist/types/modules/core/contracts/functions/readProjectInfo.d.ts +0 -5
- package/dist/types/modules/core/contracts/functions/readTaskReport.d.ts +0 -6
- package/dist/types/modules/core/contracts/functions/resolveConfig.d.ts +0 -6
- package/dist/types/modules/core/contracts/functions/reviewBaselineChanges.d.ts +0 -9
- package/dist/types/modules/core/contracts/functions/reviewCodeChanges.d.ts +0 -9
- package/dist/types/modules/core/contracts/functions/taskRecords.d.ts +0 -6
- package/dist/types/modules/core/contracts/functions/updateBaseline.d.ts +0 -20
- package/dist/types/modules/core/contracts/git.d.ts +0 -14
- package/dist/types/modules/core/contracts/imageDiffPool.d.ts +0 -5
- package/dist/types/modules/core/contracts/index.d.ts +0 -30
- package/dist/types/modules/core/contracts/internal/compare.d.ts +0 -14
- package/dist/types/modules/core/contracts/internal/getBaseline.d.ts +0 -10
- package/dist/types/modules/core/contracts/internal/listTasks.d.ts +0 -12
- package/dist/types/modules/core/contracts/internal/taskRecords.d.ts +0 -6
- package/dist/types/modules/core/contracts/internal/updateBaseline.d.ts +0 -20
- package/dist/types/modules/core/contracts/model.d.ts +0 -80
- package/dist/types/modules/core/contracts/report.d.ts +0 -52
- package/dist/types/modules/core/contracts/repository.d.ts +0 -5
- package/dist/types/modules/core/contracts/requests.d.ts +0 -23
- package/dist/types/modules/core/contracts/scanCases.d.ts +0 -15
- package/dist/types/modules/core/contracts/shared.d.ts +0 -6
- package/dist/types/modules/core/contracts/snapshots.d.ts +0 -6
- package/dist/types/modules/core/contracts/taskRecord.d.ts +0 -76
- package/dist/types/modules/core/implementations/Functions/addCase.d.ts +0 -4
- package/dist/types/modules/core/implementations/Functions/addTask.d.ts +0 -4
- package/dist/types/modules/core/implementations/Functions/approve.d.ts +0 -6
- package/dist/types/modules/core/implementations/Functions/compare.d.ts +0 -15
- package/dist/types/modules/core/implementations/Functions/compareTask.d.ts +0 -3
- package/dist/types/modules/core/implementations/Functions/compareTasks.d.ts +0 -5
- package/dist/types/modules/core/implementations/Functions/deleteBaselineFile.d.ts +0 -4
- package/dist/types/modules/core/implementations/Functions/finishTask.d.ts +0 -4
- package/dist/types/modules/core/implementations/Functions/getBaseline.d.ts +0 -4
- package/dist/types/modules/core/implementations/Functions/getBaselineChanges.d.ts +0 -4
- package/dist/types/modules/core/implementations/Functions/getGitChanges.d.ts +0 -3
- package/dist/types/modules/core/implementations/Functions/getGitDiff.d.ts +0 -3
- package/dist/types/modules/core/implementations/Functions/getTaskCase.d.ts +0 -5
- package/dist/types/modules/core/implementations/Functions/getTaskTree.d.ts +0 -5
- package/dist/types/modules/core/implementations/Functions/listBaselines.d.ts +0 -3
- package/dist/types/modules/core/implementations/Functions/listTaskSummaries.d.ts +0 -2
- package/dist/types/modules/core/implementations/Functions/listTasks.d.ts +0 -4
- package/dist/types/modules/core/implementations/Functions/loadConfig.d.ts +0 -3
- package/dist/types/modules/core/implementations/Functions/readProjectInfo.d.ts +0 -3
- package/dist/types/modules/core/implementations/Functions/readTaskReport.d.ts +0 -3
- package/dist/types/modules/core/implementations/Functions/resolveConfig.d.ts +0 -9
- package/dist/types/modules/core/implementations/Functions/reviewBaselineChanges.d.ts +0 -4
- package/dist/types/modules/core/implementations/Functions/reviewCodeChanges.d.ts +0 -4
- package/dist/types/modules/core/implementations/Functions/taskRecords.d.ts +0 -4
- package/dist/types/modules/core/implementations/Functions/updateBaseline.d.ts +0 -5
- package/dist/types/modules/core/implementations/Utils/assertNamespace.d.ts +0 -1
- package/dist/types/modules/core/implementations/Utils/canonical.d.ts +0 -1
- package/dist/types/modules/core/implementations/Utils/createTaskId.d.ts +0 -1
- package/dist/types/modules/core/implementations/Utils/deletionAllowed.d.ts +0 -2
- package/dist/types/modules/core/implementations/Utils/download.d.ts +0 -3
- package/dist/types/modules/core/implementations/Utils/hash.d.ts +0 -1
- package/dist/types/modules/core/implementations/Utils/imageDiffPool.d.ts +0 -18
- package/dist/types/modules/core/implementations/Utils/imageKey.d.ts +0 -1
- package/dist/types/modules/core/implementations/Utils/loadBaseline.d.ts +0 -4
- package/dist/types/modules/core/implementations/Utils/mapLimit.d.ts +0 -1
- package/dist/types/modules/core/implementations/Utils/observationKey.d.ts +0 -1
- package/dist/types/modules/core/implementations/Utils/pngSize.d.ts +0 -4
- package/dist/types/modules/core/implementations/Utils/readJson.d.ts +0 -1
- package/dist/types/modules/core/implementations/Utils/readTaskRecord.d.ts +0 -2
- package/dist/types/modules/core/implementations/Utils/scanCases.d.ts +0 -9
- package/dist/types/modules/core/implementations/Utils/taskDirectory.d.ts +0 -1
- package/dist/types/modules/core/implementations/Utils/toCase.d.ts +0 -3
- package/dist/types/modules/core/implementations/Utils/toObservation.d.ts +0 -3
- package/dist/types/modules/core/implementations/Utils/toSnapshot.d.ts +0 -3
- package/dist/types/modules/core/implementations/Utils/writeBytesAtomic.d.ts +0 -1
- package/dist/types/modules/core/implementations/Utils/writeJsonAtomic.d.ts +0 -1
- package/dist/types/modules/core/implementations/Utils/writeTextAtomic.d.ts +0 -1
- package/dist/types/modules/core/implementations/baselineChanges.d.ts +0 -6
- package/dist/types/modules/core/implementations/config.d.ts +0 -6
- package/dist/types/modules/core/implementations/content.d.ts +0 -1
- package/dist/types/modules/core/implementations/evidra.d.ts +0 -31
- package/dist/types/modules/core/implementations/git.d.ts +0 -11
- package/dist/types/modules/core/implementations/gitChanges.d.ts +0 -29
- package/dist/types/modules/core/implementations/index.d.ts +0 -17
- package/dist/types/modules/core/implementations/internal/compare.d.ts +0 -15
- package/dist/types/modules/core/implementations/internal/getBaseline.d.ts +0 -4
- package/dist/types/modules/core/implementations/internal/listTasks.d.ts +0 -2
- package/dist/types/modules/core/implementations/internal/taskRecords.d.ts +0 -4
- package/dist/types/modules/core/implementations/internal/updateBaseline.d.ts +0 -5
- package/dist/types/modules/core/implementations/paths.d.ts +0 -48
- package/dist/types/modules/core/implementations/report.d.ts +0 -3
- package/dist/types/modules/core/implementations/reportResources.d.ts +0 -4
- package/dist/types/modules/core/implementations/reportStatus.d.ts +0 -10
- package/dist/types/modules/core/implementations/reportTree.d.ts +0 -5
- package/dist/types/modules/core/implementations/repository.d.ts +0 -10
- package/dist/types/modules/core/implementations/requests.d.ts +0 -13
- package/dist/types/modules/core/implementations/snapshots.d.ts +0 -11
- package/dist/types/modules/core/implementations/storage/local.d.ts +0 -3
- package/dist/types/modules/core/implementations/storage/objects.d.ts +0 -3
- package/dist/types/modules/core/index.d.ts +0 -21
- package/dist/types/packages/sdk/src/index.d.ts +0 -21
- package/dist/types/packages/sdk/src/types.d.ts +0 -9
- package/dist/web/assets/main-BO3J7gmH.css +0 -2
- package/dist/web/assets/main-Bpk1-JEL.css +0 -1
- package/dist/web/assets/main-DqSNHHTP.js +0 -13
- package/dist/web/assets/main-TbSjhXd2.js +0 -18
- package/dist/web/assets/useDisplayPreference-B-z8NzSv.js +0 -23
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e}from"./editor.api-
|
|
1
|
+
import{p as e}from"./editor.api-aTVJPcBz.js";import"./monaco-Dgn-_pxJ.js";function t(e,t){let n=globalThis.MonacoEnvironment;if(n?.createTrustedTypesPolicy)try{return n.createTrustedTypesPolicy(e,t)}catch(e){console.error(e);return}try{return globalThis.trustedTypes?.createPolicy(e,t)}catch(e){console.error(e);return}}var n=typeof self==`object`&&self.constructor&&self.constructor.name===`DedicatedWorkerGlobalScope`&&globalThis.workerttPolicy!==void 0?globalThis.workerttPolicy:t(`defaultWorkerFactory`,{createScriptURL:e=>e});function r(e){let t=e.label,r=globalThis.MonacoEnvironment;if(r){if(typeof r.getWorker==`function`)return r.getWorker(`workerMain.js`,t);if(typeof r.getWorkerUrl==`function`){let e=r.getWorkerUrl(`workerMain.js`,t);return new Worker(n?n.createScriptURL(e):e,{name:t,type:`module`})}}if(e.createWorker)return e.createWorker();throw Error(`You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker`)}function i(t){let n=Promise.resolve(r({label:t.label??`monaco-editor-worker`,moduleId:t.moduleId,createWorker:t.createWorker})).then(e=>(e.postMessage(`ignore`),e.postMessage(t.createData),e));return e.createWebWorker({worker:n,host:t.host,keepIdleModels:t.keepIdleModels})}export{i as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as e}from"./editor.api-
|
|
1
|
+
import{m as e}from"./editor.api-aTVJPcBz.js";var t={comments:{blockComment:[`<!--`,`-->`]},brackets:[[`<`,`>`]],autoClosingPairs:[{open:`<`,close:`>`},{open:`'`,close:`'`},{open:`"`,close:`"`}],surroundingPairs:[{open:`<`,close:`>`},{open:`'`,close:`'`},{open:`"`,close:`"`}],onEnterRules:[{beforeText:RegExp(`<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,`i`),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:RegExp(`<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,`i`),action:{indentAction:e.IndentAction.Indent}}]},n={defaultToken:``,tokenPostfix:`.xml`,ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,``],{include:`@whitespace`},[/(<)(@qualifiedName)/,[{token:`delimiter`},{token:`tag`,next:`@tag`}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:`delimiter`},{token:`tag`},``,{token:`delimiter`}]],[/(<\?)(@qualifiedName)/,[{token:`delimiter`},{token:`metatag`,next:`@tag`}]],[/(<\!)(@qualifiedName)/,[{token:`delimiter`},{token:`metatag`,next:`@tag`}]],[/<\!\[CDATA\[/,{token:`delimiter.cdata`,next:`@cdata`}],[/&\w+;/,`string.escape`]],cdata:[[/[^\]]+/,``],[/\]\]>/,{token:`delimiter.cdata`,next:`@pop`}],[/\]/,``]],tag:[[/[ \t\r\n]+/,``],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,[`attribute.name`,``,`attribute.value`]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,[`attribute.name`,``,`attribute.value`]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,[`attribute.name`,``,`attribute.value`]],[/@qualifiedName/,`attribute.name`],[/\?>/,{token:`delimiter`,next:`@pop`}],[/(\/)(>)/,[{token:`tag`},{token:`delimiter`,next:`@pop`}]],[/>/,{token:`delimiter`,next:`@pop`}]],whitespace:[[/[ \t\r\n]+/,``],[/<!--/,{token:`comment`,next:`@comment`}]],comment:[[/[^<\-]+/,`comment.content`],[/-->/,{token:`comment`,next:`@pop`}],[/<!--/,`comment.content.invalid`],[/[<\-]/,`comment.content`]]}};export{t as conf,n as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as e}from"./editor.api-
|
|
1
|
+
import{m as e}from"./editor.api-aTVJPcBz.js";var t={comments:{lineComment:`#`},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:e.IndentAction.Indent}}]},n={tokenPostfix:`.yaml`,brackets:[{token:`delimiter.bracket`,open:`{`,close:`}`},{token:`delimiter.square`,open:`[`,close:`]`}],keywords:[`true`,`True`,`TRUE`,`false`,`False`,`FALSE`,`null`,`Null`,`Null`,`~`],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:`@whitespace`},{include:`@comment`},[/%[^ ]+.*$/,`meta.directive`],[/---/,`operators.directivesEnd`],[/\.{3}/,`operators.documentEnd`],[/[-?:](?= )/,`operators`],{include:`@anchor`},{include:`@tagHandle`},{include:`@flowCollections`},{include:`@blockStyle`},[/@numberInteger(?![ \t]*\S+)/,`number`],[/@numberFloat(?![ \t]*\S+)/,`number.float`],[/@numberOctal(?![ \t]*\S+)/,`number.octal`],[/@numberHex(?![ \t]*\S+)/,`number.hex`],[/@numberInfinity(?![ \t]*\S+)/,`number.infinity`],[/@numberNaN(?![ \t]*\S+)/,`number.nan`],[/@numberDate(?![ \t]*\S+)/,`number.date`],[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/,[`type`,`white`,`operators`,`white`]],{include:`@flowScalars`},[/.+?(?=(\s+#|$))/,{cases:{"@keywords":`keyword`,"@default":`string`}}]],object:[{include:`@whitespace`},{include:`@comment`},[/\}/,`@brackets`,`@pop`],[/,/,`delimiter.comma`],[/:(?= )/,`operators`],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,`type`],{include:`@flowCollections`},{include:`@flowScalars`},{include:`@tagHandle`},{include:`@anchor`},{include:`@flowNumber`},[/[^\},]+/,{cases:{"@keywords":`keyword`,"@default":`string`}}]],array:[{include:`@whitespace`},{include:`@comment`},[/\]/,`@brackets`,`@pop`],[/,/,`delimiter.comma`],{include:`@flowCollections`},{include:`@flowScalars`},{include:`@tagHandle`},{include:`@anchor`},{include:`@flowNumber`},[/[^\],]+/,{cases:{"@keywords":`keyword`,"@default":`string`}}]],multiString:[[/^( +).+$/,`string`,`@multiStringContinued.$1`]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":`string`,"@default":{token:`@rematch`,next:`@popall`}}}]],whitespace:[[/[ \t\r\n]+/,`white`]],comment:[[/#.*$/,`comment`]],flowCollections:[[/\[/,`@brackets`,`@array`],[/\{/,`@brackets`,`@object`]],flowScalars:[[/"([^"\\]|\\.)*$/,`string.invalid`],[/'([^'\\]|\\.)*$/,`string.invalid`],[/'[^']*'/,`string`],[/"/,`string`,`@doubleQuotedString`]],doubleQuotedString:[[/[^\\"]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/"/,`string`,`@pop`]],blockStyle:[[/[>|][0-9]*[+-]?$/,`operators`,`@multiString`]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,`number`],[/@numberFloat(?=[ \t]*[,\]\}])/,`number.float`],[/@numberOctal(?=[ \t]*[,\]\}])/,`number.octal`],[/@numberHex(?=[ \t]*[,\]\}])/,`number.hex`],[/@numberInfinity(?=[ \t]*[,\]\}])/,`number.infinity`],[/@numberNaN(?=[ \t]*[,\]\}])/,`number.nan`],[/@numberDate(?=[ \t]*[,\]\}])/,`number.date`]],tagHandle:[[/\![^ ]*/,`tag`]],anchor:[[/[&*][^ ]+/,`namespace`]]}};export{t as conf,n as language};
|
package/dist/web/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>测试报告工作台</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-Dn6cBPut.js"></script>
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hamsterbase/evidra",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"bin": {
|
|
5
5
|
"evidra": "bin/evidra.mjs"
|
|
6
6
|
},
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@dnd-kit/sortable": "^10.0.0",
|
|
63
63
|
"@dnd-kit/utilities": "^3.2.2",
|
|
64
64
|
"@hamsterbase/foundation": "0.1.0",
|
|
65
|
-
"@hamsterbase/ui": "0.6.
|
|
65
|
+
"@hamsterbase/ui": "0.6.3",
|
|
66
66
|
"@tailwindcss/vite": "^4.3.3",
|
|
67
67
|
"@types/node": "^24.10.0",
|
|
68
68
|
"@types/pngjs": "^6.0.5",
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
"playwright": "1.64.1",
|
|
77
77
|
"react": "19.2.8",
|
|
78
78
|
"react-dom": "19.2.8",
|
|
79
|
+
"react-markdown": "^10.1.0",
|
|
79
80
|
"react-photo-view": "^1.2.7",
|
|
80
81
|
"react-router": "^7.18.4",
|
|
81
82
|
"react-window": "^2.5.0",
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# 限制基线允许差异像素
|
|
2
|
+
|
|
3
|
+
规约 ID 为 `baseline-max-diff-pixels`。递归检查指定基线目录,确保每张图片快照的 `maxDiffPixels` 在项目允许的上限内。
|
|
4
|
+
|
|
5
|
+
## 配置
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
import { defineConfig } from '@hamsterbase/evidra/conformance';
|
|
9
|
+
import { baselineMaxDiffPixels } from '@hamsterbase/evidra/conformance-rules';
|
|
10
|
+
|
|
11
|
+
export default defineConfig({
|
|
12
|
+
rules: [baselineMaxDiffPixels({ baselineDir: '.report/baselines', maxDiffPixels: 20 })],
|
|
13
|
+
});
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
- `baselineDir` 指向基线 JSON 目录。相对路径基于 `projectRoot` 解析。
|
|
17
|
+
- `maxDiffPixels` 为非负整数。阈值等于上限时通过。快照未配置阈值时使用 `0`。
|
|
18
|
+
|
|
19
|
+
## 检查结果
|
|
20
|
+
|
|
21
|
+
从项目根目录运行 `evidra conformance`。规约读取基线 JSON 中的图片快照元数据,适用于本地或 S3 图片存储。超过上限时,报告列出基线文件、用例、快照和实际阈值。需要调整单张快照的阈值时,在测试上报配置中设置 `maxDiffPixels`,重新上报后由用户审核基线。
|
|
@@ -15,4 +15,4 @@ export default defineConfig({
|
|
|
15
15
|
|
|
16
16
|
自定义任务可直接写入 rules:`async ({ projectRoot }) => ({ name, success, messages, howToFix })`。调度器不识别具体规则,无需注册。每个任务获得独立的只读公共配置对象;syncLocales 的文件写入会对后续任务可见。
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
内置规约的 ID 与文档目录名一致。每条规约的配置、行为和边界见目录中的 `README.md` 或 `RULE.md`。桌面工作台按 ID 汇总项目中已生效的规约,并列出未生效的内置规约。
|
package/skills/evidra/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: evidra
|
|
3
|
-
description: 通过 Evidra 的公开 SDK
|
|
3
|
+
description: 通过 Evidra 的公开 SDK 提交图片和文本快照,比较任务或基线并提供人工审批报告,或查看、配置和执行项目规约。AI 严禁执行基线审批。
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Evidra
|
|
@@ -47,6 +47,12 @@ evidra init
|
|
|
47
47
|
- Local 将审批后的基线图片保存在 `<reportDir>/baseline-assets/`,与 `baselines/` 一起提交到 Git。任务图片和缓存可清理,不能删除未提交的基线图片。Local 不读取 S3 环境配置。
|
|
48
48
|
- S3 配置逐项优先读取进程中的 `EVIDRA_S3_*`,未定义时回退到仓库根目录的 `.evidra.env.local`。选择 `"s3"` 时,以下变量全部必填,缺失或为空则抛错:`EVIDRA_S3_ENDPOINT`、`EVIDRA_S3_BUCKET`、`EVIDRA_S3_ACCESS_KEY`、`EVIDRA_S3_SECRET_KEY`、`EVIDRA_S3_REGION`、`EVIDRA_S3_PREFIX`。
|
|
49
49
|
|
|
50
|
+
## 查看和启用内置规约
|
|
51
|
+
|
|
52
|
+
在桌面工作台打开「规约」,查看随包提供的内置规约。每条规约都有稳定 ID 和中文名称,点击后可查看包内 `packages/conformance/rules/<id>/` 下的 `README.md` 或 `RULE.md`。
|
|
53
|
+
|
|
54
|
+
在项目根目录的 `evidra.conformance.ts` 中,从 `@hamsterbase/evidra/conformance-rules` 导入所需规约,将配置后的任务加入 `rules` 数组。例如 `rules: [singleComponentFile({ scanRoot: 'src' })]`。工作台按 ID 合并显示条目,配置中的规约显示为「已生效」,其余内置规约显示为「未生效」。从项目根目录运行 `evidra conformance` 可执行已配置的规约并查看检查结果。
|
|
55
|
+
|
|
50
56
|
## 提交任务
|
|
51
57
|
|
|
52
58
|
```ts
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { BaselineCase, Case, Snapshot } from './model.js';
|
|
2
|
-
export type Change = 'added' | 'modified' | 'deleted' | 'same' | 'unavailable';
|
|
3
|
-
export interface SnapshotDiff {
|
|
4
|
-
id: string;
|
|
5
|
-
change: Change;
|
|
6
|
-
current?: Snapshot;
|
|
7
|
-
baseline?: Snapshot;
|
|
8
|
-
/** 内容(文本/像素)是否一致;change 还包含名称、布局等元数据比较。 */
|
|
9
|
-
contentSame?: boolean;
|
|
10
|
-
diffPixels?: number;
|
|
11
|
-
maxDiffPixels?: number;
|
|
12
|
-
/** 相对 reportDir 的差异图路径。 */
|
|
13
|
-
diffFile?: string;
|
|
14
|
-
/** 差异图绝对路径,供本地调用方使用。 */
|
|
15
|
-
diffUrl?: string;
|
|
16
|
-
}
|
|
17
|
-
export interface CaseDiff {
|
|
18
|
-
id: string;
|
|
19
|
-
change: Change;
|
|
20
|
-
current?: Case;
|
|
21
|
-
baseline?: BaselineCase;
|
|
22
|
-
baselineHash?: string;
|
|
23
|
-
snapshots: SnapshotDiff[];
|
|
24
|
-
}
|
|
25
|
-
export interface ComparisonSummary {
|
|
26
|
-
added: number;
|
|
27
|
-
modified: number;
|
|
28
|
-
deleted: number;
|
|
29
|
-
same: number;
|
|
30
|
-
unavailable: number;
|
|
31
|
-
}
|
|
32
|
-
export interface Comparison {
|
|
33
|
-
taskId: string;
|
|
34
|
-
namespace: string;
|
|
35
|
-
/** 当前基线的稳定版本,用于审批冲突检测。 */
|
|
36
|
-
baselineVersion: string;
|
|
37
|
-
/** 是否允许把缺失用例/快照作为删除项。 */
|
|
38
|
-
deletionAllowed: boolean;
|
|
39
|
-
cases: CaseDiff[];
|
|
40
|
-
summary: ComparisonSummary;
|
|
41
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const NamespaceSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
name: z.ZodString;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
export declare const ConfigSchema: z.ZodObject<{
|
|
7
|
-
reportDir: z.ZodOptional<z.ZodString>;
|
|
8
|
-
namespaces: z.ZodArray<z.ZodObject<{
|
|
9
|
-
id: z.ZodString;
|
|
10
|
-
name: z.ZodString;
|
|
11
|
-
}, z.core.$strip>>;
|
|
12
|
-
}, z.core.$strip>;
|
|
13
|
-
export type Config = {
|
|
14
|
-
reportDir: string;
|
|
15
|
-
namespaces: Array<{
|
|
16
|
-
id: string;
|
|
17
|
-
name: string;
|
|
18
|
-
}>;
|
|
19
|
-
};
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import type { Case } from '../model.js';
|
|
3
|
-
export declare const SnapshotInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4
|
-
id: z.ZodString;
|
|
5
|
-
name: z.ZodString;
|
|
6
|
-
col: z.ZodOptional<z.ZodNumber>;
|
|
7
|
-
type: z.ZodLiteral<"text">;
|
|
8
|
-
body: z.ZodString;
|
|
9
|
-
language: z.ZodOptional<z.ZodString>;
|
|
10
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
11
|
-
id: z.ZodString;
|
|
12
|
-
name: z.ZodString;
|
|
13
|
-
col: z.ZodOptional<z.ZodNumber>;
|
|
14
|
-
type: z.ZodLiteral<"image">;
|
|
15
|
-
body: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
|
|
16
|
-
contentType: z.ZodLiteral<"image/png">;
|
|
17
|
-
maxDiffPixels: z.ZodOptional<z.ZodNumber>;
|
|
18
|
-
}, z.core.$strip>], "type">;
|
|
19
|
-
export type SnapshotInput = z.infer<typeof SnapshotInputSchema>;
|
|
20
|
-
export declare const ObservationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
21
|
-
name: z.ZodString;
|
|
22
|
-
type: z.ZodLiteral<"text">;
|
|
23
|
-
body: z.ZodString;
|
|
24
|
-
language: z.ZodOptional<z.ZodString>;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
name: z.ZodString;
|
|
27
|
-
type: z.ZodLiteral<"image">;
|
|
28
|
-
body: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
|
|
29
|
-
contentType: z.ZodLiteral<"image/png">;
|
|
30
|
-
}, z.core.$strip>], "type">;
|
|
31
|
-
export type ObservationInput = z.infer<typeof ObservationInputSchema>;
|
|
32
|
-
export declare const CaseInputSchema: z.ZodObject<{
|
|
33
|
-
id: z.ZodString;
|
|
34
|
-
name: z.ZodString;
|
|
35
|
-
treePath: z.ZodArray<z.ZodObject<{
|
|
36
|
-
key: z.ZodString;
|
|
37
|
-
display: z.ZodString;
|
|
38
|
-
}, z.core.$strip>>;
|
|
39
|
-
snapshots: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
40
|
-
id: z.ZodString;
|
|
41
|
-
name: z.ZodString;
|
|
42
|
-
col: z.ZodOptional<z.ZodNumber>;
|
|
43
|
-
type: z.ZodLiteral<"text">;
|
|
44
|
-
body: z.ZodString;
|
|
45
|
-
language: z.ZodOptional<z.ZodString>;
|
|
46
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
-
id: z.ZodString;
|
|
48
|
-
name: z.ZodString;
|
|
49
|
-
col: z.ZodOptional<z.ZodNumber>;
|
|
50
|
-
type: z.ZodLiteral<"image">;
|
|
51
|
-
body: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
|
|
52
|
-
contentType: z.ZodLiteral<"image/png">;
|
|
53
|
-
maxDiffPixels: z.ZodOptional<z.ZodNumber>;
|
|
54
|
-
}, z.core.$strip>], "type">>>;
|
|
55
|
-
result: z.ZodObject<{
|
|
56
|
-
status: z.ZodEnum<{
|
|
57
|
-
passed: "passed";
|
|
58
|
-
failed: "failed";
|
|
59
|
-
skipped: "skipped";
|
|
60
|
-
interrupted: "interrupted";
|
|
61
|
-
}>;
|
|
62
|
-
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
63
|
-
errors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
64
|
-
}, z.core.$strip>;
|
|
65
|
-
observations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
66
|
-
name: z.ZodString;
|
|
67
|
-
type: z.ZodLiteral<"text">;
|
|
68
|
-
body: z.ZodString;
|
|
69
|
-
language: z.ZodOptional<z.ZodString>;
|
|
70
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
71
|
-
name: z.ZodString;
|
|
72
|
-
type: z.ZodLiteral<"image">;
|
|
73
|
-
body: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
|
|
74
|
-
contentType: z.ZodLiteral<"image/png">;
|
|
75
|
-
}, z.core.$strip>], "type">>>;
|
|
76
|
-
}, z.core.$strip>;
|
|
77
|
-
export type CaseInput = z.infer<typeof CaseInputSchema>;
|
|
78
|
-
export declare const AddCaseInputSchema: z.ZodObject<{
|
|
79
|
-
repoRoot: z.ZodString;
|
|
80
|
-
taskId: z.ZodString;
|
|
81
|
-
case: z.ZodObject<{
|
|
82
|
-
id: z.ZodString;
|
|
83
|
-
name: z.ZodString;
|
|
84
|
-
treePath: z.ZodArray<z.ZodObject<{
|
|
85
|
-
key: z.ZodString;
|
|
86
|
-
display: z.ZodString;
|
|
87
|
-
}, z.core.$strip>>;
|
|
88
|
-
snapshots: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
89
|
-
id: z.ZodString;
|
|
90
|
-
name: z.ZodString;
|
|
91
|
-
col: z.ZodOptional<z.ZodNumber>;
|
|
92
|
-
type: z.ZodLiteral<"text">;
|
|
93
|
-
body: z.ZodString;
|
|
94
|
-
language: z.ZodOptional<z.ZodString>;
|
|
95
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
96
|
-
id: z.ZodString;
|
|
97
|
-
name: z.ZodString;
|
|
98
|
-
col: z.ZodOptional<z.ZodNumber>;
|
|
99
|
-
type: z.ZodLiteral<"image">;
|
|
100
|
-
body: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
|
|
101
|
-
contentType: z.ZodLiteral<"image/png">;
|
|
102
|
-
maxDiffPixels: z.ZodOptional<z.ZodNumber>;
|
|
103
|
-
}, z.core.$strip>], "type">>>;
|
|
104
|
-
result: z.ZodObject<{
|
|
105
|
-
status: z.ZodEnum<{
|
|
106
|
-
passed: "passed";
|
|
107
|
-
failed: "failed";
|
|
108
|
-
skipped: "skipped";
|
|
109
|
-
interrupted: "interrupted";
|
|
110
|
-
}>;
|
|
111
|
-
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
112
|
-
errors: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
113
|
-
}, z.core.$strip>;
|
|
114
|
-
observations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
115
|
-
name: z.ZodString;
|
|
116
|
-
type: z.ZodLiteral<"text">;
|
|
117
|
-
body: z.ZodString;
|
|
118
|
-
language: z.ZodOptional<z.ZodString>;
|
|
119
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
120
|
-
name: z.ZodString;
|
|
121
|
-
type: z.ZodLiteral<"image">;
|
|
122
|
-
body: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
|
|
123
|
-
contentType: z.ZodLiteral<"image/png">;
|
|
124
|
-
}, z.core.$strip>], "type">>>;
|
|
125
|
-
}, z.core.$strip>;
|
|
126
|
-
}, z.core.$strip>;
|
|
127
|
-
export type AddCaseInput = z.infer<typeof AddCaseInputSchema>;
|
|
128
|
-
export type AddCaseOutput = Case;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import type { Task } from '../model.js';
|
|
3
|
-
export declare const AddTaskInputSchema: z.ZodObject<{
|
|
4
|
-
repoRoot: z.ZodString;
|
|
5
|
-
namespace: z.ZodString;
|
|
6
|
-
name: z.ZodString;
|
|
7
|
-
startedAt: z.ZodISODateTime;
|
|
8
|
-
coverage: z.ZodOptional<z.ZodEnum<{
|
|
9
|
-
partial: "partial";
|
|
10
|
-
complete: "complete";
|
|
11
|
-
}>>;
|
|
12
|
-
}, z.core.$strip>;
|
|
13
|
-
export type AddTaskInput = z.infer<typeof AddTaskInputSchema>;
|
|
14
|
-
export type AddTaskOutput = Task;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const ApproveInputSchema: z.ZodObject<{
|
|
3
|
-
repoRoot: z.ZodString;
|
|
4
|
-
taskId: z.ZodString;
|
|
5
|
-
baselineVersion: z.ZodString;
|
|
6
|
-
caseIds: z.ZodArray<z.ZodString>;
|
|
7
|
-
}, z.core.$strip>;
|
|
8
|
-
export type ApproveInput = z.infer<typeof ApproveInputSchema>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { CaseDiff } from '../comparison.js';
|
|
2
|
-
export interface BaselineChange {
|
|
3
|
-
namespace: string;
|
|
4
|
-
namespaceName: string;
|
|
5
|
-
item: CaseDiff;
|
|
6
|
-
file: string;
|
|
7
|
-
}
|
|
8
|
-
export interface BaselineChanges {
|
|
9
|
-
ref: string;
|
|
10
|
-
sha: string;
|
|
11
|
-
version: string;
|
|
12
|
-
entries: BaselineChange[];
|
|
13
|
-
reviewed: string[];
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import type { Comparison } from '../comparison.js';
|
|
3
|
-
import type { ImageDiffResult } from '../imageDiffPool.js';
|
|
4
|
-
export declare const CompareInputSchema: z.ZodObject<{
|
|
5
|
-
taskId: z.ZodString;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
export type CompareInput = z.infer<typeof CompareInputSchema>;
|
|
8
|
-
export type CompareOutput = Comparison;
|
|
9
|
-
export interface CompareRecordOptions {
|
|
10
|
-
concurrency?: number;
|
|
11
|
-
pool?: {
|
|
12
|
-
compare(oldBytes: Uint8Array, newBytes: Uint8Array): Promise<ImageDiffResult>;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import type { ComparisonSummary } from '../comparison.js';
|
|
3
|
-
import type { TaskStatus } from '../model.js';
|
|
4
|
-
export declare const CompareTasksInputSchema: z.ZodObject<{
|
|
5
|
-
taskPaths: z.ZodArray<z.ZodString>;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
export type CompareTasksInput = z.infer<typeof CompareTasksInputSchema>;
|
|
8
|
-
export interface TaskComparisonSummary {
|
|
9
|
-
taskPath: string;
|
|
10
|
-
taskId: string;
|
|
11
|
-
namespace: string;
|
|
12
|
-
status: TaskStatus;
|
|
13
|
-
deletionAllowed: boolean;
|
|
14
|
-
summary: ComparisonSummary;
|
|
15
|
-
}
|
|
16
|
-
export interface CompareTasksOutput {
|
|
17
|
-
tasks: TaskComparisonSummary[];
|
|
18
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const DeleteBaselineFileInputSchema: z.ZodObject<{
|
|
3
|
-
repoRoot: z.ZodString;
|
|
4
|
-
namespace: z.ZodString;
|
|
5
|
-
file: z.ZodString;
|
|
6
|
-
version: z.ZodString;
|
|
7
|
-
}, z.core.$strip>;
|
|
8
|
-
export type DeleteBaselineFileInput = z.infer<typeof DeleteBaselineFileInputSchema>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import type { Task } from '../model.js';
|
|
3
|
-
export declare const FinishTaskInputSchema: z.ZodObject<{
|
|
4
|
-
repoRoot: z.ZodString;
|
|
5
|
-
taskId: z.ZodString;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
export type FinishTaskInput = z.infer<typeof FinishTaskInputSchema>;
|
|
8
|
-
export type FinishTaskOutput = Task;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const GetGitDiffInputSchema: z.ZodObject<{
|
|
3
|
-
repoRoot: z.ZodString;
|
|
4
|
-
ref: z.ZodString;
|
|
5
|
-
file: z.ZodString;
|
|
6
|
-
version: z.ZodOptional<z.ZodString>;
|
|
7
|
-
}, z.core.$strip>;
|
|
8
|
-
export type GetGitDiffInput = z.infer<typeof GetGitDiffInputSchema>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import type { CaseDiff } from '../comparison.js';
|
|
3
|
-
export declare const GetTaskCaseInputSchema: z.ZodObject<{
|
|
4
|
-
taskPath: z.ZodString;
|
|
5
|
-
caseId: z.ZodString;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
export type GetTaskCaseInput = z.infer<typeof GetTaskCaseInputSchema>;
|
|
8
|
-
export interface TaskCaseObservation {
|
|
9
|
-
name: string;
|
|
10
|
-
type: 'text' | 'image';
|
|
11
|
-
text?: string;
|
|
12
|
-
key?: string;
|
|
13
|
-
contentType?: 'image/png';
|
|
14
|
-
width?: number;
|
|
15
|
-
height?: number;
|
|
16
|
-
}
|
|
17
|
-
export interface GetTaskCaseOutput {
|
|
18
|
-
taskPath: string;
|
|
19
|
-
diff: CaseDiff;
|
|
20
|
-
currentText: Record<string, string>;
|
|
21
|
-
baselineText: Record<string, string>;
|
|
22
|
-
observations: TaskCaseObservation[];
|
|
23
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import type { Change, ComparisonSummary } from '../comparison.js';
|
|
3
|
-
import type { Task } from '../model.js';
|
|
4
|
-
export declare const GetTaskTreeInputSchema: z.ZodObject<{
|
|
5
|
-
taskPath: z.ZodString;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
export type GetTaskTreeInput = z.infer<typeof GetTaskTreeInputSchema>;
|
|
8
|
-
export interface TaskTreeNode {
|
|
9
|
-
key: string;
|
|
10
|
-
display: string;
|
|
11
|
-
change: Change | 'mixed';
|
|
12
|
-
counts: ComparisonSummary;
|
|
13
|
-
caseIds: string[];
|
|
14
|
-
children: TaskTreeNode[];
|
|
15
|
-
}
|
|
16
|
-
export interface GetTaskTreeOutput {
|
|
17
|
-
task: Task;
|
|
18
|
-
deletionAllowed: boolean;
|
|
19
|
-
summary: ComparisonSummary;
|
|
20
|
-
nodes: TaskTreeNode[];
|
|
21
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export interface CodeChange {
|
|
2
|
-
path: string;
|
|
3
|
-
oldPath?: string;
|
|
4
|
-
status: 'added' | 'modified' | 'deleted' | 'renamed';
|
|
5
|
-
/** 审核键:路径、两侧内容和文件模式共同决定,内容变化后需要重新审核。 */
|
|
6
|
-
reviewKey: string;
|
|
7
|
-
}
|
|
8
|
-
export interface CodeChanges {
|
|
9
|
-
sha: string;
|
|
10
|
-
files: CodeChange[];
|
|
11
|
-
reviewed: string[];
|
|
12
|
-
}
|
|
13
|
-
export interface CodeDiff {
|
|
14
|
-
path: string;
|
|
15
|
-
oldPath?: string;
|
|
16
|
-
status: CodeChange['status'];
|
|
17
|
-
original: string;
|
|
18
|
-
modified: string;
|
|
19
|
-
isBinary: boolean;
|
|
20
|
-
tooLarge: boolean;
|
|
21
|
-
}
|
|
22
|
-
export interface CodeReviewInput {
|
|
23
|
-
path: string;
|
|
24
|
-
key: string;
|
|
25
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export { AddCaseInputSchema, CaseInputSchema, ObservationInputSchema, SnapshotInputSchema, } from './addCase.js';
|
|
2
|
-
export type { AddCaseInput, AddCaseOutput, CaseInput, ObservationInput, SnapshotInput, } from './addCase.js';
|
|
3
|
-
export { AddTaskInputSchema } from './addTask.js';
|
|
4
|
-
export type { AddTaskInput, AddTaskOutput } from './addTask.js';
|
|
5
|
-
export type { BaselineChange, BaselineChanges } from './baselineChanges.js';
|
|
6
|
-
export { CompareInputSchema } from '../internal/compare.js';
|
|
7
|
-
export type { CompareInput, CompareOutput, CompareRecordOptions } from '../internal/compare.js';
|
|
8
|
-
export { FinishTaskInputSchema } from './finishTask.js';
|
|
9
|
-
export type { FinishTaskInput, FinishTaskOutput } from './finishTask.js';
|
|
10
|
-
export type { GetBaselineOutput } from '../internal/getBaseline.js';
|
|
11
|
-
export type { CodeChange, CodeChanges, CodeDiff, CodeReviewInput } from './gitChanges.js';
|
|
12
|
-
export { ListTasksInputSchema } from '../internal/listTasks.js';
|
|
13
|
-
export type { ListTasksInput, ListTasksOutput } from '../internal/listTasks.js';
|
|
14
|
-
export type { TaskRecordEntry } from '../internal/taskRecords.js';
|
|
15
|
-
export { UpdateBaselineInputSchema } from '../internal/updateBaseline.js';
|
|
16
|
-
export type { UpdateBaselineInput, UpdateBaselineOutput } from '../internal/updateBaseline.js';
|
|
17
|
-
export type { TaskSummaryItem } from './listTaskSummaries.js';
|
|
18
|
-
export type { TaskListItem } from '../internal/listTasks.js';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Task } from '../model.js';
|
|
2
|
-
/** Cross-namespace task list; details and image comparisons are loaded separately. */
|
|
3
|
-
export interface RunListItem extends Pick<Task, 'id' | 'namespace' | 'name' | 'startedAt' | 'status' | 'finishedAt' | 'coverage' | 'caseCount'> {
|
|
4
|
-
failedCount: number;
|
|
5
|
-
cached: boolean;
|
|
6
|
-
counts: Record<string, number>;
|
|
7
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const ListTaskSummariesInputSchema: z.ZodObject<{
|
|
3
|
-
repoRoot: z.ZodString;
|
|
4
|
-
}, z.core.$strip>;
|
|
5
|
-
export type ListTaskSummariesInput = z.infer<typeof ListTaskSummariesInputSchema>;
|
|
6
|
-
import type { TaskDisplay } from '../report.js';
|
|
7
|
-
import type { Task } from '../model.js';
|
|
8
|
-
/** Cross-namespace task list; details and image comparisons are loaded separately. */
|
|
9
|
-
export interface TaskSummaryItem extends Pick<Task, 'id' | 'namespace' | 'name' | 'startedAt' | 'status' | 'finishedAt' | 'coverage' | 'caseCount'> {
|
|
10
|
-
namespaceName: string;
|
|
11
|
-
display: TaskDisplay;
|
|
12
|
-
failedCount: number;
|
|
13
|
-
cached: boolean;
|
|
14
|
-
counts: Record<string, number>;
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import type { Task } from '../model.js';
|
|
3
|
-
export declare const ListTasksInputSchema: z.ZodObject<{
|
|
4
|
-
namespace: z.ZodOptional<z.ZodString>;
|
|
5
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
6
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
7
|
-
}, z.core.$strip>;
|
|
8
|
-
export type ListTasksInput = z.infer<typeof ListTasksInputSchema>;
|
|
9
|
-
export interface TaskListItem extends Task {
|
|
10
|
-
failedCount: number;
|
|
11
|
-
}
|
|
12
|
-
export interface ListTasksOutput {
|
|
13
|
-
tasks: TaskListItem[];
|
|
14
|
-
nextCursor?: string;
|
|
15
|
-
}
|