forked from cflmy/deepseek-harness
Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0f63ced004 | ||
|
|
1bdc6cbc6f | ||
|
|
5573c7cacc | ||
|
|
73e4f6e57d |
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@marqdo/mqdh-harness",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.0-beta.1",
|
||||
"description": "Marqdo Harness product services: ecosystem transactions, document-native execution, private knowledge and the /mqdh workbench",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
|
||||
@@ -146,6 +146,7 @@ async function makeUpdater(authority: string): Promise<{
|
||||
}
|
||||
|
||||
test('checks, verifies, activates and rolls back a signed application release', async () => {
|
||||
const productVersion = JSON.parse(await readFile(new URL('../package.json', import.meta.url), 'utf8')).version as string
|
||||
const target = (await detectPlatform()).target
|
||||
const root = await mkdtemp(join(tmpdir(), 'mqdh-release-build-'))
|
||||
const v2 = await buildRelease({ root, version: '0.2.0', target })
|
||||
@@ -162,7 +163,7 @@ test('checks, verifies, activates and rolls back a signed application release',
|
||||
assert.equal(checked.latest?.notes, '修复启动问题并更新默认 Bundle。')
|
||||
assert.match(checked.latest?.release_url ?? '', /releases\/tag\/mqdh-v0\.3\.0$/)
|
||||
assert.equal(checked.update_available, true)
|
||||
assert.equal(checked.current?.version, '0.1.0')
|
||||
assert.equal(checked.current?.version, productVersion)
|
||||
|
||||
const installed = await updater.install({ confirm: true, version: '0.2.0' })
|
||||
assert.equal(installed.current?.version, '0.2.0')
|
||||
|
||||
+2
-2
@@ -34,10 +34,10 @@ if [ -z "$cli_sha" ] && [ -n "${MARQDO_BIN:-}" ]; then
|
||||
cli_sha="$(cat "$(dirname "$MARQDO_BIN")/SOURCE_SHA" 2>/dev/null || true)"
|
||||
fi
|
||||
if [ -z "$cli" ]; then
|
||||
version="3.0.0-rc.6"
|
||||
version="3.0.0-rc.7"
|
||||
archive="$work/marqdo-$version.tar.gz"
|
||||
url="https://git.cflmy.cn/cflmy/marqdo-cli/releases/download/v$version/marqdo-$version-x86_64-unknown-linux-gnu.tar.gz"
|
||||
expected="8dc0b006302e03c23451b8ea9f8a0fcdae8bf67c80c546bee2434bf69755bfe3"
|
||||
expected="10714820c9620b1b7b0da59e8d3930fc71b769a722aa80ede6fa889659de4613"
|
||||
echo "mqdh ci: downloading pinned CLI $version"
|
||||
curl -fsSL --retry 3 --max-time 300 -o "$archive" "$url"
|
||||
actual="$(sha256sum "$archive" | awk '{print $1}')"
|
||||
|
||||
@@ -140,6 +140,12 @@ const evidence = {
|
||||
signature: signed ? 'ed25519' : 'unsigned',
|
||||
app: { source_sha: sourceSha, dsh_upstream_sha: upstreamSha, node },
|
||||
compatibility: payload.compatibility,
|
||||
dependencies: (() => {
|
||||
const cliSha = (process.env.MQDH_CLI_SOURCE_SHA ?? '').trim()
|
||||
if (cliSha === '') return []
|
||||
if (!/^[0-9a-f]{40}$/.test(cliSha)) throw new Error('MQDH_CLI_SOURCE_SHA must be a full commit SHA')
|
||||
return [{ id: 'cli', source_sha: cliSha }]
|
||||
})(),
|
||||
commands: [
|
||||
`node scripts/release-manifest.ts --archive ${basename(archivePath)} --target ${target}`,
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user