@parall/daemon 1.94.0 → 1.95.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.
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "1.94.0",
3
- "built_at": "2026-11-19T02:58:27.213Z",
2
+ "version": "1.95.0",
3
+ "built_at": "2026-11-23T07:56:44.433Z",
4
4
  "min_node_version": "20.0.0",
5
5
  "files": {
6
6
  "bb-browser-daemon.js": {
@@ -16,29 +16,29 @@
16
16
  "size": 18
17
17
  },
18
18
  "parall-browser-pod.js": {
19
- "sha256": "6651323fd94ff562b0b34180ca915da8def452111ed65f0af2c2af044d44aa8a",
20
- "size": 3110769
19
+ "sha256": "c5df1db96c5e8e3bdce434a2fdea28de86310c87ddc358ba28ef2fdb336d0169",
20
+ "size": 3111420
21
21
  },
22
22
  "parall-channel-exec.js": {
23
23
  "sha256": "3a39c2ced4f4e8ecf9283b77efa028bd28fa08d61e8d2e3f20700c0a4f61e792",
24
24
  "size": 9223
25
25
  },
26
26
  "parall-claude-agent.js": {
27
- "sha256": "2bd55eb45e6d7a33c6d7d3d61696d8903f59951c9c9291b1bc32d9ac41214106",
28
- "size": 3147963
27
+ "sha256": "125492ea93d65e25ad67cea900a732635a1ab276a050523455d31d8fd7f5dd87",
28
+ "size": 3148614
29
29
  },
30
30
  "parall-codex-agent.js": {
31
- "sha256": "d9c5db01af8ebf1ec257ee18cdf460a781ccae8fc55dc786818cd506dedd127a",
32
- "size": 3157022
31
+ "sha256": "79ec7f15bfa100dd4e58245cbc3deaf0db029fe557ca8f96b9362cae5f0b00c6",
32
+ "size": 3158213
33
33
  },
34
34
  "parall-daemon.js": {
35
- "sha256": "8ffeb404a1b214a4f93c58c9f683172f751b36f729e07f9281e4d473398352b6",
36
- "size": 3314305
35
+ "sha256": "231e61e3b7fe24ce8133fe583de5394eedb2a717c01c66d409a980703b5f0df7",
36
+ "size": 3315163
37
37
  },
38
38
  "parall-openclaw-agent.js": {
39
39
  "sha256": "856a1c3a9ae0ffef8efe2481fa1171dbeb1d67cccb88616aa9bf16da96a69355",
40
40
  "size": 9923
41
41
  }
42
42
  },
43
- "signature": "eFPIq8iHeMKpeEQ7wT8zJ6eWQiLLEXBiDUnaTC1ZFU8x+1H+scJx2dpOWAJluYcFWzDvAFAcvzMbjDu4VyspAg=="
43
+ "signature": "lg9gbS8j7o00pWTF441uek+GiOv99uRgu21RtueibvMbJ8pDMTELSXV/w8UfbR2XdmDfx/h3I8JHRDpNPW8TBA=="
44
44
  }
@@ -64717,6 +64717,7 @@ var ENDPOINTS = {
64717
64717
  MACHINE_ATTACH_AGENT: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}`,
64718
64718
  MACHINE_DETACH_AGENT: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}`,
64719
64719
  MACHINE_WORKSPACE_STATES: (orgId, machineId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/workspace-states`,
64720
+ MACHINE_AGENT_LAUNCH_STATE: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}/launch-state`,
64720
64721
  MACHINE_AGENT_DAEMON_CONFIG: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}/daemon-config`,
64721
64722
  MACHINE_AGENT_WORKSPACE_SETUP: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}/workspace/setup`,
64722
64723
  MACHINE_LLM_SOURCE: (orgId, machineId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/llm-source`,
@@ -66639,9 +66640,13 @@ var TeamInviteClient = class extends BillingClient {
66639
66640
  /** Org owner/admin: a new launch link, replacing the template's previous
66640
66641
  * one, whose URL stops working. Every new team waits for an admin's
66641
66642
  * approval unless `requireApproval` is false (the server's default is
66642
- * true). */
66643
+ * true). `teamPays` makes a new Team made through the link pay for itself;
66644
+ * the org must have Team accounts (`TEAM_ACCOUNTS_DISABLED` otherwise). */
66643
66645
  async createTemplateInviteLink(orgId, templateId, options = {}) {
66644
- return this.request("POST", ENDPOINTS.TEMPLATE_INVITE_LINK(orgId, templateId), options.requireApproval !== void 0 ? { require_approval: options.requireApproval } : {});
66646
+ return this.request("POST", ENDPOINTS.TEMPLATE_INVITE_LINK(orgId, templateId), {
66647
+ ...options.requireApproval !== void 0 ? { require_approval: options.requireApproval } : {},
66648
+ ...options.teamPays ? { team_pays: true } : {}
66649
+ });
66645
66650
  }
66646
66651
  /** Org owner/admin: the requests waiting for approval on the template's
66647
66652
  * current link, oldest first. */
@@ -67794,6 +67799,11 @@ var ParallClient = class _ParallClient extends OrgDeletionClient {
67794
67799
  const res = await this.request("GET", ENDPOINTS.MACHINE_WORKSPACE_STATES(orgId, machineId));
67795
67800
  return res.data;
67796
67801
  }
67802
+ /** Read the daemon's latest launch report for one agent on one machine
67803
+ * (the same row the daemon PUTs). 404 = never reported. */
67804
+ async getAgentLaunchState(orgId, machineId, agentId) {
67805
+ return this.request("GET", ENDPOINTS.MACHINE_AGENT_LAUNCH_STATE(orgId, machineId, agentId));
67806
+ }
67797
67807
  async patchAgentDaemonConfig(orgId, machineId, agentId, daemonConfig) {
67798
67808
  return this.request("PATCH", ENDPOINTS.MACHINE_AGENT_DAEMON_CONFIG(orgId, machineId, agentId), {
67799
67809
  daemon_config: daemonConfig
@@ -52479,6 +52479,7 @@ var ENDPOINTS = {
52479
52479
  MACHINE_ATTACH_AGENT: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}`,
52480
52480
  MACHINE_DETACH_AGENT: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}`,
52481
52481
  MACHINE_WORKSPACE_STATES: (orgId, machineId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/workspace-states`,
52482
+ MACHINE_AGENT_LAUNCH_STATE: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}/launch-state`,
52482
52483
  MACHINE_AGENT_DAEMON_CONFIG: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}/daemon-config`,
52483
52484
  MACHINE_AGENT_WORKSPACE_SETUP: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}/workspace/setup`,
52484
52485
  MACHINE_LLM_SOURCE: (orgId, machineId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/llm-source`,
@@ -54508,9 +54509,13 @@ var TeamInviteClient = class extends BillingClient {
54508
54509
  /** Org owner/admin: a new launch link, replacing the template's previous
54509
54510
  * one, whose URL stops working. Every new team waits for an admin's
54510
54511
  * approval unless `requireApproval` is false (the server's default is
54511
- * true). */
54512
+ * true). `teamPays` makes a new Team made through the link pay for itself;
54513
+ * the org must have Team accounts (`TEAM_ACCOUNTS_DISABLED` otherwise). */
54512
54514
  async createTemplateInviteLink(orgId, templateId, options = {}) {
54513
- return this.request("POST", ENDPOINTS.TEMPLATE_INVITE_LINK(orgId, templateId), options.requireApproval !== void 0 ? { require_approval: options.requireApproval } : {});
54515
+ return this.request("POST", ENDPOINTS.TEMPLATE_INVITE_LINK(orgId, templateId), {
54516
+ ...options.requireApproval !== void 0 ? { require_approval: options.requireApproval } : {},
54517
+ ...options.teamPays ? { team_pays: true } : {}
54518
+ });
54514
54519
  }
54515
54520
  /** Org owner/admin: the requests waiting for approval on the template's
54516
54521
  * current link, oldest first. */
@@ -55663,6 +55668,11 @@ var ParallClient = class _ParallClient extends OrgDeletionClient {
55663
55668
  const res = await this.request("GET", ENDPOINTS.MACHINE_WORKSPACE_STATES(orgId, machineId));
55664
55669
  return res.data;
55665
55670
  }
55671
+ /** Read the daemon's latest launch report for one agent on one machine
55672
+ * (the same row the daemon PUTs). 404 = never reported. */
55673
+ async getAgentLaunchState(orgId, machineId, agentId) {
55674
+ return this.request("GET", ENDPOINTS.MACHINE_AGENT_LAUNCH_STATE(orgId, machineId, agentId));
55675
+ }
55666
55676
  async patchAgentDaemonConfig(orgId, machineId, agentId, daemonConfig) {
55667
55677
  return this.request("PATCH", ENDPOINTS.MACHINE_AGENT_DAEMON_CONFIG(orgId, machineId, agentId), {
55668
55678
  daemon_config: daemonConfig
@@ -52479,6 +52479,7 @@ var ENDPOINTS = {
52479
52479
  MACHINE_ATTACH_AGENT: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}`,
52480
52480
  MACHINE_DETACH_AGENT: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}`,
52481
52481
  MACHINE_WORKSPACE_STATES: (orgId, machineId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/workspace-states`,
52482
+ MACHINE_AGENT_LAUNCH_STATE: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}/launch-state`,
52482
52483
  MACHINE_AGENT_DAEMON_CONFIG: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}/daemon-config`,
52483
52484
  MACHINE_AGENT_WORKSPACE_SETUP: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}/workspace/setup`,
52484
52485
  MACHINE_LLM_SOURCE: (orgId, machineId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/llm-source`,
@@ -54508,9 +54509,13 @@ var TeamInviteClient = class extends BillingClient {
54508
54509
  /** Org owner/admin: a new launch link, replacing the template's previous
54509
54510
  * one, whose URL stops working. Every new team waits for an admin's
54510
54511
  * approval unless `requireApproval` is false (the server's default is
54511
- * true). */
54512
+ * true). `teamPays` makes a new Team made through the link pay for itself;
54513
+ * the org must have Team accounts (`TEAM_ACCOUNTS_DISABLED` otherwise). */
54512
54514
  async createTemplateInviteLink(orgId, templateId, options = {}) {
54513
- return this.request("POST", ENDPOINTS.TEMPLATE_INVITE_LINK(orgId, templateId), options.requireApproval !== void 0 ? { require_approval: options.requireApproval } : {});
54515
+ return this.request("POST", ENDPOINTS.TEMPLATE_INVITE_LINK(orgId, templateId), {
54516
+ ...options.requireApproval !== void 0 ? { require_approval: options.requireApproval } : {},
54517
+ ...options.teamPays ? { team_pays: true } : {}
54518
+ });
54514
54519
  }
54515
54520
  /** Org owner/admin: the requests waiting for approval on the template's
54516
54521
  * current link, oldest first. */
@@ -55663,6 +55668,11 @@ var ParallClient = class _ParallClient extends OrgDeletionClient {
55663
55668
  const res = await this.request("GET", ENDPOINTS.MACHINE_WORKSPACE_STATES(orgId, machineId));
55664
55669
  return res.data;
55665
55670
  }
55671
+ /** Read the daemon's latest launch report for one agent on one machine
55672
+ * (the same row the daemon PUTs). 404 = never reported. */
55673
+ async getAgentLaunchState(orgId, machineId, agentId) {
55674
+ return this.request("GET", ENDPOINTS.MACHINE_AGENT_LAUNCH_STATE(orgId, machineId, agentId));
55675
+ }
55666
55676
  async patchAgentDaemonConfig(orgId, machineId, agentId, daemonConfig) {
55667
55677
  return this.request("PATCH", ENDPOINTS.MACHINE_AGENT_DAEMON_CONFIG(orgId, machineId, agentId), {
55668
55678
  daemon_config: daemonConfig
@@ -69016,11 +69026,27 @@ var CodexSessionManager = class _CodexSessionManager {
69016
69026
 
69017
69027
  // ts/codex-agent/dist/thread-config.js
69018
69028
  import * as path12 from "node:path";
69019
- function buildThreadConfigOverrides({ reasoningEffort, capabilityBinDir: capabilityBinDir2, inheritedPath, platform = process.platform, commandEnv }) {
69029
+ var AGENT_SHELL_ENV_NAMES = [
69030
+ "PRLL_API_URL",
69031
+ "PRLL_API_KEY",
69032
+ "PRLL_ORG_ID",
69033
+ "PRLL_SWIMLANE_NAME",
69034
+ "PRLL_WIKI_URL",
69035
+ "PRLL_AGENT_ID",
69036
+ "PRLL_CONTEXT_FILE",
69037
+ "PRLL_CONTEXT_DIR",
69038
+ "PRLL_WIKI_MOUNT_ROOT"
69039
+ ];
69040
+ function buildThreadConfigOverrides({ reasoningEffort, capabilityBinDir: capabilityBinDir2, inheritedPath, appServerEnv, platform = process.platform, commandEnv }) {
69020
69041
  const config = {};
69021
69042
  if (reasoningEffort)
69022
69043
  config.model_reasoning_effort = reasoningEffort;
69023
69044
  const set = { ...commandEnv?.set };
69045
+ for (const name of AGENT_SHELL_ENV_NAMES) {
69046
+ const value = appServerEnv?.[name];
69047
+ if (value?.trim())
69048
+ set[name] = value;
69049
+ }
69024
69050
  const exclude = commandEnv?.unset ?? [];
69025
69051
  const pinPath = Boolean(capabilityBinDir2) && platform !== "win32";
69026
69052
  if (capabilityBinDir2 && pinPath) {
@@ -69320,12 +69346,15 @@ var CodexAppServerAdapter = class {
69320
69346
  reasoningEffort: this.opts.reasoningEffort,
69321
69347
  capabilityBinDir: this.opts.capabilityBinDir,
69322
69348
  inheritedPath: process.env.PATH,
69349
+ appServerEnv: this.appServerEnv,
69323
69350
  commandEnv: planCommandEnv(this.shellEnv)
69324
69351
  });
69325
69352
  }
69326
69353
  /** Agent secrets for shell commands, and the version they came as. */
69327
69354
  shellEnv = {};
69328
69355
  shellEnvVersion;
69356
+ /** The env the running app-server got; thread opens pin its PRLL_* for shell commands too. */
69357
+ appServerEnv = {};
69329
69358
  /**
69330
69359
  * Replace the variables the agent's shell commands receive. They ride
69331
69360
  * `shell_environment_policy.set` in thread-open params, and a thread that
@@ -69848,15 +69877,14 @@ var CodexAppServerAdapter = class {
69848
69877
  const existing = env[pathKey];
69849
69878
  env[pathKey] = existing ? `${this.opts.capabilityBinDir}${path13.delimiter}${existing}` : this.opts.capabilityBinDir;
69850
69879
  }
69851
- if (this.opts.contextFilePath) {
69880
+ if (this.opts.contextFilePath)
69852
69881
  env.PRLL_CONTEXT_FILE = this.opts.contextFilePath;
69853
- }
69854
- if (this.opts.contextDirPath) {
69882
+ if (this.opts.contextDirPath)
69855
69883
  env.PRLL_CONTEXT_DIR = this.opts.contextDirPath;
69856
- }
69857
69884
  if (!env.PRLL_WIKI_MOUNT_ROOT?.trim()) {
69858
69885
  env.PRLL_WIKI_MOUNT_ROOT = this.opts.workspaceDir;
69859
69886
  }
69887
+ this.appServerEnv = env;
69860
69888
  const proc = this.appServers.start(this.opts.codexBin, appServerArgs(this.opts), {
69861
69889
  cwd: this.opts.workspaceDir,
69862
69890
  env,
@@ -1392,6 +1392,7 @@ var init_constants = __esm({
1392
1392
  MACHINE_ATTACH_AGENT: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}`,
1393
1393
  MACHINE_DETACH_AGENT: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}`,
1394
1394
  MACHINE_WORKSPACE_STATES: (orgId, machineId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/workspace-states`,
1395
+ MACHINE_AGENT_LAUNCH_STATE: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}/launch-state`,
1395
1396
  MACHINE_AGENT_DAEMON_CONFIG: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}/daemon-config`,
1396
1397
  MACHINE_AGENT_WORKSPACE_SETUP: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}/workspace/setup`,
1397
1398
  MACHINE_LLM_SOURCE: (orgId, machineId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/llm-source`,
@@ -3852,9 +3853,13 @@ var init_team_invite_client = __esm({
3852
3853
  /** Org owner/admin: a new launch link, replacing the template's previous
3853
3854
  * one, whose URL stops working. Every new team waits for an admin's
3854
3855
  * approval unless `requireApproval` is false (the server's default is
3855
- * true). */
3856
+ * true). `teamPays` makes a new Team made through the link pay for itself;
3857
+ * the org must have Team accounts (`TEAM_ACCOUNTS_DISABLED` otherwise). */
3856
3858
  async createTemplateInviteLink(orgId, templateId, options = {}) {
3857
- return this.request("POST", ENDPOINTS.TEMPLATE_INVITE_LINK(orgId, templateId), options.requireApproval !== void 0 ? { require_approval: options.requireApproval } : {});
3859
+ return this.request("POST", ENDPOINTS.TEMPLATE_INVITE_LINK(orgId, templateId), {
3860
+ ...options.requireApproval !== void 0 ? { require_approval: options.requireApproval } : {},
3861
+ ...options.teamPays ? { team_pays: true } : {}
3862
+ });
3858
3863
  }
3859
3864
  /** Org owner/admin: the requests waiting for approval on the template's
3860
3865
  * current link, oldest first. */
@@ -5092,6 +5097,11 @@ var init_client = __esm({
5092
5097
  const res = await this.request("GET", ENDPOINTS.MACHINE_WORKSPACE_STATES(orgId, machineId));
5093
5098
  return res.data;
5094
5099
  }
5100
+ /** Read the daemon's latest launch report for one agent on one machine
5101
+ * (the same row the daemon PUTs). 404 = never reported. */
5102
+ async getAgentLaunchState(orgId, machineId, agentId) {
5103
+ return this.request("GET", ENDPOINTS.MACHINE_AGENT_LAUNCH_STATE(orgId, machineId, agentId));
5104
+ }
5095
5105
  async patchAgentDaemonConfig(orgId, machineId, agentId, daemonConfig) {
5096
5106
  return this.request("PATCH", ENDPOINTS.MACHINE_AGENT_DAEMON_CONFIG(orgId, machineId, agentId), {
5097
5107
  daemon_config: daemonConfig
@@ -6837,6 +6847,13 @@ var init_org_accent_types = __esm({
6837
6847
  }
6838
6848
  });
6839
6849
 
6850
+ // ts/sdk/dist/org-create-types.js
6851
+ var init_org_create_types = __esm({
6852
+ "ts/sdk/dist/org-create-types.js"() {
6853
+ "use strict";
6854
+ }
6855
+ });
6856
+
6840
6857
  // ts/sdk/dist/org-deletion-types.js
6841
6858
  var ORG_DELETION_ERROR_CODES;
6842
6859
  var init_org_deletion_types = __esm({
@@ -7694,6 +7711,7 @@ var init_dist = __esm({
7694
7711
  init_mini_app_action_types();
7695
7712
  init_mini_app_types();
7696
7713
  init_org_accent_types();
7714
+ init_org_create_types();
7697
7715
  init_org_deletion_types();
7698
7716
  init_org_unread_types();
7699
7717
  init_read_receipt();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parall/daemon",
3
- "version": "1.94.0",
3
+ "version": "1.95.0",
4
4
  "description": "Parall local agent runtime — daemon supervisor + bridge runtimes, bundled as standalone JS files",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -34,11 +34,11 @@
34
34
  "@opentelemetry/api": "^1.9.0",
35
35
  "@pinixai/bb-browser-pro": "0.15.0",
36
36
  "ws": "^8.18.0",
37
- "@parall/sdk": "1.94.0",
38
- "@parall/agent-core": "1.94.0",
39
- "@parall/claude-agent": "1.94.0",
40
- "@parall/codex-agent": "1.94.0",
41
- "@parall/openclaw-agent": "1.94.0"
37
+ "@parall/agent-core": "1.95.0",
38
+ "@parall/sdk": "1.95.0",
39
+ "@parall/codex-agent": "1.95.0",
40
+ "@parall/claude-agent": "1.95.0",
41
+ "@parall/openclaw-agent": "1.95.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "^22.0.0",