impel-cli 0.18.18-beta.0 → 0.19.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 +62 -0
- package/package.json +1 -1
- package/src/agents.js +7 -37
- package/src/apps.js +1 -6
- package/src/cli.js +5 -0
- package/src/commands/launch.js +2 -11
- package/src/commands/pat.js +2 -2
- package/src/commands/remote.js +559 -0
- package/src/remote/aws.js +142 -0
- package/src/remote/process.js +131 -0
- package/src/remote/state.js +202 -0
- package/src/remote/transfer.js +301 -0
- package/src/verbatimRelay.js +0 -64
package/src/verbatimRelay.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
export const VERBATIM_RELAY_OPT_IN_MARKER = "verbatimRelay enabled";
|
|
2
|
-
|
|
3
|
-
export const VERBATIM_SPAWN_REQUIREMENT = 'fork_turns="none"';
|
|
4
|
-
|
|
5
|
-
export const VERBATIM_FINAL_TEXT_CONSTRAINTS =
|
|
6
|
-
"no preface, rewriting, Markdown changes, or independent synthesis";
|
|
7
|
-
|
|
8
|
-
export function usesVerbatimRelay(agent) {
|
|
9
|
-
return agent?.verbatimRelay === true;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export function parentVerbatimRelayAppendix() {
|
|
13
|
-
return (
|
|
14
|
-
`When an explicit custom agent's catalog-derived description declares that verbatimRelay is enabled, ` +
|
|
15
|
-
`spawn it with ${VERBATIM_SPAWN_REQUIREMENT} and relay its finalText verbatim with ${VERBATIM_FINAL_TEXT_CONSTRAINTS}; ` +
|
|
16
|
-
"preserve Sources sections and citations exactly. " +
|
|
17
|
-
"Custom agents without that declaration keep the default delegation behavior."
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export function customAgentVerbatimDescriptionLead() {
|
|
22
|
-
return (
|
|
23
|
-
`Explicit custom agent with ${VERBATIM_RELAY_OPT_IN_MARKER}: ` +
|
|
24
|
-
`callers must use ${VERBATIM_SPAWN_REQUIREMENT} and relay its result verbatim`
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export function adapterCallerSpawnGuidance(clientLabel) {
|
|
29
|
-
return (
|
|
30
|
-
`Callers must spawn this explicit custom ${clientLabel} agent with ${VERBATIM_SPAWN_REQUIREMENT} ` +
|
|
31
|
-
"and must relay your result verbatim; this is caller guidance and cannot enforce host spawn behavior."
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export function adapterHardCompletionGuidance() {
|
|
36
|
-
return (
|
|
37
|
-
`After the orchestration completes, return its single text output verbatim with ${VERBATIM_FINAL_TEXT_CONSTRAINTS}. ` +
|
|
38
|
-
"A successful output is result.finalText exactly. A failure output preserves the durable runId, output, and error."
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function adapterSoftCompletionGuidance() {
|
|
43
|
-
return (
|
|
44
|
-
"After the orchestration completes, return its single text output as the answer. " +
|
|
45
|
-
"A successful output is result.finalText. A failure output preserves the durable runId, output, and error. " +
|
|
46
|
-
"Never invent or independently synthesize a replacement result."
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function claudeHardCompletionGuidance() {
|
|
51
|
-
return (
|
|
52
|
-
`When it succeeds, return result.finalText exactly with ${VERBATIM_FINAL_TEXT_CONSTRAINTS}. ` +
|
|
53
|
-
"When it fails, return the durable runId, preserved output, and error. " +
|
|
54
|
-
"Never invent or independently synthesize a replacement result."
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export function claudeSoftCompletionGuidance() {
|
|
59
|
-
return (
|
|
60
|
-
"When it succeeds, return result.finalText faithfully as the answer. " +
|
|
61
|
-
"When it fails, return the durable runId, preserved output, and error. " +
|
|
62
|
-
"Never invent or independently synthesize a replacement result."
|
|
63
|
-
);
|
|
64
|
-
}
|