mcoda 0.1.26 → 0.1.27
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.
|
@@ -7,7 +7,7 @@ const listWorkspaceProjects = async (workspaceRoot) => {
|
|
|
7
7
|
try {
|
|
8
8
|
const rows = await repo
|
|
9
9
|
.getDb()
|
|
10
|
-
.all(`SELECT key, created_at FROM projects ORDER BY created_at
|
|
10
|
+
.all(`SELECT key, created_at FROM projects ORDER BY datetime(created_at) DESC, key ASC`);
|
|
11
11
|
return rows
|
|
12
12
|
.map((row) => ({ key: String(row.key), createdAt: row.created_at ?? null }))
|
|
13
13
|
.filter((row) => row.key.trim().length > 0);
|
|
@@ -24,25 +24,25 @@ export const pickTaskSufficiencyProjectKey = (options) => {
|
|
|
24
24
|
const requestedKey = options.requestedKey?.trim() || undefined;
|
|
25
25
|
const configuredKey = options.configuredKey?.trim() || undefined;
|
|
26
26
|
const existing = options.existing ?? [];
|
|
27
|
-
const
|
|
27
|
+
const latestExisting = existing[0]?.key;
|
|
28
28
|
if (requestedKey) {
|
|
29
29
|
if (configuredKey && configuredKey !== requestedKey) {
|
|
30
30
|
warnings.push(`Using explicitly requested project key "${requestedKey}"; overriding configured project key "${configuredKey}".`);
|
|
31
31
|
}
|
|
32
|
-
if (
|
|
33
|
-
warnings.push(`Using explicitly requested project key "${requestedKey}";
|
|
32
|
+
if (latestExisting && requestedKey !== latestExisting) {
|
|
33
|
+
warnings.push(`Using explicitly requested project key "${requestedKey}"; latest workspace project is "${latestExisting}".`);
|
|
34
34
|
}
|
|
35
35
|
return { projectKey: requestedKey, warnings };
|
|
36
36
|
}
|
|
37
37
|
if (configuredKey) {
|
|
38
|
-
if (
|
|
39
|
-
warnings.push(`Using configured project key "${configuredKey}" instead of
|
|
38
|
+
if (latestExisting && configuredKey !== latestExisting) {
|
|
39
|
+
warnings.push(`Using configured project key "${configuredKey}" instead of latest workspace project "${latestExisting}".`);
|
|
40
40
|
}
|
|
41
41
|
return { projectKey: configuredKey, warnings };
|
|
42
42
|
}
|
|
43
|
-
if (
|
|
44
|
-
warnings.push(`No --project provided; defaulting to
|
|
45
|
-
return { projectKey:
|
|
43
|
+
if (latestExisting) {
|
|
44
|
+
warnings.push(`No --project provided; defaulting to latest workspace project "${latestExisting}".`);
|
|
45
|
+
return { projectKey: latestExisting, warnings };
|
|
46
46
|
}
|
|
47
47
|
return { projectKey: undefined, warnings };
|
|
48
48
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcoda",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.27",
|
|
4
4
|
"description": "Local-first CLI for planning, documentation, and execution workflows with agent assistance.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"yaml": "^2.4.2",
|
|
48
|
-
"@mcoda/core": "0.1.
|
|
49
|
-
"@mcoda/shared": "0.1.
|
|
48
|
+
"@mcoda/core": "0.1.27",
|
|
49
|
+
"@mcoda/shared": "0.1.27"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@mcoda/
|
|
53
|
-
"@mcoda/
|
|
52
|
+
"@mcoda/integrations": "0.1.27",
|
|
53
|
+
"@mcoda/db": "0.1.27"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "tsc -p tsconfig.json",
|