@monoclaw/machine 1.0.17 → 1.0.18
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/cli.js +13 -5
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -956,6 +956,12 @@ var SessionSettings = z3.object({
|
|
|
956
956
|
canMessage: z3.boolean().optional(),
|
|
957
957
|
/** Allow Claude Code's own cross-session messaging (ListAgents/SendMessage). Off unless the owner allows it. */
|
|
958
958
|
peerMessaging: z3.boolean().optional(),
|
|
959
|
+
/**
|
|
960
|
+
* Give the session the claude.ai connectors of the login it runs on (Gmail, Drive, Docs…; plan
|
|
961
|
+
* draft-2026-11-26-connectors-off-by-default). Off unless the owner turns it on: a machine program from 1.0.18 opens
|
|
962
|
+
* the session with Claude Code's `disableClaudeAiConnectors` unless this is true.
|
|
963
|
+
*/
|
|
964
|
+
connectors: z3.boolean().optional(),
|
|
959
965
|
/** The organisation's tools this agent was given (plan draft-2026-11-06-modules), offered as `mcp__monoclaw-tools__<name>`. */
|
|
960
966
|
tools: z3.array(SessionTool).default([]),
|
|
961
967
|
/**
|
|
@@ -4584,7 +4590,7 @@ function guessMime(name) {
|
|
|
4584
4590
|
}
|
|
4585
4591
|
|
|
4586
4592
|
// src/version.ts
|
|
4587
|
-
var APP_VERSION = true ? "1.0.
|
|
4593
|
+
var APP_VERSION = true ? "1.0.18" : fromPackage();
|
|
4588
4594
|
|
|
4589
4595
|
// src/diag.ts
|
|
4590
4596
|
var MAX_HELD = 200;
|
|
@@ -6390,7 +6396,7 @@ var ClaudeSession = class {
|
|
|
6390
6396
|
systemPrompt: { type: "preset", preset: "claude_code", append: buildAppend(s) },
|
|
6391
6397
|
permissionMode: mode,
|
|
6392
6398
|
allowDangerouslySkipPermissions: mode === "bypassPermissions" ? true : void 0,
|
|
6393
|
-
...scopeSettings(scope, !!s.peerMessaging),
|
|
6399
|
+
...scopeSettings(scope, !!s.peerMessaging, !!s.connectors),
|
|
6394
6400
|
model: s.model || void 0,
|
|
6395
6401
|
resume: this.sessionId,
|
|
6396
6402
|
forkSession: this.forkPending || void 0,
|
|
@@ -6650,10 +6656,12 @@ function scopeOptions(scope, peerMessaging = false) {
|
|
|
6650
6656
|
if (scope === "chat") return { tools: [] };
|
|
6651
6657
|
return peerMessaging ? {} : { disallowedTools: PEER_SESSION_TOOLS };
|
|
6652
6658
|
}
|
|
6653
|
-
function scopeSettings(scope, peerMessaging = false) {
|
|
6659
|
+
function scopeSettings(scope, peerMessaging = false, connectors = false) {
|
|
6660
|
+
const off = connectors ? {} : { disableClaudeAiConnectors: true };
|
|
6654
6661
|
const peer = peerMessaging ? {} : { crossSessionInbound: "refuse" };
|
|
6655
|
-
|
|
6656
|
-
return { settingSources:
|
|
6662
|
+
const settings = { ...off, ...peer };
|
|
6663
|
+
if (scope === "full") return { settingSources: SESSION_SETTING_SOURCES, ...Object.keys(settings).length ? { settings } : {} };
|
|
6664
|
+
return { settingSources: [], settings: { ...settings, disableAllHooks: true } };
|
|
6657
6665
|
}
|
|
6658
6666
|
function monoclawToolNames(s) {
|
|
6659
6667
|
return [...(s.scope ?? "full") === "full" ? ["send_file"] : [], ...s.canMessage ? ["list_agents", "send"] : []];
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monoclaw/machine",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@monoclaw/machine",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.18",
|
|
10
10
|
"license": "UNLICENSED",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/claude-agent-sdk": "0.3.302",
|
package/package.json
CHANGED