@amalgm/automations 0.4.4-preview.37556895893 → 0.4.4-preview.39017057066
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 +2 -1
- package/dist/skills/amalgm-automations.5e8a37f97b1b3965f14b0057d8f35aea900f3d189dc7804a627307df37dff509.tgz +0 -0
- package/dist/skills/index.json +1 -1
- package/dist/src/node-process-host.d.ts +3 -3
- package/dist/src/node-process-host.js +2 -2
- package/dist/src/node-process-runner.d.ts +3 -1
- package/dist/src/node-process-runner.js +1 -1
- package/package.json +4 -4
- package/skills/amalgm-automations/SKILL.md +2 -2
- package/skills/amalgm-automations/references/setup-and-support.md +3 -4
- package/dist/skills/amalgm-automations.097d073de0b8d2e1e5b49b94a91850beefefce7729a5bc61cd98ff8033445a01.tgz +0 -0
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
|
|
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'
|
|
Binary file
|
package/dist/skills/index.json
CHANGED
|
@@ -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.
|
|
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.5e8a37f97b1b3965f14b0057d8f35aea900f3d189dc7804a627307df37dff509.tgz","digest":"sha256:5e8a37f97b1b3965f14b0057d8f35aea900f3d189dc7804a627307df37dff509"}]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AutomationProcessPort } from './execution-contract.js';
|
|
2
2
|
export interface NodeAutomationProcessHostOptions {
|
|
3
|
-
/**
|
|
4
|
-
readonly defaultCwd
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
3
|
+
"version": "0.4.4-preview.39017057066",
|
|
4
4
|
"description": "Amalgm's automation SDK: durable trigger admission and target-machine execution.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -108,11 +108,11 @@
|
|
|
108
108
|
"@amalgm/core"
|
|
109
109
|
]
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "f025ee464a7316eb349101516f515c2fcfd9378d",
|
|
112
112
|
"amalgmSource": {
|
|
113
113
|
"repository": "amalgm-inc/amalgm-automations",
|
|
114
114
|
"branch": "preview",
|
|
115
|
-
"commit": "
|
|
116
|
-
"occurrence": "
|
|
115
|
+
"commit": "f025ee464a7316eb349101516f515c2fcfd9378d",
|
|
116
|
+
"occurrence": "39017057066"
|
|
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
|
|
68
|
-
|
|
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
|
-
|
|
88
|
-
|
|
89
|
-
|
|
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
|
|