@aiden-ade/sandbox-agent 0.1.20 → 0.1.21

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 (2) hide show
  1. package/dist/index.cjs +11 -2
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -12335,10 +12335,11 @@ ${meta.description}`);
12335
12335
  const teamId = config.teamId;
12336
12336
  const artifactIds = [];
12337
12337
  if (teamId) artifactIds.push(`- teamId: "${teamId}"`);
12338
+ const isWorkflowSession = !!(workflowId || workflowExecutionId);
12338
12339
  if (workflowId) {
12339
12340
  artifactIds.push(`- workflowId: "${workflowId}"`);
12340
12341
  if (workflowExecutionId) artifactIds.push(`- workflowExecutionId: "${workflowExecutionId}"`);
12341
- } else if (taskId) {
12342
+ } else if (taskId && !isWorkflowSession) {
12342
12343
  artifactIds.push(`- taskId: "${taskId}"`);
12343
12344
  }
12344
12345
  if (conversationId) artifactIds.push(`- conversationId: "${conversationId}"`);
@@ -12507,7 +12508,7 @@ function extractGeneratedImagesFromToolResult(toolId, content, cwd, toolName) {
12507
12508
  }
12508
12509
 
12509
12510
  // src/version.ts
12510
- var AGENT_VERSION = "0.1.20";
12511
+ var AGENT_VERSION = "0.1.21";
12511
12512
 
12512
12513
  // src/daemon.ts
12513
12514
  var PRODUCTION_API_URL = "https://api.aiden-platform.com";
@@ -13556,6 +13557,8 @@ async function runSandbox(config) {
13556
13557
  let currentTaskId = config.taskId;
13557
13558
  let currentConversationId = config.sessionId;
13558
13559
  let currentTeamId = config.teamId;
13560
+ const workflowId = config.workflowId;
13561
+ const workflowExecutionId = config.workflowExecutionId;
13559
13562
  let currentUser = config.currentUser;
13560
13563
  let currentTerminalContextRefs;
13561
13564
  let currentTerminalSnapshots;
@@ -13642,6 +13645,8 @@ async function runSandbox(config) {
13642
13645
  taskId: currentTaskId,
13643
13646
  conversationId: currentConversationId,
13644
13647
  teamId: currentTeamId,
13648
+ workflowId,
13649
+ workflowExecutionId,
13645
13650
  currentUser,
13646
13651
  workflowTools: currentWorkflowTools,
13647
13652
  terminalContextRefs: currentTerminalContextRefs,
@@ -13757,6 +13762,8 @@ async function runSessionFromEnv() {
13757
13762
  const contextWindow = process.env.AIDEN_CONTEXT_WINDOW || void 0;
13758
13763
  const effortLevel = process.env.AIDEN_EFFORT_LEVEL || void 0;
13759
13764
  const providerSessionId = process.env.AIDEN_PROVIDER_SESSION_ID || void 0;
13765
+ const workflowId = process.env.AIDEN_WORKFLOW_ID || void 0;
13766
+ const workflowExecutionId = process.env.AIDEN_WORKFLOW_EXECUTION_ID || void 0;
13760
13767
  if (!wsUrl || !sessionId || !taskId || !sessionToken || task == null) {
13761
13768
  throw new Error(
13762
13769
  "run-session is an internal Aiden sandbox/session command and must be launched by Aiden with session env vars. Missing required env vars: AIDEN_WS_URL, AIDEN_SESSION_ID, AIDEN_TASK_ID, AIDEN_SESSION_TOKEN, AIDEN_TASK"
@@ -13788,6 +13795,8 @@ async function runSessionFromEnv() {
13788
13795
  contextWindow,
13789
13796
  effortLevel,
13790
13797
  providerSessionId,
13798
+ workflowId,
13799
+ workflowExecutionId,
13791
13800
  maxIterations: 50
13792
13801
  });
13793
13802
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiden-ade/sandbox-agent",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "aiden-agent": "./dist/index.cjs"