spec-cat 0.1.70 → 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.
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/5c9166a3-8293-4b7f-91bb-8db64fbff540.json +1 -0
- package/.output/server/chunks/_/aiProviderSelection.mjs +2 -2
- package/.output/server/chunks/_/chatGit.mjs +1 -1
- package/.output/server/chunks/_/git.mjs +1 -1
- package/.output/server/chunks/_/interactiveProviderQuery.mjs +127 -2
- package/.output/server/chunks/_/interactiveProviderQuery.mjs.map +1 -1
- package/.output/server/chunks/_/jobQueue.mjs +1 -1
- package/.output/server/chunks/_/terminalSessions.mjs +1 -1
- package/.output/server/chunks/_/worktreeSetup.mjs +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +489 -489
- package/.output/server/chunks/routes/api/chat/generate-commit-message.post.mjs +28 -7
- package/.output/server/chunks/routes/api/chat/generate-commit-message.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/chat/worktree.post.mjs +1 -1
- package/.output/server/chunks/routes/api/conversations/_conversationId/archive.post.mjs +1 -1
- package/.output/server/chunks/routes/api/conversations/archives/_archiveId/restore.post.mjs +1 -1
- package/.output/server/chunks/routes/api/conversations/archives/_archiveId_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/conversations/archives.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/conversations/archives.get.mjs +1 -1
- package/.output/server/chunks/routes/api/conversations/update.post.mjs +1 -1
- package/.output/server/chunks/routes/api/conversations.get.mjs +1 -1
- package/.output/server/chunks/routes/api/git/branches.get.mjs +1 -1
- package/.output/server/chunks/routes/api/git/checkout.post.mjs +1 -1
- package/.output/server/chunks/routes/api/git/commit/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/git/graph.get.mjs +1 -1
- package/.output/server/chunks/routes/api/git/log.get.mjs +1 -1
- package/.output/server/chunks/routes/api/git/merge-base.get.mjs +1 -1
- package/.output/server/chunks/routes/api/git/status.get.mjs +1 -1
- package/.output/server/chunks/routes/api/git/tag/_name_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/index.post2.mjs +1 -1
- package/.output/server/chunks/routes/api/jobs/_id/cancel.post.mjs +1 -1
- package/.output/server/chunks/routes/api/jobs/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/rebase/ai-resolve.post.mjs +1 -1
- package/.output/server/chunks/routes/api/repository/status.get.mjs +1 -1
- package/.output/server/chunks/routes/api/settings.get.mjs +2 -2
- package/.output/server/chunks/routes/api/settings.post.mjs +2 -2
- package/.output/server/chunks/routes/api/skills/_skillId/prompt.post.mjs +1 -1
- package/.output/server/chunks/routes/api/specs/_featureId/_...filename_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/specs/_featureId/_...filename_.put.mjs +1 -1
- package/.output/server/chunks/routes/api/specs/traceability/_featureId_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/worktrees/_name/switch.post.mjs +1 -1
- package/.output/server/chunks/routes/api/worktrees/_name_.delete.mjs +1 -1
- package/.output/server/chunks/routes/terminal-ws.mjs +1 -1
- package/.output/server/package.json +1 -1
- package/package.json +1 -1
- package/.output/public/_nuxt/builds/meta/94b39ab8-be36-47aa-8646-e1f9c2796cb8.json +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as defineEventHandler, r as readBody, c as createError, a as getProjectDir, b as resolveExistingBaseBranch, l as logger } from '../../../nitro/nitro.mjs';
|
|
1
|
+
import { d as defineEventHandler, r as readBody, c as createError, a as getProjectDir, b as resolveExistingBaseBranch, l as logger, f as readConversationFromStorage } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import { execFile } from 'node:child_process';
|
|
3
3
|
import { promisify } from 'node:util';
|
|
4
4
|
import { existsSync } from 'node:fs';
|
|
5
5
|
import { q as queryInteractiveProvider } from '../../../_/interactiveProviderQuery.mjs';
|
|
6
|
-
import { g as guardServerProviderCapability } from '../../../_/aiProviderSelection.mjs';
|
|
6
|
+
import { g as guardServerProviderCapability, r as resolveServerProviderSelection, a as guardProviderCapability } from '../../../_/aiProviderSelection.mjs';
|
|
7
7
|
import { g as getChatWorktreePath } from '../../../_/worktreePaths.mjs';
|
|
8
8
|
import { v as validateWorktreePath } from '../../../_/validateWorktree.mjs';
|
|
9
9
|
import 'node:http';
|
|
@@ -38,6 +38,30 @@ async function git(cwd, args) {
|
|
|
38
38
|
const { stdout } = await execFileAsync("git", args, { cwd });
|
|
39
39
|
return stdout.trim();
|
|
40
40
|
}
|
|
41
|
+
function readNonEmptyString(record, key) {
|
|
42
|
+
if (!record || typeof record !== "object") return "";
|
|
43
|
+
const value = record[key];
|
|
44
|
+
return typeof value === "string" && value.length > 0 ? value : "";
|
|
45
|
+
}
|
|
46
|
+
async function guardConversationProviderCapability(conversationId) {
|
|
47
|
+
const conversation = await readConversationFromStorage(conversationId);
|
|
48
|
+
const providerId = readNonEmptyString(conversation, "providerId");
|
|
49
|
+
if (!providerId) {
|
|
50
|
+
return guardServerProviderCapability(
|
|
51
|
+
"autoCommit",
|
|
52
|
+
"Switch to a provider with auto-commit support or disable AI-generated commit messages."
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
const selection = await resolveServerProviderSelection({
|
|
56
|
+
providerId,
|
|
57
|
+
modelKey: readNonEmptyString(conversation, "providerModelKey")
|
|
58
|
+
});
|
|
59
|
+
return guardProviderCapability(
|
|
60
|
+
selection,
|
|
61
|
+
"autoCommit",
|
|
62
|
+
"Switch to a provider with auto-commit support or disable AI-generated commit messages."
|
|
63
|
+
);
|
|
64
|
+
}
|
|
41
65
|
const generateCommitMessage_post = defineEventHandler(async (event) => {
|
|
42
66
|
var _a;
|
|
43
67
|
const body = await readBody(event);
|
|
@@ -56,10 +80,7 @@ const generateCommitMessage_post = defineEventHandler(async (event) => {
|
|
|
56
80
|
throw createError({ statusCode: 404, message: "Worktree not found" });
|
|
57
81
|
}
|
|
58
82
|
validateWorktreePath(worktreePath);
|
|
59
|
-
const providerGuard = await
|
|
60
|
-
"autoCommit",
|
|
61
|
-
"Switch to a provider with auto-commit support or disable AI-generated commit messages."
|
|
62
|
-
);
|
|
83
|
+
const providerGuard = await guardConversationProviderCapability(conversationId);
|
|
63
84
|
if ("failure" in providerGuard) {
|
|
64
85
|
return providerGuard.failure;
|
|
65
86
|
}
|
|
@@ -88,7 +109,7 @@ const generateCommitMessage_post = defineEventHandler(async (event) => {
|
|
|
88
109
|
}
|
|
89
110
|
const diffStat = await git(worktreePath, ["diff", "--stat", range]);
|
|
90
111
|
const flatten = (value) => value.replace(/\s*\n\s*/g, " | ").trim();
|
|
91
|
-
const prompt = `Write a single concise squash git commit message summarizing the work on branch "${worktreeBranch || "(unknown)"}" (base "${baseBranch}"). Commits: ${flatten(log)}. File changes: ${flatten(diffStat)}. Use conventional commit format (feat/fix/refactor/docs/chore). First line max 72 chars, no emoji. Add a short body of 2-3 lines only if the changes are complex. Output only the commit message.`;
|
|
112
|
+
const prompt = `Write a single concise squash git commit message summarizing the work on branch "${worktreeBranch || "(unknown)"}" (base "${baseBranch}"). Commits: ${flatten(log)}. File changes: ${flatten(diffStat)}. Use conventional commit format (feat/fix/refactor/docs/chore). First line max 72 chars, no emoji. Add a short body of 2-3 lines only if the changes are complex. Use only the supplied commit list and file changes. Do not inspect files, run commands, or use tools. Output only the commit message.`;
|
|
92
113
|
const result = await queryInteractiveProvider({
|
|
93
114
|
conversationId,
|
|
94
115
|
cwd: worktreePath,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-commit-message.post.mjs","sources":["../../../../../../server/api/chat/generate-commit-message.post.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"generate-commit-message.post.mjs","sources":["../../../../../../server/api/chat/generate-commit-message.post.ts"],"names":[],"mappings":";;;;;;;;;;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ACA,UAAA,SAAA,CAAA,QAAA;AAAA,MACA,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAKA,cAAA,EAAA,IAAA;AAAA,MACA,aAAA,eAAA,CAAA,MAAA;AAAA,MACA;AAAA,KACA,CAAA;AAEA,IAAA,IAAA,MAAA,CAAA,OAAA,IAAA,MAAA,CAAA,IAAA,EAAA;AACA,MAAA,OAAA,EAAA,OAAA,EAAA,IAAA,EAAA,SAAA,MAAA,CAAA,IAAA,CAAA,MAAA,EAAA;AAAA,IACA;AAEA,IAAA,OAAA,EAAA,OAAA,EAAA,KAAA,EAAA,KAAA,EAAA,MAAA,CAAA,SAAA,4BAAA,EAAA;AAAA,EACA,SAAA,KAAA,EAAA;AACA,IAAA,MAAA,MAAA,KAAA,YAAA,KAAA,GAAA,KAAA,CAAA,OAAA,GAAA,OAAA,KAAA,CAAA;AACA,IAAA,MAAA,CAAA,KAAA,KAAA,CAAA,gCAAA,EAAA,EAAA,cAAA,EAAA,KAAA,EAAA,KAAA,CAAA;AACA,IAAA,OAAA,EAAA,OAAA,EAAA,KAAA,EAAA,KAAA,EAAA,GAAA,EAAA;AAAA,EACA,CAAA,SAAA;AACA,IAAA,KAAA,CAAA,IAAA,CAAA,GAAA,CAAA,GAAA,CAAA,OAAA,EAAA,YAAA,CAAA;AAAA,EACA;AACA,CAAA,CAAA;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler, r as readBody, c as createError, a as getProjectDir, l as logger,
|
|
1
|
+
import { d as defineEventHandler, r as readBody, c as createError, a as getProjectDir, l as logger, h as resolvePreferredBaseBranch } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import { execFile } from 'node:child_process';
|
|
3
3
|
import { promisify } from 'node:util';
|
|
4
4
|
import { g as getChatWorktreePath } from '../../../_/worktreePaths.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
1
|
+
import { d as defineEventHandler, j as getRouterParam, c as createError, i as readConversationStorageState, a as getProjectDir, l as logger, k as generateArchivedConversationId, w as writeConversationStorageState } from '../../../../nitro/nitro.mjs';
|
|
2
2
|
import { exec } from 'node:child_process';
|
|
3
3
|
import { existsSync } from 'node:fs';
|
|
4
4
|
import { rm } from 'node:fs/promises';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
1
|
+
import { d as defineEventHandler, j as getRouterParam, r as readBody, c as createError, i as readConversationStorageState, a as getProjectDir, m as generateConversationId, h as resolvePreferredBaseBranch, l as logger, w as writeConversationStorageState } from '../../../../../nitro/nitro.mjs';
|
|
2
2
|
import { exec } from 'node:child_process';
|
|
3
3
|
import { promisify } from 'node:util';
|
|
4
4
|
import { g as getChatWorktreePath } from '../../../../../_/worktreePaths.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
1
|
+
import { d as defineEventHandler, j as getRouterParam, c as createError, i as readConversationStorageState, w as writeConversationStorageState } from '../../../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
1
|
+
import { d as defineEventHandler, i as readConversationStorageState, w as writeConversationStorageState } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
1
|
+
import { d as defineEventHandler, i as readConversationStorageState, g as getQuery } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler, r as readBody, c as createError,
|
|
1
|
+
import { d as defineEventHandler, r as readBody, c as createError, n as isValidConversation, u as upsertConversationInStorage, S as STORAGE_VERSION } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import 'node:http';
|
|
3
3
|
import 'node:https';
|
|
4
4
|
import 'node:crypto';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler, g as getQuery,
|
|
1
|
+
import { d as defineEventHandler, g as getQuery, o as execGitCommand, h as resolvePreferredBaseBranch } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import { g as generateBranchColor, a as getBranches } from '../../../_/git.mjs';
|
|
3
3
|
import { a as resolveWorkingDirectoryFromQuery, h as handleGitApiError } from '../../../_/gitApiHelpers.mjs';
|
|
4
4
|
import 'node:http';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler, c as createError,
|
|
1
|
+
import { d as defineEventHandler, c as createError, p as execGit, l as logger } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import { r as resolveWorkingDirectoryFromBody, h as handleGitApiError } from '../../../_/gitApiHelpers.mjs';
|
|
3
3
|
import 'node:http';
|
|
4
4
|
import 'node:https';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
1
|
+
import { d as defineEventHandler, j as getRouterParam, c as createError } from '../../../../nitro/nitro.mjs';
|
|
2
2
|
import { b as getCommitDetail } from '../../../../_/git.mjs';
|
|
3
3
|
import { a as resolveWorkingDirectoryFromQuery, h as handleGitApiError } from '../../../../_/gitApiHelpers.mjs';
|
|
4
4
|
import 'node:http';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler, g as getQuery, c as createError,
|
|
1
|
+
import { d as defineEventHandler, g as getQuery, c as createError, o as execGitCommand } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import { e as getCommitHistory, g as generateBranchColor } from '../../../_/git.mjs';
|
|
3
3
|
import { a as resolveWorkingDirectoryFromQuery, h as handleGitApiError } from '../../../_/gitApiHelpers.mjs';
|
|
4
4
|
import 'node:http';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler, g as getQuery,
|
|
1
|
+
import { d as defineEventHandler, g as getQuery, p as execGit, l as logger } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import { G as GRAPH_CONSTANTS, f as getBranchesSync, h as getTags, j as parseGitLog, g as generateBranchColor } from '../../../_/git.mjs';
|
|
3
3
|
import { a as resolveWorkingDirectoryFromQuery, h as handleGitApiError } from '../../../_/gitApiHelpers.mjs';
|
|
4
4
|
import 'node:http';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler, g as getQuery, c as createError,
|
|
1
|
+
import { d as defineEventHandler, g as getQuery, c as createError, o as execGitCommand } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import { k as getMergeBase } from '../../../_/git.mjs';
|
|
3
3
|
import { a as resolveWorkingDirectoryFromQuery, h as handleGitApiError } from '../../../_/gitApiHelpers.mjs';
|
|
4
4
|
import 'node:http';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
1
|
+
import { d as defineEventHandler, p as execGit } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import { p as parseGitStatusPorcelain } from '../../../_/git.mjs';
|
|
3
3
|
import { a as resolveWorkingDirectoryFromQuery, h as handleGitApiError } from '../../../_/gitApiHelpers.mjs';
|
|
4
4
|
import 'node:http';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
1
|
+
import { d as defineEventHandler, j as getRouterParam, c as createError } from '../../../../nitro/nitro.mjs';
|
|
2
2
|
import { J as getTagDetail } from '../../../../_/git.mjs';
|
|
3
3
|
import { a as resolveWorkingDirectoryFromQuery, h as handleGitApiError } from '../../../../_/gitApiHelpers.mjs';
|
|
4
4
|
import 'node:http';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler, r as readBody, c as createError,
|
|
1
|
+
import { d as defineEventHandler, r as readBody, c as createError, m as generateConversationId, a as getProjectDir, v as isUsableBaseBranchName, h as resolvePreferredBaseBranch, o as execGitCommand, f as readConversationFromStorage, x as sanitizeConversationTitle, y as generateConversationTitle, u as upsertConversationInStorage, S as STORAGE_VERSION } from '../../nitro/nitro.mjs';
|
|
2
2
|
import { j as jobQueue } from '../../_/jobQueue.mjs';
|
|
3
3
|
import { s as startPersisting } from '../../_/jobPersister.mjs';
|
|
4
4
|
import { g as getChatWorktreePath } from '../../_/worktreePaths.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler, g as getQuery, a as getProjectDir, r as readBody, c as createError, l as logger,
|
|
1
|
+
import { d as defineEventHandler, g as getQuery, a as getProjectDir, r as readBody, c as createError, l as logger, h as resolvePreferredBaseBranch } from '../../nitro/nitro.mjs';
|
|
2
2
|
import { exec } from 'node:child_process';
|
|
3
3
|
import { promisify } from 'node:util';
|
|
4
4
|
import { existsSync } from 'node:fs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
1
|
+
import { d as defineEventHandler, j as getRouterParam, c as createError } from '../../../../nitro/nitro.mjs';
|
|
2
2
|
import { j as jobQueue } from '../../../../_/jobQueue.mjs';
|
|
3
3
|
import 'node:http';
|
|
4
4
|
import 'node:https';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
1
|
+
import { d as defineEventHandler, j as getRouterParam, c as createError, g as getQuery } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import { j as jobQueue } from '../../../_/jobQueue.mjs';
|
|
3
3
|
import 'node:http';
|
|
4
4
|
import 'node:https';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as defineEventHandler, r as readBody, c as createError, l as logger } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import { v as validateWorktreePath, a as validateFilePath } from '../../../_/validateWorktree.mjs';
|
|
3
|
-
import {
|
|
3
|
+
import { b as getServerProviderSelection } from '../../../_/aiProviderSelection.mjs';
|
|
4
4
|
import { e as ensureProvidersInitialized, g as getProvider } from '../../../_/aiProviderRegistry.mjs';
|
|
5
5
|
import { q as queryInteractiveProvider } from '../../../_/interactiveProviderQuery.mjs';
|
|
6
6
|
import 'node:http';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler, a as getProjectDir, c as createError,
|
|
1
|
+
import { d as defineEventHandler, a as getProjectDir, c as createError, o as execGitCommand } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import { K as isGitRepository } from '../../../_/git.mjs';
|
|
3
3
|
import 'node:http';
|
|
4
4
|
import 'node:https';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
2
|
-
import { r as resolveServerProviderSelection, D as DEFAULT_MODEL_KEY,
|
|
1
|
+
import { d as defineEventHandler, q as readSpecCatStore } from '../../nitro/nitro.mjs';
|
|
2
|
+
import { r as resolveServerProviderSelection, D as DEFAULT_MODEL_KEY, c as DEFAULT_PROVIDER_ID } from '../../_/aiProviderSelection.mjs';
|
|
3
3
|
import 'node:http';
|
|
4
4
|
import 'node:https';
|
|
5
5
|
import 'node:crypto';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as defineEventHandler, r as readBody, c as createError,
|
|
2
|
-
import { r as resolveServerProviderSelection,
|
|
1
|
+
import { d as defineEventHandler, r as readBody, c as createError, q as readSpecCatStore, C as writeSpecCatStore } from '../../nitro/nitro.mjs';
|
|
2
|
+
import { r as resolveServerProviderSelection, c as DEFAULT_PROVIDER_ID } from '../../_/aiProviderSelection.mjs';
|
|
3
3
|
import 'node:http';
|
|
4
4
|
import 'node:https';
|
|
5
5
|
import 'node:crypto';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
1
|
+
import { d as defineEventHandler, j as getRouterParam, c as createError, r as readBody, a as getProjectDir } from '../../../../nitro/nitro.mjs';
|
|
2
2
|
import { readdir } from 'node:fs/promises';
|
|
3
3
|
import { existsSync } from 'node:fs';
|
|
4
4
|
import { resolve, join } from 'node:path';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
1
|
+
import { d as defineEventHandler, j as getRouterParam, c as createError, a as getProjectDir } from '../../../../nitro/nitro.mjs';
|
|
2
2
|
import { readFile } from 'node:fs/promises';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
4
|
import 'node:http';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
1
|
+
import { d as defineEventHandler, j as getRouterParam, c as createError, r as readBody, a as getProjectDir } from '../../../../nitro/nitro.mjs';
|
|
2
2
|
import { writeFile } from 'node:fs/promises';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
4
|
import 'node:http';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
1
|
+
import { d as defineEventHandler, j as getRouterParam, c as createError, a as getProjectDir } from '../../../../nitro/nitro.mjs';
|
|
2
2
|
import { join } from 'node:path';
|
|
3
3
|
import { b as buildTraceabilityResponse } from '../../../../_/traceability.mjs';
|
|
4
4
|
import 'node:http';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
1
|
+
import { d as defineEventHandler, j as getRouterParam, g as getQuery, a as getProjectDir, c as createError, l as logger } from '../../../../nitro/nitro.mjs';
|
|
2
2
|
import { exec } from 'node:child_process';
|
|
3
3
|
import { promisify } from 'node:util';
|
|
4
4
|
import 'node:http';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineEventHandler,
|
|
1
|
+
import { d as defineEventHandler, j as getRouterParam, g as getQuery, a as getProjectDir, c as createError, l as logger } from '../../../nitro/nitro.mjs';
|
|
2
2
|
import { exec } from 'node:child_process';
|
|
3
3
|
import { promisify } from 'node:util';
|
|
4
4
|
import { existsSync } from 'node:fs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as defineWebSocketHandler,
|
|
1
|
+
import { J as defineWebSocketHandler, f as readConversationFromStorage, s as updateConversationProviderSessionInStorage } from '../nitro/nitro.mjs';
|
|
2
2
|
import { w as writeTerminalInput, r as resizeTerminal, a as getOrCreateTerminalSession, s as subscribeTerminalSession, c as getTerminalSession, b as buildTerminalSessionId } from '../_/terminalSessions.mjs';
|
|
3
3
|
import { s as setupConversationWorktree } from '../_/worktreeSetup.mjs';
|
|
4
4
|
import { i as isSpecCatWorktreePath } from '../_/worktreePaths.mjs';
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"94b39ab8-be36-47aa-8646-e1f9c2796cb8","timestamp":1783332862160,"prerendered":[]}
|