terminal-pilot 0.0.21 → 0.0.23
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/dist/cli.js +614 -250
- package/dist/cli.js.map +4 -4
- package/dist/commands/close-session.js +6 -4
- package/dist/commands/close-session.js.map +3 -3
- package/dist/commands/create-session.js +6 -4
- package/dist/commands/create-session.js.map +3 -3
- package/dist/commands/fill.js +6 -4
- package/dist/commands/fill.js.map +3 -3
- package/dist/commands/get-session.js +6 -4
- package/dist/commands/get-session.js.map +3 -3
- package/dist/commands/index.d.ts +35 -35
- package/dist/commands/index.js +97 -36
- package/dist/commands/index.js.map +4 -4
- package/dist/commands/install.js +74 -20
- package/dist/commands/install.js.map +4 -4
- package/dist/commands/installer.js +36 -2
- package/dist/commands/installer.js.map +4 -4
- package/dist/commands/list-sessions.js +6 -4
- package/dist/commands/list-sessions.js.map +3 -3
- package/dist/commands/press-key.js +6 -4
- package/dist/commands/press-key.js.map +3 -3
- package/dist/commands/read-history.js +6 -4
- package/dist/commands/read-history.js.map +3 -3
- package/dist/commands/read-screen.js +6 -4
- package/dist/commands/read-screen.js.map +3 -3
- package/dist/commands/resize.js +6 -4
- package/dist/commands/resize.js.map +3 -3
- package/dist/commands/runtime.js +6 -4
- package/dist/commands/runtime.js.map +3 -3
- package/dist/commands/screenshot.js +22 -8
- package/dist/commands/screenshot.js.map +4 -4
- package/dist/commands/send-signal.js +6 -4
- package/dist/commands/send-signal.js.map +3 -3
- package/dist/commands/type.js +6 -4
- package/dist/commands/type.js.map +3 -3
- package/dist/commands/uninstall.js +39 -5
- package/dist/commands/uninstall.js.map +4 -4
- package/dist/commands/wait-for-exit.js +6 -4
- package/dist/commands/wait-for-exit.js.map +3 -3
- package/dist/commands/wait-for.js +6 -4
- package/dist/commands/wait-for.js.map +3 -3
- package/dist/errors.d.ts +1 -0
- package/dist/errors.js +8 -0
- package/dist/errors.js.map +7 -0
- package/dist/index.js +8 -4
- package/dist/index.js.map +3 -3
- package/dist/terminal-pilot.js +6 -4
- package/dist/terminal-pilot.js.map +3 -3
- package/dist/terminal-session.js +6 -4
- package/dist/terminal-session.js.map +3 -3
- package/dist/testing/cli-repl.js +614 -250
- package/dist/testing/cli-repl.js.map +4 -4
- package/dist/testing/qa-cli.js +614 -250
- package/dist/testing/qa-cli.js.map +4 -4
- package/node_modules/@poe-code/agent-skill-config/dist/apply.js +2 -1
- package/node_modules/@poe-code/agent-skill-config/dist/bridge-active-skills.js +8 -9
- package/node_modules/@poe-code/agent-skill-config/dist/error-codes.d.ts +1 -0
- package/node_modules/@poe-code/agent-skill-config/dist/error-codes.js +5 -0
- package/node_modules/@poe-code/agent-skill-config/dist/git-exclude.js +18 -12
- package/node_modules/@poe-code/agent-skill-config/dist/templates.js +2 -1
- package/package.json +1 -1
|
@@ -33,6 +33,11 @@ var claudeCodeAgent = {
|
|
|
33
33
|
aliases: ["claude"],
|
|
34
34
|
binaryName: "claude",
|
|
35
35
|
apiShapes: ["anthropic-messages"],
|
|
36
|
+
otelCapture: {
|
|
37
|
+
env: {
|
|
38
|
+
CLAUDE_CODE_ENABLE_TELEMETRY: "1"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
36
41
|
configPath: "~/.claude/settings.json",
|
|
37
42
|
branding: {
|
|
38
43
|
colors: {
|
|
@@ -65,6 +70,16 @@ var codexAgent = {
|
|
|
65
70
|
summary: "Configure Codex to use Poe as the model provider.",
|
|
66
71
|
binaryName: "codex",
|
|
67
72
|
apiShapes: ["openai-responses"],
|
|
73
|
+
otelCapture: {
|
|
74
|
+
args: (endpoint, content) => [
|
|
75
|
+
"-c",
|
|
76
|
+
`otel.trace_exporter={"otlp-http"={endpoint=${JSON.stringify(`${endpoint}/v1/traces`)},protocol="json"}}`,
|
|
77
|
+
"-c",
|
|
78
|
+
`otel.exporter={"otlp-http"={endpoint=${JSON.stringify(`${endpoint}/v1/logs`)},protocol="json"}}`,
|
|
79
|
+
"-c",
|
|
80
|
+
`otel.log_user_prompt=${content}`
|
|
81
|
+
]
|
|
82
|
+
},
|
|
68
83
|
configPath: "~/.codex/config.toml",
|
|
69
84
|
branding: {
|
|
70
85
|
colors: {
|
|
@@ -100,6 +115,11 @@ var openCodeAgent = {
|
|
|
100
115
|
summary: "Configure OpenCode CLI to use the Poe API.",
|
|
101
116
|
binaryName: "opencode",
|
|
102
117
|
apiShapes: ["openai-chat-completions"],
|
|
118
|
+
otelCapture: {
|
|
119
|
+
env: {
|
|
120
|
+
OPENCODE_CONFIG_CONTENT: '{"experimental":{"openTelemetry":true}}'
|
|
121
|
+
}
|
|
122
|
+
},
|
|
103
123
|
configPath: "~/.config/opencode/config.json",
|
|
104
124
|
branding: {
|
|
105
125
|
colors: {
|
|
@@ -135,6 +155,7 @@ var gooseAgent = {
|
|
|
135
155
|
summary: "Block's open-source AI agent with ACP support.",
|
|
136
156
|
binaryName: "goose",
|
|
137
157
|
apiShapes: ["openai-chat-completions"],
|
|
158
|
+
otelCapture: {},
|
|
138
159
|
configPath: "~/.config/goose/config.yaml",
|
|
139
160
|
branding: {
|
|
140
161
|
colors: {
|
|
@@ -168,6 +189,12 @@ function freezeAgent(agent) {
|
|
|
168
189
|
if (agent.apiShapes !== void 0) {
|
|
169
190
|
Object.freeze(agent.apiShapes);
|
|
170
191
|
}
|
|
192
|
+
if (agent.otelCapture?.env !== void 0) {
|
|
193
|
+
Object.freeze(agent.otelCapture.env);
|
|
194
|
+
}
|
|
195
|
+
if (agent.otelCapture !== void 0) {
|
|
196
|
+
Object.freeze(agent.otelCapture);
|
|
197
|
+
}
|
|
171
198
|
Object.freeze(agent.branding.colors);
|
|
172
199
|
Object.freeze(agent.branding);
|
|
173
200
|
return Object.freeze(agent);
|
|
@@ -240,6 +267,7 @@ function getAgentConfig(agentId) {
|
|
|
240
267
|
}
|
|
241
268
|
|
|
242
269
|
// ../config-mutations/src/execution/apply-mutation.ts
|
|
270
|
+
import { randomUUID } from "node:crypto";
|
|
243
271
|
import path4 from "node:path";
|
|
244
272
|
|
|
245
273
|
// ../toolcraft-design/src/internal/color-support.ts
|
|
@@ -860,21 +888,27 @@ import path6 from "node:path";
|
|
|
860
888
|
|
|
861
889
|
// ../agent-skill-config/src/git-exclude.ts
|
|
862
890
|
import { execFileSync } from "node:child_process";
|
|
891
|
+
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
863
892
|
import * as fs from "node:fs";
|
|
864
893
|
import path7 from "node:path";
|
|
865
894
|
|
|
866
895
|
// ../agent-skill-config/src/bridge-active-skills.ts
|
|
867
896
|
import * as fs2 from "node:fs";
|
|
868
|
-
import { createHash, randomUUID } from "node:crypto";
|
|
897
|
+
import { createHash, randomUUID as randomUUID3 } from "node:crypto";
|
|
869
898
|
import path8 from "node:path";
|
|
870
899
|
|
|
900
|
+
// src/errors.ts
|
|
901
|
+
function hasOwnErrorCode3(error2, code) {
|
|
902
|
+
return error2 instanceof Error && Object.prototype.hasOwnProperty.call(error2, "code") && error2.code === code;
|
|
903
|
+
}
|
|
904
|
+
|
|
871
905
|
// src/commands/installer.ts
|
|
872
906
|
var DEFAULT_INSTALL_AGENT = "claude-code";
|
|
873
907
|
var DEFAULT_INSTALL_SCOPE = "local";
|
|
874
908
|
var TERMINAL_PILOT_SKILL_NAME = "terminal-pilot";
|
|
875
909
|
var installableAgents = supportedAgents;
|
|
876
910
|
function isNotFoundError(error2) {
|
|
877
|
-
return
|
|
911
|
+
return hasOwnErrorCode3(error2, "ENOENT");
|
|
878
912
|
}
|
|
879
913
|
function resolveInstallerServices(installer) {
|
|
880
914
|
return {
|