workspacecord 1.1.2 → 1.1.4
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/{archive-manager-XM3UPOY2.js → archive-manager-FJU7YEEH.js} +4 -4
- package/dist/{attachment-cli-IGQBB6YJ.js → attachment-cli-AT4HXAGU.js} +2 -2
- package/dist/{chunk-54DP53ZK.js → chunk-5EMN2IL5.js} +29 -3
- package/dist/{chunk-L2ZJXV6H.js → chunk-66B64WL3.js} +1 -1
- package/dist/{chunk-QWPKAUSV.js → chunk-C4L34VJK.js} +8287 -7421
- package/dist/chunk-JR4B4L7I.js +5301 -0
- package/dist/{chunk-UEX7U2KW.js → chunk-MJ5JKFGS.js} +911 -232
- package/dist/{chunk-ZAQV2RZS.js → chunk-NNTMVOTM.js} +1054 -1310
- package/dist/{chunk-COXPTYH5.js → chunk-PWMEOBXG.js} +4 -4
- package/dist/{chunk-I6EOCCQV.js → chunk-SNPFYUQ3.js} +713 -628
- package/dist/{chunk-GMYN4SYT.js → chunk-SV7EHL3B.js} +3 -3
- package/dist/cli-framework-YF3LPLMT.js +18 -0
- package/dist/cli.js +10 -10
- package/dist/{codex-launcher-VDQ5VZPT.js → codex-launcher-CLGG4CVY.js} +1 -1
- package/dist/{codex-provider-NYI7KBGO.js → codex-provider-VLOS5QB6.js} +18 -4
- package/dist/{config-cli-RQR2ZRQ5.js → config-cli-7G5YWKJU.js} +2 -2
- package/dist/{panel-adapter-QTDL3S6O.js → panel-adapter-CLI4WDII.js} +4 -4
- package/dist/{project-cli-6P6ZWDR6.js → project-cli-ALKDLRMZ.js} +2 -2
- package/dist/{project-registry-OEVPECMS.js → project-registry-ZO3KSS25.js} +2 -2
- package/dist/sdk-C3D6X4EB.js +55 -0
- package/dist/{session-local-registration-RIO5EPZ5.js → session-local-registration-RL2A3QZB.js} +3 -3
- package/dist/{setup-KOS7SRSL.js → setup-GP3MML2R.js} +1 -1
- package/package.json +3 -3
- package/dist/chunk-RK6EIZOL.js +0 -589
- package/dist/cli-framework-SQM2465A.js +0 -18
- package/dist/sdk-V7A7IF7F.js +0 -43
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
getArchivedSessions,
|
|
6
6
|
isArchivedProviderSession,
|
|
7
7
|
loadArchived
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-SV7EHL3B.js";
|
|
9
|
+
import "./chunk-5EMN2IL5.js";
|
|
10
|
+
import "./chunk-JR4B4L7I.js";
|
|
11
|
+
import "./chunk-MJ5JKFGS.js";
|
|
12
12
|
import "./chunk-MO4EEYFW.js";
|
|
13
13
|
export {
|
|
14
14
|
archiveSession,
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
Store
|
|
4
|
-
|
|
3
|
+
Store,
|
|
4
|
+
formatIssues,
|
|
5
|
+
parseRegisteredProject
|
|
6
|
+
} from "./chunk-MJ5JKFGS.js";
|
|
5
7
|
|
|
6
8
|
// ../engine/src/project-registry.ts
|
|
7
9
|
import { randomUUID } from "crypto";
|
|
@@ -15,7 +17,31 @@ async function saveRegistry() {
|
|
|
15
17
|
await store.write(projects);
|
|
16
18
|
}
|
|
17
19
|
async function loadRegistry() {
|
|
18
|
-
|
|
20
|
+
const raw = await store.read();
|
|
21
|
+
if (raw === null || raw === void 0) {
|
|
22
|
+
projects = [];
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
if (!Array.isArray(raw)) {
|
|
26
|
+
console.warn(
|
|
27
|
+
`[project-registry] projects.json is not an array (got ${typeof raw}) \u2014 starting with empty state`
|
|
28
|
+
);
|
|
29
|
+
projects = [];
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
const issues = [];
|
|
33
|
+
const parsed = [];
|
|
34
|
+
for (let i = 0; i < raw.length; i++) {
|
|
35
|
+
const project = parseRegisteredProject(raw[i], i, issues);
|
|
36
|
+
if (project) parsed.push(project);
|
|
37
|
+
}
|
|
38
|
+
if (issues.length > 0) {
|
|
39
|
+
console.warn(
|
|
40
|
+
`[project-registry] Dropped ${raw.length - parsed.length}/${raw.length} invalid project record(s):
|
|
41
|
+
${formatIssues(issues)}`
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
projects = parsed;
|
|
19
45
|
}
|
|
20
46
|
function getProjectByName(name) {
|
|
21
47
|
return projects.find((project) => project.name === name);
|