Browse
For agents
About
Extendify
/
3.1.5
Extendify
v3.1.5
Switch version
3.2.1
3.2.0
3.1.6
3.1.5
3.1.4
3.1.3
3.1.2
3.1.1
3.1.0
3.0.6
3.0.5
3.0.4
trunk
0.1.0
0.10.0
0.10.1
0.10.2
0.11.0
0.11.1
0.2.0
0.3.0
0.3.1
0.4.0
0.5.0
0.6.0
All 127 releases
Overview
Code
extendify
/
src
/
Agent
/
lib
/
local-pick.js
local-pick.js
in Extendify 3.1.5, at src/Agent/lib/local-pick.js
11 lines
321 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
//
Resolve a block edit's workflow on-device so we can skip the network find-agent.
2
3
import
{
IGNORED_BLOCKS
}
from
'
./classify-block-edit
'
;
4
5
export
const
localPickWorkflow
=
(
{
block
}
)
=>
{
6
if
(
!
block
||
!
block
.
blockType
||
IGNORED_BLOCKS
.
has
(
block
.
blockType
)
)
{
7
return
null
;
8
}
9
return
{
id
:
'
block-patching
'
}
;
10
}
;
11