From 1ccbcb14c37311dd52598c3abb79f86825ea13c1 Mon Sep 17 00:00:00 2001 From: erwinmsmith <1262214827@qq.com> Date: Fri, 14 Aug 2026 12:34:12 +0800 Subject: [PATCH] fix(example): compile the release consumer from the registry The release guide requires verifying every release with a clean consumer that installs exact versions from the registry and compiles. The example currently fails that check: - package-tour.ts imports @codesoul-co/hypha-serving-cache and @codesoul-co/hypha-testing, but the manifest only declares domain and kernel; - three map callbacks rely on implicit any under the strict tsconfig. Declare the full 15-package release line and annotate the callbacks. --- examples/release-agent/package.json | 30 +++++++++++----------- examples/release-agent/src/package-tour.ts | 8 +++--- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/examples/release-agent/package.json b/examples/release-agent/package.json index 443572a..0643b01 100644 --- a/examples/release-agent/package.json +++ b/examples/release-agent/package.json @@ -12,21 +12,21 @@ "run:fsm": "npm run build && node dist/run-fsm.js" }, "dependencies": { - "@codesoul-co/hypha-adapters-local": "1.0.0", - "@codesoul-co/hypha-core": "1.0.0", - "@codesoul-co/hypha-domain": "1.0.0", - "@codesoul-co/hypha-fsm": "1.0.0", - "@codesoul-co/hypha-harness": "1.0.0", - "@codesoul-co/hypha-inference": "1.0.0", - "@codesoul-co/hypha-kernel": "1.0.0", - "@codesoul-co/hypha-mcp": "1.0.0", - "@codesoul-co/hypha-memory": "1.0.0", - "@codesoul-co/hypha-models": "1.0.0", - "@codesoul-co/hypha-serving-cache": "1.0.0", - "@codesoul-co/hypha-skills": "1.0.0", - "@codesoul-co/hypha-storage": "1.0.0", - "@codesoul-co/hypha-testing": "1.0.0", - "@codesoul-co/hypha-tools": "1.0.0" + "@codesoul-co/hypha-adapters-local": "1.0.1", + "@codesoul-co/hypha-core": "1.0.1", + "@codesoul-co/hypha-domain": "1.0.1", + "@codesoul-co/hypha-fsm": "1.0.1", + "@codesoul-co/hypha-harness": "1.0.1", + "@codesoul-co/hypha-inference": "1.0.1", + "@codesoul-co/hypha-kernel": "1.0.1", + "@codesoul-co/hypha-mcp": "1.0.1", + "@codesoul-co/hypha-memory": "1.0.1", + "@codesoul-co/hypha-models": "1.0.1", + "@codesoul-co/hypha-serving-cache": "1.0.1", + "@codesoul-co/hypha-skills": "1.0.1", + "@codesoul-co/hypha-storage": "1.0.1", + "@codesoul-co/hypha-testing": "1.0.1", + "@codesoul-co/hypha-tools": "1.0.1" }, "devDependencies": { "@types/node": "^20.19.41", diff --git a/examples/release-agent/src/package-tour.ts b/examples/release-agent/src/package-tour.ts index 9142349..a2d505c 100644 --- a/examples/release-agent/src/package-tour.ts +++ b/examples/release-agent/src/package-tour.ts @@ -115,14 +115,14 @@ async function tourPackages() { return { packages: 15, core: coreSpec.id, - storage: topology.providers.map((provider) => provider.engine), + storage: topology.providers.map((provider: { engine?: string }) => provider.engine), fsm: { initialState: initialSnapshot.currentState, reachableStates: topologyAnalysis.reachableStates.length, }, inference: inferenceResponse.output, models: { - providers: models.list().map((provider) => provider.id), + providers: models.list().map((provider: { id?: string }) => provider.id), aliases: routing.aliases.length, }, memory: memory.id, @@ -131,8 +131,8 @@ async function tourPackages() { mcp: mcp.servers.map((server) => server.id), domain: domain.id, kernel: kernelAgent.id, - harness: sessions.map((session) => session.id), - localAdapters: localProfiles.map((profile) => profile.engine), + harness: sessions.map((session: { id?: string }) => session.id), + localAdapters: localProfiles.map((profile: { engine?: string }) => profile.engine), servingCache: Boolean(await cache.get(cacheKey)), testing: packageFixturePassed, composedAgent: releaseAgent.agent.id,