@skillcdn/console 0.6.1 → 0.6.3
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 +14 -7
- package/SKILLCDN.md +3 -2
- package/dist/agent-page.d.ts +2 -0
- package/dist/agent-page.d.ts.map +1 -1
- package/dist/agent-page.js +77 -30
- package/dist/agent-page.js.map +1 -1
- package/dist/agent-state.d.ts +9 -0
- package/dist/agent-state.d.ts.map +1 -0
- package/dist/agent-state.js +28 -0
- package/dist/agent-state.js.map +1 -0
- package/dist/agent-usage.d.ts +9 -6
- package/dist/agent-usage.d.ts.map +1 -1
- package/dist/agent-usage.js +38 -8
- package/dist/agent-usage.js.map +1 -1
- package/dist/api.d.ts +4 -3
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +4 -3
- package/dist/api.js.map +1 -1
- package/dist/cli/cli.d.ts +2 -0
- package/dist/cli/cli.d.ts.map +1 -1
- package/dist/cli/cli.js +369 -130
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/format.d.ts +13 -4
- package/dist/cli/format.d.ts.map +1 -1
- package/dist/cli/format.js +43 -9
- package/dist/cli/format.js.map +1 -1
- package/dist/cli/help.d.ts +82 -9
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +780 -318
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/pack.d.ts +2 -2
- package/dist/cli/pack.d.ts.map +1 -1
- package/dist/cli/pack.js +6 -4
- package/dist/cli/pack.js.map +1 -1
- package/dist/cli/runner-files.d.ts +16 -0
- package/dist/cli/runner-files.d.ts.map +1 -0
- package/dist/cli/runner-files.js +110 -0
- package/dist/cli/runner-files.js.map +1 -0
- package/dist/cli/runner-host.d.ts +7 -0
- package/dist/cli/runner-host.d.ts.map +1 -1
- package/dist/cli/runner-host.js +40 -2
- package/dist/cli/runner-host.js.map +1 -1
- package/dist/client.d.ts +22 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +7 -1
- package/dist/client.js.map +1 -1
- package/dist/components/agent-page.d.ts +61 -11
- package/dist/components/agent-page.d.ts.map +1 -1
- package/dist/components/agent-page.js +146 -35
- package/dist/components/agent-page.js.map +1 -1
- package/dist/components/agents.d.ts +3 -2
- package/dist/components/agents.d.ts.map +1 -1
- package/dist/components/agents.js +9 -3
- package/dist/components/agents.js.map +1 -1
- package/dist/components/calendar.d.ts +24 -4
- package/dist/components/calendar.d.ts.map +1 -1
- package/dist/components/calendar.js +78 -35
- package/dist/components/calendar.js.map +1 -1
- package/dist/console.d.ts.map +1 -1
- package/dist/console.js +40 -12
- package/dist/console.js.map +1 -1
- package/dist/data.d.ts +2 -0
- package/dist/data.d.ts.map +1 -1
- package/dist/data.js +4 -0
- package/dist/data.js.map +1 -1
- package/dist/desk-page.js +5 -5
- package/dist/desk-page.js.map +1 -1
- package/dist/feed-words.d.ts.map +1 -1
- package/dist/feed-words.js +18 -1
- package/dist/feed-words.js.map +1 -1
- package/dist/i18n/en.d.ts +51 -1
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +44 -2
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/ko.d.ts.map +1 -1
- package/dist/i18n/ko.js +52 -17
- package/dist/i18n/ko.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/limits.d.ts +10 -0
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +10 -0
- package/dist/limits.js.map +1 -1
- package/dist/plugin/capabilities.d.ts +1 -1
- package/dist/plugin/capabilities.d.ts.map +1 -1
- package/dist/plugin/capabilities.js +6 -1
- package/dist/plugin/capabilities.js.map +1 -1
- package/dist/plugin/context.d.ts +101 -8
- package/dist/plugin/context.d.ts.map +1 -1
- package/dist/plugin/limits.d.ts +7 -0
- package/dist/plugin/limits.d.ts.map +1 -1
- package/dist/plugin/limits.js +7 -0
- package/dist/plugin/limits.js.map +1 -1
- package/dist/plugin/testing.d.ts +2 -0
- package/dist/plugin/testing.d.ts.map +1 -1
- package/dist/plugin/testing.js +2 -0
- package/dist/plugin/testing.js.map +1 -1
- package/dist/rules.js +1 -1
- package/dist/rules.js.map +1 -1
- package/dist/runner/acp.d.ts.map +1 -1
- package/dist/runner/acp.js +9 -3
- package/dist/runner/acp.js.map +1 -1
- package/dist/runner/claude.d.ts.map +1 -1
- package/dist/runner/claude.js +143 -10
- package/dist/runner/claude.js.map +1 -1
- package/dist/runner/codex.d.ts.map +1 -1
- package/dist/runner/codex.js +14 -2
- package/dist/runner/codex.js.map +1 -1
- package/dist/runner/config.d.ts +18 -0
- package/dist/runner/config.d.ts.map +1 -1
- package/dist/runner/config.js +77 -1
- package/dist/runner/config.js.map +1 -1
- package/dist/runner/desk.d.ts +7 -0
- package/dist/runner/desk.d.ts.map +1 -1
- package/dist/runner/desk.js +20 -4
- package/dist/runner/desk.js.map +1 -1
- package/dist/runner/message.d.ts +26 -2
- package/dist/runner/message.d.ts.map +1 -1
- package/dist/runner/message.js +120 -32
- package/dist/runner/message.js.map +1 -1
- package/dist/runner/runner.d.ts +40 -2
- package/dist/runner/runner.d.ts.map +1 -1
- package/dist/runner/runner.js +533 -32
- package/dist/runner/runner.js.map +1 -1
- package/dist/runner/slack-status.d.ts +19 -0
- package/dist/runner/slack-status.d.ts.map +1 -0
- package/dist/runner/slack-status.js +332 -0
- package/dist/runner/slack-status.js.map +1 -0
- package/dist/runner/slack.d.ts +17 -11
- package/dist/runner/slack.d.ts.map +1 -1
- package/dist/runner/slack.js +1199 -109
- package/dist/runner/slack.js.map +1 -1
- package/dist/runner/types.d.ts +205 -6
- package/dist/runner/types.d.ts.map +1 -1
- package/dist/runner/types.js.map +1 -1
- package/dist/runner/usage.d.ts +6 -1
- package/dist/runner/usage.d.ts.map +1 -1
- package/dist/runner/usage.js +9 -2
- package/dist/runner/usage.js.map +1 -1
- package/dist/runner.d.ts +4 -4
- package/dist/runner.d.ts.map +1 -1
- package/dist/runner.js +3 -3
- package/dist/runner.js.map +1 -1
- package/dist/schemas.d.ts +263 -1
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +137 -5
- package/dist/schemas.js.map +1 -1
- package/dist/vocabulary.d.ts +7 -0
- package/dist/vocabulary.d.ts.map +1 -1
- package/dist/vocabulary.js +6 -0
- package/dist/vocabulary.js.map +1 -1
- package/dist/wake-text.d.ts +43 -0
- package/dist/wake-text.d.ts.map +1 -0
- package/dist/wake-text.js +115 -0
- package/dist/wake-text.js.map +1 -0
- package/docs/specs/cli.md +21 -12
- package/docs/specs/plugins.md +12 -7
- package/docs/specs/rest.md +14 -5
- package/docs/specs/runner.md +133 -26
- package/docs/start.md +26 -5
- package/package.json +3 -3
- package/skills/building-a-plugin/SKILL.md +3 -3
- package/skills/deploying-a-console/SKILL.md +3 -3
- package/skills/deploying-a-console/references/access.md +15 -1
- package/skills/deploying-a-console/references/resources.md +2 -2
- package/skills/deploying-a-console/scripts/github-app.mjs +593 -0
- package/skills/planning-the-board/references/setting-up.md +1 -1
- package/skills/running-an-agent/SKILL.md +18 -72
- package/skills/running-an-agent/references/preparing-the-machine.md +17 -0
- package/skills/running-an-agent/references/several-tasks.md +1 -1
- package/skills/running-an-agent/references/slack-app.md +55 -8
- package/skills/running-an-agent/references/the-account-and-the-invitation.md +5 -0
- package/skills/running-an-agent/references/what-was-not-seen-run-yet.md +3 -0
- package/skills/running-an-agent/references/when-the-agent-could-not-go-on.md +16 -0
- package/skills/running-an-agent/references/your-first-task.md +19 -0
- package/skills/trying-a-console/SKILL.md +136 -0
- package/skills/trying-a-console/references/when-it-does-not-go.md +30 -0
- package/skills/working-the-board/SKILL.md +11 -15
- package/skills/working-the-board/references/a-pack-skills-questions.md +3 -0
- package/skills/working-the-board/references/a-plugins-commands.md +3 -0
- package/skills/working-the-board/references/a-review.md +3 -0
- package/skills/working-the-board/references/an-open-run.md +3 -0
- package/skills/working-the-board/references/requirements.md +7 -0
- package/skills/working-the-board/references/the-pack.md +3 -3
- package/skills/working-the-board/references/what-they-were-told.md +3 -0
- package/skills/working-the-board/references/work-given-in-chat.md +5 -0
- package/src/agent-page.tsx +133 -41
- package/src/agent-state.ts +33 -0
- package/src/agent-usage.ts +55 -12
- package/src/api.ts +23 -0
- package/src/cli/cli.ts +443 -137
- package/src/cli/format.ts +49 -9
- package/src/cli/help.ts +904 -359
- package/src/cli/pack.ts +6 -4
- package/src/cli/runner-files.ts +120 -0
- package/src/cli/runner-host.ts +48 -2
- package/src/client.ts +64 -0
- package/src/components/agent-page.tsx +264 -39
- package/src/components/agents.tsx +20 -5
- package/src/components/calendar.tsx +92 -36
- package/src/console.tsx +47 -10
- package/src/data.ts +6 -0
- package/src/desk-page.tsx +5 -5
- package/src/feed-words.ts +20 -1
- package/src/i18n/en.ts +50 -2
- package/src/i18n/ko.ts +62 -17
- package/src/index.ts +2 -0
- package/src/limits.ts +10 -0
- package/src/plugin/capabilities.ts +8 -1
- package/src/plugin/context.ts +103 -7
- package/src/plugin/limits.ts +7 -0
- package/src/plugin/testing.ts +4 -0
- package/src/rules.ts +1 -1
- package/src/runner/acp.ts +9 -3
- package/src/runner/claude.ts +159 -10
- package/src/runner/codex.ts +14 -2
- package/src/runner/config.ts +114 -1
- package/src/runner/desk.ts +23 -4
- package/src/runner/message.ts +144 -35
- package/src/runner/runner.ts +658 -35
- package/src/runner/slack-status.ts +423 -0
- package/src/runner/slack.ts +1509 -128
- package/src/runner/types.ts +200 -5
- package/src/runner/usage.ts +16 -3
- package/src/runner.ts +20 -1
- package/src/schemas.ts +161 -3
- package/src/vocabulary.ts +9 -0
- package/src/wake-text.ts +133 -0
package/src/i18n/ko.ts
CHANGED
|
@@ -189,6 +189,12 @@ export const ko: Messages = {
|
|
|
189
189
|
"secret.unreadable": "이 배포의 키로 값을 열 수 없습니다. 값을 가진 사람이 다시 넣어야 합니다.",
|
|
190
190
|
"secret.own_session":
|
|
191
191
|
"시크릿 저장소는 계정 자신이 로그인해서 읽습니다. 계정이 만든 토큰으로는 읽을 수 없습니다.",
|
|
192
|
+
"secret.exists":
|
|
193
|
+
"계정에 같은 이름의 시크릿이 이미 있습니다. 계정이 다른 이름으로 받거나, 바꾸겠다고 한 경우에만 그 자리에 받습니다.",
|
|
194
|
+
"secret.offer_not_found": "계정에 대기 중인 그런 제안이 없습니다.",
|
|
195
|
+
"secret.too_many_offers":
|
|
196
|
+
"이 계정에 대기할 수 있는 만큼의 제안이 이미 있습니다. 하나를 받거나, 받지 않거나, 기한이 지나야 합니다.",
|
|
197
|
+
"secret.offer_own": "계정 자신의 시크릿은 계정이 직접 넣습니다.",
|
|
192
198
|
"agent.own_command":
|
|
193
199
|
"계정 자신만 할 수 있는 요청입니다. 계정으로 로그인한 명령의 러너가 요청합니다.",
|
|
194
200
|
"signal.not_offered": "에이전트의 제품이 제공하지 않는 모델 또는 추론 강도입니다.",
|
|
@@ -222,7 +228,7 @@ export const ko: Messages = {
|
|
|
222
228
|
"picture.refused": "표시할 수 없는 이미지입니다.",
|
|
223
229
|
"picture.unavailable": "이미지를 불러오지 못했습니다. 잠시 후 다시 시도하세요.",
|
|
224
230
|
"plugin.conflict": "이미 처리되었거나 그사이에 바뀌었습니다.",
|
|
225
|
-
"plugin.disabled": "
|
|
231
|
+
"plugin.disabled": "비활성 상태인 플러그인입니다.",
|
|
226
232
|
"plugin.failed": "플러그인에 문제가 생겼습니다.",
|
|
227
233
|
"plugin.forbidden": "플러그인이 할 수 없는 작업입니다.",
|
|
228
234
|
"plugin.invalid_args": "입력한 내용을 확인한 뒤 다시 시도하세요.",
|
|
@@ -230,8 +236,8 @@ export const ko: Messages = {
|
|
|
230
236
|
"plugin.not_found": "플러그인을 찾을 수 없습니다.",
|
|
231
237
|
"plugin.rate_limited": "플러그인의 요청이 너무 많습니다. 잠시 후 다시 시도하세요.",
|
|
232
238
|
"plugin.required_by":
|
|
233
|
-
"이 플러그인이 필요한 다른 플러그인이 있습니다. 그 플러그인을 먼저
|
|
234
|
-
"plugin.requires": "이 플러그인에 필요한 다른 플러그인이
|
|
239
|
+
"이 플러그인이 필요한 다른 플러그인이 있습니다. 그 플러그인을 먼저 비활성화하세요.",
|
|
240
|
+
"plugin.requires": "이 플러그인에 필요한 다른 플러그인이 비활성 상태입니다.",
|
|
235
241
|
"plugin.timeout": "플러그인의 응답이 너무 늦습니다.",
|
|
236
242
|
"plugin.too_many": "플러그인이 한도에 도달했습니다.",
|
|
237
243
|
"plugin.unavailable": "지금은 플러그인을 쓸 수 없습니다.",
|
|
@@ -319,9 +325,9 @@ export const ko: Messages = {
|
|
|
319
325
|
nothing: "없음",
|
|
320
326
|
capabilities: "권한",
|
|
321
327
|
required: "필수",
|
|
322
|
-
requiredHint: "플러그인이 동작하려면 꼭 필요해서
|
|
328
|
+
requiredHint: "플러그인이 동작하려면 꼭 필요해서 비활성화할 수 없습니다.",
|
|
323
329
|
optional: "선택",
|
|
324
|
-
optionalHint: "쓰려는 것만
|
|
330
|
+
optionalHint: "쓰려는 것만 활성화하세요. 나중에 바꿀 수 있습니다.",
|
|
325
331
|
newCapability: "새 권한",
|
|
326
332
|
board: "보드 프로젝트",
|
|
327
333
|
boardHint: "플러그인의 결정, 작업, 문서가 가는 곳입니다.",
|
|
@@ -365,10 +371,11 @@ export const ko: Messages = {
|
|
|
365
371
|
grantPlugin: (plugin) => `플러그인 ${plugin}`,
|
|
366
372
|
asks: "다른 플러그인에 요청한 역할",
|
|
367
373
|
asksHint:
|
|
368
|
-
"이 플러그인이 다른 플러그인에서 자기 이름으로 쓰려고 요청한 역할입니다. 관리자가 여기서, 또는
|
|
374
|
+
"이 플러그인이 다른 플러그인에서 자기 이름으로 쓰려고 요청한 역할입니다. 관리자가 여기서, 또는 활성화할 때 부여합니다.",
|
|
369
375
|
askGranted: "부여됨",
|
|
370
376
|
askUngranted: "부여되지 않음",
|
|
371
|
-
askUnavailable: (plugin) =>
|
|
377
|
+
askUnavailable: (plugin) =>
|
|
378
|
+
`${asSubject(plugin)} 비활성 상태입니다. 활성화된 뒤 여기서 부여하세요.`,
|
|
372
379
|
askGrantNow: "지금 부여",
|
|
373
380
|
grant: "부여",
|
|
374
381
|
revoke: "회수",
|
|
@@ -417,6 +424,11 @@ export const ko: Messages = {
|
|
|
417
424
|
name: "업무 이메일",
|
|
418
425
|
opens: "읽을 수 있는 사람의 업무 이메일을 읽습니다. 다른 서비스의 계정과 맞추는 데 씁니다.",
|
|
419
426
|
},
|
|
427
|
+
"people:accounts": {
|
|
428
|
+
name: "메신저 계정 연결",
|
|
429
|
+
opens:
|
|
430
|
+
"메신저의 어느 계정이 어느 구성원의 것인지 콘솔에 알립니다. 에이전트 계정은 이 연결로 메신저에서 자기 감독자가 썼다고 듣고, 그 말을 지시로 받습니다.",
|
|
431
|
+
},
|
|
420
432
|
"people:act": {
|
|
421
433
|
name: "사람 대신 실행",
|
|
422
434
|
opens:
|
|
@@ -450,7 +462,8 @@ export const ko: Messages = {
|
|
|
450
462
|
},
|
|
451
463
|
"notifications:read": {
|
|
452
464
|
name: "알림",
|
|
453
|
-
opens:
|
|
465
|
+
opens:
|
|
466
|
+
"보드 프로젝트에서 일어난 일을 콘솔이 누구에게 알렸는지 읽어 다른 곳으로 전하고, 쓰는 사람 본인의 알림 설정을 읽습니다.",
|
|
454
467
|
},
|
|
455
468
|
jobs: { name: "예약 실행", opens: "정해진 시간에 실행됩니다." },
|
|
456
469
|
endpoints: {
|
|
@@ -782,7 +795,7 @@ export const ko: Messages = {
|
|
|
782
795
|
loading: "알림을 불러오는 중",
|
|
783
796
|
couldNotLoad: "알림을 불러오지 못했습니다.",
|
|
784
797
|
fresh: "새 알림",
|
|
785
|
-
followed: "
|
|
798
|
+
followed: "직접 활성화한 작업",
|
|
786
799
|
more: "더 보기",
|
|
787
800
|
settingsLink: "알림 설정",
|
|
788
801
|
empty: {
|
|
@@ -802,9 +815,9 @@ export const ko: Messages = {
|
|
|
802
815
|
},
|
|
803
816
|
settings: {
|
|
804
817
|
title: "알림",
|
|
805
|
-
intro: "무엇을 알림으로 받을지 고릅니다.
|
|
818
|
+
intro: "무엇을 알림으로 받을지 고릅니다. 활성화된 종류는 화면 위쪽 종 아래에 쌓입니다.",
|
|
806
819
|
introAgent:
|
|
807
|
-
"이 계정이 무엇을 알림으로 받을지 고릅니다.
|
|
820
|
+
"이 계정이 무엇을 알림으로 받을지 고릅니다. 활성화된 종류는 계정의 알림 목록에 남고 계정을 깨웁니다.",
|
|
808
821
|
groups: { tasks: "작업", decisions: "결정", agents: "에이전트 계정" },
|
|
809
822
|
hints: {
|
|
810
823
|
tasks: "내가 소유하거나 맡은 작업에서 일어난 일입니다.",
|
|
@@ -813,18 +826,19 @@ export const ko: Messages = {
|
|
|
813
826
|
"나에게 보고하는 에이전트 계정이 멈추거나 실패하거나 응답이 없을 때, 다시 실행될 때, 그리고 나에게 결정을 올렸을 때입니다.",
|
|
814
827
|
},
|
|
815
828
|
projects: "프로젝트",
|
|
816
|
-
projectsHint:
|
|
829
|
+
projectsHint:
|
|
830
|
+
"비활성화된 프로젝트의 작업 소식은 받지 않습니다. 종으로 직접 활성화한 작업은 예외입니다.",
|
|
817
831
|
ownAgents: "내 에이전트",
|
|
818
832
|
ownAgentsHint:
|
|
819
|
-
"내 에이전트가 나로서 한 일은 내가 한 일이라 알리지 않습니다.
|
|
833
|
+
"내 에이전트가 나로서 한 일은 내가 한 일이라 알리지 않습니다. 받으려면 활성화하세요.",
|
|
820
834
|
ownAgentsOn: "내 에이전트가 한 일도 알림으로 받기",
|
|
821
835
|
reset: "기본값으로",
|
|
822
836
|
},
|
|
823
837
|
task: {
|
|
824
|
-
on: "이 작업의 알림이
|
|
825
|
-
off: "이 작업의 알림이
|
|
826
|
-
turnOn: "이 작업의 알림
|
|
827
|
-
turnOff: "이 작업의 알림
|
|
838
|
+
on: "이 작업의 알림이 활성화되어 있습니다",
|
|
839
|
+
off: "이 작업의 알림이 비활성화되어 있습니다",
|
|
840
|
+
turnOn: "이 작업의 알림 활성화",
|
|
841
|
+
turnOff: "이 작업의 알림 비활성화",
|
|
828
842
|
},
|
|
829
843
|
},
|
|
830
844
|
myDecisions: {
|
|
@@ -1307,6 +1321,7 @@ export const ko: Messages = {
|
|
|
1307
1321
|
name: "이름",
|
|
1308
1322
|
avatar: "아바타",
|
|
1309
1323
|
kind: "계정 종류",
|
|
1324
|
+
account: "메신저 계정",
|
|
1310
1325
|
},
|
|
1311
1326
|
event: {
|
|
1312
1327
|
personJoined: () => "보드에 들어왔습니다",
|
|
@@ -1320,6 +1335,10 @@ export const ko: Messages = {
|
|
|
1320
1335
|
managerCleared: (login) => `${login}의 매니저 지정을 해제했습니다`,
|
|
1321
1336
|
emailChanged: (login) => `${login}의 업무 이메일을 바꿨습니다`,
|
|
1322
1337
|
emailCleared: (login) => `${login}의 업무 이메일을 지웠습니다`,
|
|
1338
|
+
accountLinked: (login, messenger, account) =>
|
|
1339
|
+
`${messenger} 계정 ${asObject(account)} ${login}의 계정으로 연결했습니다`,
|
|
1340
|
+
accountUnlinked: (login, messenger, account) =>
|
|
1341
|
+
`${login}의 ${messenger} 계정 ${account} 연결을 해제했습니다`,
|
|
1323
1342
|
personUpdated: (fields, login) => `${login}의 ${asObject(fields)} 바꿨습니다`,
|
|
1324
1343
|
agentRunning: (agent) =>
|
|
1325
1344
|
agent === undefined ? "실행 중입니다" : `${asSubject(agent)} 실행 중임을 확인했습니다`,
|
|
@@ -1950,6 +1969,24 @@ export const ko: Messages = {
|
|
|
1950
1969
|
title: "그런 에이전트 계정이 없습니다",
|
|
1951
1970
|
body: "없는 계정이거나, 볼 수 없는 계정입니다.",
|
|
1952
1971
|
},
|
|
1972
|
+
offers: {
|
|
1973
|
+
title: "제안된 시크릿",
|
|
1974
|
+
offerTitle: "시크릿 제안",
|
|
1975
|
+
offerAria: "시크릿 제안",
|
|
1976
|
+
intro: (name: string, days: number) =>
|
|
1977
|
+
`${name}에게 알려지며, 받을지 말지는 계정이 직접 정합니다. 값은 여기에 한 번 입력하면 누구에게도 보이지 않으며, 받지 않은 제안은 ${days}일 뒤 사라집니다.`,
|
|
1978
|
+
waits: (name: string) =>
|
|
1979
|
+
`받을지 말지는 ${name} 계정이 직접 정합니다. 값은 보이지 않습니다.`,
|
|
1980
|
+
own: "명령으로 받거나 받지 않습니다: console secrets --offered",
|
|
1981
|
+
name: "이름",
|
|
1982
|
+
namePlaceholder: "mail.password",
|
|
1983
|
+
value: "값",
|
|
1984
|
+
note: "용도",
|
|
1985
|
+
offer: "제안",
|
|
1986
|
+
someone: "지금은 없는 사람",
|
|
1987
|
+
takenAs: (name: string) => `받은 이름: ${name}`,
|
|
1988
|
+
state: { waiting: "대기 중", taken: "받음", left: "받지 않음", lapsed: "기한 지남" },
|
|
1989
|
+
},
|
|
1953
1990
|
notSupervised: {
|
|
1954
1991
|
title: "감독자만 볼 수 있습니다",
|
|
1955
1992
|
body: "에이전트가 하는 일은 매니저와 그 위의 매니저들, 그리고 관리자만 볼 수 있습니다.",
|
|
@@ -1963,6 +2000,8 @@ export const ko: Messages = {
|
|
|
1963
2000
|
failed: "실패",
|
|
1964
2001
|
unheard: "응답 없음",
|
|
1965
2002
|
since: { before: "", after: "부터" },
|
|
2003
|
+
sinceAs: (state) => ({ before: "", after: `부터 ${state}` }),
|
|
2004
|
+
reasonAt: { before: " (", after: ")" },
|
|
1966
2005
|
until: { before: "", after: "까지" },
|
|
1967
2006
|
heard: "러너의 마지막 응답",
|
|
1968
2007
|
reasons: {
|
|
@@ -2307,6 +2346,12 @@ export const ko: Messages = {
|
|
|
2307
2346
|
submit: "에이전트 계정 추가",
|
|
2308
2347
|
},
|
|
2309
2348
|
},
|
|
2349
|
+
status: {
|
|
2350
|
+
thinking: "생각 중",
|
|
2351
|
+
working: "작업 중 · 답이 조금 늦어요",
|
|
2352
|
+
limited: "충전 중",
|
|
2353
|
+
back: "{time}에 돌아와요",
|
|
2354
|
+
},
|
|
2310
2355
|
},
|
|
2311
2356
|
|
|
2312
2357
|
sessions: {
|
package/src/index.ts
CHANGED
package/src/limits.ts
CHANGED
|
@@ -61,6 +61,16 @@ export const MAX_PERSON_NAME_LENGTH = 80;
|
|
|
61
61
|
export const MAX_AGENT_SECRET_NAME_LENGTH = 64;
|
|
62
62
|
export const MAX_AGENT_SECRET_BYTES = 8 * 1024;
|
|
63
63
|
export const MAX_AGENT_SECRETS = 200;
|
|
64
|
+
/**
|
|
65
|
+
* A secret a member offers an agent account (ADR-0169): what it is for, in a line; how many
|
|
66
|
+
* offers wait for one account at once, and how many of them one member's; how long one waits
|
|
67
|
+
* before it is gone; and how many the account's record of them keeps once they no longer wait.
|
|
68
|
+
*/
|
|
69
|
+
export const MAX_SECRET_OFFER_NOTE_LENGTH = 200;
|
|
70
|
+
export const MAX_SECRET_OFFERS_WAITING = 20;
|
|
71
|
+
export const MAX_SECRET_OFFERS_BY_ONE = 5;
|
|
72
|
+
export const SECRET_OFFER_DAYS = 7;
|
|
73
|
+
export const MAX_SECRET_OFFERS_KEPT = 200;
|
|
64
74
|
/** What a signal says to an agent (ADR-0085): a few paragraphs. */
|
|
65
75
|
export const MAX_SIGNAL_LENGTH = 8000;
|
|
66
76
|
/** What a wake a runner raises itself is about, in a line: a thread at a messenger, say. */
|
|
@@ -9,6 +9,7 @@ export const PLUGIN_CAPABILITIES = [
|
|
|
9
9
|
"people:read",
|
|
10
10
|
"people:read:all",
|
|
11
11
|
"people:read:email",
|
|
12
|
+
"people:accounts",
|
|
12
13
|
"people:act",
|
|
13
14
|
"projects:read",
|
|
14
15
|
"projects:read:all",
|
|
@@ -67,6 +68,12 @@ export const CAPABILITY_WORDS: Readonly<Record<PluginCapability, CapabilityWords
|
|
|
67
68
|
opens: "the work email of the people it may read, to match them to accounts elsewhere",
|
|
68
69
|
reach: "the addresses of the people its role holders may see",
|
|
69
70
|
},
|
|
71
|
+
"people:accounts": {
|
|
72
|
+
opens:
|
|
73
|
+
"saying which account at a messenger is which member's: an agent account's wake from there says by it who wrote, and whether a supervisor of its own did",
|
|
74
|
+
reach:
|
|
75
|
+
"anyone's account at a messenger said to be a supervisor's, whose word there an agent account then takes as an instruction; every change is an event of the workspace, under the plugin's name",
|
|
76
|
+
},
|
|
70
77
|
"people:act": {
|
|
71
78
|
opens:
|
|
72
79
|
"acting for a person who did something elsewhere: a command run and a decision answered as them, within what they may do, recorded as theirs through the plugin",
|
|
@@ -107,7 +114,7 @@ export const CAPABILITY_WORDS: Readonly<Record<PluginCapability, CapabilityWords
|
|
|
107
114
|
},
|
|
108
115
|
"notifications:read": {
|
|
109
116
|
opens:
|
|
110
|
-
"with a console event it hears, whom the console told of it and under which kind, to carry it to them elsewhere",
|
|
117
|
+
"with a console event it hears, whom the console told of it and under which kind, to carry it to them elsewhere; and of whoever calls it, what they chose to be told of",
|
|
111
118
|
reach: "who is told of what on those boards, and so what each member chose to be told of",
|
|
112
119
|
},
|
|
113
120
|
jobs: {
|
package/src/plugin/context.ts
CHANGED
|
@@ -9,6 +9,7 @@ import type {
|
|
|
9
9
|
RestDocument,
|
|
10
10
|
RestDocumentSummary,
|
|
11
11
|
RestMember,
|
|
12
|
+
RestNotificationSettings,
|
|
12
13
|
RestPerson,
|
|
13
14
|
RestProject,
|
|
14
15
|
RestRun,
|
|
@@ -17,7 +18,7 @@ import type {
|
|
|
17
18
|
RestTaskPatch,
|
|
18
19
|
RestTeam,
|
|
19
20
|
} from "../schemas.js";
|
|
20
|
-
import type { WeekStart } from "../vocabulary.js";
|
|
21
|
+
import type { PeopleVisibility, WeekStart } from "../vocabulary.js";
|
|
21
22
|
import type { PluginFileHandle } from "./args.js";
|
|
22
23
|
|
|
23
24
|
/** A schema as the Standard Schema interface spells one: what every build of zod implements, so that a plugin's own copy validates its records. */
|
|
@@ -307,6 +308,15 @@ export interface PluginWorkspace {
|
|
|
307
308
|
readonly timeZoneSet: boolean;
|
|
308
309
|
/** The day the week begins on (ADR-0035): `auto` leaves it to the language of whoever reads. */
|
|
309
310
|
readonly weekStart: WeekStart;
|
|
311
|
+
/**
|
|
312
|
+
* Whether the console shows every member to every member (ADR-0035): `everyone`, or
|
|
313
|
+
* `shared_projects`, where a member sees those they share a project with, themselves and the
|
|
314
|
+
* administrators. Where it is `shared_projects`, "everyone" is more than any one member sees:
|
|
315
|
+
* a plugin that holds the whole directory reads the people its caller may see with
|
|
316
|
+
* `seenByCaller` (ADR-0168), and says to an administrator whom a notice to everyone reaches.
|
|
317
|
+
* Left out by a console older than 0.6.3.
|
|
318
|
+
*/
|
|
319
|
+
readonly peopleVisibility?: PeopleVisibility;
|
|
310
320
|
/**
|
|
311
321
|
* The console's public origin (`PUBLIC_URL`), for a link to the console in what a plugin
|
|
312
322
|
* writes elsewhere; `null` where the deployment names none.
|
|
@@ -345,25 +355,111 @@ export interface DecisionAsk {
|
|
|
345
355
|
readonly about: { readonly collection: string; readonly id: string };
|
|
346
356
|
}
|
|
347
357
|
|
|
358
|
+
/** An account at a messenger said to be a member's (ADR-0164): the messenger by its name, the workspace there and the account by the messenger's ids. */
|
|
359
|
+
export interface PluginMessengerAccount {
|
|
360
|
+
/** What `list` reads on from. */
|
|
361
|
+
readonly id: string;
|
|
362
|
+
readonly personId: string;
|
|
363
|
+
readonly messenger: string;
|
|
364
|
+
readonly workspace: string;
|
|
365
|
+
readonly account: string;
|
|
366
|
+
/** When it was said, an instant as text. */
|
|
367
|
+
readonly since: string;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* What a read of people, or of the teams' members, takes beside what it names (ADR-0168).
|
|
372
|
+
*
|
|
373
|
+
* `seenByCaller: true` answers among the people the caller may see, as the console's own
|
|
374
|
+
* listing of people shows that member (ADR-0035), whatever the plugin holds. A plugin with
|
|
375
|
+
* `people:read` alone reads so already; one with `people:read:all`, which opens the whole
|
|
376
|
+
* directory to its hooks and jobs, reads everyone in a person's call too unless it asks for
|
|
377
|
+
* this, and so shows a member people the console keeps from them where its people are kept
|
|
378
|
+
* apart (`peopleVisibility` of the workspace). The view is a person's: the caller's own, their
|
|
379
|
+
* agent's, an agent account's, or that of the person a plugin acts for, as a member. A hook, a
|
|
380
|
+
* job and a plugin calling as itself have no caller, and the read is refused
|
|
381
|
+
* (`plugin.forbidden`), never answered with everyone. Refused as `plugin.invalid_args` where it
|
|
382
|
+
* is neither `true` nor `false`; a console older than 0.6.3 reads past it and answers everyone
|
|
383
|
+
* with `people:read:all`, so a plugin that relies on it names 0.6.3 as the oldest console it
|
|
384
|
+
* runs on.
|
|
385
|
+
*/
|
|
386
|
+
export interface PeopleReadOptions {
|
|
387
|
+
readonly seenByCaller?: boolean;
|
|
388
|
+
}
|
|
389
|
+
|
|
348
390
|
/** The console's board, as a plugin reaches it with the `board:*` capabilities, each read the caller's own. */
|
|
349
391
|
export interface PluginConsole {
|
|
350
392
|
workspace(): Promise<PluginWorkspace>;
|
|
351
393
|
people: {
|
|
352
|
-
list(options?: { readonly q?: string }): Promise<readonly RestPerson[]>;
|
|
353
|
-
get(id: string): Promise<RestPerson | null>;
|
|
394
|
+
list(options?: { readonly q?: string } & PeopleReadOptions): Promise<readonly RestPerson[]>;
|
|
395
|
+
get(id: string, options?: PeopleReadOptions): Promise<RestPerson | null>;
|
|
354
396
|
/**
|
|
355
397
|
* The active people a role of the plugin was granted to, by name, through a project or with
|
|
356
398
|
* everyone, and everyone for `defaultRole` (ADR-0063); for a role that follows the reporting
|
|
357
399
|
* line, whoever manages someone besides (ADR-0068). An administrator holds every role, and is
|
|
358
400
|
* listed only where they were granted it or manage someone.
|
|
359
401
|
*/
|
|
360
|
-
granted(role: string): Promise<readonly RestPerson[]>;
|
|
402
|
+
granted(role: string, options?: PeopleReadOptions): Promise<readonly RestPerson[]>;
|
|
361
403
|
};
|
|
362
|
-
/**
|
|
404
|
+
/**
|
|
405
|
+
* Which account at a messenger is a member's (ADR-0164), with `people:accounts`: said by a
|
|
406
|
+
* plugin that matched the member to the account by something the messenger and the console
|
|
407
|
+
* both hold, an address say, and never by a name or by what a message says. An agent account's
|
|
408
|
+
* wake from that messenger says by it who wrote, and whether a supervisor of the account did,
|
|
409
|
+
* whose word there instructs it; so a plugin says an account only as surely as it would let
|
|
410
|
+
* that person instruct, and takes it back when the match no longer holds. What a plugin said
|
|
411
|
+
* is its own to list and to take back, and counts while the plugin is enabled and holds the
|
|
412
|
+
* capability. Left out by a console older than the capability.
|
|
413
|
+
*/
|
|
414
|
+
accounts: {
|
|
415
|
+
/** What this plugin said of a workspace of a messenger, in the order it was said: a page, and `after` to read on from where there is more. */
|
|
416
|
+
list(where: {
|
|
417
|
+
readonly messenger: string;
|
|
418
|
+
readonly workspace: string;
|
|
419
|
+
readonly after?: string;
|
|
420
|
+
readonly limit?: number;
|
|
421
|
+
}): Promise<{
|
|
422
|
+
readonly items: readonly PluginMessengerAccount[];
|
|
423
|
+
readonly after: string | null;
|
|
424
|
+
}>;
|
|
425
|
+
/**
|
|
426
|
+
* Says that the account is the person's. What this plugin said before of the account, or of
|
|
427
|
+
* the person in that workspace, gives way; what another plugin said of either stands
|
|
428
|
+
* (`plugin.conflict`). The person is active (`plugin.not_found` otherwise).
|
|
429
|
+
*/
|
|
430
|
+
put(account: {
|
|
431
|
+
readonly personId: string;
|
|
432
|
+
readonly messenger: string;
|
|
433
|
+
readonly workspace: string;
|
|
434
|
+
readonly account: string;
|
|
435
|
+
}): Promise<PluginMessengerAccount>;
|
|
436
|
+
/** Takes back what this plugin said of the person's account in that workspace; whether it had said one. */
|
|
437
|
+
remove(account: {
|
|
438
|
+
readonly personId: string;
|
|
439
|
+
readonly messenger: string;
|
|
440
|
+
readonly workspace: string;
|
|
441
|
+
}): Promise<boolean>;
|
|
442
|
+
};
|
|
443
|
+
/**
|
|
444
|
+
* What the caller chose to be told of (ADR-0165), for a plugin that carries notifications
|
|
445
|
+
* elsewhere (`notifications:read`) to show beside its own choice: a kind that is off in the
|
|
446
|
+
* console makes no notification to carry. A member's own call reads their own, a person's,
|
|
447
|
+
* their agent's or an agent account's, and any other caller is `plugin.forbidden`, a hook, a
|
|
448
|
+
* job and a call a plugin makes for someone among them. `projectsOff` names those the plugin is on.
|
|
449
|
+
* Left out by a console older than 0.6.2.
|
|
450
|
+
*/
|
|
451
|
+
notifications: {
|
|
452
|
+
settings(): Promise<RestNotificationSettings>;
|
|
453
|
+
};
|
|
454
|
+
/**
|
|
455
|
+
* The teams of the workspace (ADR-0073): a name and its members, among the people the caller
|
|
456
|
+
* may see; among everyone with `people:read:all`, unless `seenByCaller` asks for the caller's
|
|
457
|
+
* own view (ADR-0168).
|
|
458
|
+
*/
|
|
363
459
|
teams: {
|
|
364
|
-
list(): Promise<readonly RestTeam[]>;
|
|
460
|
+
list(options?: PeopleReadOptions): Promise<readonly RestTeam[]>;
|
|
365
461
|
/** One team by its key (ADR-0074), what a grant and a person's `teams` name it by. */
|
|
366
|
-
get(key: string): Promise<RestTeam | null>;
|
|
462
|
+
get(key: string, options?: PeopleReadOptions): Promise<RestTeam | null>;
|
|
367
463
|
};
|
|
368
464
|
projects: {
|
|
369
465
|
list(): Promise<readonly RestProject[]>;
|
package/src/plugin/limits.ts
CHANGED
|
@@ -50,6 +50,13 @@ export const PLUGIN_EVENT_DAYS = 90;
|
|
|
50
50
|
export const MAX_PLUGIN_RETENTION_DAYS = 3650;
|
|
51
51
|
/** How many records one page of a list carries at most. */
|
|
52
52
|
export const PLUGIN_LIST_LIMIT = 200;
|
|
53
|
+
/**
|
|
54
|
+
* How many accounts at a messenger a workspace keeps as its members' (ADR-0164), of every
|
|
55
|
+
* messenger and every plugin together, and the characters of a messenger's id for a workspace or
|
|
56
|
+
* an account there.
|
|
57
|
+
*/
|
|
58
|
+
export const MAX_MESSENGER_ACCOUNTS = 20_000;
|
|
59
|
+
export const MAX_MESSENGER_ID_LENGTH = 64;
|
|
53
60
|
/** How long plugin code may run: a command; a query or an endpoint; a hook; a job; `onEnable`, `onDisable` and an upgrade. */
|
|
54
61
|
export const PLUGIN_COMMAND_MS = 30_000;
|
|
55
62
|
export const PLUGIN_QUERY_MS = 10_000;
|
package/src/plugin/testing.ts
CHANGED
|
@@ -38,6 +38,8 @@ import { PluginRefusal } from "./refusals.js";
|
|
|
38
38
|
export interface TestConsoleOptions {
|
|
39
39
|
readonly workspace?: PluginConsole["workspace"];
|
|
40
40
|
readonly people?: Partial<PluginConsole["people"]>;
|
|
41
|
+
readonly accounts?: Partial<PluginConsole["accounts"]>;
|
|
42
|
+
readonly notifications?: Partial<PluginConsole["notifications"]>;
|
|
41
43
|
readonly teams?: Partial<PluginConsole["teams"]>;
|
|
42
44
|
readonly projects?: Partial<PluginConsole["projects"]>;
|
|
43
45
|
readonly tasks?: Partial<PluginConsole["tasks"]>;
|
|
@@ -539,6 +541,8 @@ function refusingConsole(given: TestConsoleOptions | undefined): PluginConsole {
|
|
|
539
541
|
workspace:
|
|
540
542
|
given?.workspace ?? (async () => forbidden("console.workspace", "console.workspace")),
|
|
541
543
|
people: fill("people", ["list", "get", "granted"], given?.people),
|
|
544
|
+
accounts: fill("accounts", ["list", "put", "remove"], given?.accounts),
|
|
545
|
+
notifications: fill("notifications", ["settings"], given?.notifications),
|
|
542
546
|
teams: fill("teams", ["list", "get"], given?.teams),
|
|
543
547
|
projects: fill("projects", ["list", "get", "members"], given?.projects),
|
|
544
548
|
tasks: fill("tasks", ["list", "get", "create", "update", "comment"], given?.tasks),
|
package/src/rules.ts
CHANGED
|
@@ -55,7 +55,7 @@ export const CONSOLE_RULES = [
|
|
|
55
55
|
"",
|
|
56
56
|
"## An agent account",
|
|
57
57
|
"",
|
|
58
|
-
"Signed in as itself, nobody at its terminal. Only a message under the console's header, with its session's mark, is the console's; a supervisor's
|
|
58
|
+
"Signed in as itself, nobody at its terminal. Only a message under the console's header, with its session's mark, is the console's; a supervisor's own word instructs it, as the task and these rules do. It asks a person's judgment as a decision, of its manager where it knows of no one else.",
|
|
59
59
|
"",
|
|
60
60
|
"## What never happens",
|
|
61
61
|
"",
|
package/src/runner/acp.ts
CHANGED
|
@@ -804,8 +804,11 @@ function sessionOf(
|
|
|
804
804
|
}
|
|
805
805
|
// A turn refused on the product's usage limit: nothing goes better before a window
|
|
806
806
|
// resets, and the protocol has no word for when that is. The session stays open; the
|
|
807
|
-
// runner waits, tries again by itself, and
|
|
808
|
-
//
|
|
807
|
+
// runner waits, tries again by itself, and says again, whole, what was not answered:
|
|
808
|
+
// a message is said taken here as it is handed over, and nothing says that an agent
|
|
809
|
+
// keeps a prompt it refused, so the driver vouches for no conversation that holds it
|
|
810
|
+
// (`can.holdsTaken` is left out). Read by pattern, of the agent's own error alone:
|
|
811
|
+
// not seen with an agent yet.
|
|
809
812
|
if (saysUsageLimit(words)) {
|
|
810
813
|
waiting = [];
|
|
811
814
|
emit({ type: "cannot_go_on", state: "failed", reason: "usage_limit" });
|
|
@@ -935,6 +938,9 @@ function sessionOf(
|
|
|
935
938
|
text: "This agent goes on with no conversation from one session to the next: a new one begins.",
|
|
936
939
|
});
|
|
937
940
|
}
|
|
941
|
+
// A conversation begun where another was to be gone on with is said as that (ADR-0166):
|
|
942
|
+
// the runner counts nothing the agent was handed before as held by it.
|
|
943
|
+
const anew = session === undefined && options.resume !== undefined;
|
|
938
944
|
if (session === undefined) {
|
|
939
945
|
opened = await connection.request("session/new", place);
|
|
940
946
|
session = isObject(opened) ? textOf(opened.sessionId) : undefined;
|
|
@@ -951,7 +957,7 @@ function sessionOf(
|
|
|
951
957
|
const agent = agentOf(initialized);
|
|
952
958
|
await stand(standingOf(opened), agent.name);
|
|
953
959
|
product = agent.version ?? null;
|
|
954
|
-
emit({ type: "conversation", id: session });
|
|
960
|
+
emit({ type: "conversation", id: session, ...(anew ? { anew: true } : {}) });
|
|
955
961
|
runs();
|
|
956
962
|
ready = true;
|
|
957
963
|
if (waiting.length > 0) {
|