@mentiko/pty-mgr 1.2.4 → 1.3.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mentiko/pty-mgr",
3
- "version": "1.2.4",
3
+ "version": "1.3.0",
4
4
  "description": "PTY session manager with terminal emulation for programmatic session control.",
5
5
  "type": "module",
6
6
  "main": "lib/pty-manager.mjs",
@@ -26,10 +26,10 @@
26
26
  "@xterm/headless": "^6.0.0"
27
27
  },
28
28
  "optionalDependencies": {
29
- "@mentiko/pty-mgr-linux-x64": "1.2.4",
30
- "@mentiko/pty-mgr-linux-arm64": "1.2.4",
31
- "@mentiko/pty-mgr-darwin-x64": "1.2.4",
32
- "@mentiko/pty-mgr-darwin-arm64": "1.2.4"
29
+ "@mentiko/pty-mgr-linux-x64": "1.3.0",
30
+ "@mentiko/pty-mgr-linux-arm64": "1.3.0",
31
+ "@mentiko/pty-mgr-darwin-x64": "1.3.0",
32
+ "@mentiko/pty-mgr-darwin-arm64": "1.3.0"
33
33
  },
34
34
  "engines": {
35
35
  "bun": ">=1.0"
@@ -37,7 +37,9 @@
37
37
  "files": [
38
38
  "bin/pty-mgr",
39
39
  "lib/",
40
+ "pty-mgr.config.json",
40
41
  "README.md",
42
+ "CHANGELOG.md",
41
43
  "LICENSE"
42
44
  ],
43
45
  "keywords": [
@@ -0,0 +1,187 @@
1
+ {
2
+ "adapters": {
3
+ "claude": {
4
+ "command": "claude",
5
+ "defaultArgs": ["--dangerously-skip-permissions"],
6
+ "roots": [
7
+ "${home}/.claude/projects/${projectKey}",
8
+ "${home}/.claude/projects"
9
+ ],
10
+ "sessionTimestampPaths": ["timestamp"],
11
+ "assistant": {
12
+ "where": {
13
+ "type": "assistant"
14
+ },
15
+ "complete": {
16
+ "message.stop_reason": "end_turn"
17
+ },
18
+ "text": [
19
+ {
20
+ "array": "message.content",
21
+ "where": {
22
+ "type": "text"
23
+ },
24
+ "path": "text"
25
+ }
26
+ ]
27
+ },
28
+ "user": {
29
+ "where": {
30
+ "type": "user",
31
+ "message.role": "user"
32
+ },
33
+ "text": [
34
+ {
35
+ "path": "message.content"
36
+ },
37
+ {
38
+ "array": "message.content",
39
+ "where": {
40
+ "type": "text"
41
+ },
42
+ "path": "text"
43
+ }
44
+ ]
45
+ }
46
+ },
47
+ "codex": {
48
+ "command": "codex",
49
+ "defaultArgs": ["--yolo"],
50
+ "roots": [
51
+ "${home}/.codex/sessions",
52
+ "${home}/.codex/archived_sessions"
53
+ ],
54
+ "sessionTimestampPaths": ["payload.timestamp", "timestamp"],
55
+ "assistant": {
56
+ "where": {
57
+ "type": "response_item",
58
+ "payload.type": "message",
59
+ "payload.role": "assistant"
60
+ },
61
+ "text": [
62
+ {
63
+ "array": "payload.content",
64
+ "where": {
65
+ "type": "output_text"
66
+ },
67
+ "path": "text"
68
+ }
69
+ ]
70
+ },
71
+ "user": {
72
+ "where": {
73
+ "type": "response_item",
74
+ "payload.type": "message",
75
+ "payload.role": "user"
76
+ },
77
+ "text": [
78
+ {
79
+ "array": "payload.content",
80
+ "where": {
81
+ "type": "input_text"
82
+ },
83
+ "path": "text"
84
+ }
85
+ ]
86
+ },
87
+ "stripPatterns": [
88
+ "\\n*<oai-mem-citation>[\\s\\S]*?</oai-mem-citation>\\s*$"
89
+ ]
90
+ }
91
+ },
92
+ "flows": {
93
+ "spec-writer": {
94
+ "agents": {
95
+ "author": {
96
+ "kind": "claude",
97
+ "base": "flow-author"
98
+ },
99
+ "reviewer": {
100
+ "kind": "codex",
101
+ "base": "flow-reviewer"
102
+ }
103
+ },
104
+ "start": {
105
+ "to": "author",
106
+ "template": "{task}"
107
+ },
108
+ "turns": [
109
+ {
110
+ "from": "author",
111
+ "to": "reviewer",
112
+ "append": "Based on this, what gaps do you see and what should change next?"
113
+ },
114
+ {
115
+ "from": "reviewer",
116
+ "to": "author",
117
+ "append": "Use this feedback to continue toward the goal. Report the updated result."
118
+ }
119
+ ],
120
+ "maxCycles": 1,
121
+ "watchInterval": "10s",
122
+ "settleMs": 1500
123
+ },
124
+ "review-loop": {
125
+ "agents": {
126
+ "first": {
127
+ "kind": "claude",
128
+ "base": "flow-first"
129
+ },
130
+ "second": {
131
+ "kind": "codex",
132
+ "base": "flow-second"
133
+ }
134
+ },
135
+ "start": {
136
+ "to": "first",
137
+ "template": "{task}"
138
+ },
139
+ "turns": [
140
+ {
141
+ "from": "first",
142
+ "to": "second",
143
+ "append": "Based on that information, what do you think should happen next?"
144
+ },
145
+ {
146
+ "from": "second",
147
+ "to": "first",
148
+ "append": "Continue from this feedback and keep the goal in mind: {goal}"
149
+ }
150
+ ],
151
+ "maxCycles": 1,
152
+ "watchInterval": "10s",
153
+ "settleMs": 1500
154
+ },
155
+ "code-review": {
156
+ "agents": {
157
+ "writer": {
158
+ "kind": "codex",
159
+ "base": "flow-writer"
160
+ },
161
+ "reviewer": {
162
+ "kind": "claude",
163
+ "base": "flow-reviewer"
164
+ }
165
+ },
166
+ "start": {
167
+ "to": "writer",
168
+ "template": "{task}"
169
+ },
170
+ "turns": [
171
+ {
172
+ "from": "writer",
173
+ "to": "reviewer",
174
+ "append": "The other agent just implemented the task above in this repository. Review the ACTUAL code on disk, not this summary. Run `git status` and `git diff` to see the changes (or `git show HEAD` / `git diff HEAD~1` if they were already committed), then read the changed and new files. Check for correctness bugs, missing edge cases, security issues, and anything that does not satisfy the task. Give specific, actionable feedback as a short numbered list, each item referencing file:line. If the implementation is solid, say so explicitly."
175
+ },
176
+ {
177
+ "from": "reviewer",
178
+ "to": "writer",
179
+ "append": "The above is code review feedback on the implementation you just wrote. Apply every fix you agree with directly in the code, and briefly note anything you are intentionally skipping and why. Then report the final state. Original task: {goal}"
180
+ }
181
+ ],
182
+ "maxCycles": 1,
183
+ "watchInterval": "10s",
184
+ "settleMs": 1500
185
+ }
186
+ }
187
+ }