@ycodium-ai/agent-claude 0.2.5093 → 0.2.5177
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 +19 -11
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import * as NodePath21 from "node:path";
|
|
|
3
3
|
import { definePlugin } from "@ycodium-ai/plugin-api";
|
|
4
4
|
|
|
5
5
|
// ../../packages/plugin-api/src/version.ts
|
|
6
|
-
var PLUGIN_API_VERSION =
|
|
6
|
+
var PLUGIN_API_VERSION = 152;
|
|
7
7
|
|
|
8
8
|
// src/index.ts
|
|
9
9
|
import {
|
|
@@ -29226,6 +29226,20 @@ async function readAppendedJsonl(filePath, resumeFrom, openParser) {
|
|
|
29226
29226
|
|
|
29227
29227
|
// ../../packages/ycodium-jsonl-stream/src/scanCache.ts
|
|
29228
29228
|
import * as NodePath18 from "node:path";
|
|
29229
|
+
function decodeScanCacheTables(document, version) {
|
|
29230
|
+
if (typeof document !== "object" || document === null) return void 0;
|
|
29231
|
+
const root = document;
|
|
29232
|
+
if (root.version !== version) return void 0;
|
|
29233
|
+
if (!Array.isArray(root.models) || !Array.isArray(root.sessions)) return void 0;
|
|
29234
|
+
if (typeof root.files !== "object" || root.files === null) return void 0;
|
|
29235
|
+
if (!root.models.every((value) => typeof value === "string")) return void 0;
|
|
29236
|
+
if (!root.sessions.every((value) => typeof value === "string")) return void 0;
|
|
29237
|
+
return {
|
|
29238
|
+
models: root.models,
|
|
29239
|
+
sessions: root.sessions,
|
|
29240
|
+
files: root.files
|
|
29241
|
+
};
|
|
29242
|
+
}
|
|
29229
29243
|
function createStringTable() {
|
|
29230
29244
|
const values = [];
|
|
29231
29245
|
const index = /* @__PURE__ */ new Map();
|
|
@@ -29306,15 +29320,9 @@ function encodeScanCache(cache) {
|
|
|
29306
29320
|
}
|
|
29307
29321
|
function decodeScanCache(document) {
|
|
29308
29322
|
const cache = /* @__PURE__ */ new Map();
|
|
29309
|
-
|
|
29310
|
-
|
|
29311
|
-
|
|
29312
|
-
if (!Array.isArray(root.models) || !Array.isArray(root.sessions)) return cache;
|
|
29313
|
-
if (typeof root.files !== "object" || root.files === null) return cache;
|
|
29314
|
-
if (!root.models.every((value) => typeof value === "string")) return cache;
|
|
29315
|
-
if (!root.sessions.every((value) => typeof value === "string")) return cache;
|
|
29316
|
-
const models = root.models;
|
|
29317
|
-
const sessions = root.sessions;
|
|
29323
|
+
const tables = decodeScanCacheTables(document, USAGE_SCAN_CACHE_VERSION);
|
|
29324
|
+
if (tables === void 0) return cache;
|
|
29325
|
+
const { models, sessions, files } = tables;
|
|
29318
29326
|
const decodeRecords = (rows) => {
|
|
29319
29327
|
const records = [];
|
|
29320
29328
|
for (const row of rows) {
|
|
@@ -29352,7 +29360,7 @@ function decodeScanCache(document) {
|
|
|
29352
29360
|
}
|
|
29353
29361
|
return records;
|
|
29354
29362
|
};
|
|
29355
|
-
for (const [path, raw] of Object.entries(
|
|
29363
|
+
for (const [path, raw] of Object.entries(files)) {
|
|
29356
29364
|
if (typeof raw !== "object" || raw === null) continue;
|
|
29357
29365
|
const entry = raw;
|
|
29358
29366
|
if (typeof entry.s !== "number" || typeof entry.m !== "number") continue;
|
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.5177",
|
|
4
4
|
"description": "Claude executor: Claude Code CLI via @anthropic-ai/claude-agent-sdk.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ycodium",
|
|
@@ -24,11 +24,11 @@
|
|
|
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.
|
|
28
|
-
"ycodium-credential-account": "0.0.0",
|
|
27
|
+
"@ycodium-ai/plugin-api": "0.2.5177",
|
|
29
28
|
"ycodium-composer-tokens": "0.0.0",
|
|
30
|
-
"ycodium-executor-testing": "0.0.0",
|
|
31
29
|
"ycodium-duration-format": "0.0.0",
|
|
30
|
+
"ycodium-credential-account": "0.0.0",
|
|
31
|
+
"ycodium-executor-testing": "0.0.0",
|
|
32
32
|
"ycodium-instance-config": "0.0.0",
|
|
33
33
|
"ycodium-jsonl-stream": "0.0.0",
|
|
34
34
|
"ycodium-text-generation": "0.0.0",
|