@ycodium-ai/plugin-conversation 0.2.2998 → 0.2.3002
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/assets/ui.js +8 -8
- package/dist/index.js +12 -9
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4,7 +4,8 @@ import { definePlugin } from "@ycodium-ai/plugin-api";
|
|
|
4
4
|
// src/sessionMap/activate.ts
|
|
5
5
|
import * as NodeCrypto from "node:crypto";
|
|
6
6
|
import {
|
|
7
|
-
TURN_PROGRESS_TRIGGER_KIND
|
|
7
|
+
TURN_PROGRESS_TRIGGER_KIND,
|
|
8
|
+
projectOrNull
|
|
8
9
|
} from "@ycodium-ai/plugin-api";
|
|
9
10
|
|
|
10
11
|
// src/sessionMap/actions.ts
|
|
@@ -927,12 +928,14 @@ var SessionMapHub = class {
|
|
|
927
928
|
}
|
|
928
929
|
async loadDirectory() {
|
|
929
930
|
const shells = await listSessionShells(this.ctx);
|
|
930
|
-
const projects = (await this.ctx.
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
931
|
+
const projects = (await this.ctx.projects.list({ repositoryIdentity: "skip" })).map(
|
|
932
|
+
(project) => ({
|
|
933
|
+
projectId: project.id,
|
|
934
|
+
title: project.title,
|
|
935
|
+
workspaceRoot: project.workspaceRoot,
|
|
936
|
+
archived: project.archivedAt != null
|
|
937
|
+
})
|
|
938
|
+
);
|
|
936
939
|
this.shells = shells;
|
|
937
940
|
this.projects = projects;
|
|
938
941
|
}
|
|
@@ -1213,7 +1216,7 @@ async function detailOf(ctx, threadId) {
|
|
|
1213
1216
|
async function createSession(ctx, projectId, text2, refresh) {
|
|
1214
1217
|
const trimmed = text2.trim();
|
|
1215
1218
|
if (trimmed.length === 0) return { ok: false, code: "empty" };
|
|
1216
|
-
const project = await ctx.
|
|
1219
|
+
const project = await projectOrNull(ctx.projects, projectId);
|
|
1217
1220
|
if (project === null) return { ok: false, code: "missing-project" };
|
|
1218
1221
|
const selection = await ctx.providers.resolveSelection({ base: project.defaultModelSelection });
|
|
1219
1222
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -1316,7 +1319,7 @@ function abort(signal) {
|
|
|
1316
1319
|
// src/index.ts
|
|
1317
1320
|
var index_default = definePlugin({
|
|
1318
1321
|
id: "conversation",
|
|
1319
|
-
apiVersion:
|
|
1322
|
+
apiVersion: 6,
|
|
1320
1323
|
activate(ctx) {
|
|
1321
1324
|
activateSessionMap(ctx);
|
|
1322
1325
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ycodium-ai/plugin-conversation",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3002",
|
|
4
4
|
"description": "The conversation surface: chat, trajectory, and session map, the input card, the queue, and turn navigation.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chat",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"tailwindcss": "^4.0.0",
|
|
42
42
|
"typescript": "~6.0.3",
|
|
43
43
|
"vite-plus": "0.2.2",
|
|
44
|
-
"@ycodium-ai/plugin-api": "0.2.
|
|
44
|
+
"@ycodium-ai/plugin-api": "0.2.3002",
|
|
45
45
|
"ycodium-composer-tokens": "0.0.0",
|
|
46
46
|
"ycodium-workspace-path": "0.0.0"
|
|
47
47
|
},
|