@scribed/cli 0.1.55 → 0.1.57
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 +15 -6
- package/dist/mcp/server.js +3 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -84709,7 +84709,7 @@ var program = new Command;
|
|
|
84709
84709
|
// package.json
|
|
84710
84710
|
var package_default = {
|
|
84711
84711
|
name: "@scribed/cli",
|
|
84712
|
-
version: "0.1.
|
|
84712
|
+
version: "0.1.57",
|
|
84713
84713
|
description: "Command-line client + MCP server for Scribed — CRM records, phone + texting, inbox, calendar + booking, transcriptions, HR, Vault, automations, Creative Studio, and Documents, derived from the scribed-agent tool catalog.",
|
|
84714
84714
|
type: "module",
|
|
84715
84715
|
license: "SEE LICENSE IN LICENSE",
|
|
@@ -95275,7 +95275,7 @@ class StreamableHTTPClientTransport {
|
|
|
95275
95275
|
// package.json
|
|
95276
95276
|
var package_default2 = {
|
|
95277
95277
|
name: "@scribed/cli",
|
|
95278
|
-
version: "0.1.
|
|
95278
|
+
version: "0.1.57",
|
|
95279
95279
|
description: "Command-line client + MCP server for Scribed — CRM records, phone + texting, inbox, calendar + booking, transcriptions, HR, Vault, automations, Creative Studio, and Documents, derived from the scribed-agent tool catalog.",
|
|
95280
95280
|
type: "module",
|
|
95281
95281
|
license: "SEE LICENSE IN LICENSE",
|
|
@@ -99490,8 +99490,8 @@ var automationUpdate = automationRestTool({
|
|
|
99490
99490
|
})
|
|
99491
99491
|
});
|
|
99492
99492
|
var automationEnable = automationRestTool({
|
|
99493
|
-
description: "Validate and enable one draft or paused automation. This activates schedules/events and future external side effects. Call only after showing the exact trigger, ordered steps, selected integrations, variable defaults, and material side effects and receiving explicit confirmation in the current conversation. Pass expectedUpdatedAt from the reviewed automation_get result and expectedConnectionVersion from the reviewed slack_status result
|
|
99494
|
-
inputSchema: exports_external.object({ automationId: exports_external.string().uuid(), confirmed: exports_external.literal(true), expectedUpdatedAt: exports_external.string().datetime().optional().describe("updatedAt from the exact automation_get definition the user reviewed. Required for Slack triggers; a conflict requires reading and reviewing again."), expectedConnectionVersion: exports_external.string().uuid().optional().describe("connectionVersion from the exact slack_status connection the user reviewed. Required for Slack triggers; a changed connection requires fresh status and confirmation.") }),
|
|
99493
|
+
description: "Validate and enable one draft or paused automation. This activates schedules/events and future external side effects. Call only after showing the exact trigger, ordered steps, selected integrations, variable defaults, and material side effects and receiving explicit confirmation in the current conversation. Pass expectedUpdatedAt from the reviewed automation_get result; it is required for account-owned incoming email triggers and Slack triggers. Slack triggers also require expectedConnectionVersion from the reviewed slack_status result. For incoming email, disclose the selected mailbox, how matching messages are used, and any shared destinations. For Slack message or mention triggers, name the exact Slack workspace and required channelId and disclose that matching private or public message content is copied into workspace run history; changed definitions and reconnected Slack grants require fresh enable consent.",
|
|
99494
|
+
inputSchema: exports_external.object({ automationId: exports_external.string().uuid(), confirmed: exports_external.literal(true), expectedUpdatedAt: exports_external.string().datetime().optional().describe("updatedAt from the exact automation_get definition the user reviewed. Required for account-owned incoming email and Slack triggers; a conflict requires reading and reviewing again."), expectedConnectionVersion: exports_external.string().uuid().optional().describe("connectionVersion from the exact slack_status connection the user reviewed. Required for Slack triggers; a changed connection requires fresh status and confirmation.") }),
|
|
99495
99495
|
method: "POST",
|
|
99496
99496
|
path: (a) => `/api/automations/${a.automationId}/enable`,
|
|
99497
99497
|
body: (a) => compact({ expectedUpdatedAt: a.expectedUpdatedAt, expectedConnectionVersion: a.expectedConnectionVersion })
|
|
@@ -115347,10 +115347,19 @@ function registerAutomationCommands(program2) {
|
|
|
115347
115347
|
["pause", "automation_pause", "pause future automation dispatch"],
|
|
115348
115348
|
["delete", "automation_delete", "permanently delete an automation and run history"]
|
|
115349
115349
|
]) {
|
|
115350
|
-
automations.command(`${verb} <automationId>`).requiredOption("--yes", "confirm this exact side effect").description(description)
|
|
115350
|
+
const command = automations.command(`${verb} <automationId>`).requiredOption("--yes", "confirm this exact side effect").description(description);
|
|
115351
|
+
if (verb === "enable") {
|
|
115352
|
+
command.option("--expected-updated-at <timestamp>", "updatedAt from the reviewed Run; required for account incoming-email and Slack triggers").option("--expected-connection-version <id>", "connectionVersion from the reviewed Slack connection; required for Slack triggers");
|
|
115353
|
+
}
|
|
115354
|
+
command.action(cliAction(async (automationId, opts, cmd) => {
|
|
115351
115355
|
requireYes(opts, verb);
|
|
115352
115356
|
const globals = globalsOf(cmd);
|
|
115353
|
-
const result = await run3(tool, {
|
|
115357
|
+
const result = await run3(tool, {
|
|
115358
|
+
automationId,
|
|
115359
|
+
confirmed: true,
|
|
115360
|
+
...opts.expectedUpdatedAt !== undefined ? { expectedUpdatedAt: opts.expectedUpdatedAt } : {},
|
|
115361
|
+
...opts.expectedConnectionVersion !== undefined ? { expectedConnectionVersion: opts.expectedConnectionVersion } : {}
|
|
115362
|
+
}, globals);
|
|
115354
115363
|
if (verb === "delete" && !globals.json)
|
|
115355
115364
|
print(`Deleted automation ${automationId}.`);
|
|
115356
115365
|
else
|
package/dist/mcp/server.js
CHANGED
|
@@ -86837,7 +86837,7 @@ init_zod();
|
|
|
86837
86837
|
// package.json
|
|
86838
86838
|
var package_default = {
|
|
86839
86839
|
name: "@scribed/cli",
|
|
86840
|
-
version: "0.1.
|
|
86840
|
+
version: "0.1.57",
|
|
86841
86841
|
description: "Command-line client + MCP server for Scribed — CRM records, phone + texting, inbox, calendar + booking, transcriptions, HR, Vault, automations, Creative Studio, and Documents, derived from the scribed-agent tool catalog.",
|
|
86842
86842
|
type: "module",
|
|
86843
86843
|
license: "SEE LICENSE IN LICENSE",
|
|
@@ -94489,8 +94489,8 @@ var automationUpdate = automationRestTool({
|
|
|
94489
94489
|
})
|
|
94490
94490
|
});
|
|
94491
94491
|
var automationEnable = automationRestTool({
|
|
94492
|
-
description: "Validate and enable one draft or paused automation. This activates schedules/events and future external side effects. Call only after showing the exact trigger, ordered steps, selected integrations, variable defaults, and material side effects and receiving explicit confirmation in the current conversation. Pass expectedUpdatedAt from the reviewed automation_get result and expectedConnectionVersion from the reviewed slack_status result
|
|
94493
|
-
inputSchema: exports_external.object({ automationId: exports_external.string().uuid(), confirmed: exports_external.literal(true), expectedUpdatedAt: exports_external.string().datetime().optional().describe("updatedAt from the exact automation_get definition the user reviewed. Required for Slack triggers; a conflict requires reading and reviewing again."), expectedConnectionVersion: exports_external.string().uuid().optional().describe("connectionVersion from the exact slack_status connection the user reviewed. Required for Slack triggers; a changed connection requires fresh status and confirmation.") }),
|
|
94492
|
+
description: "Validate and enable one draft or paused automation. This activates schedules/events and future external side effects. Call only after showing the exact trigger, ordered steps, selected integrations, variable defaults, and material side effects and receiving explicit confirmation in the current conversation. Pass expectedUpdatedAt from the reviewed automation_get result; it is required for account-owned incoming email triggers and Slack triggers. Slack triggers also require expectedConnectionVersion from the reviewed slack_status result. For incoming email, disclose the selected mailbox, how matching messages are used, and any shared destinations. For Slack message or mention triggers, name the exact Slack workspace and required channelId and disclose that matching private or public message content is copied into workspace run history; changed definitions and reconnected Slack grants require fresh enable consent.",
|
|
94493
|
+
inputSchema: exports_external.object({ automationId: exports_external.string().uuid(), confirmed: exports_external.literal(true), expectedUpdatedAt: exports_external.string().datetime().optional().describe("updatedAt from the exact automation_get definition the user reviewed. Required for account-owned incoming email and Slack triggers; a conflict requires reading and reviewing again."), expectedConnectionVersion: exports_external.string().uuid().optional().describe("connectionVersion from the exact slack_status connection the user reviewed. Required for Slack triggers; a changed connection requires fresh status and confirmation.") }),
|
|
94494
94494
|
method: "POST",
|
|
94495
94495
|
path: (a) => `/api/automations/${a.automationId}/enable`,
|
|
94496
94496
|
body: (a) => compact({ expectedUpdatedAt: a.expectedUpdatedAt, expectedConnectionVersion: a.expectedConnectionVersion })
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scribed/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.57",
|
|
4
4
|
"description": "Command-line client + MCP server for Scribed — CRM records, phone + texting, inbox, calendar + booking, transcriptions, HR, Vault, automations, Creative Studio, and Documents, derived from the scribed-agent tool catalog.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"url": "git+https://github.com/scribedworks/scribed-works.git",
|
|
40
40
|
"directory": "scribed-cli"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "49f32d9aa02a57877ec63f162782d6424a9aa2a8",
|
|
43
43
|
"scribedRelease": {
|
|
44
44
|
"repository": "scribedworks/scribed-works",
|
|
45
|
-
"commit": "
|
|
45
|
+
"commit": "49f32d9aa02a57877ec63f162782d6424a9aa2a8"
|
|
46
46
|
}
|
|
47
47
|
}
|