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.
Files changed (26) hide show
  1. package/dist/{archive-manager-XM3UPOY2.js → archive-manager-FJU7YEEH.js} +4 -4
  2. package/dist/{attachment-cli-IGQBB6YJ.js → attachment-cli-AT4HXAGU.js} +2 -2
  3. package/dist/{chunk-54DP53ZK.js → chunk-5EMN2IL5.js} +29 -3
  4. package/dist/{chunk-L2ZJXV6H.js → chunk-66B64WL3.js} +1 -1
  5. package/dist/{chunk-QWPKAUSV.js → chunk-C4L34VJK.js} +8287 -7421
  6. package/dist/chunk-JR4B4L7I.js +5301 -0
  7. package/dist/{chunk-UEX7U2KW.js → chunk-MJ5JKFGS.js} +911 -232
  8. package/dist/{chunk-ZAQV2RZS.js → chunk-NNTMVOTM.js} +1054 -1310
  9. package/dist/{chunk-COXPTYH5.js → chunk-PWMEOBXG.js} +4 -4
  10. package/dist/{chunk-I6EOCCQV.js → chunk-SNPFYUQ3.js} +713 -628
  11. package/dist/{chunk-GMYN4SYT.js → chunk-SV7EHL3B.js} +3 -3
  12. package/dist/cli-framework-YF3LPLMT.js +18 -0
  13. package/dist/cli.js +10 -10
  14. package/dist/{codex-launcher-VDQ5VZPT.js → codex-launcher-CLGG4CVY.js} +1 -1
  15. package/dist/{codex-provider-NYI7KBGO.js → codex-provider-VLOS5QB6.js} +18 -4
  16. package/dist/{config-cli-RQR2ZRQ5.js → config-cli-7G5YWKJU.js} +2 -2
  17. package/dist/{panel-adapter-QTDL3S6O.js → panel-adapter-CLI4WDII.js} +4 -4
  18. package/dist/{project-cli-6P6ZWDR6.js → project-cli-ALKDLRMZ.js} +2 -2
  19. package/dist/{project-registry-OEVPECMS.js → project-registry-ZO3KSS25.js} +2 -2
  20. package/dist/sdk-C3D6X4EB.js +55 -0
  21. package/dist/{session-local-registration-RIO5EPZ5.js → session-local-registration-RL2A3QZB.js} +3 -3
  22. package/dist/{setup-KOS7SRSL.js → setup-GP3MML2R.js} +1 -1
  23. package/package.json +3 -3
  24. package/dist/chunk-RK6EIZOL.js +0 -589
  25. package/dist/cli-framework-SQM2465A.js +0 -18
  26. package/dist/sdk-V7A7IF7F.js +0 -43
@@ -5,10 +5,10 @@ import {
5
5
  getArchivedSessions,
6
6
  isArchivedProviderSession,
7
7
  loadArchived
8
- } from "./chunk-GMYN4SYT.js";
9
- import "./chunk-54DP53ZK.js";
10
- import "./chunk-RK6EIZOL.js";
11
- import "./chunk-UEX7U2KW.js";
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,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  fetchRegisteredAttachments
4
- } from "./chunk-L2ZJXV6H.js";
5
- import "./chunk-UEX7U2KW.js";
4
+ } from "./chunk-66B64WL3.js";
5
+ import "./chunk-MJ5JKFGS.js";
6
6
  import "./chunk-MO4EEYFW.js";
7
7
 
8
8
  // src/attachment-cli.ts
@@ -1,7 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- Store
4
- } from "./chunk-UEX7U2KW.js";
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
- projects = await store.read() || [];
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);
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  Store,
4
4
  getDataDir
5
- } from "./chunk-UEX7U2KW.js";
5
+ } from "./chunk-MJ5JKFGS.js";
6
6
 
7
7
  // ../bot/src/discord/attachment-inbox.ts
8
8
  import { basename, extname, join } from "path";