@amalgm/automations 0.4.4-preview.37556895893 → 0.4.4-preview.44182705896

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/README.md CHANGED
@@ -109,7 +109,8 @@ It is global configuration control. Invoke it from any directory; automation
109
109
  state is owned by the service and execution is owned by the selected machine.
110
110
  The directory in which an agent creates a definition is never captured. Put an
111
111
  absolute `cwd` on a command or script when location matters. When `cwd` is
112
- omitted, Amalgm Shell deliberately uses the user's OS home on that machine.
112
+ omitted, Amalgm Shell runs the step in the user's Workspaces folder on that
113
+ machine.
113
114
 
114
115
  ```bash
115
116
  amalgm automations create --stdin <<'JSON'
@@ -1 +1 @@
1
- {"$schema":"https://schemas.agentskills.io/discovery/0.2.0/schema.json","skills":[{"name":"amalgm-automations","description":"Set up and use Amalgm to schedule workflows, run native agents and scripts, receive webhooks, and inspect automation results through the amalgm CLI or an existing MCP connection.","type":"archive","url":"./amalgm-automations.097d073de0b8d2e1e5b49b94a91850beefefce7729a5bc61cd98ff8033445a01.tgz","digest":"sha256:097d073de0b8d2e1e5b49b94a91850beefefce7729a5bc61cd98ff8033445a01"}]}
1
+ {"$schema":"https://schemas.agentskills.io/discovery/0.2.0/schema.json","skills":[{"name":"amalgm-automations","description":"Set up and use Amalgm to schedule workflows, run native agents and scripts, receive webhooks, and inspect automation results through the amalgm CLI or an existing MCP connection.","type":"archive","url":"./amalgm-automations.6d3dc5970cf595dccdff5da09ae67ff9a76b62249aced3cee4a8db9bfe293623.tgz","digest":"sha256:6d3dc5970cf595dccdff5da09ae67ff9a76b62249aced3cee4a8db9bfe293623"}]}
@@ -1,7 +1,7 @@
1
1
  import type { AutomationProcessPort } from './execution-contract.js';
2
2
  export interface NodeAutomationProcessHostOptions {
3
- /** Used only when a step omits cwd. Shell should supply the user's OS home. */
4
- readonly defaultCwd?: string;
3
+ /** The folder a step runs in when it omits cwd. Shell supplies the user's Workspaces folder. */
4
+ readonly defaultCwd: string;
5
5
  /** Machine-host environment inherited by child processes. */
6
6
  readonly environment?: NodeJS.ProcessEnv;
7
7
  readonly shellCommand?: string;
@@ -10,4 +10,4 @@ export interface NodeAutomationProcessHostOptions {
10
10
  readonly terminateGraceMs?: number;
11
11
  }
12
12
  /** Node machine adapter for the SDK's process capability. */
13
- export declare function createNodeAutomationProcessHost(options?: NodeAutomationProcessHostOptions): AutomationProcessPort;
13
+ export declare function createNodeAutomationProcessHost(options: NodeAutomationProcessHostOptions): AutomationProcessPort;
@@ -6,8 +6,8 @@ const DEFAULT_TIMEOUT_MS = 30 * 60_000;
6
6
  const DEFAULT_MAX_OUTPUT_BYTES = 1024 * 1024;
7
7
  const DEFAULT_TERMINATE_GRACE_MS = 1_000;
8
8
  /** Node machine adapter for the SDK's process capability. */
9
- export function createNodeAutomationProcessHost(options = {}) {
10
- const defaultCwd = options.defaultCwd ?? process.cwd();
9
+ export function createNodeAutomationProcessHost(options) {
10
+ const { defaultCwd } = options;
11
11
  if (!isAbsolute(defaultCwd))
12
12
  throw new Error('Automation process defaultCwd must be absolute');
13
13
  const environment = stringEnvironment(options.environment ?? process.env);
@@ -13,7 +13,9 @@ export interface CapturedProcess {
13
13
  readonly timedOut: boolean;
14
14
  readonly aborted: boolean;
15
15
  }
16
- export declare function captureProcess(invocation: ProcessInvocation, input: AutomationProcessExecution, defaults: Readonly<{
16
+ export declare function captureProcess(invocation: ProcessInvocation, input: AutomationProcessExecution & {
17
+ readonly cwd: string;
18
+ }, defaults: Readonly<{
17
19
  timeoutMs: number;
18
20
  maximumBytes: number;
19
21
  terminateGraceMs: number;
@@ -6,7 +6,7 @@ export function captureProcess(invocation, input, defaults) {
6
6
  let child;
7
7
  try {
8
8
  child = spawn(invocation.command, invocation.args, {
9
- cwd: input.cwd ?? process.cwd(),
9
+ cwd: input.cwd,
10
10
  env: input.env,
11
11
  detached: process.platform !== 'win32',
12
12
  shell: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amalgm/automations",
3
- "version": "0.4.4-preview.37556895893",
3
+ "version": "0.4.4-preview.44182705896",
4
4
  "description": "Amalgm's automation SDK: durable trigger admission and target-machine execution.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -65,7 +65,7 @@
65
65
  "node": ">=24"
66
66
  },
67
67
  "dependencies": {
68
- "@amalgm/core": "0.5.1-preview.37556608028",
68
+ "@amalgm/core": "0.5.1-preview.44182200738",
69
69
  "@modelcontextprotocol/sdk": "^1.30.0",
70
70
  "@supabase/supabase-js": "2.57.4",
71
71
  "cron-parser": "^5.4.0",
@@ -108,11 +108,11 @@
108
108
  "@amalgm/core"
109
109
  ]
110
110
  },
111
- "gitHead": "8b44321c7ba41f6ac7aecbd65db06fc44b3803ce",
111
+ "gitHead": "f025ee464a7316eb349101516f515c2fcfd9378d",
112
112
  "amalgmSource": {
113
113
  "repository": "amalgm-inc/amalgm-automations",
114
114
  "branch": "preview",
115
- "commit": "8b44321c7ba41f6ac7aecbd65db06fc44b3803ce",
116
- "occurrence": "37556895893"
115
+ "commit": "f025ee464a7316eb349101516f515c2fcfd9378d",
116
+ "occurrence": "44182705896"
117
117
  }
118
118
  }
@@ -64,8 +64,8 @@ input.
64
64
  - Omit `targetId` in a machine-bound session. Never guess or copy an opaque
65
65
  target id. If the principal has multiple targets, let the service require an
66
66
  explicit user choice.
67
- - A process `cwd`, when supplied, must be absolute. If omitted, the selected
68
- machine uses its documented default (normally that user's OS home).
67
+ - A process `cwd`, when supplied, must be absolute. If omitted, the step runs
68
+ in that user's Workspaces folder on the selected machine.
69
69
  - Workflow `env` is persisted ordinary configuration, not a secret store.
70
70
  Never place Shell credentials or reusable service secrets in it.
71
71
  - Use `--stdin` for CLI payloads containing a webhook signing secret or
@@ -84,10 +84,9 @@ authorized connecting this computer. Do not invent a code, run a code-less
84
84
  `install.sh`, or use sudo as an automatic workaround. Keep the code private
85
85
  to this setup session.
86
86
 
87
- The web installer places Shell under
88
- `~/.amalgm/runtime-packages/shell/<installed-version>/bin/amalgm` on macOS/Linux.
89
- If it is absent from PATH, use the exact launcher/version identified by the
90
- installer or app, not whichever version directory happens to sort last.
87
+ If `amalgm` is absent from PATH after the web installer runs, use the exact
88
+ launcher identified by the installer or app. Do not pick a runtime by sorting
89
+ version folders.
91
90
 
92
91
  ## Sign in and connect the computer
93
92