@ycodium-ai/agent-claude 0.2.3671 → 0.2.3710
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/index.js +29 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -26916,10 +26916,35 @@ var claudeSlashCommandsFromSdk = (commands) => Array.isArray(commands) ? command
|
|
|
26916
26916
|
];
|
|
26917
26917
|
}) : [];
|
|
26918
26918
|
|
|
26919
|
+
// src/adapter/reportedModel.ts
|
|
26920
|
+
var makeReportedModelEmitter = (emitter) => {
|
|
26921
|
+
const { eventHeader, offerRuntimeEvent } = emitter;
|
|
26922
|
+
return (context, model) => {
|
|
26923
|
+
const turn = context.turnState;
|
|
26924
|
+
if (turn === void 0 || typeof model !== "string") return;
|
|
26925
|
+
const reported = model.replace(/\[[^\]]*\]\s*$/, "").trim();
|
|
26926
|
+
if (reported.length === 0) return;
|
|
26927
|
+
const key = `${turn.turnId}|${reported}`;
|
|
26928
|
+
if ((context.reportedModelKeys ??= /* @__PURE__ */ new Set()).has(key)) return;
|
|
26929
|
+
context.reportedModelKeys.add(key);
|
|
26930
|
+
offerRuntimeEvent(context, {
|
|
26931
|
+
type: "thread.metadata.updated",
|
|
26932
|
+
...eventHeader(context, {
|
|
26933
|
+
eventId: `${turn.turnId}:model:${reported}`,
|
|
26934
|
+
createdAt: turn.startedAt
|
|
26935
|
+
}),
|
|
26936
|
+
turnId: asCanonicalTurnId(turn.turnId),
|
|
26937
|
+
payload: { model: reported, modelSource: "reported" },
|
|
26938
|
+
providerRefs: {}
|
|
26939
|
+
});
|
|
26940
|
+
};
|
|
26941
|
+
};
|
|
26942
|
+
|
|
26919
26943
|
// src/adapter/systemMessages.ts
|
|
26920
26944
|
var makeSystemMessageHandler = (deps) => {
|
|
26921
26945
|
const { emitter, host, emitRuntimeError, emitRuntimeWarning, emitThreadTokenUsage } = deps;
|
|
26922
26946
|
const { randomUUIDv4, makeEventStamp, eventHeader, offerRuntimeEvent } = emitter;
|
|
26947
|
+
const emitReportedModel = makeReportedModelEmitter(emitter);
|
|
26923
26948
|
const emitWorkflowMemberProgress = async (context, base, message) => {
|
|
26924
26949
|
const progress = parseWorkflowProgress(
|
|
26925
26950
|
message.workflow_progress
|
|
@@ -27030,6 +27055,7 @@ var makeSystemMessageHandler = (deps) => {
|
|
|
27030
27055
|
config: message
|
|
27031
27056
|
}
|
|
27032
27057
|
});
|
|
27058
|
+
emitReportedModel(context, message.model);
|
|
27033
27059
|
const threadId = context.session.threadId;
|
|
27034
27060
|
const names = claudeSlashCommandsFromNames(message.slash_commands);
|
|
27035
27061
|
if (names.length > 0) host.reportSessionInventory?.({ threadId, slashCommands: names });
|
|
@@ -27675,6 +27701,7 @@ var makeTurnMessageHandlers = (deps) => {
|
|
|
27675
27701
|
backfillAssistantTextBlocksFromSnapshot
|
|
27676
27702
|
} = deps;
|
|
27677
27703
|
const { makeEventStamp, eventHeader, offerRuntimeEvent } = emitter;
|
|
27704
|
+
const emitReportedModel = makeReportedModelEmitter(emitter);
|
|
27678
27705
|
const handleUserMessage = async (context, message) => {
|
|
27679
27706
|
if (message.type !== "user") {
|
|
27680
27707
|
return;
|
|
@@ -27869,6 +27896,7 @@ var makeTurnMessageHandlers = (deps) => {
|
|
|
27869
27896
|
return;
|
|
27870
27897
|
}
|
|
27871
27898
|
await ensureSyntheticTurn(context);
|
|
27899
|
+
emitReportedModel(context, message.message?.model);
|
|
27872
27900
|
const content = message.message?.content;
|
|
27873
27901
|
if (Array.isArray(content)) {
|
|
27874
27902
|
for (const block of content) {
|
|
@@ -29633,7 +29661,7 @@ var executors = [
|
|
|
29633
29661
|
];
|
|
29634
29662
|
var index_default = definePlugin({
|
|
29635
29663
|
id: "agent-claude",
|
|
29636
|
-
apiVersion:
|
|
29664
|
+
apiVersion: 53,
|
|
29637
29665
|
executors,
|
|
29638
29666
|
activate(ctx) {
|
|
29639
29667
|
capturedAttachments = ctx.attachments;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ycodium-ai/agent-claude",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3710",
|
|
4
4
|
"description": "Claude executor: Claude Code CLI via @anthropic-ai/claude-agent-sdk.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ycodium",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"@types/node": "24.12.4",
|
|
25
25
|
"esbuild": "0.28.1",
|
|
26
26
|
"vite-plus": "0.2.2",
|
|
27
|
+
"@ycodium-ai/plugin-api": "0.2.3710",
|
|
27
28
|
"ycodium-composer-tokens": "0.0.0",
|
|
28
29
|
"ycodium-executor-testing": "0.0.0",
|
|
29
|
-
"ycodium-jsonl-stream": "0.0.0"
|
|
30
|
-
"@ycodium-ai/plugin-api": "0.2.3671"
|
|
30
|
+
"ycodium-jsonl-stream": "0.0.0"
|
|
31
31
|
},
|
|
32
32
|
"ycodium": {
|
|
33
33
|
"plugin": "./dist/index.js",
|