f31dcc6a29
* feat(skill-hub): add Skill Hub catalog, publish flow, and lite materialize pipeline Introduce Skill Hub for browsing, importing, publishing, and installing skills, with lite instance package materialization and runtime sync support. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(skill-hub): remove token-governance hooks from Skill Hub PR Strip validateManagedRuntimeEnvironmentOverrides, network lock policy sync, and egress proxy audit wiring that belong to the upcoming token-usage work, so the Skill Hub branch compiles independently. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(skill-hub): update migration number in materialize docs Co-authored-by: Cursor <cursoragent@cursor.com> * fix(skill-hub): make RuntimeAgentClient test stub and hub tests compile-safe Add ResyncInstanceSkills to the runtime pool handler fake client, and harden skill hub payload helpers/tests against nil storage/instance repos so go test passes. Co-authored-by: Cursor <cursoragent@cursor.com> * feat: add Skill Hub hardening with session usage tracking and egress governance Unify Skill Hub runtime sync improvements with session-token observability, egress network policy, and admin/instance usage reporting for reopenable PR. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(skill-hub): repair CI tests and nested skill install * fix(ci): restore release deployment configuration * feat(skill-hub): 支持 Skill 批量安装与 Hermes 导入 * 定时任务开发,Skill hub功能优化,最新Hermes版本适配 * skill hub中文适配 * skill 描述功能调整,私网开通 * codex opencode claude pro版本适配 * opencode适配 * test(skill-hub): preserve existing blob ID in provenance test * fix(skills): tolerate non-root OpenCode ownership setup --------- Co-authored-by: heshengran <heshengran@ieisystem.com> Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
812 B
Bash
21 lines
812 B
Bash
#!/bin/sh
|
|
set -e
|
|
# Check if bun version matches package.json
|
|
# keep in sync with packages/script/src/index.ts semver qualifier
|
|
bun -e '
|
|
import { semver } from "bun";
|
|
const pkg = await Bun.file("package.json").json();
|
|
const expectedBunVersion = pkg.packageManager?.split("@")[1];
|
|
if (!expectedBunVersion) {
|
|
throw new Error("packageManager field not found in root package.json");
|
|
}
|
|
const expectedBunVersionRange = `^${expectedBunVersion}`;
|
|
if (!semver.satisfies(process.versions.bun, expectedBunVersionRange)) {
|
|
throw new Error(`This script requires bun@${expectedBunVersionRange}, but you are using bun@${process.versions.bun}`);
|
|
}
|
|
if (process.versions.bun !== expectedBunVersion) {
|
|
console.warn(`Warning: Bun version ${process.versions.bun} differs from expected ${expectedBunVersion}`);
|
|
}
|
|
'
|
|
bun typecheck
|