@openscout/scout 0.2.11 → 0.2.13
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/README.md +2 -3
- package/dist/main.mjs +31 -26
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
# scout
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> **Requires [Bun](https://bun.sh).** Scout uses Bun as its runtime. If you don't have it: `brew install bun`
|
|
4
4
|
|
|
5
5
|
Install:
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
brew install bun
|
|
9
8
|
bun add -g @openscout/scout
|
|
10
9
|
scout --help
|
|
11
10
|
```
|
|
12
11
|
|
|
13
|
-
`@openscout/scout` is the published package name. It installs the `scout` command.
|
|
12
|
+
`@openscout/scout` is the published package name. It installs the `scout` command and depends on `@openscout/runtime` for the local broker service.
|
|
14
13
|
|
|
15
14
|
## Canonical Flow
|
|
16
15
|
|
package/dist/main.mjs
CHANGED
|
@@ -1750,7 +1750,7 @@ var init_dist2 = __esm(() => {
|
|
|
1750
1750
|
*/
|
|
1751
1751
|
});
|
|
1752
1752
|
|
|
1753
|
-
// ../runtime/
|
|
1753
|
+
// ../runtime/src/support-paths.ts
|
|
1754
1754
|
import { existsSync, mkdirSync, rmSync, writeFileSync } from "node:fs";
|
|
1755
1755
|
import { homedir } from "node:os";
|
|
1756
1756
|
import { join } from "node:path";
|
|
@@ -1799,7 +1799,7 @@ function ensureOpenScoutCleanSlateSync() {
|
|
|
1799
1799
|
var OPENSCOUT_RPC_CUTOVER_MARKER = "rpc-runtime-cutover-v1";
|
|
1800
1800
|
var init_support_paths = () => {};
|
|
1801
1801
|
|
|
1802
|
-
// ../runtime/
|
|
1802
|
+
// ../runtime/src/harness-catalog.ts
|
|
1803
1803
|
import { execFileSync } from "node:child_process";
|
|
1804
1804
|
import { existsSync as existsSync2, statSync } from "node:fs";
|
|
1805
1805
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
@@ -2146,7 +2146,7 @@ var init_harness_catalog = __esm(() => {
|
|
|
2146
2146
|
];
|
|
2147
2147
|
});
|
|
2148
2148
|
|
|
2149
|
-
// ../runtime/
|
|
2149
|
+
// ../runtime/src/user-project-hints.ts
|
|
2150
2150
|
import { readdir, readFile as readFile2, stat } from "node:fs/promises";
|
|
2151
2151
|
import { homedir as homedir2 } from "node:os";
|
|
2152
2152
|
import { dirname as dirname2, join as join3, resolve as resolve3 } from "node:path";
|
|
@@ -2471,7 +2471,7 @@ var init_user_project_hints = __esm(() => {
|
|
|
2471
2471
|
];
|
|
2472
2472
|
});
|
|
2473
2473
|
|
|
2474
|
-
// ../runtime/
|
|
2474
|
+
// ../runtime/src/setup.ts
|
|
2475
2475
|
import { execFileSync as execFileSync2 } from "node:child_process";
|
|
2476
2476
|
import { createHash } from "node:crypto";
|
|
2477
2477
|
import { access, mkdir as mkdir2, readdir as readdir2, readFile as readFile3, realpath, rm, stat as stat2, writeFile as writeFile2 } from "node:fs/promises";
|
|
@@ -4202,7 +4202,7 @@ var init_setup = __esm(() => {
|
|
|
4202
4202
|
PROJECT_WEAK_MARKERS_FLAT_NESTED = partitionFlatAndNestedMarkers(PROJECT_WEAK_MARKERS);
|
|
4203
4203
|
});
|
|
4204
4204
|
|
|
4205
|
-
// ../runtime/
|
|
4205
|
+
// ../runtime/src/broker-service.ts
|
|
4206
4206
|
import { spawnSync } from "node:child_process";
|
|
4207
4207
|
import { existsSync as existsSync3, mkdirSync as mkdirSync2, readFileSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
4208
4208
|
import { homedir as homedir4 } from "node:os";
|
|
@@ -4213,31 +4213,36 @@ function buildDefaultBrokerUrl(host = DEFAULT_BROKER_HOST, port = DEFAULT_BROKER
|
|
|
4213
4213
|
}
|
|
4214
4214
|
function runtimePackageDir() {
|
|
4215
4215
|
const explicit = process.env.OPENSCOUT_RUNTIME_PACKAGE_DIR?.trim();
|
|
4216
|
-
if (explicit)
|
|
4216
|
+
if (explicit)
|
|
4217
4217
|
return explicit;
|
|
4218
|
-
|
|
4218
|
+
const fromGlobal = findGlobalRuntimeDir();
|
|
4219
|
+
if (fromGlobal)
|
|
4220
|
+
return fromGlobal;
|
|
4221
|
+
const fromCwd = findWorkspaceRuntimeDir(process.cwd());
|
|
4222
|
+
if (fromCwd)
|
|
4223
|
+
return fromCwd;
|
|
4219
4224
|
const moduleDir = dirname4(fileURLToPath2(import.meta.url));
|
|
4220
|
-
|
|
4221
|
-
if (isRuntimePackageDir(candidate)) {
|
|
4222
|
-
return candidate;
|
|
4223
|
-
}
|
|
4224
|
-
const fromCwd = findRuntimePackageDir(process.cwd());
|
|
4225
|
-
return fromCwd ?? candidate;
|
|
4225
|
+
return resolve5(moduleDir, "..");
|
|
4226
4226
|
}
|
|
4227
|
-
function
|
|
4228
|
-
return existsSync3(join5(candidate, "package.json")) && existsSync3(join5(candidate, "
|
|
4227
|
+
function isInstalledRuntimePackageDir(candidate) {
|
|
4228
|
+
return existsSync3(join5(candidate, "package.json")) && existsSync3(join5(candidate, "bin", "openscout-runtime.mjs"));
|
|
4229
4229
|
}
|
|
4230
|
-
function
|
|
4230
|
+
function findGlobalRuntimeDir() {
|
|
4231
|
+
const bunCandidate = join5(homedir4(), ".bun", "node_modules", "@openscout", "runtime");
|
|
4232
|
+
if (isInstalledRuntimePackageDir(bunCandidate))
|
|
4233
|
+
return bunCandidate;
|
|
4234
|
+
return null;
|
|
4235
|
+
}
|
|
4236
|
+
function findWorkspaceRuntimeDir(startDir) {
|
|
4231
4237
|
let current = resolve5(startDir);
|
|
4232
4238
|
while (true) {
|
|
4233
4239
|
const candidate = join5(current, "packages", "runtime");
|
|
4234
|
-
if (
|
|
4240
|
+
if (existsSync3(join5(candidate, "package.json")) && existsSync3(join5(candidate, "src"))) {
|
|
4235
4241
|
return candidate;
|
|
4236
4242
|
}
|
|
4237
4243
|
const parent = dirname4(current);
|
|
4238
|
-
if (parent === current)
|
|
4244
|
+
if (parent === current)
|
|
4239
4245
|
return null;
|
|
4240
|
-
}
|
|
4241
4246
|
current = parent;
|
|
4242
4247
|
}
|
|
4243
4248
|
}
|
|
@@ -4672,7 +4677,7 @@ var init_broker_service = __esm(async () => {
|
|
|
4672
4677
|
}
|
|
4673
4678
|
});
|
|
4674
4679
|
|
|
4675
|
-
// ../runtime/
|
|
4680
|
+
// ../runtime/src/claude-stream-json.ts
|
|
4676
4681
|
import { randomUUID } from "node:crypto";
|
|
4677
4682
|
import { spawn } from "node:child_process";
|
|
4678
4683
|
import { appendFile, mkdir as mkdir3, readFile as readFile4, rm as rm2, writeFile as writeFile3 } from "node:fs/promises";
|
|
@@ -4957,7 +4962,7 @@ var init_claude_stream_json = __esm(() => {
|
|
|
4957
4962
|
sessions = new Map;
|
|
4958
4963
|
});
|
|
4959
4964
|
|
|
4960
|
-
// ../runtime/
|
|
4965
|
+
// ../runtime/src/codex-app-server.ts
|
|
4961
4966
|
import { spawn as spawn2 } from "node:child_process";
|
|
4962
4967
|
import { access as access2, appendFile as appendFile2, constants, mkdir as mkdir4, readFile as readFile5, rm as rm3, writeFile as writeFile4 } from "node:fs/promises";
|
|
4963
4968
|
import { delimiter, join as join7 } from "node:path";
|
|
@@ -5610,7 +5615,7 @@ var init_codex_app_server = __esm(() => {
|
|
|
5610
5615
|
sessions2 = new Map;
|
|
5611
5616
|
});
|
|
5612
5617
|
|
|
5613
|
-
// ../runtime/
|
|
5618
|
+
// ../runtime/src/collaboration-contract.ts
|
|
5614
5619
|
function buildCollaborationContractPrompt(agentId) {
|
|
5615
5620
|
return [
|
|
5616
5621
|
"Collaboration contract:",
|
|
@@ -5628,7 +5633,7 @@ function buildCollaborationContractPrompt(agentId) {
|
|
|
5628
5633
|
`);
|
|
5629
5634
|
}
|
|
5630
5635
|
|
|
5631
|
-
// ../runtime/
|
|
5636
|
+
// ../runtime/src/local-agent-template.ts
|
|
5632
5637
|
var LOCAL_AGENT_SYSTEM_PROMPT_TEMPLATE_HINT;
|
|
5633
5638
|
var init_local_agent_template = __esm(() => {
|
|
5634
5639
|
LOCAL_AGENT_SYSTEM_PROMPT_TEMPLATE_HINT = [
|
|
@@ -5638,7 +5643,7 @@ var init_local_agent_template = __esm(() => {
|
|
|
5638
5643
|
].join("");
|
|
5639
5644
|
});
|
|
5640
5645
|
|
|
5641
|
-
// ../runtime/
|
|
5646
|
+
// ../runtime/src/local-agents.ts
|
|
5642
5647
|
import { execFileSync as execFileSync3, execSync } from "node:child_process";
|
|
5643
5648
|
import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
|
|
5644
5649
|
import { mkdir as mkdir5, rm as rm4, stat as stat3, writeFile as writeFile5 } from "node:fs/promises";
|
|
@@ -7884,7 +7889,7 @@ var init_broadcast = __esm(async () => {
|
|
|
7884
7889
|
await init_service();
|
|
7885
7890
|
});
|
|
7886
7891
|
|
|
7887
|
-
// ../runtime/
|
|
7892
|
+
// ../runtime/src/relay-agent-cards.ts
|
|
7888
7893
|
function metadataString3(metadata, key) {
|
|
7889
7894
|
const value = metadata?.[key];
|
|
7890
7895
|
return typeof value === "string" && value.trim().length > 0 ? value.trim() : undefined;
|
|
@@ -35669,7 +35674,7 @@ function renderScoutHelp(version2 = "0.2.0") {
|
|
|
35669
35674
|
init_options();
|
|
35670
35675
|
|
|
35671
35676
|
// ../../apps/scout/src/shared/product.ts
|
|
35672
|
-
var SCOUT_APP_VERSION = "0.2.
|
|
35677
|
+
var SCOUT_APP_VERSION = "0.2.13";
|
|
35673
35678
|
|
|
35674
35679
|
// ../../apps/scout/src/cli/main.ts
|
|
35675
35680
|
async function main2() {
|