mirror of
https://github.com/stablyai/orca.git
synced 2026-10-19 16:03:26 +00:00
# Conflicts: # src/main/index.ts # src/main/ipc/register-core-handlers.test.ts # src/main/ipc/register-core-handlers.ts # src/main/ipc/runtime-environments.ts # src/main/runtime/rpc/methods/skills.ts # src/renderer/src/components/emulator-pane/use-emulator-pane-session.ts # src/renderer/src/components/settings/ExperimentalPane.test.tsx # src/renderer/src/components/settings/OrchestrationPane.test.tsx # src/renderer/src/components/settings/experimental-search.ts # src/renderer/src/store/slices/worktrees.test.ts # src/renderer/src/store/slices/worktrees.ts # src/shared/agent-feature-install-commands.test.ts
50 lines
1.9 KiB
TypeScript
50 lines
1.9 KiB
TypeScript
import { describe, expect, it } from 'vitest'
|
|
import {
|
|
buildAgentFeatureSkillInstallCommand,
|
|
buildAgentFeatureSkillUpdateCommand,
|
|
COMPUTER_USE_SKILL_UPDATE_COMMAND,
|
|
EPHEMERAL_VMS_SKILL_UPDATE_COMMAND,
|
|
LINEAR_TICKETS_SKILL_UPDATE_COMMAND,
|
|
ORCA_LINEAR_SKILL_UPDATE_COMMAND,
|
|
ORCA_CLI_ORCHESTRATION_SKILL_INSTALL_COMMAND,
|
|
ORCA_CLI_SKILL_UPDATE_COMMAND,
|
|
ORCHESTRATION_SKILL_UPDATE_COMMAND
|
|
} from './agent-feature-install-commands'
|
|
|
|
describe('agent feature skill commands', () => {
|
|
it('builds single-skill update commands', () => {
|
|
expect(buildAgentFeatureSkillUpdateCommand('orchestration')).toBe(
|
|
'npx --yes skills update orchestration --global --yes'
|
|
)
|
|
})
|
|
|
|
it('trims and rejects blank update skill names', () => {
|
|
expect(buildAgentFeatureSkillUpdateCommand(' orca-cli ')).toBe(
|
|
'npx --yes skills update orca-cli --global --yes'
|
|
)
|
|
expect(() => buildAgentFeatureSkillUpdateCommand(' ')).toThrow('A skill name is required.')
|
|
})
|
|
|
|
it('exports single-skill update constants without changing install bundles', () => {
|
|
expect(ORCA_CLI_SKILL_UPDATE_COMMAND).toBe('npx --yes skills update orca-cli --global --yes')
|
|
expect(COMPUTER_USE_SKILL_UPDATE_COMMAND).toBe(
|
|
'npx --yes skills update computer-use --global --yes'
|
|
)
|
|
expect(ORCHESTRATION_SKILL_UPDATE_COMMAND).toBe(
|
|
'npx --yes skills update orchestration --global --yes'
|
|
)
|
|
expect(EPHEMERAL_VMS_SKILL_UPDATE_COMMAND).toBe(
|
|
'npx --yes skills update orca-per-workspace-env --global --yes'
|
|
)
|
|
expect(LINEAR_TICKETS_SKILL_UPDATE_COMMAND).toBe(
|
|
'npx --yes skills update linear-tickets --global --yes'
|
|
)
|
|
expect(ORCA_LINEAR_SKILL_UPDATE_COMMAND).toBe(
|
|
'npx --yes skills update orca-linear --global --yes'
|
|
)
|
|
expect(ORCA_CLI_ORCHESTRATION_SKILL_INSTALL_COMMAND).toBe(
|
|
buildAgentFeatureSkillInstallCommand(['orca-cli', 'orchestration'])
|
|
)
|
|
})
|
|
})
|