switchroom 0.19.7 → 0.19.9
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/auth-broker/index.js +9 -8
- package/dist/cli/switchroom.js +903 -695
- package/dist/host-control/main.js +15 -14
- package/dist/vault/approvals/kernel-server.js +5 -4
- package/dist/vault/broker/server.js +9 -8
- package/package.json +1 -1
- package/profiles/default/CLAUDE.md.hbs +4 -4
- package/skills/telegram-formatting/SKILL.md +147 -0
- package/telegram-plugin/dist/gateway/gateway.js +30 -11
- package/telegram-plugin/gateway/gateway.ts +2 -2
- package/telegram-plugin/render/ir.ts +34 -26
- package/telegram-plugin/render/render.ts +12 -3
- package/telegram-plugin/rich-send.ts +16 -10
- package/telegram-plugin/shared/bot-runtime.ts +57 -0
- package/telegram-plugin/tests/format-guard-pins.test.ts +93 -0
- package/telegram-plugin/tests/render/underline-wire-outcome.test.ts +32 -0
- package/telegram-plugin/tests/rich-markdown-guard-transformer.test.ts +121 -0
|
@@ -18247,10 +18247,10 @@ import {
|
|
|
18247
18247
|
import { closeSync as closeSync2, openSync as openSync2, writeSync as writeSync2 } from "node:fs";
|
|
18248
18248
|
import * as constants2 from "node:constants";
|
|
18249
18249
|
import { createHash as createHash2 } from "node:crypto";
|
|
18250
|
-
import { basename as basename2, dirname as
|
|
18250
|
+
import { basename as basename2, dirname as dirname4, join as join8, resolve as resolve9 } from "node:path";
|
|
18251
18251
|
|
|
18252
18252
|
// src/agents/scaffold.ts
|
|
18253
|
-
import { join as join4, resolve as resolve5 } from "node:path";
|
|
18253
|
+
import { dirname, isAbsolute, join as join4, relative, resolve as resolve5 } from "node:path";
|
|
18254
18254
|
init_atomic();
|
|
18255
18255
|
|
|
18256
18256
|
// src/agents/agent-uid.ts
|
|
@@ -18396,6 +18396,7 @@ function normalizeMicrosoftBindings(mw) {
|
|
|
18396
18396
|
|
|
18397
18397
|
// src/agents/reconcile-default-skills.ts
|
|
18398
18398
|
var warnedMissingPool = new Set;
|
|
18399
|
+
var warnedMissingDefault = new Set;
|
|
18399
18400
|
|
|
18400
18401
|
// src/vault/vault.ts
|
|
18401
18402
|
var KNOWN_VAULT_ARTIFACT_NAMES = new Set([
|
|
@@ -20075,7 +20076,7 @@ function resolveMicrosoftClientId(configClientId) {
|
|
|
20075
20076
|
// src/auth/broker/google-storage.ts
|
|
20076
20077
|
init_atomic();
|
|
20077
20078
|
import { existsSync as existsSync6, mkdirSync as mkdirSync3, readdirSync as readdirSync4, readFileSync as readFileSync5, rmSync as rmSync3, statSync as statSync4 } from "node:fs";
|
|
20078
|
-
import { dirname, join as join6, resolve as resolve7 } from "node:path";
|
|
20079
|
+
import { dirname as dirname2, join as join6, resolve as resolve7 } from "node:path";
|
|
20079
20080
|
function normalizeGoogleAccountForStorage(account) {
|
|
20080
20081
|
return account.trim().toLowerCase();
|
|
20081
20082
|
}
|
|
@@ -20118,7 +20119,7 @@ function readGoogleAccountCredentials(stateDir, account) {
|
|
|
20118
20119
|
}
|
|
20119
20120
|
function writeGoogleAccountCredentials(stateDir, account, credentials) {
|
|
20120
20121
|
const path = googleAccountCredentialsPath(stateDir, account);
|
|
20121
|
-
mkdirSync3(
|
|
20122
|
+
mkdirSync3(dirname2(path), { recursive: true, mode: 448 });
|
|
20122
20123
|
atomicWriteFileSync(path, JSON.stringify(credentials, null, 2), 384);
|
|
20123
20124
|
return path;
|
|
20124
20125
|
}
|
|
@@ -20144,7 +20145,7 @@ function listGoogleAccounts(stateDir) {
|
|
|
20144
20145
|
// src/auth/broker/microsoft-storage.ts
|
|
20145
20146
|
init_atomic();
|
|
20146
20147
|
import { existsSync as existsSync7, mkdirSync as mkdirSync4, readdirSync as readdirSync5, readFileSync as readFileSync6, rmSync as rmSync4, statSync as statSync5 } from "node:fs";
|
|
20147
|
-
import { dirname as
|
|
20148
|
+
import { dirname as dirname3, join as join7, resolve as resolve8 } from "node:path";
|
|
20148
20149
|
function normalizeMicrosoftAccountForStorage(account) {
|
|
20149
20150
|
return account.trim().toLowerCase();
|
|
20150
20151
|
}
|
|
@@ -20187,7 +20188,7 @@ function readMicrosoftAccountCredentials(stateDir, account) {
|
|
|
20187
20188
|
}
|
|
20188
20189
|
function writeMicrosoftAccountCredentials(stateDir, account, credentials) {
|
|
20189
20190
|
const path = microsoftAccountCredentialsPath(stateDir, account);
|
|
20190
|
-
mkdirSync4(
|
|
20191
|
+
mkdirSync4(dirname3(path), { recursive: true, mode: 448 });
|
|
20191
20192
|
atomicWriteFileSync(path, JSON.stringify(credentials, null, 2), 384);
|
|
20192
20193
|
return path;
|
|
20193
20194
|
}
|
|
@@ -20939,7 +20940,7 @@ class AuthBroker {
|
|
|
20939
20940
|
await this.bindListener(sockPath, operatorUid, 384, { kind: "operator" });
|
|
20940
20941
|
}
|
|
20941
20942
|
async bindListener(sockPath, targetUid, sockMode, identity) {
|
|
20942
|
-
const dir =
|
|
20943
|
+
const dir = dirname4(sockPath);
|
|
20943
20944
|
if (existsSync8(dir)) {
|
|
20944
20945
|
try {
|
|
20945
20946
|
chownSync2(dir, 0, 0);
|
|
@@ -22769,7 +22770,7 @@ class AuthBroker {
|
|
|
22769
22770
|
this.auditMirrorRefused(identity, component, reason);
|
|
22770
22771
|
return null;
|
|
22771
22772
|
};
|
|
22772
|
-
const parent =
|
|
22773
|
+
const parent = dirname4(mirrorDir);
|
|
22773
22774
|
const mirrorStat = this.lstatOrNull(mirrorDir);
|
|
22774
22775
|
if (mirrorStat) {
|
|
22775
22776
|
if (mirrorStat.isSymbolicLink())
|