@ycodium-ai/plugin-session-import 0.2.2996 → 0.2.3000
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 +9 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -165,6 +165,9 @@ var sessionImportSyncResultSchema = {
|
|
|
165
165
|
|
|
166
166
|
// src/sessionImportRuntime.ts
|
|
167
167
|
import * as NodeCrypto3 from "node:crypto";
|
|
168
|
+
import {
|
|
169
|
+
projectOrNull as projectOrNull2
|
|
170
|
+
} from "@ycodium-ai/plugin-api";
|
|
168
171
|
|
|
169
172
|
// src/claudeSessionScan.ts
|
|
170
173
|
import * as NodePath from "node:path";
|
|
@@ -1331,6 +1334,9 @@ function reconcileImportedTimeline(input) {
|
|
|
1331
1334
|
|
|
1332
1335
|
// src/sessionImportListing.ts
|
|
1333
1336
|
import * as NodeProcess2 from "node:process";
|
|
1337
|
+
import {
|
|
1338
|
+
projectOrNull
|
|
1339
|
+
} from "@ycodium-ai/plugin-api";
|
|
1334
1340
|
|
|
1335
1341
|
// src/codexAppServer.ts
|
|
1336
1342
|
var DEFAULT_REQUEST_TIMEOUT_MS = 3e4;
|
|
@@ -1584,7 +1590,7 @@ async function nativeSessionsOf(ctx, instanceId) {
|
|
|
1584
1590
|
}
|
|
1585
1591
|
}
|
|
1586
1592
|
async function listSessions(ctx, input) {
|
|
1587
|
-
const project = await ctx.
|
|
1593
|
+
const project = await projectOrNull(ctx.projects, input.projectId);
|
|
1588
1594
|
if (project === null) {
|
|
1589
1595
|
throw new SessionImportFailure("notFound", "Project not found.");
|
|
1590
1596
|
}
|
|
@@ -2243,7 +2249,7 @@ async function runImportOnce(ctx, input, emit) {
|
|
|
2243
2249
|
emit({ kind: "phase_started", threadId: input.threadId, phase: next });
|
|
2244
2250
|
};
|
|
2245
2251
|
emit({ kind: "import_started", threadId: input.threadId, phases: ["read", "create", "link"] });
|
|
2246
|
-
const project = await ctx.
|
|
2252
|
+
const project = await projectOrNull2(ctx.projects, input.projectId);
|
|
2247
2253
|
if (project === null) return fail("Project not found.", "notFound");
|
|
2248
2254
|
const instances = await ctx.providers.listInstances();
|
|
2249
2255
|
const instance = instances.find((row) => row.instanceId === input.instanceId);
|
|
@@ -2535,7 +2541,7 @@ var NativeSessionTail = class {
|
|
|
2535
2541
|
// src/index.ts
|
|
2536
2542
|
var index_default = definePlugin({
|
|
2537
2543
|
id: "session-import",
|
|
2538
|
-
apiVersion:
|
|
2544
|
+
apiVersion: 6,
|
|
2539
2545
|
activate: (ctx) => {
|
|
2540
2546
|
ctx.command({
|
|
2541
2547
|
name: "scan",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ycodium-ai/plugin-session-import",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3000",
|
|
4
4
|
"description": "Brings a session you started in a terminal into Ycodium.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"session-import",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"esbuild": "0.28.1",
|
|
22
22
|
"vite-plus": "0.2.2",
|
|
23
23
|
"ycodium-jsonl-stream": "0.0.0",
|
|
24
|
-
"@ycodium-ai/plugin-api": "0.2.
|
|
24
|
+
"@ycodium-ai/plugin-api": "0.2.3000"
|
|
25
25
|
},
|
|
26
26
|
"ycodium": {
|
|
27
27
|
"plugin": "./dist/index.js",
|