@akshar5/cohall 0.12.13 → 0.12.15

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 (36) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +6 -5
  3. package/bin/{chunk-zwf5dpj9.js → chunk-07aet48k.js} +26 -18
  4. package/bin/chunk-07aet48k.js.map +14 -0
  5. package/bin/{chunk-1w61mtsq.js → chunk-0ajk2xqb.js} +4 -4
  6. package/bin/{chunk-q6dqsm9t.js → chunk-468xtafr.js} +5 -5
  7. package/bin/{chunk-2y4g3v66.js → chunk-5gvgk5pb.js} +9 -7
  8. package/bin/{chunk-2y4g3v66.js.map → chunk-5gvgk5pb.js.map} +3 -3
  9. package/bin/{chunk-fg90k4rs.js → chunk-7yrw7mgj.js} +26 -16
  10. package/bin/chunk-7yrw7mgj.js.map +15 -0
  11. package/bin/{chunk-mnz2sma9.js → chunk-9rgw9hk3.js} +3 -3
  12. package/bin/{chunk-04a27ybz.js → chunk-aj2btss5.js} +2 -5
  13. package/bin/{chunk-04a27ybz.js.map → chunk-aj2btss5.js.map} +3 -3
  14. package/bin/{chunk-f9qd4ajk.js → chunk-g4087sz3.js} +2 -2
  15. package/bin/{chunk-61fzgtwp.js → chunk-kf3vv88y.js} +3 -3
  16. package/bin/{chunk-g6b3zmtw.js → chunk-m82xx6vz.js} +1 -1
  17. package/bin/{chunk-ccfjcqrz.js → chunk-mmbenn43.js} +2 -2
  18. package/bin/{chunk-8zk47d0f.js → chunk-q8a2yv07.js} +8 -8
  19. package/bin/{chunk-8zk47d0f.js.map → chunk-q8a2yv07.js.map} +3 -3
  20. package/bin/{chunk-m5ecnn3k.js → chunk-yger1pfj.js} +2 -2
  21. package/bin/{chunk-m5ecnn3k.js.map → chunk-yger1pfj.js.map} +1 -1
  22. package/bin/cohall.js +13 -10
  23. package/bin/cohall.js.map +3 -3
  24. package/docs/install.md +3 -1
  25. package/docs/integrations.md +13 -12
  26. package/docs/onboarding.md +8 -3
  27. package/package.json +1 -1
  28. package/bin/chunk-fg90k4rs.js.map +0 -15
  29. package/bin/chunk-zwf5dpj9.js.map +0 -14
  30. /package/bin/{chunk-1w61mtsq.js.map → chunk-0ajk2xqb.js.map} +0 -0
  31. /package/bin/{chunk-q6dqsm9t.js.map → chunk-468xtafr.js.map} +0 -0
  32. /package/bin/{chunk-mnz2sma9.js.map → chunk-9rgw9hk3.js.map} +0 -0
  33. /package/bin/{chunk-f9qd4ajk.js.map → chunk-g4087sz3.js.map} +0 -0
  34. /package/bin/{chunk-61fzgtwp.js.map → chunk-kf3vv88y.js.map} +0 -0
  35. /package/bin/{chunk-g6b3zmtw.js.map → chunk-m82xx6vz.js.map} +0 -0
  36. /package/bin/{chunk-ccfjcqrz.js.map → chunk-mmbenn43.js.map} +0 -0
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  readMcpHostDiagnostics
3
- } from "./chunk-61fzgtwp.js";
3
+ } from "./chunk-kf3vv88y.js";
4
4
  import"./chunk-p493vm5f.js";
5
5
  import {
6
6
  configurationPath
7
- } from "./chunk-g6b3zmtw.js";
8
- import"./chunk-04a27ybz.js";
7
+ } from "./chunk-m82xx6vz.js";
8
+ import"./chunk-aj2btss5.js";
9
9
  import {
10
10
  version
11
- } from "./chunk-m5ecnn3k.js";
11
+ } from "./chunk-yger1pfj.js";
12
12
 
13
13
  // apps/device/src/mcp-diagnostics.ts
14
14
  import { Client } from "@modelcontextprotocol/sdk/client/index.js";
@@ -7,12 +7,12 @@ import {
7
7
  run,
8
8
  runGrokBot,
9
9
  upgrade
10
- } from "./chunk-2y4g3v66.js";
10
+ } from "./chunk-5gvgk5pb.js";
11
11
  import {
12
12
  prepareTaskFiles
13
- } from "./chunk-ccfjcqrz.js";
13
+ } from "./chunk-mmbenn43.js";
14
14
  import"./chunk-p493vm5f.js";
15
- import"./chunk-g6b3zmtw.js";
15
+ import"./chunk-m82xx6vz.js";
16
16
  import {
17
17
  Device,
18
18
  SocketEvent,
@@ -20,10 +20,10 @@ import {
20
20
  maxSocketPayloadBytes,
21
21
  now,
22
22
  taskSlot
23
- } from "./chunk-04a27ybz.js";
23
+ } from "./chunk-aj2btss5.js";
24
24
  import {
25
25
  version
26
- } from "./chunk-m5ecnn3k.js";
26
+ } from "./chunk-yger1pfj.js";
27
27
 
28
28
  // apps/device/src/daemon.ts
29
29
  import { Effect, Schedule, Schema } from "effect";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-p493vm5f.js";
4
4
  import {
5
5
  configurationPath
6
- } from "./chunk-g6b3zmtw.js";
6
+ } from "./chunk-m82xx6vz.js";
7
7
  import {
8
8
  Bot,
9
9
  BotId,
@@ -12,7 +12,7 @@ import {
12
12
  TaskId,
13
13
  TaskRunId,
14
14
  ThreadId
15
- } from "./chunk-04a27ybz.js";
15
+ } from "./chunk-aj2btss5.js";
16
16
 
17
17
  // packages/providers/src/index.ts
18
18
  import { Effect, Schema } from "effect";
@@ -685,10 +685,12 @@ ${options.prompt}`
685
685
  const notice = `
686
686
 
687
687
  [Started a new ${executables[options.provider]} session: this thread's previous session is not available for this workspace on this device, so this turn did not see earlier turns.]`;
688
- return {
689
- ...turn,
690
- result: `${turn.result.slice(0, maxResultBytes - notice.length)}${notice}`
691
- };
688
+ const budget = maxResultBytes - byteLength(notice);
689
+ const bytes = Buffer.from(turn.result);
690
+ const prefix = bytes.length <= budget ? turn.result : new TextDecoder("utf-8", { ignoreBOM: true }).decode(bytes.subarray(0, budget), {
691
+ stream: true
692
+ });
693
+ return { ...turn, result: prefix + notice };
692
694
  }));
693
695
  const resumable = options.provider === "opencode" ? openCodeSessionIn(options.cwd, sessionId) : Effect.succeed(true);
694
696
  return resumable.pipe(Effect.flatMap((resume) => resume ? runOnce(options).pipe(Effect.catchIf((error) => error._tag === "CohallProvider.RunError" && missingSession[options.provider](error.message, sessionId), () => startOver)) : startOver));
@@ -1982,4 +1984,4 @@ var upgrade = async (options) => {
1982
1984
 
1983
1985
  export { ProviderRunError, findExecutable, availableProviders, run, writeBotReply, cleanupBotReply, discoverGrokBots, runGrokBot, normalizeUpgradeTarget, deviceVersionWarning, resolvePackageInstallation, pnpmServiceDirectories, trustedExecutable, serviceCandidates, upgrade };
1984
1986
 
1985
- //# debugId=892C5F97C04C682464756E2164756E21
1987
+ //# debugId=134174C6CD9EFD9164756E2164756E21