workspacecord 1.1.2 → 1.1.3

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.
@@ -3,10 +3,10 @@ import {
3
3
  createSession,
4
4
  getSessionByProviderSession,
5
5
  updateSession
6
- } from "./chunk-RK6EIZOL.js";
6
+ } from "./chunk-WON3DPE4.js";
7
7
  import {
8
8
  resolvePath
9
- } from "./chunk-UEX7U2KW.js";
9
+ } from "./chunk-IVXCJA5I.js";
10
10
 
11
11
  // ../bot/src/session-local-registration.ts
12
12
  import { sep } from "path";
@@ -33,7 +33,7 @@ async function registerLocalSession(params, guild) {
33
33
  } = params;
34
34
  const effectiveProviderSessionId = provider === "claude" && subagent?.parentProviderSessionId && subagent.agentId ? buildClaudeSubagentProviderSessionId(subagent.parentProviderSessionId, subagent.agentId) : providerSessionId;
35
35
  const effectiveAgentLabel = subagent?.agentType || labelHint || effectiveProviderSessionId.slice(0, 12);
36
- const { isArchivedProviderSession } = await import("./archive-manager-XM3UPOY2.js");
36
+ const { isArchivedProviderSession } = await import("./archive-manager-RW36JGUV.js");
37
37
  if (isArchivedProviderSession(provider, effectiveProviderSessionId)) {
38
38
  console.log(
39
39
  `[registerLocalSession] Skip archived ${provider} session ${effectiveProviderSessionId} (source: ${discoverySource})`
@@ -45,7 +45,7 @@ async function registerLocalSession(params, guild) {
45
45
  updateLocalObservation(existing.id, { discoverySource, cwd, remoteHumanControl });
46
46
  return { session: existing, isNewlyCreated: false };
47
47
  }
48
- const { getProjectByPath, getAllRegisteredProjects } = await import("./project-registry-OEVPECMS.js");
48
+ const { getProjectByPath, getAllRegisteredProjects } = await import("./project-registry-ED6P5ZTM.js");
49
49
  const { ChannelType, ThreadAutoArchiveDuration } = await import("discord.js");
50
50
  const normalizedCwd = resolvePath(cwd);
51
51
  let project = getProjectByPath(normalizedCwd);
@@ -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-IVXCJA5I.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);
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ runCli,
4
+ startBot
5
+ } from "./chunk-AGB4GP4G.js";
6
+ import "./chunk-QWPKAUSV.js";
7
+ import "./chunk-7GTUWAQR.js";
8
+ import "./chunk-BFINJJYL.js";
9
+ import "./chunk-4KQ7OSK7.js";
10
+ import "./chunk-ZO62NAYX.js";
11
+ import "./chunk-WP6YJVAE.js";
12
+ import "./chunk-WON3DPE4.js";
13
+ import "./chunk-IVXCJA5I.js";
14
+ import "./chunk-MO4EEYFW.js";
15
+ export {
16
+ runCli,
17
+ startBot
18
+ };
package/dist/cli.js CHANGED
@@ -2,20 +2,20 @@
2
2
  import {
3
3
  runCli,
4
4
  startBot
5
- } from "./chunk-I6EOCCQV.js";
5
+ } from "./chunk-AGB4GP4G.js";
6
6
  import "./chunk-QWPKAUSV.js";
7
- import "./chunk-ZAQV2RZS.js";
8
- import "./chunk-L2ZJXV6H.js";
9
- import "./chunk-GMYN4SYT.js";
10
- import "./chunk-54DP53ZK.js";
11
- import "./chunk-COXPTYH5.js";
12
- import "./chunk-RK6EIZOL.js";
13
- import "./chunk-UEX7U2KW.js";
7
+ import "./chunk-7GTUWAQR.js";
8
+ import "./chunk-BFINJJYL.js";
9
+ import "./chunk-4KQ7OSK7.js";
10
+ import "./chunk-ZO62NAYX.js";
11
+ import "./chunk-WP6YJVAE.js";
12
+ import "./chunk-WON3DPE4.js";
13
+ import "./chunk-IVXCJA5I.js";
14
14
  import "./chunk-MO4EEYFW.js";
15
15
 
16
16
  // src/cli.ts
17
17
  void (async () => {
18
- const { runCli: runCli2 } = await import("./cli-framework-SQM2465A.js");
18
+ const { runCli: runCli2 } = await import("./cli-framework-7E5MKPMM.js");
19
19
  await runCli2();
20
20
  })().catch((err) => {
21
21
  console.error("Fatal CLI error:", err);
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  getConfigValue
4
- } from "./chunk-UEX7U2KW.js";
4
+ } from "./chunk-IVXCJA5I.js";
5
5
  import "./chunk-MO4EEYFW.js";
6
6
 
7
7
  // src/codex-launcher.ts
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  config
4
- } from "./chunk-UEX7U2KW.js";
4
+ } from "./chunk-IVXCJA5I.js";
5
5
  import "./chunk-MO4EEYFW.js";
6
6
 
7
7
  // ../providers/src/codex-provider.ts
@@ -9,7 +9,7 @@ import {
9
9
  maskSensitive,
10
10
  setConfigValue,
11
11
  validateConfigValue
12
- } from "./chunk-UEX7U2KW.js";
12
+ } from "./chunk-IVXCJA5I.js";
13
13
  import "./chunk-MO4EEYFW.js";
14
14
 
15
15
  // src/config-cli.ts
@@ -33,7 +33,7 @@ async function handleConfig(args) {
33
33
  const [subcommand, ...rest] = args;
34
34
  switch (subcommand) {
35
35
  case "setup": {
36
- const { runSetup } = await import("./setup-KOS7SRSL.js");
36
+ const { runSetup } = await import("./setup-ZFVMMNT2.js");
37
37
  await runSetup();
38
38
  break;
39
39
  }
@@ -19,10 +19,10 @@ import {
19
19
  startPerformanceMonitoring,
20
20
  stopPerformanceMonitoring,
21
21
  updateSessionState
22
- } from "./chunk-ZAQV2RZS.js";
23
- import "./chunk-L2ZJXV6H.js";
24
- import "./chunk-RK6EIZOL.js";
25
- import "./chunk-UEX7U2KW.js";
22
+ } from "./chunk-7GTUWAQR.js";
23
+ import "./chunk-BFINJJYL.js";
24
+ import "./chunk-WON3DPE4.js";
25
+ import "./chunk-IVXCJA5I.js";
26
26
  import "./chunk-MO4EEYFW.js";
27
27
  export {
28
28
  cleanupInactiveSessions,
@@ -7,8 +7,8 @@ import {
7
7
  removeProject,
8
8
  renameProject,
9
9
  unbindProjectCategory
10
- } from "./chunk-54DP53ZK.js";
11
- import "./chunk-UEX7U2KW.js";
10
+ } from "./chunk-ZO62NAYX.js";
11
+ import "./chunk-IVXCJA5I.js";
12
12
  import "./chunk-MO4EEYFW.js";
13
13
 
14
14
  // src/project-cli.ts
@@ -13,8 +13,8 @@ import {
13
13
  setProjectHistoryChannel,
14
14
  unbindProjectCategory,
15
15
  updateProject
16
- } from "./chunk-54DP53ZK.js";
17
- import "./chunk-UEX7U2KW.js";
16
+ } from "./chunk-ZO62NAYX.js";
17
+ import "./chunk-IVXCJA5I.js";
18
18
  import "./chunk-MO4EEYFW.js";
19
19
  export {
20
20
  bindProjectCategory,
@@ -3,9 +3,9 @@ import {
3
3
  buildClaudeSubagentProviderSessionId,
4
4
  registerLocalSession,
5
5
  updateLocalObservation
6
- } from "./chunk-COXPTYH5.js";
7
- import "./chunk-RK6EIZOL.js";
8
- import "./chunk-UEX7U2KW.js";
6
+ } from "./chunk-WP6YJVAE.js";
7
+ import "./chunk-WON3DPE4.js";
8
+ import "./chunk-IVXCJA5I.js";
9
9
  import "./chunk-MO4EEYFW.js";
10
10
  export {
11
11
  buildClaudeSubagentProviderSessionId,
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  getConfigValue,
4
4
  setConfigValue
5
- } from "./chunk-UEX7U2KW.js";
5
+ } from "./chunk-IVXCJA5I.js";
6
6
  import "./chunk-MO4EEYFW.js";
7
7
 
8
8
  // src/setup.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "workspacecord",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Turn Discord into a local workspace control plane for multi-agent coding sessions.",
5
5
  "type": "module",
6
6
  "license": "MIT",