@dmsdc-ai/aigentry-telepty 0.1.63 → 0.1.65

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.
Files changed (4) hide show
  1. package/CLAUDE.md +20 -0
  2. package/cli.js +1 -1
  3. package/package.json +1 -1
  4. package/tui.js +1 -1
package/CLAUDE.md CHANGED
@@ -74,3 +74,23 @@ npm version patch --no-git-tag-version && npm publish --access public
74
74
  | 0.1.60 | TUI P1 — s=start, k=kill, p=purge stale |
75
75
  | 0.1.59 | wrapped inject 503 반환 + 테스트 43/43 정합성 |
76
76
  | 0.1.58 | inject busy-session CR/text 순서 수정 + kittyWindowId 캐시 무효화 |
77
+
78
+ ## 자율 재귀적 오케스트레이션
79
+
80
+ 이 세션은 작업 복잡도가 높거나, 독립 도메인이 식별되거나, 컨텍스트 분리가 필요하다고 판단되면 — 사용자 지시 없이 자율적으로:
81
+
82
+ 1. 자기 프로젝트 하위에 폴더를 생성한다
83
+ 2. 해당 폴더에 CLAUDE.md를 작성한다 (역할, 범위, 상위 세션과의 통신 방법)
84
+ 3. aigentry scaffold 또는 telepty allow로 하위 Claude 세션을 생성한다
85
+ 4. telepty inject로 하위 세션에 태스크를 주입한다
86
+ 5. 하위 세션의 결과를 수신하고 통합한다
87
+
88
+ 판단 기준:
89
+ - 현재 작업이 2개 이상 독립 도메인을 포함할 때
90
+ - 컨텍스트 윈도우의 30% 이상을 단일 하위 작업이 차지할 때
91
+ - 반복적 전문 작업이 식별될 때 (SEO, 특정 채널, 특정 데이터 소스 등)
92
+
93
+ 원칙:
94
+ - YAGNI: 진짜 필요할 때만 생성. 과잉 분리 금지.
95
+ - 하위 세션 완료 시 오케스트레이터(상위)에게 반드시 보고.
96
+ - 하위 세션의 결과물은 상위 프로젝트에 통합(커밋).
package/cli.js CHANGED
@@ -1271,7 +1271,7 @@ async function main() {
1271
1271
  const sessionIdForProject = `${name}-${cli.split(' ')[0]}`;
1272
1272
  const shellCmd = `unset TELEPTY_SESSION_ID; ${nodeFullPath} ${teleptyFullPath} allow --id ${sessionIdForProject} ${cliFullPath}${cliFullArgs ? ' ' + cliFullArgs : ''}`;
1273
1273
  const launchArgs = ['@', '--to', `unix:${kittySocket}`,
1274
- 'launch', '--type=tab', '--tab-title', name, '--cwd', cwd,
1274
+ 'launch', '--type=os-window', '--cwd', cwd,
1275
1275
  '--env', 'TELEPTY_SESSION_ID=',
1276
1276
  '--env', `PATH=${process.env.PATH}`,
1277
1277
  '/bin/zsh', '-c', shellCmd];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmsdc-ai/aigentry-telepty",
3
- "version": "0.1.63",
3
+ "version": "0.1.65",
4
4
  "main": "daemon.js",
5
5
  "bin": {
6
6
  "aigentry-telepty": "install.js",
package/tui.js CHANGED
@@ -139,7 +139,7 @@ class TuiDashboard {
139
139
 
140
140
  try {
141
141
  execFileSync('kitty', ['@', '--to', `unix:${sock}`,
142
- 'launch', '--type=tab', '--tab-title', project.name, '--cwd', project.cwd,
142
+ 'launch', '--type=os-window', '--cwd', project.cwd,
143
143
  '--env', 'TELEPTY_SESSION_ID=',
144
144
  '--env', `PATH=${process.env.PATH}`,
145
145
  '/bin/zsh', '-c', shellCmd