diff --git a/aesel/src/app-server.mjs b/aesel/src/app-server.mjs index fed18f310e..655004cde0 100644 --- a/aesel/src/app-server.mjs +++ b/aesel/src/app-server.mjs @@ -24,7 +24,7 @@ export class AppServer extends EventEmitter { super(); this.cwd = cwd; this.command = command; - this.args = args.includes("app-server") && !dynamicTools ? [...args, ...codexMcpArgs(cwd,environment)] : args; + this.args = args.includes("app-server") ? [...args, ...codexMcpArgs(cwd,environment)] : args; this.environment = environment; this.resumeThreadId = resumeThreadId; this.developerInstructions = developerInstructions; diff --git a/apple/whistlegraph/Tests/native-bridge.test.cjs b/apple/whistlegraph/Tests/native-bridge.test.cjs index 5cacb6fe9b..21251538fb 100644 --- a/apple/whistlegraph/Tests/native-bridge.test.cjs +++ b/apple/whistlegraph/Tests/native-bridge.test.cjs @@ -349,7 +349,7 @@ const server = http.createServer(async (req, res) => { await page.waitForFunction(()=>document.querySelector('#live-code').textContent.includes('export function')); assert.equal(await page.evaluate(()=>__nativeMessages.filter(m=>m.action==='render').length),0,'code must arrive before complete checkpoint'); await page.waitForFunction(()=>__nativeMessages.some(m=>m.action==='benchmark'&&m.event==='firstIncrementalCompile')); - assert.equal(await page.evaluate(()=>__nativeMessages.some(m=>m.action==='benchmark'&&m.event==='firstCheckpoint')),false,'streamed prefix should run before tool completion'); + assert.equal(await page.evaluate(()=>{const events=__nativeMessages.filter(m=>m.action==='benchmark').map(m=>m.event);const compiled=events.indexOf('firstIncrementalCompile'),checkpoint=events.indexOf('firstCheckpoint');return compiled>=0&&(checkpoint<0||compiled!window.whistlegraphIsBusy() && JSON.parse(localStorage.getItem('whistlegraph-source-versions')||'{}').head===1); assert.equal(await page.evaluate(()=>__guideFetches),0,'native guide seed avoids status-0 custom scheme fetch'); const ledger=await page.evaluate(()=>JSON.parse(localStorage.getItem('whistlegraph-source-versions')));assert.equal(ledger.versions.length,2,'two preview layers create exactly one ask version');assert.equal(ledger.versions[1].layers,2); diff --git a/system/tests/whistlegraph-mint.test.mjs b/system/tests/whistlegraph-mint.test.mjs index 99694bf24f..49493ac015 100644 --- a/system/tests/whistlegraph-mint.test.mjs +++ b/system/tests/whistlegraph-mint.test.mjs @@ -2,7 +2,7 @@ import test from 'node:test'; import assert from 'node:assert/strict'; import { randomBytes } from 'node:crypto'; import { InMemorySigner } from '@taquito/signer'; -import { b58cencode, prefix } from '@taquito/utils'; +import { b58Encode, PrefixV2 } from '@taquito/utils'; import sharp from 'sharp'; import { whistlegraphMints, hash, mintPayload, verifyMintWallet, matchingMint, mintOperation, HEN_MINTER, HEN_OBJKTS } from '../backend/whistlegraph-mint.mjs'; import { normalizeMintCover, pinMintDirectory } from '../backend/whistlegraph-pack.mjs'; @@ -102,7 +102,7 @@ test('packing is claimed once and publishes a Teia directory, ZIP, HTML, GIF and assert.equal(i.previewFrames, 48); }); test('real signed ownership proof binds account, source, version and mint nonce', async () => { - const signer = new InMemorySigner(b58cencode(randomBytes(32), prefix.edsk2)); + const signer = new InMemorySigner(b58Encode(randomBytes(32), PrefixV2.Ed25519Seed)); const i = { _id:'mint', handle:'test', code:'wgDefen', version:7, sourceHash:'hash', nonce:'nonce' }; const signature = (await signer.sign(mintPayload(i))).prefixSig; const proof = { address:await signer.publicKeyHash(), publicKey:await signer.publicKey(), signature };