Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/**
* The provider now also injects workbench-defined config-action items
* (permission/mode toggles like `/yolo`, `/autopilot`) into every leading-slash
* completion result; these carry an `action` bag on their attachment `_meta`.
* The runtime-focused assertions below filter them out with this helper so they
* keep asserting on the runtime SDK command set. Runtime commands whose name
* collides with a config-action command (e.g. `plan`) are intentionally dropped
* by the provider, so they no longer appear even after filtering.
*/
function
runtimeOnly
(
:
readonly
[
]
)
:
[
]
{
return
.
filter
(
=>
.
?.
?.
===
undefined
)
;
}
suite
(
'CopilotSlashCommandCompletionProvider'
,
(
)
=>
{
ensureNoDisposablesAreLeakedInTestSuite
(
)
;
suite
(
'parseLeadingSlashCommand'
,
(
)
=>
{
test
(
'matches lone /plan'
,
(
)
=>
{
.
deepStrictEqual
(
parseLeadingSlashCommand
(
'/plan'
)
,
{
:
'plan'
,
:
''
,
:
''
}
)
;
}
)
;
test
(
'matches lone /compact'
,
(
)
=>
{
.
deepStrictEqual
(
parseLeadingSlashCommand
(
'/compact'
)
,
{
:
'compact'
,
:
''
,
:
''
}
)
;
}
)
;
test
(
'matches lone /research'
,
(
)
=>
{
.
deepStrictEqual
(
parseLeadingSlashCommand
(
'/research'
)
,
{
:
'research'
,
:
''
,
:
''
}
)
;
}
)
;
test
(
'captures trailing text after a space for /research'
,
(
)
=>
{
.
deepStrictEqual
(
parseLeadingSlashCommand
(
'/research How does React work?'
)
,
{
:
'research'
,
:
'How does React work?'
,
:
'How does React work?'
}
)
;
}
)
;
test
(
'matches lone /rubber-duck'
,
(
)
=>
{
.
deepStrictEqual
(
parseLeadingSlashCommand
(
'/rubber-duck'
)
,
{
:
'rubber-duck'
,
:
''
,
:
''
}
)
;
}
)
;
test
(
'matches lone /env'
,
(
)
=>
{
.
deepStrictEqual
(
parseLeadingSlashCommand
(
'/env'
)
,
{
:
'env'
,
:
''
,
:
''
}
)
;
}
)
;
test
(
'matches lone /review'
,
(
)
=>
{
.
deepStrictEqual
(
parseLeadingSlashCommand
(
'/review'
)
,
{
:
'review'
,
:
''
,
:
''
}
)
;
}
)
;
test
(
'matches lone /security-review'
,
(
)
=>
{
.
deepStrictEqual
(
parseLeadingSlashCommand
(
'/security-review'
)
,
{
:
'security-review'
,
:
''
,
:
''
}
)
;
}
)
;
test
(
'captures trailing text after a space for /rubber-duck'
,
(
)
=>
{
.
deepStrictEqual
(
parseLeadingSlashCommand
(
'/rubber-duck review my approach'
)
,
{
:
'rubber-duck'
,
:
'review my approach'
,
:
'review my approach'
}
)
;
}
)
;
test
(
'captures trailing text after a space for /env'
,
(
)
=>
{
.
deepStrictEqual
(
parseLeadingSlashCommand
(
'/env ignored input'
)
,
{
:
'env'
,
:
'ignored input'
,
:
'ignored input'
}
)
;
}
)
;
test
(
'captures trailing text after a space for /review'
,
(
)
=>
{
.
deepStrictEqual
(
parseLeadingSlashCommand
(
'/review focus on tests'
)
,
{
:
'review'
,
:
'focus on tests'
,
:
'focus on tests'
}
)
;
}
)
;
test
(
'captures trailing text after a space for /security-review'
,
(
)
=>
{
.
deepStrictEqual
(
parseLeadingSlashCommand
(
'/security-review focus on auth'
)
,
{
:
'security-review'
,
:
'focus on auth'
,
:
'focus on auth'
}
)
;
}
)
;
test
(
'parses arbitrary slash command tokens'
,
(
)
=>
{
.
deepStrictEqual
(
parseLeadingSlashCommand
(
'/rubber-duck-extra'
)
,
{
:
'rubber-duck-extra'
,
:
''
,
:
''
}
)
;
}
)
;
test
(
'preserves multiline command input as rawRest'
,
(
)
=>
{
.
deepStrictEqual
(
parseLeadingSlashCommand
(
'/foo first line\nsecond line'
)
,
{
:
'foo'
,
:
'first line\nsecond line'
,
:
'first line\nsecond line'
}
)
;
}
)
;
test
(
'trims rest while retaining rawRest'
,
(
)
=>
{
.
deepStrictEqual
(
parseLeadingSlashCommand
(
'/foo padded '
)
,
{
:
'foo'
,
:
'padded'
,
:
'padded '
}
)
;
}
)
;
test
(
'captures trailing text after a space'
,
(
)
=>
{
.
deepStrictEqual
(
parseLeadingSlashCommand
(
'/plan build a hello world'
)
,
{
:
'plan'
,
:
'build a hello world'
,
:
'build a hello world'
}
)
;
}
)
;
test
(
'captures trailing text after a space for /compact'
,
(
)
=>
{
.
deepStrictEqual
(
parseLeadingSlashCommand
(
'/compact some text'
)
,
{
:
'compact'
,
:
'some text'
,
:
'some text'
}
)
;
}
)
;
test
(
'rejects leading whitespace'
,
(
)
=>
{
.
strictEqual
(
parseLeadingSlashCommand
(
' /compact'
)
,
undefined
)
;
}
)
;
test
(
'accepts uppercase command tokens'
,
(
)
=>
{
.
deepStrictEqual
(
parseLeadingSlashCommand
(
'/PLAN'
)
,
{
:
'PLAN'
,
:
''
,
:
''
}
)
;
}
)
;
}
)
;
suite
(
'provideCompletionItems'
,
(
)
=>
{
const
=
[
{
:
'plan'
,
:
'Runtime plan'
,
:
'builtin'
as
const
,
:
true
,
:
{
:
'task'
}
}
,
{
:
'compact'
,
:
'Runtime compact'
,
:
'builtin'
as
const
,
:
true
}
,
{
:
'research'
,
:
'Runtime research'
,
:
'builtin'
as
const
,
:
true
,
:
{
:
'query'
}
}
,
{
:
'rubber-duck'
,
:
'Runtime rubber-duck'
,
:
'builtin'
as
const
,
:
true
,
:
{
:
'review prompt'
}
}
,
{
:
'env'
,
:
'Runtime env'
,
:
'builtin'
as
const
,
:
true
}
,
{
:
'review'
,
:
'Runtime review'
,
:
'builtin'
as
const
,
:
true
,
:
{
:
'scope'
}
}
,
{
:
'security-review'
,
:
'Runtime security review'
,
:
'builtin'
as
const
,
:
true
,
:
{
:
'scope'
}
}
,
]
;
const
=
new
CopilotSlashCommandCompletionProvider
(
'copilotcli'
,
{
isRubberDuckEnabled
:
(
)
=>
true
,
getRuntimeSlashCommands
:
async
(
)
=>
,
getSessionCustomizations
:
async
(
)
=>
[
]
,
}
)
;
const
=
'copilotcli:/abc'
;
async
function
run
(
:
string
,
=
.
)
{
return
.
provideCompletionItems
(
{
:
.
,
:
,
,
}
,
.
)
;
}
test
(
'returns nothing for non-copilotcli scheme'
,
async
(
)
=>
{
const
=
await
.
provideCompletionItems
(
{
:
.
,
:
'claude:/abc'
,
:
'/'
,
:
1
,
}
,
.
)
;
.
deepStrictEqual
(
,
[
]
)
;
}
)
;
test
(
'returns all runtime items for lone "/" (config-action items filtered)'
,
async
(
)
=>
{
const
=
await
run
(
'/'
)
;
// `plan` collides with a config-action command and is dropped from the runtime set.
.
deepStrictEqual
(
runtimeOnly
(
)
.
map
(
=>
.
)
,
[
'/compact '
,
'/research '
,
'/rubber-duck '
,
'/env '
,
'/review '
,
'/security-review '
]
.
sort
(
)
)
;
}
)
;
test
(
'injects config-action items (permission/mode toggles) for a leading slash'
,
async
(
)
=>
{
const
=
await
run
(
'/'
)
;
const
=
new
Map
(
.
filter
(
=>
.
?.
?.
!==
undefined
)
.
map
(
=>
[
.
?.
,
]
)
)
;
.
ok
(
.
has
(
'/yolo on'
)
)
;
.
ok
(
.
has
(
'/autopilot on'
)
)
;
.
strictEqual
(
.
get
(
'/autopilot'
)
?.
,
'/autopilot '
)
;
}
)
;
test
(
'filters to /plan when "/p" typed'
,
async
(
)
=>
{
const
=
await
run
(
'/p'
)
;
.
deepStrictEqual
(
.
map
(
=>
.
)
,
[
'/plan '
]
)
;
}
)
;
test
(
'filters to /compact when "/c" typed'
,
async
(
)
=>
{
const
=
await
run
(
'/c'
)
;
.
deepStrictEqual
(
.
map
(
=>
.
)
,
[
'/compact '
]
)
;
}
)
;
test
(
'fuzzy matches /compact when "/cc" typed'
,
async
(
)
=>
{
const
=
await
run
(
'/cc'
)
;
.
deepStrictEqual
(
.
map
(
=>
.
)
,
[
'/compact '
]
)
;
}
)
;
test
(
'filters to /env when "/e" typed and runtime command exists'
,
async
(
)
=>
{
const
=
await
run
(
'/e'
)
;
.
deepStrictEqual
(
.
map
(
=>
.
)
,
[
'/env '
]
)
;
}
)
;
test
(
'filters to /research and /rubber-duck when "/r" typed'
,
async
(
)
=>
{
const
=
await
run
(
'/r'
)
;
.
deepStrictEqual
(
.
map
(
=>
.
)
,
[
'/research '
,
'/review '
,
'/rubber-duck '
]
.
sort
(
)
)
;
}
)
;
test
(
'filters to /security-review when "/s" typed'
,
async
(
)
=>
{
const
=
await
run
(
'/s'
)
;
.
deepStrictEqual
(
.
map
(
=>
.
)
,
[
'/security-review '
]
)
;
}
)
;
test
(
'returns nothing when /word does not match any command prefix'
,
async
(
)
=>
{
const
=
await
run
(
'/zz'
)
;
.
deepStrictEqual
(
,
[
]
)
;
}
)
;
test
(
'returns nothing when input does not start with /'
,
async
(
)
=>
{
const
=
await
run
(
'hello /pl'
,
9
)
;
.
deepStrictEqual
(
,
[
]
)
;
}
)
;
test
(
'returns nothing when cursor is past the leading word'
,
async
(
)
=>
{
// Cursor sits after the trailing space, no longer in the slash token.
const
=
await
run
(
'/plan '
,
6
)
;
.
deepStrictEqual
(
,
[
]
)
;
}
)
;
test
(
'range covers only the leading slash word'
,
async
(
)
=>
{
const
=
await
run
(
'/p extra text'
,
2
)
;
.
strictEqual
(
.
,
1
)
;
.
strictEqual
(
[
0
]
.
,
0
)
;
.
strictEqual
(
[
0
]
.
,
2
)
;
}
)
;
test
(
'attachment is Simple with command + description meta'
,
async
(
)
=>
{
const
=
await
run
(
'/'
)
;
.
deepStrictEqual
(
runtimeOnly
(
)
.
map
(
=>
(
{
:
.
,
:
.
?.
,
:
.
?.
}
)
)
,
[
{
:
'/compact '
,
:
.
,
:
{
:
'compact'
,
:
'Runtime compact'
,
}
,
}
,
{
:
'/env '
,
:
.
,
:
{
:
'env'
,
:
'Runtime env'
,
}
,
}
,
{
:
'/research '
,
:
.
,
:
{
:
'research'
,
:
'Runtime research'
,
:
'query'
,
}
,
}
,
{
:
'/review '
,
:
.
,
:
{
:
'review'
,
:
'Runtime review'
,
:
'scope'
,
}
,
}
,
{
:
'/rubber-duck '
,
:
.
,
:
{
:
'rubber-duck'
,
:
'Runtime rubber-duck'
,
:
'review prompt'
,
}
,
}
,
{
:
'/security-review '
,
:
.
,
:
{
:
'security-review'
,
:
'Runtime security review'
,
:
'scope'
,
}
,
}
,
]
)
;
}
)
;
test
(
'omits /rubber-duck when not enabled'
,
async
(
)
=>
{
const
=
new
CopilotSlashCommandCompletionProvider
(
'copilotcli'
,
{
isRubberDuckEnabled
:
(
)
=>
false
,
getRuntimeSlashCommands
:
async
(
)
=>
,
getSessionCustomizations
:
async
(
)
=>
[
]
,
}
)
;
const
=
await
.
provideCompletionItems
(
{
:
.
,
:
,
:
'/'
,
:
1
,
}
,
.
)
;
.
deepStrictEqual
(
runtimeOnly
(
)
.
map
(
=>
.
)
,
[
'/compact '
,
'/env '
,
'/research '
,
'/review '
,
'/security-review '
]
.
sort
(
)
)
;
}
)
;
test
(
'returns no completion items when runtime command list is empty'
,
async
(
)
=>
{
const
=
new
CopilotSlashCommandCompletionProvider
(
'copilotcli'
,
{
isRubberDuckEnabled
:
(
)
=>
true
,
getRuntimeSlashCommands
:
async
(
)
=>
[
]
,
getSessionCustomizations
:
async
(
)
=>
[
]
,
}
)
;
const
=
await
.
provideCompletionItems
(
{
:
.
,
:
,
:
'/'
,
:
1
,
}
,
.
)
;
.
deepStrictEqual
(
runtimeOnly
(
)
,
[
]
)
;
}
)
;
test
(
'filters out runtime commands omitted from the catalog'
,
async
(
)
=>
{
const
=
new
CopilotSlashCommandCompletionProvider
(
'copilotcli'
,
{
isRubberDuckEnabled
:
(
)
=>
true
,
getRuntimeSlashCommands
:
async
(
)
=>
.
filter
(
=>
.
!==
'env'
)
,
getSessionCustomizations
:
async
(
)
=>
[
]
,
}
)
;
const
=
await
.
provideCompletionItems
(
{
:
.
,
:
,
:
'/'
,
:
1
,
}
,
.
)
;
// `plan` collides with a config-action command and is dropped from the runtime set.
.
deepStrictEqual
(
runtimeOnly
(
)
.
map
(
=>
.
)
,
[
'/compact '
,
'/research '
,
'/review '
,
'/rubber-duck '
,
'/security-review '
,
]
.
sort
(
)
)
;
}
)
;
test
(
'includes runtime SDK commands in completion results'
,
async
(
)
=>
{
const
=
new
CopilotSlashCommandCompletionProvider
(
'copilotcli'
,
{
isRubberDuckEnabled
:
(
)
=>
true
,
getRuntimeSlashCommands
:
async
(
)
=>
[
{
:
'focus'
,
:
'Focus on specific files'
,
:
'builtin'
,
:
true
,
:
{
:
'scope'
}
,
}
]
,
getSessionCustomizations
:
async
(
)
=>
[
]
,
}
)
;
const
=
await
.
provideCompletionItems
(
{
:
.
,
:
,
:
'/f'
,
:
2
,
}
,
.
)
;
.
deepStrictEqual
(
.
map
(
=>
.
)
,
[
'/focus '
]
)
;
}
)
;
test
(
'config-action commands shadow runtime commands of the same name'
,
async
(
)
=>
{
const
=
new
CopilotSlashCommandCompletionProvider
(
'copilotcli'
,
{
isRubberDuckEnabled
:
(
)
=>
true
,
getRuntimeSlashCommands
:
async
(
)
=>
[
{
:
'plan'
,
:
'runtime plan'
,
:
'builtin'
,
:
true
,
:
{
:
'task'
}
}
,
{
:
'compact'
,
:
'runtime compact'
,
:
'builtin'
,
:
true
}
,
{
:
'runtime-only'
,
:
'runtime only'
,
:
'client'
,
:
true
}
,
]
,
getSessionCustomizations
:
async
(
)
=>
[
]
,
}
)
;
const
=
await
.
provideCompletionItems
(
{
:
.
,
:
,
:
'/'
,
:
1
,
}
,
.
)
;
// `plan` collides with a config-action command, so the runtime `plan` is
// dropped; non-colliding runtime commands are kept.
.
deepStrictEqual
(
runtimeOnly
(
)
.
map
(
=>
.
)
,
[
'/compact '
,
'/runtime-only '
]
.
sort
(
)
)
;
// The config-action `/plan ` item is still surfaced (carrying an action bag).
const
=
.
find
(
=>
.
===
'/plan '
)
;
.
ok
(
?.
?.
?.
!==
undefined
)
;
}
)
;
test
(
'uses runtime input metadata to determine trailing space insertion'
,
async
(
)
=>
{
const
=
new
CopilotSlashCommandCompletionProvider
(
'copilotcli'
,
{
isRubberDuckEnabled
:
(
)
=>
true
,
getRuntimeSlashCommands
:
async
(
)
=>
[
{
:
'no-input'
,
:
'No input'
,
:
'builtin'
,
:
true
}
,
{
:
'needs-input'
,
:
'Needs input'
,
:
'builtin'
,
:
true
,
:
{
:
'value'
}
}
,
]
,
getSessionCustomizations
:
async
(
)
=>
[
]
,
}
)
;
const
=
await
.
provideCompletionItems
(
{
:
.
,
:
,
:
'/n'
,
:
2
,
}
,
.
)
;
.
deepStrictEqual
(
.
map
(
=>
.
)
,
[
'/no-input '
,
'/needs-input '
]
.
sort
(
)
)
;
}
)
;
test
(
'expands input choices into one item per choice'
,
async
(
)
=>
{
const
=
new
CopilotSlashCommandCompletionProvider
(
'copilotcli'
,
{
isRubberDuckEnabled
:
(
)
=>
true
,
getRuntimeSlashCommands
:
async
(
)
=>
[
{
:
'toggle'
,
:
'Toggle a feature on or off'
,
:
'builtin'
,
:
true
,
:
{
:
''
,
:
[
{
:
'on'
,
:
'Turn the feature on'
}
,
{
:
'off'
,
:
'Turn the feature off'
}
]
}
}
,
]
,
getSessionCustomizations
:
async
(
)
=>
[
]
,
}
)
;
const
=
await
.
provideCompletionItems
(
{
:
.
,
:
,
:
'/t'
,
:
2
,
}
,
.
)
;
// Structured choices expand into one item per choice, each carrying its own description.
.
deepStrictEqual
(
.
map
(
=>
(
{
:
.
,
:
.
?.
}
)
)
,
[
{
:
'/toggle off '
,
:
{
:
'toggle'
,
:
'Turn the feature off'
}
}
,
{
:
'/toggle on '
,
:
{
:
'toggle'
,
:
'Turn the feature on'
}
}
,
]
)
;
}
)
;
test
(
'includes a bare command item when a choice has an empty name'
,
async
(
)
=>
{
const
=
new
CopilotSlashCommandCompletionProvider
(
'copilotcli'
,
{
isRubberDuckEnabled
:
(
)
=>
true
,
getRuntimeSlashCommands
:
async
(
)
=>
[
{
:
'toggle'
,
:
'Toggle a feature on or off'
,
:
'builtin'
,
:
true
,
:
{
:
''
,
:
[
{
:
''
,
:
'Show the current state'
}
,
{
:
'on'
,
:
'Turn on'
}
,
{
:
'off'
,
:
'Turn off'
}
]
}
}
,
]
,
getSessionCustomizations
:
async
(
)
=>
[
]
,
}
)
;
const
=
await
.
provideCompletionItems
(
{
:
.
,
:
,
:
'/t'
,
:
2
,
}
,
.
)
;
// A choice with an empty name produces the bare command alongside the other options.
.
deepStrictEqual
(
.
map
(
=>
.
)
,
[
'/toggle '
,
'/toggle off '
,
'/toggle on '
]
)
;
}
)
;
test
(
'surfaces the free-text hint as an argument hint when there are no choices'
,
async
(
)
=>
{
const
=
new
CopilotSlashCommandCompletionProvider
(
'copilotcli'
,
{
isRubberDuckEnabled
:
(
)
=>
true
,
getRuntimeSlashCommands
:
async
(
)
=>
[
{
:
'toggle'
,
:
'Toggle a feature on or off'
,
:
'builtin'
,
:
true
,
:
{
:
'[on|off]'
}
}
,
]
,
getSessionCustomizations
:
async
(
)
=>
[
]
,
}
)
;
const
=
await
.
provideCompletionItems
(
{
:
.
,
:
,
:
'/t'
,
:
2
,
}
,
.
)
;
// Without structured choices, the free-text hint is not expanded into options; it is surfaced as an argument hint on a single item.
.
deepStrictEqual
(
.
map
(
=>
(
{
:
.
,
:
.
?.
}
)
)
,
[
{
:
'/toggle '
,
:
{
:
'toggle'
,
:
'Toggle a feature on or off'
,
:
'[on|off]'
}
}
,
]
)
;
}
)
;
test
(
'passes raw session id to runtime command listing'
,
async
(
)
=>
{
let
:
string
|
undefined
;
const
=
new
CopilotSlashCommandCompletionProvider
(
'copilotcli'
,
{
isRubberDuckEnabled
:
(
)
=>
true
,
getRuntimeSlashCommands
:
async
(
:
string
)
=>
{
=
;
return
[
{
:
'focus'
,
:
'builtin'
,
:
'Focus'
,
:
true
}
]
;
}
,
getSessionCustomizations
:
async
(
)
=>
[
]
,
}
)
;
await
.
provideCompletionItems
(
{
:
.
,
:
'copilotcli:/abc'
,
:
'/f'
,
:
2
,
}
,
.
)
;
.
strictEqual
(
,
'abc'
)
;
}
)
;
}
)
;
suite
(
'runtime skill completions'
,
(
)
=>
{
const
=
'copilotcli:/abc'
;
function
skill
(
:
string
,
?
:
string
)
:
{
return
{
:
.
,
:
`file:///skills/${name}/SKILL.md`
,
:
`file:///skills/${name}/SKILL.md`
,
,
...
(
!==
undefined
?
{
}
:
{
}
)
,
}
;
}
function
plugin
(
:
string
,
?
:
readonly
[
]
,
=
true
)
:
{
return
{
:
.
,
:
`file:///plugins/${name}`
,
:
`file:///plugins/${name}`
,
,
...
(
?
{
}
:
{
// TODO: Step 2 selects the persisted enablement scope.
:
[
{
:
.
,
:
false
}
]
,
}
)
,
:
{
:
.
}
,
...
(
?
{
:
[
...
]
}
:
{
}
)
,
}
;
}
function
syncedPlugin
(
:
string
,
?
:
readonly
[
]
)
:
{
return
{
...
plugin
(
,
)
,
:
`${SYNCED_CUSTOMIZATION_SCHEME}:/plugins/${name}`
,
:
`${SYNCED_CUSTOMIZATION_SCHEME}:/plugins/${name}`
,
}
;
}
function
createProvider
(
:
readonly
[
]
,
:
readonly
[
]
=
[
]
)
:
{
return
new
CopilotSlashCommandCompletionProvider
(
'copilotcli'
,
{
isRubberDuckEnabled
:
(
)
=>
true
,
getRuntimeSlashCommands
:
async
(
)
=>
,
getSessionCustomizations
:
async
(
)
=>
,
}
)
;
}
async
function
run
(
:
,
:
string
,
=
.
)
{
return
.
provideCompletionItems
(
{
:
.
,
:
,
,
}
,
.
)
;
}
test
(
'includes runtime skills that are not known local skills'
,
async
(
)
=>
{
const
=
createProvider
(
[
{
:
'my-skill'
,
:
'Runtime skill'
,
:
'skill'
,
:
true
}
,
]
)
;
const
=
await
run
(
,
'/'
)
;
.
deepStrictEqual
(
runtimeOnly
(
)
.
map
(
=>
(
{
:
.
,
:
.
?.
?.
,
}
)
)
,
[
{
:
'/my-skill '
,
:
true
}
]
)
;
}
)
;
test
(
'excludes runtime skills that match a known plugin skill (with plugin prefix)'
,
async
(
)
=>
{
const
=
createProvider
(
[
{
:
'my-plugin:my-skill'
,
:
'Runtime skill'
,
:
'skill'
,
:
true
}
]
,
[
plugin
(
'my-plugin'
,
[
skill
(
'my-skill'
)
]
)
]
,
)
;
const
=
await
run
(
,
'/'
)
;
.
deepStrictEqual
(
runtimeOnly
(
)
,
[
]
)
;
}
)
;
test
(
'excludes runtime skills that match a known plugin skill with the same name (no prefix)'
,
async
(
)
=>
{
const
=
createProvider
(
[
{
:
'monitor-pr'
,
:
'Runtime skill'
,
:
'skill'
,
:
true
}
]
,
[
plugin
(
'monitor-pr'
,
[
skill
(
'monitor-pr'
)
]
)
]
,
)
;
const
=
await
run
(
,
'/'
)
;
.
deepStrictEqual
(
runtimeOnly
(
)
,
[
]
)
;
}
)
;
test
(
'excludes runtime skills that match a known synced plugin skill (no prefix)'