@ycodium-ai/plugin-session-import 0.2.3158 → 0.2.3168

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1715,7 +1715,7 @@ async function listSessions(ctx, input) {
1715
1715
  }
1716
1716
  const directory = input.directory ?? project.workspaceRoot;
1717
1717
  const caseInsensitive = caseInsensitivePaths();
1718
- const instances = await ctx.providers.listInstances();
1718
+ const instances = await ctx.providers.instances.list({});
1719
1719
  const imported = await readImportedThreads(ctx);
1720
1720
  const sources = [];
1721
1721
  const scannedKeys = /* @__PURE__ */ new Set();
@@ -2371,7 +2371,7 @@ async function runImportOnce(ctx, input, emit) {
2371
2371
  emit({ kind: "import_started", threadId: input.threadId, phases: ["read", "create", "link"] });
2372
2372
  const project = await projectOrNull2(ctx.projects, input.projectId);
2373
2373
  if (project === null) return fail("Project not found.", "notFound");
2374
- const instances = await ctx.providers.listInstances();
2374
+ const instances = await ctx.providers.instances.list({});
2375
2375
  const instance = instances.find((row) => row.instanceId === input.instanceId);
2376
2376
  if (instance === void 0 || !instance.enabled) {
2377
2377
  return fail(`This ${input.provider} provider instance is not enabled.`);
@@ -2583,7 +2583,7 @@ var NativeSessionTail = class {
2583
2583
  if (binding === void 0 || binding.instanceId === null) return NOT_IMPORTED;
2584
2584
  const nativeSessionId = nativeSessionIdOf("claude", binding.resumeCursor);
2585
2585
  if (nativeSessionId === null) return NOT_IMPORTED;
2586
- const instance = (await this.ctx.providers.listInstances()).find(
2586
+ const instance = (await this.ctx.providers.instances.list({})).find(
2587
2587
  (row) => row.instanceId === binding.instanceId
2588
2588
  );
2589
2589
  const transcriptDir = instance?.transcriptDir ?? null;
@@ -2675,7 +2675,7 @@ var NativeSessionTail = class {
2675
2675
  // src/index.ts
2676
2676
  var index_default = definePlugin({
2677
2677
  id: "session-import",
2678
- apiVersion: 15,
2678
+ apiVersion: 16,
2679
2679
  activate: (ctx) => {
2680
2680
  ctx.command({
2681
2681
  name: "scan",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/plugin-session-import",
3
- "version": "0.2.3158",
3
+ "version": "0.2.3168",
4
4
  "description": "Brings a session you started in a terminal into Ycodium.",
5
5
  "keywords": [
6
6
  "session-import",
@@ -20,7 +20,7 @@
20
20
  "effect": "4.0.0-beta.103",
21
21
  "esbuild": "0.28.1",
22
22
  "vite-plus": "0.2.2",
23
- "@ycodium-ai/plugin-api": "0.2.3158",
23
+ "@ycodium-ai/plugin-api": "0.2.3168",
24
24
  "ycodium-jsonl-stream": "0.0.0"
25
25
  },
26
26
  "ycodium": {