@vectorplane/ctrl-cli 0.1.14 → 0.1.15
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/commands/draft.js +5 -5
- package/dist/core/git.js +3 -6
- package/dist/types/api.d.ts +1 -1
- package/package.json +1 -1
package/dist/commands/draft.js
CHANGED
|
@@ -12,9 +12,9 @@ const VALID_DRAFT_TYPES = new Set([
|
|
|
12
12
|
"decisions",
|
|
13
13
|
"progress",
|
|
14
14
|
"patterns",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
15
|
+
"ui_ux",
|
|
16
|
+
"software_engineering",
|
|
17
|
+
"system_design",
|
|
18
18
|
"project_skeleton",
|
|
19
19
|
]);
|
|
20
20
|
const VALID_STATUSES = new Set([
|
|
@@ -43,8 +43,8 @@ function inferMemoryKey(type, title) {
|
|
|
43
43
|
? "decision"
|
|
44
44
|
: type === "patterns"
|
|
45
45
|
? "pattern"
|
|
46
|
-
: type === "
|
|
47
|
-
? "
|
|
46
|
+
: type === "software_engineering"
|
|
47
|
+
? "software-engineering"
|
|
48
48
|
: type === "project_skeleton"
|
|
49
49
|
? "skeleton"
|
|
50
50
|
: type;
|
package/dist/core/git.js
CHANGED
|
@@ -9,17 +9,14 @@ function sanitizeRemoteUrl(remote) {
|
|
|
9
9
|
if (remote.startsWith("git@")) {
|
|
10
10
|
const [left, right] = remote.split(":", 2);
|
|
11
11
|
const host = left.split("@")[1];
|
|
12
|
-
return `
|
|
12
|
+
return `https://${host}/${right.replace(/\.git$/i, "")}`;
|
|
13
13
|
}
|
|
14
14
|
try {
|
|
15
15
|
const url = new URL(remote);
|
|
16
|
-
url.
|
|
17
|
-
url.password = "";
|
|
18
|
-
url.pathname = url.pathname.replace(/\.git$/i, "");
|
|
19
|
-
return url.toString();
|
|
16
|
+
return `https://${url.host}${url.pathname.replace(/\.git$/i, "")}`;
|
|
20
17
|
}
|
|
21
18
|
catch {
|
|
22
|
-
return remote.replace(/:\/\/[^@]+@/, "://");
|
|
19
|
+
return remote.replace(/:\/\/[^@]+@/, "://").replace(/^ssh:\/\//i, "https://").replace(/\.git$/i, "");
|
|
23
20
|
}
|
|
24
21
|
}
|
|
25
22
|
async function runGit(args, cwd) {
|
package/dist/types/api.d.ts
CHANGED
|
@@ -164,7 +164,7 @@ export interface AgentSessionResponse {
|
|
|
164
164
|
workspaceId?: string;
|
|
165
165
|
[key: string]: unknown;
|
|
166
166
|
}
|
|
167
|
-
export type MemoryDraftType = "architecture" | "decisions" | "progress" | "patterns" | "
|
|
167
|
+
export type MemoryDraftType = "architecture" | "decisions" | "progress" | "patterns" | "ui_ux" | "software_engineering" | "system_design" | "project_skeleton";
|
|
168
168
|
export type MemoryDraftStatus = "draft" | "in_review" | "approved" | "merged" | "rejected" | "archived";
|
|
169
169
|
export interface MemoryDraftCreateRequest {
|
|
170
170
|
docType: MemoryDraftType;
|