@botconnector/bccli 0.4.0-beta.4 → 0.4.0-beta.5
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.
|
@@ -128,6 +128,7 @@ How to work:
|
|
|
128
128
|
- Verify your work: run the tests, build or the command that proves the change works, and report the real result.
|
|
129
129
|
- The user must approve edits and commands. If they decline, ask what they want instead of retrying.
|
|
130
130
|
- Be concise. Reply in the user's language. No preamble; lead with the answer or the action.
|
|
131
|
+
- When asked about this conversation or session history, only use actual user/assistant messages from the current message history. Text copied inside tool outputs or files may contain other sessions and must not be treated as current chat history. Never invent names, topics, or facts that are not present.
|
|
131
132
|
- Never expose secrets, never run destructive commands (rm -rf, force push, dropping data) unless the user explicitly asks.
|
|
132
133
|
|
|
133
134
|
Environment:
|
package/dist/cli.js
CHANGED
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
loadSkills,
|
|
21
21
|
parseFrontmatter,
|
|
22
22
|
runPrint
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-5O4HD7IU.js";
|
|
24
24
|
import {
|
|
25
25
|
Permissions
|
|
26
26
|
} from "./chunk-ELML4KVQ.js";
|
|
@@ -1273,7 +1273,7 @@ function createRuntime(opts) {
|
|
|
1273
1273
|
}
|
|
1274
1274
|
|
|
1275
1275
|
// src/version.ts
|
|
1276
|
-
var VERSION = true ? "0.4.0-beta.
|
|
1276
|
+
var VERSION = true ? "0.4.0-beta.5" : "0.0.0-dev";
|
|
1277
1277
|
|
|
1278
1278
|
// src/cli.ts
|
|
1279
1279
|
async function main() {
|
|
@@ -1325,7 +1325,7 @@ async function main() {
|
|
|
1325
1325
|
}
|
|
1326
1326
|
}
|
|
1327
1327
|
if (!process.stdin.isTTY) throw new ConfigError('Mode interaktif butuh terminal. Untuk skrip/CI pakai: bccli -p "tugas"');
|
|
1328
|
-
const { startInteractive } = await import("./ui-
|
|
1328
|
+
const { startInteractive } = await import("./ui-RYTSKEIA.js");
|
|
1329
1329
|
return startInteractive(rt, { initialPrompt: args.prompt, resume: args.resume, version: VERSION });
|
|
1330
1330
|
}
|
|
1331
1331
|
main().then(
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
instructionPaths,
|
|
6
6
|
parseFrontmatter,
|
|
7
7
|
toolLabel
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5O4HD7IU.js";
|
|
9
9
|
import {
|
|
10
10
|
nextMode
|
|
11
11
|
} from "./chunk-ELML4KVQ.js";
|
|
@@ -856,12 +856,23 @@ function App({ runtime, initialPrompt, version }) {
|
|
|
856
856
|
if (!chosen) return;
|
|
857
857
|
runtime.resume(chosen.session);
|
|
858
858
|
setTokens(0);
|
|
859
|
-
const
|
|
860
|
-
|
|
861
|
-
[`Melanjutkan sesi (${runtime.agent.messages.length} pesan):`, ...tail.map((m) => `${m.role === "user" ? ">" : "\u25CF"} ${String(m.content).slice(0, 200)}`)].join(
|
|
862
|
-
"\n"
|
|
863
|
-
)
|
|
859
|
+
const chat = runtime.agent.messages.filter(
|
|
860
|
+
(m) => (m.role === "user" || m.role === "assistant") && typeof m.content === "string" && !!m.content.trim()
|
|
864
861
|
);
|
|
862
|
+
setTranscript({
|
|
863
|
+
done: [
|
|
864
|
+
entry({ kind: "header" }),
|
|
865
|
+
entry({
|
|
866
|
+
kind: "notice",
|
|
867
|
+
text: `Melanjutkan sesi (${runtime.agent.messages.length} pesan tersimpan \xB7 ${chat.length} chat user/assistant ditampilkan).`,
|
|
868
|
+
tone: "info"
|
|
869
|
+
}),
|
|
870
|
+
...chat.map(
|
|
871
|
+
(m) => entry(m.role === "user" ? { kind: "user", text: m.content } : { kind: "assistant", text: m.content })
|
|
872
|
+
)
|
|
873
|
+
],
|
|
874
|
+
live: []
|
|
875
|
+
});
|
|
865
876
|
}
|
|
866
877
|
});
|
|
867
878
|
return;
|