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.
- package/dist/{archive-manager-XM3UPOY2.js → archive-manager-RW36JGUV.js} +4 -4
- package/dist/{attachment-cli-IGQBB6YJ.js → attachment-cli-MF7XZ4WT.js} +2 -2
- package/dist/{chunk-GMYN4SYT.js → chunk-4KQ7OSK7.js} +3 -3
- package/dist/{chunk-ZAQV2RZS.js → chunk-7GTUWAQR.js} +341 -1158
- package/dist/{chunk-I6EOCCQV.js → chunk-AGB4GP4G.js} +918 -620
- package/dist/{chunk-L2ZJXV6H.js → chunk-BFINJJYL.js} +1 -1
- package/dist/{chunk-UEX7U2KW.js → chunk-IVXCJA5I.js} +902 -232
- package/dist/chunk-WON3DPE4.js +5092 -0
- package/dist/{chunk-COXPTYH5.js → chunk-WP6YJVAE.js} +4 -4
- package/dist/{chunk-54DP53ZK.js → chunk-ZO62NAYX.js} +29 -3
- package/dist/cli-framework-7E5MKPMM.js +18 -0
- package/dist/cli.js +9 -9
- package/dist/{codex-launcher-VDQ5VZPT.js → codex-launcher-ZBQ5VL6L.js} +1 -1
- package/dist/{codex-provider-NYI7KBGO.js → codex-provider-Q4Z6UKO6.js} +1 -1
- package/dist/{config-cli-RQR2ZRQ5.js → config-cli-7JEV3WYY.js} +2 -2
- package/dist/{panel-adapter-QTDL3S6O.js → panel-adapter-U75WXDLB.js} +4 -4
- package/dist/{project-cli-6P6ZWDR6.js → project-cli-ZXMHOFUJ.js} +2 -2
- package/dist/{project-registry-OEVPECMS.js → project-registry-ED6P5ZTM.js} +2 -2
- package/dist/{session-local-registration-RIO5EPZ5.js → session-local-registration-MISPPGXF.js} +3 -3
- package/dist/{setup-KOS7SRSL.js → setup-ZFVMMNT2.js} +1 -1
- package/package.json +1 -1
- package/dist/chunk-RK6EIZOL.js +0 -589
- package/dist/cli-framework-SQM2465A.js +0 -18
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
createSession,
|
|
4
4
|
getSessionByProviderSession,
|
|
5
5
|
updateSession
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WON3DPE4.js";
|
|
7
7
|
import {
|
|
8
8
|
resolvePath
|
|
9
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
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
|
-
|
|
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-
|
|
5
|
+
} from "./chunk-AGB4GP4G.js";
|
|
6
6
|
import "./chunk-QWPKAUSV.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
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-
|
|
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);
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
maskSensitive,
|
|
10
10
|
setConfigValue,
|
|
11
11
|
validateConfigValue
|
|
12
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
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,
|
|
@@ -13,8 +13,8 @@ import {
|
|
|
13
13
|
setProjectHistoryChannel,
|
|
14
14
|
unbindProjectCategory,
|
|
15
15
|
updateProject
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-ZO62NAYX.js";
|
|
17
|
+
import "./chunk-IVXCJA5I.js";
|
|
18
18
|
import "./chunk-MO4EEYFW.js";
|
|
19
19
|
export {
|
|
20
20
|
bindProjectCategory,
|
package/dist/{session-local-registration-RIO5EPZ5.js → session-local-registration-MISPPGXF.js}
RENAMED
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
buildClaudeSubagentProviderSessionId,
|
|
4
4
|
registerLocalSession,
|
|
5
5
|
updateLocalObservation
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
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,
|