evot-agent 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -37,7 +37,7 @@ npx evot-agent connect <code> # 예: npx evot-agent connect ABCD2345
37
37
 
38
38
  ```bash
39
39
  npm install -g evot-agent
40
- evot-agent start # 기본 10분마다 폴링
40
+ evot-agent start # 기본 1분마다 폴링
41
41
  evot-agent install # macOS 전용: 로그인 시 자동 시작 + 백그라운드 상주
42
42
  evot-agent uninstall # 상주 등록 해제
43
43
  ```
package/bin/evot-agent.js CHANGED
@@ -15,7 +15,7 @@ Normal use is "start": leave it running, then ask a Vot (in chat or a routine) t
15
15
  "use my computer's browser to …". evot queues the task; this daemon picks it up and
16
16
  appends the result as a cell in the target thread.
17
17
 
18
- start polling: default every 600s (10 min). For testing use --interval 60,
18
+ start polling: default every 60s (1 min). To change it use --interval,
19
19
  or set EVOT_AGENT_POLL_SECONDS. Minimum 30s.
20
20
 
21
21
  Backend (which model drives the browser): defaults to Claude (uses your Claude Code
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evot-agent",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "type": "module",
5
5
  "description": "Local browser agent for evot — browses sites with Claude or Codex and appends results as cells.",
6
6
  "license": "MIT",
@@ -30,14 +30,13 @@ export async function runClaudeJob(job) {
30
30
  preset: "claude_code",
31
31
  append: SYSTEM_APPEND,
32
32
  },
33
- // 내장 툴을 전부 비운다. allowedTools는 "확인 없이 자동 승인할 목록"이지 제한이
34
- // 아니라서(SDK: "To restrict which tools are available, use the `tools` option
35
- // instead"), 예전처럼 allowedTools에만 mcp__playwright를 넣으면 Read·Grep·WebFetch·
36
- // WebSearch가 그대로 살아 있고 bypassPermissions 탓에 확인도 없이 실행됐다.
37
- // tools "내장"집합만 지정하며(SDK가 --tools ""로 전달), MCP 서버는 mcpServers로
38
- // 따로 붙으므로 Playwright그대로 남는다.
39
- tools: [],
40
- // 이름 기준 이중 차단 — tools:[]가 이미 막지만, 상위 설정 변화에 대비해 남긴다.
33
+ // tools 옵션은 쓰지 않는다. SDK가 tools:[]를 `--tools ""`로 넘기는데, 이건 내장 툴만이
34
+ // 아니라 MCP 툴까지 전부 비운다. 그러면 Playwright가 사라진 채로 모델이 브라우저 없이
35
+ // 결과를 날조하고, subtype:"success"로 끝나 아래 isError 판정에도 안 걸린다
36
+ // (2026-08-21 실측: init tools=[], 실제 tool_use 0회, 호출을 본문 텍스트로 위조).
37
+ // tools mcp__playwright이름을 명시해도 동일하게 비므로 옵션으론 우회가 안 된다.
38
+ // 내장 툴 차단은 disallowedTools(이름 기준) 한 겹으로만 건다. allowedTools"확인 없이
39
+ // 자동 승인할 목록"이지 제한이 아니므로 차단 용도로 믿으면 안 된다.
41
40
  disallowedTools: [
42
41
  "Bash",
43
42
  "Write",
package/src/sync.js CHANGED
@@ -2,8 +2,10 @@ import { SUPABASE_URL, loadToken } from "./config.js";
2
2
  import { describeJobFailure, runBrowseJob } from "./browse.js";
3
3
  import { reportResult } from "./report.js";
4
4
 
5
- // 폴링 주기: --interval <sec> > EVOT_AGENT_POLL_SECONDS > 기본 600초(10분). 최소 30초.
6
- const DEFAULT_INTERVAL_SEC = 600;
5
+ // 폴링 주기: --interval <sec> > EVOT_AGENT_POLL_SECONDS > 기본 60초(1분). 최소 30초.
6
+ // 생성(루틴 발동·대화)부터 실행까지의 지연을 폴링 대기가 지배해서 600초에서 낮췄다.
7
+ // 더 줄여도 앞단의 cron(1분 주기)과 vot-react 추론 시간에 묻혀 체감 이득이 없다.
8
+ const DEFAULT_INTERVAL_SEC = 60;
7
9
  const MIN_INTERVAL_SEC = 30;
8
10
 
9
11
  function resolveIntervalSec(cliSec) {