@heossihq/beecode 0.1.3 → 0.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 (3) hide show
  1. package/README.md +11 -3
  2. package/dist/cli.js +106 -22
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -9,9 +9,17 @@ beecode "add a guard to handleAuth that rejects an empty token"
9
9
  ```
10
10
 
11
11
  Bee Code speaks Bee's **agent plane** (`bee.code.v1`) against
12
- `https://api.bee.heossi.com/bee/code/v1/turns`. The transcript, the approval gate
13
- and the loop live on your machine: the server answers one turn at a time and
14
- holds nothing between them.
12
+ `https://api.bee.heossi.com/bee/code/v1/turns`. The transcript, approval gate,
13
+ and tool loop live on your machine: the server answers one turn at a time and
14
+ does not retain the conversation transcript.
15
+
16
+ Each customer task also has a durable, account-scoped run ID for cancellation,
17
+ bounded manager/specialist reservations, token ceilings, and terminal status.
18
+ The service stores a SHA-256 task fingerprint rather than the raw prompt; the
19
+ full transcript remains local and is sent explicitly on each tool-loop turn.
20
+ Cell uses one manager at a time. Entitled paid models can use bounded logical
21
+ worker shards and an independent verifier without starting one provider call
22
+ per logical agent.
15
23
 
16
24
  Every connection uses post-quantum key exchange - `X25519MLKEM768`, whose
17
25
  ML-KEM-768 half is NIST FIPS 203. On every plan, including free. Check it
package/dist/cli.js CHANGED
@@ -705,13 +705,18 @@ var BEE_AGENT_TOOLS = [
705
705
  "git_branch",
706
706
  "git_commit",
707
707
  "git_push",
708
- "git_open_pull_request"
708
+ "git_open_pull_request",
709
+ "vscode_tool_invoke"
709
710
  ];
710
711
  var TOOL_NAMES = new Set(BEE_AGENT_TOOLS);
711
712
  var EVENT_TYPES = /* @__PURE__ */ new Set([
712
713
  "turn.started",
713
714
  "assistant.delta",
714
715
  "plan.updated",
716
+ "orchestration.started",
717
+ "worker.started",
718
+ "worker.completed",
719
+ "worker.failed",
715
720
  "tool.call",
716
721
  "file.delta",
717
722
  "tool.progress",
@@ -805,20 +810,6 @@ var BeeAgentClient = class {
805
810
  }
806
811
  };
807
812
 
808
- // ../core/dist/bee-code.js
809
- var BEE_CODE_READ_ONLY_ACTIONS = [
810
- "list_files",
811
- "discover_repository_controls",
812
- "read_file",
813
- "search_files",
814
- "git_status",
815
- "git_diff",
816
- "checkpoint_diff"
817
- ];
818
- var BEE_CODE_READ_ONLY_ACTION_SET = new Set(BEE_CODE_READ_ONLY_ACTIONS);
819
- var BEE_CODE_FILE_CHUNK_MAX_BYTES = 192 * 1024;
820
- var BEE_CODE_FILE_BATCH_MAX_BYTES = 8 * 1024 * 1024;
821
-
822
813
  // ../core/dist/constants/bee-domains.js
823
814
  var TIER_1_DOMAINS = [
824
815
  "general",
@@ -1089,13 +1080,6 @@ function domainTier(domain) {
1089
1080
  return t ?? null;
1090
1081
  }
1091
1082
 
1092
- // ../core/dist/constants/brand.js
1093
- var BRAND_PRODUCT_NAME = "Bee by HEOSSI";
1094
- var BRAND_TAGLINE = "The Progressive Quantum-Native Intelligence Engine";
1095
- var BRAND_FULL_NAME = `${BRAND_PRODUCT_NAME} - ${BRAND_TAGLINE}`;
1096
- var BRAND_DESCRIPTION = "A specialist-intelligence platform uniting BSIS, multimodal AI, post-quantum assurance, and governed real-quantum-hardware execution for enterprise and high-assurance work.";
1097
- var BRAND_META_DESCRIPTION = `${BRAND_FULL_NAME}. ${BRAND_DESCRIPTION}`;
1098
-
1099
1083
  // ../core/dist/constants/domain-intelligence.js
1100
1084
  var DOMAIN_SIGNAL_OVERRIDES = Object.freeze({
1101
1085
  programming: ["software", "source code", "debug", "refactor", "compiler", "api design"],
@@ -1260,6 +1244,97 @@ var DOMAIN_MANIFESTS = Object.freeze(Object.fromEntries(SPECIALIST_DOMAINS.map((
1260
1244
  return [domain, manifest];
1261
1245
  })));
1262
1246
 
1247
+ // ../core/dist/bee-agent-orchestration.js
1248
+ var POLICIES = Object.freeze({
1249
+ cell: {
1250
+ maxLogicalWorkers: 1,
1251
+ maxParallelWorkers: 1,
1252
+ maxSpecialistCallsPerRun: 0,
1253
+ maxRoundsPerRun: 24,
1254
+ maxRunTokens: 64e3
1255
+ },
1256
+ brood: {
1257
+ maxLogicalWorkers: 4,
1258
+ maxParallelWorkers: 2,
1259
+ maxSpecialistCallsPerRun: 3,
1260
+ maxRoundsPerRun: 48,
1261
+ maxRunTokens: 256e3
1262
+ },
1263
+ comb: {
1264
+ maxLogicalWorkers: 16,
1265
+ maxParallelWorkers: 4,
1266
+ maxSpecialistCallsPerRun: 7,
1267
+ maxRoundsPerRun: 96,
1268
+ maxRunTokens: 512e3
1269
+ },
1270
+ buzz: {
1271
+ maxLogicalWorkers: 64,
1272
+ maxParallelWorkers: 8,
1273
+ maxSpecialistCallsPerRun: 15,
1274
+ maxRoundsPerRun: 128,
1275
+ maxRunTokens: 1e6
1276
+ },
1277
+ hive: {
1278
+ maxLogicalWorkers: 256,
1279
+ maxParallelWorkers: 16,
1280
+ maxSpecialistCallsPerRun: 31,
1281
+ maxRoundsPerRun: 192,
1282
+ maxRunTokens: 2e6
1283
+ },
1284
+ swarm: {
1285
+ maxLogicalWorkers: 1e3,
1286
+ maxParallelWorkers: 32,
1287
+ maxSpecialistCallsPerRun: 63,
1288
+ maxRoundsPerRun: 256,
1289
+ maxRunTokens: 4e6
1290
+ },
1291
+ enterprise: {
1292
+ maxLogicalWorkers: 1e3,
1293
+ maxParallelWorkers: 64,
1294
+ maxSpecialistCallsPerRun: 255,
1295
+ maxRoundsPerRun: 512,
1296
+ maxRunTokens: 16e6
1297
+ }
1298
+ });
1299
+ var PLAN_POLICY = Object.freeze({
1300
+ "bee-cell": "cell",
1301
+ "api-free": "cell",
1302
+ "bee-brood": "brood",
1303
+ "api-build": "brood",
1304
+ "bee-comb": "comb",
1305
+ "api-scale": "comb",
1306
+ "bee-buzz": "buzz",
1307
+ "bee-hive": "hive",
1308
+ "api-propolis": "hive",
1309
+ "bee-swarm": "swarm",
1310
+ "bee-regulated-cloud": "enterprise",
1311
+ "bee-enclave-private": "enterprise",
1312
+ "bee-enclave-regulated": "enterprise",
1313
+ "bee-enclave-sovereign": "enterprise",
1314
+ "api-enterprise": "enterprise"
1315
+ });
1316
+
1317
+ // ../core/dist/bee-code.js
1318
+ var BEE_CODE_READ_ONLY_ACTIONS = [
1319
+ "list_files",
1320
+ "discover_repository_controls",
1321
+ "read_file",
1322
+ "search_files",
1323
+ "git_status",
1324
+ "git_diff",
1325
+ "checkpoint_diff"
1326
+ ];
1327
+ var BEE_CODE_READ_ONLY_ACTION_SET = new Set(BEE_CODE_READ_ONLY_ACTIONS);
1328
+ var BEE_CODE_FILE_CHUNK_MAX_BYTES = 192 * 1024;
1329
+ var BEE_CODE_FILE_BATCH_MAX_BYTES = 8 * 1024 * 1024;
1330
+
1331
+ // ../core/dist/constants/brand.js
1332
+ var BRAND_PRODUCT_NAME = "Bee by HEOSSI";
1333
+ var BRAND_TAGLINE = "The Progressive Quantum-Native Intelligence Engine";
1334
+ var BRAND_FULL_NAME = `${BRAND_PRODUCT_NAME} - ${BRAND_TAGLINE}`;
1335
+ var BRAND_DESCRIPTION = "A specialist-intelligence platform uniting BSIS, multimodal AI, post-quantum assurance, and governed real-quantum-hardware execution for enterprise and high-assurance work.";
1336
+ var BRAND_META_DESCRIPTION = `${BRAND_FULL_NAME}. ${BRAND_DESCRIPTION}`;
1337
+
1263
1338
  // ../core/dist/constants/identity.js
1264
1339
  var BEE_IDENTITY_SYSTEM_PROMPT = [
1265
1340
  "You are Bee by HEOSSI, The Progressive Quantum-Native Intelligence Engine - a specialist-purpose intelligence system with broad general capabilities, not a generic chatbot. HEOSSI is a Singapore company founded by Christopher Frost.",
@@ -1809,6 +1884,14 @@ function render(event) {
1809
1884
  console.error(`Writing ${event.path}\u2026`);
1810
1885
  } else if (event.type === "tool.call") {
1811
1886
  console.error(`\u2192 ${event.name}`);
1887
+ } else if (event.type === "orchestration.started") {
1888
+ console.error(
1889
+ `Manager \xB7 ${event.plan.logicalWorkers} logical workers \xB7 ${event.plan.parallelWorkers} parallel max`
1890
+ );
1891
+ } else if (event.type === "worker.started") {
1892
+ console.error(`\u21B3 ${event.role} \xB7 ${event.domain}`);
1893
+ } else if (event.type === "worker.failed") {
1894
+ console.error(`\u21B3 ${event.role} failed: ${event.error.message}`);
1812
1895
  } else if (event.type === "turn.failed") {
1813
1896
  console.error(`Bee Code failed: ${event.error.message}`);
1814
1897
  }
@@ -1843,6 +1926,7 @@ async function main() {
1843
1926
  const request = {
1844
1927
  protocol: BEE_CODE_RUNTIME_PROTOCOL,
1845
1928
  session_id: randomUUID4(),
1929
+ run_id: randomUUID4(),
1846
1930
  turn_id: randomUUID4(),
1847
1931
  model: options.model,
1848
1932
  mode: options.mode,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heossihq/beecode",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Bee Code - an agentic coding assistant for your terminal, from HEOSSI.",
5
5
  "keywords": [
6
6
  "bee",