@rallycry/conveyor-agent 11.0.5 → 11.0.7

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/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  SessionRunner,
3
3
  unshallowRepo
4
- } from "./chunk-J2NPWBVZ.js";
5
- import "./chunk-XORJ6SII.js";
6
- import "./chunk-W6VILPQE.js";
4
+ } from "./chunk-NFNB2C35.js";
5
+ import "./chunk-SR66HQKB.js";
6
+ import "./chunk-JG3VMWRQ.js";
7
7
  import {
8
8
  AgentConnection,
9
9
  GIT_TIMEOUT_MS,
@@ -17,7 +17,7 @@ import {
17
17
  stageAndCommit,
18
18
  updateRemoteToken,
19
19
  workspacePathExists
20
- } from "./chunk-SLUBOIYE.js";
20
+ } from "./chunk-APP6Y2D7.js";
21
21
  import "./chunk-GL2DIQEQ.js";
22
22
  import {
23
23
  runAuthTokenCommand,
@@ -28,7 +28,7 @@ import "./chunk-7P6QZHXZ.js";
28
28
  import "./chunk-IA45XHOA.js";
29
29
  import {
30
30
  getWorkbenchClient
31
- } from "./chunk-EXQ6AHOY.js";
31
+ } from "./chunk-TOTCEWJD.js";
32
32
  import {
33
33
  workbenchEnabled
34
34
  } from "./chunk-KMB3BU4S.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  WorkspaceCommandSupervisor
3
- } from "./chunk-URYBO32C.js";
3
+ } from "./chunk-43XITDZP.js";
4
4
  import {
5
5
  AgentConnection,
6
6
  CodespacePortVisibility,
@@ -11,11 +11,11 @@ import {
11
11
  createServiceLogger,
12
12
  ensureOnTaskBranch,
13
13
  loadConveyorConfig
14
- } from "./chunk-SLUBOIYE.js";
14
+ } from "./chunk-APP6Y2D7.js";
15
15
  import "./chunk-GL2DIQEQ.js";
16
16
  import "./chunk-W4LZ7R6Z.js";
17
17
  import "./chunk-IA45XHOA.js";
18
- import "./chunk-EXQ6AHOY.js";
18
+ import "./chunk-TOTCEWJD.js";
19
19
  import "./chunk-KMB3BU4S.js";
20
20
  import "./chunk-6Q6LQBWO.js";
21
21
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  startWorkbenchServer
3
- } from "./chunk-D57S4UR5.js";
4
- import "./chunk-W6VILPQE.js";
3
+ } from "./chunk-IBAIJY7V.js";
4
+ import "./chunk-JG3VMWRQ.js";
5
5
  import "./chunk-W4LZ7R6Z.js";
6
6
  import "./chunk-6Q6LQBWO.js";
7
7
  import "./chunk-6W6UZ4SJ.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rallycry/conveyor-agent",
3
- "version": "11.0.5",
3
+ "version": "11.0.7",
4
4
  "description": "Conveyor Agent Runner v10 - PTY harness for the task chat (SDK harness for audit/project-chat). Agent-as-User architecture with BaseService patterns. Works locally too.",
5
5
  "keywords": [
6
6
  "agent",
@@ -1,46 +0,0 @@
1
- // src/runner/session-runner-helpers.ts
2
- import { readFileSync } from "fs";
3
- import { dirname, join } from "path";
4
- import { fileURLToPath } from "url";
5
- function mapChatHistory(messages) {
6
- if (!messages) return [];
7
- return messages.map((m) => ({
8
- id: m.id,
9
- role: m.role ?? "user",
10
- content: m.content ?? "",
11
- userId: m.userId,
12
- userName: m.user?.name ?? void 0,
13
- createdAt: m.createdAt,
14
- ...m.source ? { source: m.source } : {},
15
- ...m.files && m.files.length > 0 ? {
16
- files: m.files.map((f) => ({
17
- fileId: f.id,
18
- fileName: f.fileName,
19
- mimeType: f.mimeType,
20
- fileSize: f.fileSize,
21
- downloadUrl: f.downloadUrl ?? "",
22
- content: f.content,
23
- contentEncoding: f.contentEncoding
24
- }))
25
- } : {}
26
- }));
27
- }
28
- function readAgentVersion() {
29
- try {
30
- const here = dirname(fileURLToPath(import.meta.url));
31
- for (const rel of ["../package.json", "../../package.json"]) {
32
- try {
33
- const pkg = JSON.parse(readFileSync(join(here, rel), "utf-8"));
34
- if (pkg.version) return pkg.version;
35
- } catch {
36
- }
37
- }
38
- } catch {
39
- }
40
- return null;
41
- }
42
-
43
- export {
44
- mapChatHistory,
45
- readAgentVersion
46
- };