lunel-cli 0.1.71 → 0.1.72

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/ai/codex.js +7 -5
  2. package/package.json +1 -1
package/dist/ai/codex.js CHANGED
@@ -53,19 +53,21 @@ export class CodexProvider {
53
53
  }
54
54
  async createSession(title) {
55
55
  const result = await this.call("thread/start", { cwd: process.cwd() });
56
- const threadId = this.extractThreadId(result);
56
+ const threadObject = this.extractThreadObject(result);
57
+ const threadId = this.extractThreadId(threadObject);
57
58
  if (!threadId) {
58
59
  throw new Error("thread/start response missing threadId");
59
60
  }
60
- const threadTitle = this.extractThreadTitleFromUnknown(result) ?? title ?? "Conversation";
61
+ const threadTitle = this.extractThreadTitle(threadObject) || title || "Conversation";
61
62
  const session = this.upsertSession({
62
63
  id: threadId,
63
64
  title: threadTitle,
64
- createdAt: this.extractCreatedAt(result) ?? Date.now(),
65
- updatedAt: this.extractUpdatedAt(result) ?? Date.now(),
65
+ createdAt: this.extractCreatedAt(threadObject) ?? Date.now(),
66
+ updatedAt: this.extractUpdatedAt(threadObject) ?? Date.now(),
66
67
  archived: false,
67
- cwd: this.extractThreadCwd(result) ?? process.cwd(),
68
+ cwd: this.extractThreadCwd(threadObject) ?? process.cwd(),
68
69
  });
70
+ this.resumedThreadIds.add(threadId);
69
71
  return { session: this.toSessionInfo(session) };
70
72
  }
71
73
  async listSessions() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lunel-cli",
3
- "version": "0.1.71",
3
+ "version": "0.1.72",
4
4
  "author": [
5
5
  {
6
6
  "name": "Soham Bharambe",