@staff0rd/assist 0.248.0 → 0.249.0
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/commands/sessions/web/bundle.js +61 -61
- package/dist/index.js +2 -36
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.
|
|
9
|
+
version: "0.249.0",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -332,17 +332,6 @@ function loadConfig() {
|
|
|
332
332
|
const merged = mergeRawConfigs(globalRaw, projectRaw);
|
|
333
333
|
return assistConfigSchema.parse(merged);
|
|
334
334
|
}
|
|
335
|
-
function loadConfigFrom(startDir) {
|
|
336
|
-
const found = findConfigUp(startDir);
|
|
337
|
-
const configPath = found?.configPath ?? join(startDir, "assist.yml");
|
|
338
|
-
const globalRaw = loadRawYaml(getGlobalConfigPath());
|
|
339
|
-
const projectRaw = loadRawYaml(configPath);
|
|
340
|
-
const merged = mergeRawConfigs(globalRaw, projectRaw);
|
|
341
|
-
return {
|
|
342
|
-
config: assistConfigSchema.parse(merged),
|
|
343
|
-
configDir: dirname(configPath)
|
|
344
|
-
};
|
|
345
|
-
}
|
|
346
335
|
function loadProjectConfig() {
|
|
347
336
|
return loadRawYaml(getConfigPath());
|
|
348
337
|
}
|
|
@@ -4564,12 +4553,7 @@ var handleRequest = createFallbackHandler(
|
|
|
4564
4553
|
|
|
4565
4554
|
// src/commands/sessions/web/handleSocket.ts
|
|
4566
4555
|
import { createInterface as createInterface2 } from "readline";
|
|
4567
|
-
var CWD_DEFAULTED_TYPES = /* @__PURE__ */ new Set([
|
|
4568
|
-
"create",
|
|
4569
|
-
"create-run",
|
|
4570
|
-
"create-assist",
|
|
4571
|
-
"run-configs"
|
|
4572
|
-
]);
|
|
4556
|
+
var CWD_DEFAULTED_TYPES = /* @__PURE__ */ new Set(["create", "create-run", "create-assist"]);
|
|
4573
4557
|
function handleSocket(ws, ctx) {
|
|
4574
4558
|
const connection = openDaemonConnection(ws, ctx);
|
|
4575
4559
|
connection.catch(() => {
|
|
@@ -17599,20 +17583,6 @@ import * as net2 from "net";
|
|
|
17599
17583
|
// src/commands/sessions/daemon/handleConnection.ts
|
|
17600
17584
|
import { createInterface as createInterface5 } from "readline";
|
|
17601
17585
|
|
|
17602
|
-
// src/commands/sessions/daemon/handleRunConfigs.ts
|
|
17603
|
-
function handleRunConfigs(client, cwd) {
|
|
17604
|
-
try {
|
|
17605
|
-
const { config, configDir } = loadConfigFrom(cwd);
|
|
17606
|
-
const configs = resolveRunConfigs(config.run, configDir);
|
|
17607
|
-
sendTo(client, {
|
|
17608
|
-
type: "run-configs",
|
|
17609
|
-
configs: configs.map(({ name, params }) => ({ name, params }))
|
|
17610
|
-
});
|
|
17611
|
-
} catch {
|
|
17612
|
-
sendTo(client, { type: "run-configs", configs: [] });
|
|
17613
|
-
}
|
|
17614
|
-
}
|
|
17615
|
-
|
|
17616
17586
|
// src/commands/sessions/daemon/dispatchMessage.ts
|
|
17617
17587
|
function sendCreated(client, id) {
|
|
17618
17588
|
sendTo(client, { type: "created", sessionId: id });
|
|
@@ -17655,9 +17625,6 @@ function handleResume(client, manager, data) {
|
|
|
17655
17625
|
)
|
|
17656
17626
|
);
|
|
17657
17627
|
}
|
|
17658
|
-
function runConfigs(client, _manager, data) {
|
|
17659
|
-
handleRunConfigs(client, data.cwd);
|
|
17660
|
-
}
|
|
17661
17628
|
function handleHistory(client, manager) {
|
|
17662
17629
|
manager.getHistory().then((history) => {
|
|
17663
17630
|
sendTo(client, { type: "history", sessions: history });
|
|
@@ -17674,7 +17641,6 @@ var handlers = {
|
|
|
17674
17641
|
"create-run": handleCreateRun,
|
|
17675
17642
|
"create-assist": handleCreateAssist,
|
|
17676
17643
|
resume: handleResume,
|
|
17677
|
-
"run-configs": runConfigs,
|
|
17678
17644
|
history: handleHistory,
|
|
17679
17645
|
shutdown: handleShutdown,
|
|
17680
17646
|
input: (_client, m, d) => m.writeToSession(d.sessionId, d.data),
|