@epoch-agent/protocol 0.9.0 → 0.10.1
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.d.ts +1091 -66
- package/dist/index.js +115 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -543,16 +543,31 @@ var SESSION_REFERENCE_ERROR_CODES = Object.freeze([
|
|
|
543
543
|
"budget-exceeded"
|
|
544
544
|
]);
|
|
545
545
|
var OMIT_LABEL = {
|
|
546
|
-
binary: "\u4E8C\u8FDB\u5236\u6587\u4EF6\uFF0C\u672A\u9644\u5185\u5BB9",
|
|
547
|
-
denied: "\u6743\u9650\u672A\u653E\u884C\uFF0C\u672A\u9644\u5185\u5BB9",
|
|
546
|
+
binary: "\u4E8C\u8FDB\u5236\u6587\u4EF6\uFF0C\u672A\u9644\u5185\u5BB9\uFF1Bfile_read \u5BF9\u4E8C\u8FDB\u5236\u662F\u76F4\u63A5\u62D2\u7684\uFF0C\u8981\u5185\u5BB9\u5F97\u81EA\u5DF1\u53E6\u53D6\uFF0C\u522B\u56DE\u5934\u8BA9\u7528\u6237\u8D34",
|
|
547
|
+
denied: "\u6743\u9650\u672A\u653E\u884C\uFF0C\u672A\u9644\u5185\u5BB9 \u2014\u2014 \u9700\u8981\u5C31\u8C03 file_read\uFF0C\u90A3\u6761\u8DEF\u4F1A\u8D70\u5B8C\u6574\u5BA1\u6279",
|
|
548
548
|
unreadable: "\u8BFB\u53D6\u5931\u8D25\uFF0C\u672A\u9644\u5185\u5BB9",
|
|
549
|
-
"over-limit": "\u8D85\u51FA\u672C\u6761\u6D88\u606F\u7684\u9644\u4EF6\u4E0A\u9650\uFF0C\u672A\u9644\u5185\u5BB9",
|
|
549
|
+
"over-limit": "\u8D85\u51FA\u672C\u6761\u6D88\u606F\u7684\u9644\u4EF6\u4E0A\u9650\uFF0C\u672A\u9644\u5185\u5BB9 \u2014\u2014 \u9700\u8981\u5C31\u8C03 file_read",
|
|
550
550
|
"not-restored": "\u4F1A\u8BDD\u6062\u590D\u540E\u4E0D\u91CD\u8BFB\u5185\u5BB9\uFF0C\u9700\u8981\u5C31\u8C03 file_read"
|
|
551
551
|
};
|
|
552
|
+
function truncatedNote(part) {
|
|
553
|
+
const kept = part.truncatedTo;
|
|
554
|
+
if (kept === void 0) return "";
|
|
555
|
+
const scale = part.bytes === void 0 || part.bytes <= 0 ? `\u5DF2\u622A\u65AD\u5230 ${kept} \u5B57\u8282` : `\u53EA\u9644\u4E86\u524D ${kept} / \u5171 ${part.bytes} \u5B57\u8282\uFF08${Math.round(kept / part.bytes * 100)}%\uFF09`;
|
|
556
|
+
const lines = part.text === void 0 ? 0 : countLines(part.text);
|
|
557
|
+
if (lines === 0) return `\uFF0C${scale}\uFF0C\u4E0D\u8DB3\u4E00\u884C \u2014\u2014 \u8981\u5168\u90E8\u5C31\u8C03 file_read \u91CD\u8BFB`;
|
|
558
|
+
return `\uFF0C${scale}\uFF0C\u5230\u7B2C ${lines} \u884C\u4E3A\u6B62 \u2014\u2014 \u5269\u4E0B\u7684\u8C03 file_read offset=${lines + 1} \u63A5\u7740\u8BFB`;
|
|
559
|
+
}
|
|
560
|
+
function countLines(text) {
|
|
561
|
+
let n = 0;
|
|
562
|
+
for (let i = text.indexOf("\n"); i !== -1; i = text.indexOf("\n", i + 1)) n += 1;
|
|
563
|
+
return n;
|
|
564
|
+
}
|
|
552
565
|
function filePartSummary(part) {
|
|
553
566
|
if (part.omitted) return `[\u6587\u4EF6 ${part.path}\uFF1A${OMIT_LABEL[part.omitted]}]`;
|
|
554
|
-
|
|
555
|
-
|
|
567
|
+
return `[\u6587\u4EF6 ${part.path}${truncatedNote(part)}]`;
|
|
568
|
+
}
|
|
569
|
+
function imagePartOmittedSummary(part) {
|
|
570
|
+
return `[\u56FE\u7247 ${part.mediaType ?? "\u672A\u77E5\u7C7B\u578B"}\uFF1A\u5F53\u524D\u6A21\u578B\u4E0D\u652F\u6301\u56FE\u7247\u8F93\u5165\uFF0C\u5185\u5BB9\u672A\u9644\u4E0A]`;
|
|
556
571
|
}
|
|
557
572
|
function sessionPartSummary(part) {
|
|
558
573
|
const name = part.title ?? part.sessionId ?? part.ref;
|
|
@@ -637,6 +652,13 @@ var MAX_ATTACH_FILES = 20;
|
|
|
637
652
|
var MAX_ATTACH_TOTAL_BYTES = 200 * 1024;
|
|
638
653
|
var MAX_SESSION_ATTACH_BYTES = 50 * 1024;
|
|
639
654
|
var MAX_SESSION_REFS = 2;
|
|
655
|
+
function truncateToBudget(raw, budget) {
|
|
656
|
+
const head = new TextDecoder().decode(raw.subarray(0, budget));
|
|
657
|
+
const at = head.lastIndexOf("\n");
|
|
658
|
+
if (at < 0 || at < head.length / 2) return { text: head, truncatedTo: budget };
|
|
659
|
+
const text = head.slice(0, at + 1);
|
|
660
|
+
return { text, truncatedTo: new TextEncoder().encode(text).length };
|
|
661
|
+
}
|
|
640
662
|
function attachSessionSurface(ref, surface, usedBytes) {
|
|
641
663
|
const head = {
|
|
642
664
|
type: "session",
|
|
@@ -754,6 +776,25 @@ function isPromptOversize(prompt, contextLength) {
|
|
|
754
776
|
function totalUsageTokens(usage) {
|
|
755
777
|
return usage.totalTokens ?? promptTokens(usage) + usage.outputTokens;
|
|
756
778
|
}
|
|
779
|
+
// src/money.ts
|
|
780
|
+
var CURRENCIES = ["USD", "CNY"];
|
|
781
|
+
function isCurrency(value) {
|
|
782
|
+
return CURRENCIES.includes(value);
|
|
783
|
+
}
|
|
784
|
+
var SYMBOLS = {
|
|
785
|
+
USD: "$",
|
|
786
|
+
CNY: "\xA5"
|
|
787
|
+
};
|
|
788
|
+
function formatMoney(usd, opts = {}) {
|
|
789
|
+
const { currency, digits = "adaptive" } = opts;
|
|
790
|
+
const shown = currency ? usd * currency.rate : usd;
|
|
791
|
+
const places = digits === "adaptive" ? adaptiveDigits(shown) : digits;
|
|
792
|
+
const symbol = currency ? SYMBOLS[currency.code] : SYMBOLS.USD;
|
|
793
|
+
return shown < 0 ? `-${symbol}${Math.abs(shown).toFixed(places)}` : `${symbol}${shown.toFixed(places)}`;
|
|
794
|
+
}
|
|
795
|
+
function adaptiveDigits(shown) {
|
|
796
|
+
return shown > 0 && shown < 0.01 ? 4 : 2;
|
|
797
|
+
}
|
|
757
798
|
// src/wire.ts
|
|
758
799
|
var HUB_EVENT_TYPES = /* @__PURE__ */ new Set([
|
|
759
800
|
"connected",
|
|
@@ -762,7 +803,8 @@ var HUB_EVENT_TYPES = /* @__PURE__ */ new Set([
|
|
|
762
803
|
"question-resolved",
|
|
763
804
|
"stream-reset",
|
|
764
805
|
"session-cooled",
|
|
765
|
-
"tasks-changed"
|
|
806
|
+
"tasks-changed",
|
|
807
|
+
"sessions-changed"
|
|
766
808
|
]);
|
|
767
809
|
function isWireHubEvent(event) {
|
|
768
810
|
return HUB_EVENT_TYPES.has(event.type);
|
|
@@ -819,6 +861,15 @@ var WIRE_SESSION_WORKSPACE_FIELDS = wireFields()({
|
|
|
819
861
|
instructionFiles: true,
|
|
820
862
|
skippedInstructionFiles: true
|
|
821
863
|
});
|
|
864
|
+
var WIRE_PROJECT_INVENTORY_FIELDS = wireFields()({
|
|
865
|
+
instructionFiles: true,
|
|
866
|
+
skills: true,
|
|
867
|
+
roles: true,
|
|
868
|
+
commands: true,
|
|
869
|
+
hookFiles: true,
|
|
870
|
+
policies: true,
|
|
871
|
+
settingsFiles: true
|
|
872
|
+
});
|
|
822
873
|
var WIRE_COMPRESSION_LINE_FIELDS = wireFields()({
|
|
823
874
|
contextLength: true,
|
|
824
875
|
threshold: true,
|
|
@@ -897,6 +948,10 @@ var WIRE_MESSAGE_LIST_FIELDS = wireFields()({
|
|
|
897
948
|
var WIRE_SEND_MESSAGE_FIELDS = wireFields()({
|
|
898
949
|
message: true
|
|
899
950
|
});
|
|
951
|
+
var WIRE_ATTACHMENT_UPLOAD_FIELDS = wireFields()({
|
|
952
|
+
name: true,
|
|
953
|
+
bytes: true
|
|
954
|
+
});
|
|
900
955
|
var WIRE_SESSION_REFERENCE_FIELDS = wireFields()({
|
|
901
956
|
ref: true
|
|
902
957
|
});
|
|
@@ -1065,6 +1120,18 @@ var WIRE_CREATE_WORKSPACE_FIELDS = wireFields()({
|
|
|
1065
1120
|
var WIRE_CREATE_WORKSPACE_RESPONSE_FIELDS = wireFields()({
|
|
1066
1121
|
entry: true
|
|
1067
1122
|
});
|
|
1123
|
+
var WIRE_TRUST_REQUEST_FIELDS = wireFields()({
|
|
1124
|
+
root: true
|
|
1125
|
+
});
|
|
1126
|
+
var WIRE_TRUST_REQUEST_RESPONSE_FIELDS = wireFields()({
|
|
1127
|
+
asked: true
|
|
1128
|
+
});
|
|
1129
|
+
var WIRE_FORGET_WORKSPACE_FIELDS = wireFields()({
|
|
1130
|
+
root: true
|
|
1131
|
+
});
|
|
1132
|
+
var WIRE_FORGET_WORKSPACE_RESPONSE_FIELDS = wireFields()({
|
|
1133
|
+
known: true
|
|
1134
|
+
});
|
|
1068
1135
|
var WIRE_CONTEXT_FIELDS = wireFields()({
|
|
1069
1136
|
breakdown: true
|
|
1070
1137
|
});
|
|
@@ -1104,9 +1171,15 @@ var WIRE_MCP_CONNECTOR_FIELDS = wireFields()({
|
|
|
1104
1171
|
reconnectAttempts: true,
|
|
1105
1172
|
source: true
|
|
1106
1173
|
});
|
|
1174
|
+
function mcpConnectorState(server) {
|
|
1175
|
+
return server.needsLogin ? "needs-login" : server.connected ? "connected" : "failed";
|
|
1176
|
+
}
|
|
1107
1177
|
var WIRE_CAPABILITY_PROJECT_FIELDS = wireFields()({
|
|
1108
1178
|
root: true,
|
|
1109
|
-
trusted: true
|
|
1179
|
+
trusted: true,
|
|
1180
|
+
execTrusted: true,
|
|
1181
|
+
inventory: true,
|
|
1182
|
+
trustRequest: true
|
|
1110
1183
|
});
|
|
1111
1184
|
var WIRE_CAPABILITIES_FIELDS = wireFields()({
|
|
1112
1185
|
roles: true,
|
|
@@ -1150,6 +1223,17 @@ var WIRE_SKILL_IMPORT_FIELDS = wireFields()({
|
|
|
1150
1223
|
detail: true,
|
|
1151
1224
|
reason: true
|
|
1152
1225
|
});
|
|
1226
|
+
var WIRE_SKILL_DROP_SUFFIXES = [".zip", ".tgz", ".tar.gz", ".md"];
|
|
1227
|
+
function isWireSkillDropName(name) {
|
|
1228
|
+
const path = (name.split("?")[0] ?? "").toLowerCase();
|
|
1229
|
+
return WIRE_SKILL_DROP_SUFFIXES.some((suffix) => path.endsWith(suffix));
|
|
1230
|
+
}
|
|
1231
|
+
var WIRE_SKILL_STAGE_FIELDS = wireFields()({
|
|
1232
|
+
ok: true,
|
|
1233
|
+
path: true,
|
|
1234
|
+
detail: true,
|
|
1235
|
+
reason: true
|
|
1236
|
+
});
|
|
1153
1237
|
var WIRE_SKILL_REMOVE_FIELDS = wireFields()({
|
|
1154
1238
|
ok: true,
|
|
1155
1239
|
name: true,
|
|
@@ -1167,6 +1251,11 @@ var WIRE_ROLE_ADD_RESPONSE_FIELDS = wireFields()({
|
|
|
1167
1251
|
path: true
|
|
1168
1252
|
});
|
|
1169
1253
|
// src/wire-plugin.ts
|
|
1254
|
+
var WIRE_PLUGIN_ARCHIVE_SUFFIXES = [".zip", ".tgz", ".tar.gz"];
|
|
1255
|
+
function isWirePluginArchiveName(name) {
|
|
1256
|
+
const path = (name.split("?")[0] ?? "").toLowerCase();
|
|
1257
|
+
return WIRE_PLUGIN_ARCHIVE_SUFFIXES.some((suffix) => path.endsWith(suffix));
|
|
1258
|
+
}
|
|
1170
1259
|
var WIRE_PLUGIN_UPLOAD_FORM_FIELDS = [
|
|
1171
1260
|
"displayName",
|
|
1172
1261
|
"description",
|
|
@@ -1195,6 +1284,15 @@ var WIRE_PLUGIN_LOCAL_INSTALL_FIELDS = wireFields()({
|
|
|
1195
1284
|
path: true,
|
|
1196
1285
|
token: true
|
|
1197
1286
|
});
|
|
1287
|
+
var WIRE_PLUGIN_STAGE_FIELDS = wireFields()({ path: true });
|
|
1288
|
+
var WIRE_PLUGIN_STAGE_RESPONSE_FIELDS = wireFields()({
|
|
1289
|
+
ok: true,
|
|
1290
|
+
path: true,
|
|
1291
|
+
name: true,
|
|
1292
|
+
version: true,
|
|
1293
|
+
detail: true,
|
|
1294
|
+
reason: true
|
|
1295
|
+
});
|
|
1198
1296
|
var WIRE_PLUGIN_MARKETPLACE_FIELDS = wireFields()({
|
|
1199
1297
|
source: true
|
|
1200
1298
|
});
|
|
@@ -1323,14 +1421,19 @@ var WIRE_SECURITY_WORKSPACE_FIELDS = wireFields()({
|
|
|
1323
1421
|
instructionFiles: true,
|
|
1324
1422
|
skippedInstructionFiles: true,
|
|
1325
1423
|
trustLevel: true,
|
|
1326
|
-
unloadedExtraInstructionFiles: true
|
|
1424
|
+
unloadedExtraInstructionFiles: true,
|
|
1425
|
+
execTrusted: true,
|
|
1426
|
+
inventory: true,
|
|
1427
|
+
trustRequest: true
|
|
1327
1428
|
});
|
|
1328
1429
|
var WIRE_KNOWN_WORKSPACE_FIELDS = wireFields()({
|
|
1329
1430
|
root: true,
|
|
1330
1431
|
name: true,
|
|
1331
1432
|
level: true,
|
|
1332
1433
|
trusted: true,
|
|
1333
|
-
current: true
|
|
1434
|
+
current: true,
|
|
1435
|
+
exists: true,
|
|
1436
|
+
execTrusted: true
|
|
1334
1437
|
});
|
|
1335
1438
|
var WIRE_POLICY_DIR_FIELDS = wireFields()({
|
|
1336
1439
|
dir: true,
|
|
@@ -1451,7 +1554,8 @@ var WIRE_PROVIDER_OPTION_FIELDS = wireFields()({
|
|
|
1451
1554
|
label: true,
|
|
1452
1555
|
envVar: true,
|
|
1453
1556
|
hasKey: true,
|
|
1454
|
-
keyHint: true
|
|
1557
|
+
keyHint: true,
|
|
1558
|
+
current: true
|
|
1455
1559
|
});
|
|
1456
1560
|
var WIRE_PROVIDERS_FIELDS = wireFields()({
|
|
1457
1561
|
providers: true
|
|
@@ -1765,4 +1869,4 @@ var COMPLIANCE_ACTIONS = ["block", "mask", "warn", "off"];
|
|
|
1765
1869
|
var SECRET_SERVICE = "epoch-agent";
|
|
1766
1870
|
var MCP_DATA_KEY_NAME = "mcp-auth-data-key";
|
|
1767
1871
|
|
|
1768
|
-
export { ACTION_CONTEXTS, AGENT_ROLE_NAME_PATTERN, API_KEY_ENV_VARS, APPROVAL_OUTCOMES, COMMAND_NAME_PATTERN, COMPLIANCE_ACTIONS, COMPLIANCE_CATEGORIES, DEFAULT_AGENT_ROLE, DEFAULT_LANG, DiagnosticSink, GEN_AI, HEADLESS_INPUT_EVENT_TYPES, HEADLESS_INPUT_FORMATS, HEADLESS_OUTPUT_FORMATS, HEADLESS_PROTOCOL_VERSION, KEY_ACTIONS, LANGS, MAX_ATTACH_BYTES, MAX_ATTACH_FILES, MAX_ATTACH_TOTAL_BYTES, MAX_HEADER_CHARS, MAX_OPTIONS, MAX_QUESTIONS, MAX_SESSION_ATTACH_BYTES, MAX_SESSION_REFS, MCP_DATA_KEY_NAME, METRIC, MIN_OPTIONS, NOOP_TELEMETRY, OPERATION_TYPES, OVERSIZE_RATIO, PERMISSION_LEVELS, PLAN_OUTCOMES, PROVIDER_INFOS, PROVIDER_TYPES, RESERVED_CHORDS, RESERVED_COMMAND_NAMES, SCHEDULE_DRAFT_TOOL, SCHEDULE_INTERVAL_MINUTES, SCHEDULE_RUN_STATUSES, SCHEDULE_TEMPLATES, SEARCH_API_KEY_ENV, SEARCH_PROVIDER_TYPES, SECRET_SERVICE, SEQUENCE_CONTEXTS, SESSION_MENTION_PREFIX, SESSION_REFERENCE_ERROR_CODES, SHELL_KINDS, SIDEBAR_MENU_MESSAGE_TYPE, SIMULTANEOUS_CONTEXTS, SYSTEM_NOTE_PREFIX, ToolExposure, UNLIMITED_TURNS, WIRE_ABORT_FIELDS, WIRE_ABOUT_FIELDS, WIRE_AGENT_ROLE_FIELDS, WIRE_APPROVAL_CACHE_REVOKE_REQUEST_FIELDS, WIRE_APPROVAL_CACHE_REVOKE_RESPONSE_FIELDS, WIRE_APPROVAL_LIST_FIELDS, WIRE_APPROVAL_ROW_FIELDS, WIRE_ARTIFACTS_FIELDS, WIRE_AUDIT_LOG_FIELDS, WIRE_AUDIT_ROW_FIELDS, WIRE_AUTH_COOKIE, WIRE_AUTH_COOKIE_ATTRS, WIRE_AUTH_TOKEN_PARAM, WIRE_BACKGROUND_TASK_FIELDS, WIRE_BLOCKED_GOALS_FIELDS, WIRE_BLOCKED_GOAL_FIELDS, WIRE_BLOCKED_LEVEL_FIELDS, WIRE_BUILTIN_CONNECTOR_FIELDS, WIRE_CACHED_APPROVAL_FIELDS, WIRE_CAPABILITIES_FIELDS, WIRE_CAPABILITY_PROJECT_FIELDS, WIRE_CHECKPOINT_LIST_FIELDS, WIRE_CHECKPOINT_SUMMARY_FIELDS, WIRE_COMMANDS_FIELDS, WIRE_COMMAND_EXPANSION_FIELDS, WIRE_COMPACT_FIELDS, WIRE_COMPRESSION_LINE_FIELDS, WIRE_CONFIG_FIELDS, WIRE_CONTEXT_FIELDS, WIRE_CREATE_SESSION_FIELDS, WIRE_CREATE_WORKSPACE_FIELDS, WIRE_CREATE_WORKSPACE_RESPONSE_FIELDS, WIRE_CUSTOM_COMMAND_FIELDS, WIRE_DELETE_SESSION_FIELDS, WIRE_DIFF_FILE_FIELDS, WIRE_ERROR_FIELDS, WIRE_FILE_CANDIDATES_FIELDS, WIRE_FILE_CANDIDATE_FIELDS, WIRE_FILE_CHANGE_FIELDS, WIRE_FILE_OPEN_RESPONSE_FIELDS, WIRE_FILE_REFERENCE_FIELDS, WIRE_FILE_STAT_MAX, WIRE_FILE_STAT_OK_FIELDS, WIRE_FILE_STAT_REFUSED_FIELDS, WIRE_FILE_STAT_RESPONSE_FIELDS, WIRE_FILE_TEXT_RESPONSE_FIELDS, WIRE_GOAL_ACTIONS, WIRE_GOAL_BLOCK_FIELDS, WIRE_GOAL_CLEAR_FIELDS, WIRE_GOAL_CREATE_FIELDS, WIRE_GOAL_FIELDS, WIRE_GOAL_LIMITS_FIELDS, WIRE_GOAL_PHASES, WIRE_GOAL_REFUSALS, WIRE_GOAL_RESPONSE_FIELDS, WIRE_GOAL_WRITE_FIELDS, WIRE_HEALTH_FIELDS, WIRE_IMAGE_REFERENCE_FIELDS, WIRE_KNOWN_WORKSPACE_FIELDS, WIRE_LANG_PARAM, WIRE_MANAGED_LOCK_FIELDS, WIRE_MCP_ADD_FIELDS, WIRE_MCP_ADD_RESPONSE_FIELDS, WIRE_MCP_APPLY_ENTRY_FIELDS, WIRE_MCP_APPLY_RESPONSE_FIELDS, WIRE_MCP_CONFIG_APPLY_FIELDS, WIRE_MCP_CONFIG_FIELDS, WIRE_MCP_CONFIG_ISSUE_FIELDS, WIRE_MCP_CONFIG_SAVE_FIELDS, WIRE_MCP_CONFIG_SAVE_RESPONSE_FIELDS, WIRE_MCP_CONNECTOR_FIELDS, WIRE_MCP_RECONNECT_FIELDS, WIRE_MESSAGE_LIST_FIELDS, WIRE_MODEL_FIELDS, WIRE_MODEL_SELECTION_FIELDS, WIRE_MODEL_SET_FIELDS, WIRE_MODEL_SUGGESTIONS_FIELDS, WIRE_PATCH_SESSION_FIELDS, WIRE_PATCH_SESSION_RESPONSE_FIELDS, WIRE_PERMISSION_RULE_FIELDS, WIRE_PERMISSION_SET_REQUEST_FIELDS, WIRE_PERMISSION_SET_RESPONSE_FIELDS, WIRE_PERMISSION_SHADOW_FIELDS, WIRE_PERMISSION_STATE_FIELDS, WIRE_PERMISSION_STATUS_FIELDS, WIRE_PLAN_ACTIONS, WIRE_PLAN_FIELDS, WIRE_PLAN_MODE_REQUEST_FIELDS, WIRE_PLAN_MODE_RESPONSE_FIELDS, WIRE_PLAN_MODE_STATE_FIELDS, WIRE_PLUGINS_FIELDS, WIRE_PLUGIN_ACTION_FIELDS, WIRE_PLUGIN_INSTALL_FIELDS, WIRE_PLUGIN_LOCAL_FIELDS, WIRE_PLUGIN_LOCAL_INSTALL_FIELDS, WIRE_PLUGIN_MARKETPLACE_FIELDS, WIRE_PLUGIN_MARKETPLACE_RESPONSE_FIELDS, WIRE_PLUGIN_NAME_FIELDS, WIRE_PLUGIN_PREVIEW_FIELDS, WIRE_PLUGIN_PREVIEW_RESPONSE_FIELDS, WIRE_PLUGIN_REFRESH_RESPONSE_FIELDS, WIRE_PLUGIN_UPDATE_FIELDS, WIRE_PLUGIN_UPLOAD_CONFIRM_FIELDS, WIRE_PLUGIN_UPLOAD_FIELDS, WIRE_PLUGIN_UPLOAD_FORM_FIELDS, WIRE_PLUGIN_UPLOAD_PREVIEW_RESPONSE_FIELDS, WIRE_PLUGIN_UPLOAD_RESPONSE_FIELDS, WIRE_POLICY_DIR_FIELDS, WIRE_POLICY_STATUS_FIELDS, WIRE_PROVIDERS_FIELDS, WIRE_PROVIDER_KEY_FIELDS, WIRE_PROVIDER_MODELS_FIELDS, WIRE_PROVIDER_OPTION_FIELDS, WIRE_QUESTION_LIST_FIELDS, WIRE_QUESTION_ROW_FIELDS, WIRE_RESPOND_APPROVAL_FIELDS, WIRE_RESPOND_APPROVAL_RESPONSE_FIELDS, WIRE_RESPOND_QUESTION_FIELDS, WIRE_RESPOND_QUESTION_RESPONSE_FIELDS, WIRE_REWIND_FILE_PLAN_FIELDS, WIRE_REWIND_OUTCOME_FIELDS, WIRE_REWIND_PREVIEW_FIELDS, WIRE_REWIND_REQUEST_FIELDS, WIRE_REWIND_RESPONSE_FIELDS, WIRE_REWIND_SCOPES, WIRE_ROLE_ADD_FIELDS, WIRE_ROLE_ADD_RESPONSE_FIELDS, WIRE_SANDBOX_STATUS_FIELDS, WIRE_SCHEDULE_CAPABILITY_FIELDS, WIRE_SCHEDULE_CREATE_FIELDS, WIRE_SCHEDULE_DEFAULTS_FIELDS, WIRE_SCHEDULE_DELETE_FIELDS, WIRE_SCHEDULE_FIELDS, WIRE_SCHEDULE_FIX_FIELDS, WIRE_SCHEDULE_FIX_REQUEST_FIELDS, WIRE_SCHEDULE_ISSUE_CODES, WIRE_SCHEDULE_LIST_FIELDS, WIRE_SCHEDULE_PENDING_FIELDS, WIRE_SCHEDULE_RECORDING_FIELDS, WIRE_SCHEDULE_ROW_FIELDS, WIRE_SCHEDULE_RUNS_FIELDS, WIRE_SCHEDULE_RUN_FIELDS, WIRE_SCHEDULE_SAVE_FIELDS, WIRE_SECURITY_FIELDS, WIRE_SECURITY_WORKSPACE_FIELDS, WIRE_SEND_MESSAGE_FIELDS, WIRE_SEND_MESSAGE_RESPONSE_FIELDS, WIRE_SESSION_CANDIDATES_FIELDS, WIRE_SESSION_CANDIDATE_FIELDS, WIRE_SESSION_FINISH_FIELDS, WIRE_SESSION_LIST_FIELDS, WIRE_SESSION_REFERENCE_FIELDS, WIRE_SESSION_RESPONSE_FIELDS, WIRE_SESSION_SUMMARY_FIELDS, WIRE_SESSION_WORKSPACE_FIELDS, WIRE_SESSION_WORKSPACE_RESPONSE_FIELDS, WIRE_SETTINGS_FIELDS, WIRE_SETTINGS_WRITE_FIELDS, WIRE_SETTINGS_WRITE_REQUEST_FIELDS, WIRE_SETTING_ROW_FIELDS, WIRE_SETTING_STEP_FIELDS, WIRE_SETTING_WRITE_FIELDS, WIRE_SETTING_WRITE_LAYERS, WIRE_SKILL_BODY_FIELDS, WIRE_SKILL_FIELDS, WIRE_SKILL_IMPORT_FIELDS, WIRE_SKILL_IMPORT_PREVIEW_FIELDS, WIRE_SKILL_REMOVE_FIELDS, WIRE_TASKS_FIELDS, WIRE_TOOLS_FIELDS, WIRE_TOOL_GATE_FIELDS, WIRE_TOOL_ROW_FIELDS, WIRE_WORKSPACE_DIFF_FIELDS, WIRE_WORKSPACE_DIRS_FIELDS, WIRE_WORKSPACE_DIR_ENTRY_FIELDS, WIRE_WORKSPACE_REF_FIELDS, apiKeyEnvVar, assertNeverPart, assistantTurnText, attachSessionSurface, chordId, collectPendingApprovals, compressionThresholdTokens, conformsToWire, contentToText, diagnosticToLine, extractAllMentions, extractMentions, extractSessionMentions, filePartSummary, flattenCatalog, getProviderInfo, hasFailure, isApprovalOutcome, isContextNearlyFull, isHeadlessInputFormat, isHeadlessLifecycleEvent, isHeadlessOutputFormat, isKeyAction, isLang, isMentionableFilePath, isOperationType, isPermissionLevel, isPlanOutcome, isPromptOversize, isProviderType, isQuestionAnswerMap, isSearchProviderType, isValidAgentRoleName, isValidCommandName, isWireGoalPhase, isWireHubEvent, isWirePlanAction, isWireRewindScope, isWireSettingWriteLayer, makeTranslate, normalizeApproval, packSessionSurface, parseChord, parseModelRef, parseSequence, perAction, placeholdersOf, promptTokens, resolveHostText, sequenceId, sessionPartSummary, stripSystemNote, systemNote, tableOf, totalUsageTokens, translatorFor, turnDigest, unfixedRules, utf8ByteLength, wireFields };
|
|
1872
|
+
export { ACTION_CONTEXTS, AGENT_ROLE_NAME_PATTERN, API_KEY_ENV_VARS, APPROVAL_OUTCOMES, COMMAND_NAME_PATTERN, COMPLIANCE_ACTIONS, COMPLIANCE_CATEGORIES, CURRENCIES, DEFAULT_AGENT_ROLE, DEFAULT_LANG, DiagnosticSink, GEN_AI, HEADLESS_INPUT_EVENT_TYPES, HEADLESS_INPUT_FORMATS, HEADLESS_OUTPUT_FORMATS, HEADLESS_PROTOCOL_VERSION, KEY_ACTIONS, LANGS, MAX_ATTACH_BYTES, MAX_ATTACH_FILES, MAX_ATTACH_TOTAL_BYTES, MAX_HEADER_CHARS, MAX_OPTIONS, MAX_QUESTIONS, MAX_SESSION_ATTACH_BYTES, MAX_SESSION_REFS, MCP_DATA_KEY_NAME, METRIC, MIN_OPTIONS, NOOP_TELEMETRY, OPERATION_TYPES, OVERSIZE_RATIO, PERMISSION_LEVELS, PLAN_OUTCOMES, PROVIDER_INFOS, PROVIDER_TYPES, RESERVED_CHORDS, RESERVED_COMMAND_NAMES, SCHEDULE_DRAFT_TOOL, SCHEDULE_INTERVAL_MINUTES, SCHEDULE_RUN_STATUSES, SCHEDULE_TEMPLATES, SEARCH_API_KEY_ENV, SEARCH_PROVIDER_TYPES, SECRET_SERVICE, SEQUENCE_CONTEXTS, SESSION_MENTION_PREFIX, SESSION_REFERENCE_ERROR_CODES, SHELL_KINDS, SIDEBAR_MENU_MESSAGE_TYPE, SIMULTANEOUS_CONTEXTS, SYSTEM_NOTE_PREFIX, ToolExposure, UNLIMITED_TURNS, WIRE_ABORT_FIELDS, WIRE_ABOUT_FIELDS, WIRE_AGENT_ROLE_FIELDS, WIRE_APPROVAL_CACHE_REVOKE_REQUEST_FIELDS, WIRE_APPROVAL_CACHE_REVOKE_RESPONSE_FIELDS, WIRE_APPROVAL_LIST_FIELDS, WIRE_APPROVAL_ROW_FIELDS, WIRE_ARTIFACTS_FIELDS, WIRE_ATTACHMENT_UPLOAD_FIELDS, WIRE_AUDIT_LOG_FIELDS, WIRE_AUDIT_ROW_FIELDS, WIRE_AUTH_COOKIE, WIRE_AUTH_COOKIE_ATTRS, WIRE_AUTH_TOKEN_PARAM, WIRE_BACKGROUND_TASK_FIELDS, WIRE_BLOCKED_GOALS_FIELDS, WIRE_BLOCKED_GOAL_FIELDS, WIRE_BLOCKED_LEVEL_FIELDS, WIRE_BUILTIN_CONNECTOR_FIELDS, WIRE_CACHED_APPROVAL_FIELDS, WIRE_CAPABILITIES_FIELDS, WIRE_CAPABILITY_PROJECT_FIELDS, WIRE_CHECKPOINT_LIST_FIELDS, WIRE_CHECKPOINT_SUMMARY_FIELDS, WIRE_COMMANDS_FIELDS, WIRE_COMMAND_EXPANSION_FIELDS, WIRE_COMPACT_FIELDS, WIRE_COMPRESSION_LINE_FIELDS, WIRE_CONFIG_FIELDS, WIRE_CONTEXT_FIELDS, WIRE_CREATE_SESSION_FIELDS, WIRE_CREATE_WORKSPACE_FIELDS, WIRE_CREATE_WORKSPACE_RESPONSE_FIELDS, WIRE_CUSTOM_COMMAND_FIELDS, WIRE_DELETE_SESSION_FIELDS, WIRE_DIFF_FILE_FIELDS, WIRE_ERROR_FIELDS, WIRE_FILE_CANDIDATES_FIELDS, WIRE_FILE_CANDIDATE_FIELDS, WIRE_FILE_CHANGE_FIELDS, WIRE_FILE_OPEN_RESPONSE_FIELDS, WIRE_FILE_REFERENCE_FIELDS, WIRE_FILE_STAT_MAX, WIRE_FILE_STAT_OK_FIELDS, WIRE_FILE_STAT_REFUSED_FIELDS, WIRE_FILE_STAT_RESPONSE_FIELDS, WIRE_FILE_TEXT_RESPONSE_FIELDS, WIRE_FORGET_WORKSPACE_FIELDS, WIRE_FORGET_WORKSPACE_RESPONSE_FIELDS, WIRE_GOAL_ACTIONS, WIRE_GOAL_BLOCK_FIELDS, WIRE_GOAL_CLEAR_FIELDS, WIRE_GOAL_CREATE_FIELDS, WIRE_GOAL_FIELDS, WIRE_GOAL_LIMITS_FIELDS, WIRE_GOAL_PHASES, WIRE_GOAL_REFUSALS, WIRE_GOAL_RESPONSE_FIELDS, WIRE_GOAL_WRITE_FIELDS, WIRE_HEALTH_FIELDS, WIRE_IMAGE_REFERENCE_FIELDS, WIRE_KNOWN_WORKSPACE_FIELDS, WIRE_LANG_PARAM, WIRE_MANAGED_LOCK_FIELDS, WIRE_MCP_ADD_FIELDS, WIRE_MCP_ADD_RESPONSE_FIELDS, WIRE_MCP_APPLY_ENTRY_FIELDS, WIRE_MCP_APPLY_RESPONSE_FIELDS, WIRE_MCP_CONFIG_APPLY_FIELDS, WIRE_MCP_CONFIG_FIELDS, WIRE_MCP_CONFIG_ISSUE_FIELDS, WIRE_MCP_CONFIG_SAVE_FIELDS, WIRE_MCP_CONFIG_SAVE_RESPONSE_FIELDS, WIRE_MCP_CONNECTOR_FIELDS, WIRE_MCP_RECONNECT_FIELDS, WIRE_MESSAGE_LIST_FIELDS, WIRE_MODEL_FIELDS, WIRE_MODEL_SELECTION_FIELDS, WIRE_MODEL_SET_FIELDS, WIRE_MODEL_SUGGESTIONS_FIELDS, WIRE_PATCH_SESSION_FIELDS, WIRE_PATCH_SESSION_RESPONSE_FIELDS, WIRE_PERMISSION_RULE_FIELDS, WIRE_PERMISSION_SET_REQUEST_FIELDS, WIRE_PERMISSION_SET_RESPONSE_FIELDS, WIRE_PERMISSION_SHADOW_FIELDS, WIRE_PERMISSION_STATE_FIELDS, WIRE_PERMISSION_STATUS_FIELDS, WIRE_PLAN_ACTIONS, WIRE_PLAN_FIELDS, WIRE_PLAN_MODE_REQUEST_FIELDS, WIRE_PLAN_MODE_RESPONSE_FIELDS, WIRE_PLAN_MODE_STATE_FIELDS, WIRE_PLUGINS_FIELDS, WIRE_PLUGIN_ACTION_FIELDS, WIRE_PLUGIN_ARCHIVE_SUFFIXES, WIRE_PLUGIN_INSTALL_FIELDS, WIRE_PLUGIN_LOCAL_FIELDS, WIRE_PLUGIN_LOCAL_INSTALL_FIELDS, WIRE_PLUGIN_MARKETPLACE_FIELDS, WIRE_PLUGIN_MARKETPLACE_RESPONSE_FIELDS, WIRE_PLUGIN_NAME_FIELDS, WIRE_PLUGIN_PREVIEW_FIELDS, WIRE_PLUGIN_PREVIEW_RESPONSE_FIELDS, WIRE_PLUGIN_REFRESH_RESPONSE_FIELDS, WIRE_PLUGIN_STAGE_FIELDS, WIRE_PLUGIN_STAGE_RESPONSE_FIELDS, WIRE_PLUGIN_UPDATE_FIELDS, WIRE_PLUGIN_UPLOAD_CONFIRM_FIELDS, WIRE_PLUGIN_UPLOAD_FIELDS, WIRE_PLUGIN_UPLOAD_FORM_FIELDS, WIRE_PLUGIN_UPLOAD_PREVIEW_RESPONSE_FIELDS, WIRE_PLUGIN_UPLOAD_RESPONSE_FIELDS, WIRE_POLICY_DIR_FIELDS, WIRE_POLICY_STATUS_FIELDS, WIRE_PROJECT_INVENTORY_FIELDS, WIRE_PROVIDERS_FIELDS, WIRE_PROVIDER_KEY_FIELDS, WIRE_PROVIDER_MODELS_FIELDS, WIRE_PROVIDER_OPTION_FIELDS, WIRE_QUESTION_LIST_FIELDS, WIRE_QUESTION_ROW_FIELDS, WIRE_RESPOND_APPROVAL_FIELDS, WIRE_RESPOND_APPROVAL_RESPONSE_FIELDS, WIRE_RESPOND_QUESTION_FIELDS, WIRE_RESPOND_QUESTION_RESPONSE_FIELDS, WIRE_REWIND_FILE_PLAN_FIELDS, WIRE_REWIND_OUTCOME_FIELDS, WIRE_REWIND_PREVIEW_FIELDS, WIRE_REWIND_REQUEST_FIELDS, WIRE_REWIND_RESPONSE_FIELDS, WIRE_REWIND_SCOPES, WIRE_ROLE_ADD_FIELDS, WIRE_ROLE_ADD_RESPONSE_FIELDS, WIRE_SANDBOX_STATUS_FIELDS, WIRE_SCHEDULE_CAPABILITY_FIELDS, WIRE_SCHEDULE_CREATE_FIELDS, WIRE_SCHEDULE_DEFAULTS_FIELDS, WIRE_SCHEDULE_DELETE_FIELDS, WIRE_SCHEDULE_FIELDS, WIRE_SCHEDULE_FIX_FIELDS, WIRE_SCHEDULE_FIX_REQUEST_FIELDS, WIRE_SCHEDULE_ISSUE_CODES, WIRE_SCHEDULE_LIST_FIELDS, WIRE_SCHEDULE_PENDING_FIELDS, WIRE_SCHEDULE_RECORDING_FIELDS, WIRE_SCHEDULE_ROW_FIELDS, WIRE_SCHEDULE_RUNS_FIELDS, WIRE_SCHEDULE_RUN_FIELDS, WIRE_SCHEDULE_SAVE_FIELDS, WIRE_SECURITY_FIELDS, WIRE_SECURITY_WORKSPACE_FIELDS, WIRE_SEND_MESSAGE_FIELDS, WIRE_SEND_MESSAGE_RESPONSE_FIELDS, WIRE_SESSION_CANDIDATES_FIELDS, WIRE_SESSION_CANDIDATE_FIELDS, WIRE_SESSION_FINISH_FIELDS, WIRE_SESSION_LIST_FIELDS, WIRE_SESSION_REFERENCE_FIELDS, WIRE_SESSION_RESPONSE_FIELDS, WIRE_SESSION_SUMMARY_FIELDS, WIRE_SESSION_WORKSPACE_FIELDS, WIRE_SESSION_WORKSPACE_RESPONSE_FIELDS, WIRE_SETTINGS_FIELDS, WIRE_SETTINGS_WRITE_FIELDS, WIRE_SETTINGS_WRITE_REQUEST_FIELDS, WIRE_SETTING_ROW_FIELDS, WIRE_SETTING_STEP_FIELDS, WIRE_SETTING_WRITE_FIELDS, WIRE_SETTING_WRITE_LAYERS, WIRE_SKILL_BODY_FIELDS, WIRE_SKILL_DROP_SUFFIXES, WIRE_SKILL_FIELDS, WIRE_SKILL_IMPORT_FIELDS, WIRE_SKILL_IMPORT_PREVIEW_FIELDS, WIRE_SKILL_REMOVE_FIELDS, WIRE_SKILL_STAGE_FIELDS, WIRE_TASKS_FIELDS, WIRE_TOOLS_FIELDS, WIRE_TOOL_GATE_FIELDS, WIRE_TOOL_ROW_FIELDS, WIRE_TRUST_REQUEST_FIELDS, WIRE_TRUST_REQUEST_RESPONSE_FIELDS, WIRE_WORKSPACE_DIFF_FIELDS, WIRE_WORKSPACE_DIRS_FIELDS, WIRE_WORKSPACE_DIR_ENTRY_FIELDS, WIRE_WORKSPACE_REF_FIELDS, apiKeyEnvVar, assertNeverPart, assistantTurnText, attachSessionSurface, chordId, collectPendingApprovals, compressionThresholdTokens, conformsToWire, contentToText, diagnosticToLine, extractAllMentions, extractMentions, extractSessionMentions, filePartSummary, flattenCatalog, formatMoney, getProviderInfo, hasFailure, imagePartOmittedSummary, isApprovalOutcome, isContextNearlyFull, isCurrency, isHeadlessInputFormat, isHeadlessLifecycleEvent, isHeadlessOutputFormat, isKeyAction, isLang, isMentionableFilePath, isOperationType, isPermissionLevel, isPlanOutcome, isPromptOversize, isProviderType, isQuestionAnswerMap, isSearchProviderType, isValidAgentRoleName, isValidCommandName, isWireGoalPhase, isWireHubEvent, isWirePlanAction, isWirePluginArchiveName, isWireRewindScope, isWireSettingWriteLayer, isWireSkillDropName, makeTranslate, mcpConnectorState, normalizeApproval, packSessionSurface, parseChord, parseModelRef, parseSequence, perAction, placeholdersOf, promptTokens, resolveHostText, sequenceId, sessionPartSummary, stripSystemNote, systemNote, tableOf, totalUsageTokens, translatorFor, truncateToBudget, turnDigest, unfixedRules, utf8ByteLength, wireFields };
|