Align the macOS Computer Use provider package and entry names
This commit is contained in:
1 parent
1e5a6c2133
commit
e7950b0ca8
59 files changed
+239
-180
No files matched your search
@@ -190,7 +190,7 @@ const packageFileExtras: Readonly<Record<string, readonly string[]>> = {
|
||||
'@deepseek-ai/dsh-experimental-subagent-oar': ['LICENSE-OAR'],
|
||||
// CUA publishes its client API and attributed native source for local macOS builds.
|
||||
'@deepseek-ai/dsh-cua': ['lib/remote-types.js', 'lib/api.js', 'lib/bridge.js', 'lib/native-client.js', 'lib/protocol.js', 'lib/config.js', 'lib/native-schema.js', 'lib/native-build.js', 'lib/guidance.js'],
|
||||
'@deepseek-ai/dsh-experimental-cua-macos': ['native/bin', 'cua-helper.json', 'native/Package.swift', 'native/Info.plist', 'native/DSHComputerUse.icns', 'native/build_app.py', 'native/Sources', 'native/tests/swift', 'native/tests/test_swift.py', 'native/LICENSE.cua-driver', 'native/LICENSE.computer-use-icon', 'native/upstream.json', 'native/README.md', 'native/README.zh.md', 'native/protocol.schema.json'],
|
||||
'@deepseek-ai/dsh-cua-macos': ['native/bin', 'cua-helper.json', 'native/Package.swift', 'native/Info.plist', 'native/DSHComputerUse.icns', 'native/build_app.py', 'native/Sources', 'native/tests/swift', 'native/tests/test_swift.py', 'native/LICENSE.cua-driver', 'native/LICENSE.computer-use-icon', 'native/upstream.json', 'native/README.md', 'native/README.zh.md', 'native/protocol.schema.json'],
|
||||
'@deepseek-ai/dsh-cua-windows': ['native/bin'],
|
||||
'@deepseek-ai/dsh-webhook-github': ['examples/github-review/cordis.yml', 'examples/github-review/github-ready-review-rule.mjs'],
|
||||
// Liveshare publishes its built Relay gateway entry and the shared runtime
|
||||
|
||||
@@ -72,7 +72,7 @@ it.skipIf(process.platform === 'win32')('keeps npm tarball bytes when reusing a
|
||||
mkdirSync(output)
|
||||
stageCuaHelperPayload(f.payload, packageRoot, identity)
|
||||
writeFileSync(join(packageRoot, 'package.json'), JSON.stringify({
|
||||
name: '@deepseek-ai/dsh-experimental-cua-macos', version: f.manifest.version, type: 'module',
|
||||
name: '@deepseek-ai/dsh-cua-macos', version: f.manifest.version, type: 'module',
|
||||
files: ['lib/index.js', 'native/bin', CUA_MANIFEST],
|
||||
}))
|
||||
writeFileSync(join(packageRoot, 'lib/index.js'), 'export const provider = "fixture";\n')
|
||||
@@ -85,7 +85,7 @@ it.skipIf(process.platform === 'win32')('keeps npm tarball bytes when reusing a
|
||||
expect(result.isCanceled).toBe(false)
|
||||
expect(result.signal).toBeUndefined()
|
||||
expect(result.exitCode, result.stderr).toBe(0)
|
||||
const tarball = join(output, 'deepseek-ai-dsh-experimental-cua-macos-1.0.0.tgz')
|
||||
const tarball = join(output, 'deepseek-ai-dsh-cua-macos-1.0.0.tgz')
|
||||
await verifyCuaHelperTarball(tarball, identity)
|
||||
return readFileSync(tarball)
|
||||
}
|
||||
|
||||
@@ -123,7 +123,7 @@ async function main(): Promise<void> {
|
||||
// 2. Current official artifacts, so the run never serves an earlier build.
|
||||
await runStep(root, ['run', 'build:official'], abort.signal, 'build:official')
|
||||
verifyBuiltBundles({ entries, packages })
|
||||
if (selection.members.some(member => member.name === '@deepseek-ai/dsh-experimental-cua-macos')) {
|
||||
if (selection.members.some(member => member.name === '@deepseek-ai/dsh-cua-macos')) {
|
||||
await runStep(root, ['--dir', 'packages/experimental/cua-macos', 'run', 'build:native'], abort.signal, 'CUA native build')
|
||||
}
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
export const EXPERIMENTAL_PACKAGE_NAME_EXCEPTIONS: Readonly<Record<string, string>> = {
|
||||
'packages/experimental/cua': '@deepseek-ai/dsh-cua',
|
||||
'packages/experimental/cua-bundle': '@deepseek-ai/dsh-cua-bundle',
|
||||
'packages/experimental/cua-macos': '@deepseek-ai/dsh-cua-macos',
|
||||
'packages/experimental/cua-windows': '@deepseek-ai/dsh-cua-windows',
|
||||
'packages/experimental/tool-session-query': '@deepseek-ai/dsh-tool-session-query',
|
||||
'packages/experimental/session-title-all-prompts-llm': '@deepseek-ai/dsh-session-title-all-prompts-llm',
|
||||
@@ -50,7 +51,6 @@ export const LEGACY_PREFIXED_EXPERIMENTAL_PACKAGE_DIRECTORIES: readonly string[]
|
||||
'packages/experimental/computer-use-cua-driver-mcp',
|
||||
'packages/experimental/computer-use-cua-driver-native',
|
||||
'packages/experimental/cot-translation-bundle',
|
||||
'packages/experimental/cua-macos',
|
||||
'packages/experimental/forge',
|
||||
'packages/experimental/forge-bundle',
|
||||
'packages/experimental/forge-github',
|
||||
|
||||
@@ -63,7 +63,7 @@ export const EXISTING_PLUGIN_ENTRY_EXPORTS = {
|
||||
'@deepseek-ai/dsh-experimental-claude-code-mods': [
|
||||
'DEFAULT_TOOL_ALIASES', 'KNOWN_EVENTS', 'MODS_API_VERSION', 'SERVED_EVENTS', 'defineMod',
|
||||
],
|
||||
'@deepseek-ai/dsh-experimental-cua-macos': ['GUIDANCE'],
|
||||
'@deepseek-ai/dsh-cua-macos': ['GUIDANCE'],
|
||||
'@deepseek-ai/dsh-experimental-forge': ['changeRequestKey'],
|
||||
'@deepseek-ai/dsh-experimental-inspector': ['resolveInspectorOptions', 'startInspector'],
|
||||
'@deepseek-ai/dsh-experimental-ptc-runtime-python': [
|
||||
|
||||
@@ -71,7 +71,7 @@ describe('release families', () => {
|
||||
'@deepseek-ai/dsh-experimental-cot-translation-bundle',
|
||||
'@deepseek-ai/dsh-creation-recommendations',
|
||||
'@deepseek-ai/dsh-cua-bundle',
|
||||
'@deepseek-ai/dsh-experimental-cua-macos',
|
||||
'@deepseek-ai/dsh-cua-macos',
|
||||
'@deepseek-ai/dsh-cua-windows',
|
||||
'@deepseek-ai/dsh-cua',
|
||||
'@deepseek-ai/dsh-experimental-forge-bundle',
|
||||
|
||||
@@ -317,7 +317,7 @@ describe('release publication channels', () => {
|
||||
|
||||
it('verifies helper sources from the repository root when publication is invoked from a subdirectory', async () => {
|
||||
const fixture = packedRelease(['1.0.0'])
|
||||
vi.mocked(packedIdentity).mockReturnValue({ name: '@deepseek-ai/dsh-experimental-cua-macos', version: '1.0.0' })
|
||||
vi.mocked(packedIdentity).mockReturnValue({ name: '@deepseek-ai/dsh-cua-macos', version: '1.0.0' })
|
||||
vi.mocked(verifyCuaHelperTarball).mockResolvedValue(undefined)
|
||||
registry()
|
||||
const root = resolve(import.meta.dirname, '../..')
|
||||
|
||||
@@ -187,7 +187,7 @@ export async function publishRelease(familyId: string, directory: string, distTa
|
||||
return { tarball, ...packedIdentity(tarball) }
|
||||
})
|
||||
for (const member of order) {
|
||||
if (member.name !== '@deepseek-ai/dsh-experimental-cua-macos') continue
|
||||
if (member.name !== '@deepseek-ai/dsh-cua-macos') continue
|
||||
await verifyCuaHelperTarball(member.tarball, { sourceDigest: cuaHelperSourceDigest(resolve(import.meta.dirname, '../..')) })
|
||||
}
|
||||
if (distTag !== undefined) {
|
||||
|
||||
Reference in new issue
Block a user