@agentdock/wire 0.0.93 → 0.0.95
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/accountLanguage.d.ts +26 -0
- package/dist/accountLanguage.js +1 -0
- package/dist/activityPreferences.d.ts +0 -2
- package/dist/agentCapabilities.d.ts +20 -24
- package/dist/agentCapabilities.js +1 -1
- package/dist/agentCommonEnv.d.ts +0 -9
- package/dist/agentInstallGuide.d.ts +0 -7
- package/dist/agentRuntimeSettings.d.ts +139 -0
- package/dist/agentRuntimeSettings.js +1 -0
- package/dist/bgTask.d.ts +13 -24
- package/dist/checkpointSchemas.d.ts +1 -2
- package/dist/controlLevel.d.ts +1 -9
- package/dist/edition.d.ts +0 -1
- package/dist/enterpriseGateway.d.ts +214 -0
- package/dist/enterpriseGateway.js +1 -0
- package/dist/enterprisePolicy.d.ts +1599 -0
- package/dist/enterprisePolicy.js +1 -0
- package/dist/enterprisePolicyExports.d.ts +2 -0
- package/dist/enterprisePolicyExports.js +1 -0
- package/dist/enterpriseRuntime.d.ts +317 -0
- package/dist/enterpriseRuntime.js +1 -0
- package/dist/envelope.d.ts +63 -60
- package/dist/errorMessage.d.ts +0 -1
- package/dist/events.d.ts +73 -77
- package/dist/events.js +1 -1
- package/dist/features.d.ts +19 -30
- package/dist/features.js +1 -1
- package/dist/feedback.d.ts +21 -22
- package/dist/fileWhitelist.d.ts +7 -39
- package/dist/gateway.d.ts +1184 -0
- package/dist/gateway.js +1 -0
- package/dist/goals.d.ts +0 -1
- package/dist/handoffBrief.d.ts +13 -0
- package/dist/handoffBrief.js +52 -0
- package/dist/inboundEvents.d.ts +83 -56
- package/dist/inboundEvents.js +1 -1
- package/dist/index.d.ts +25 -16
- package/dist/index.js +1 -1
- package/dist/interactionEvents.d.ts +51 -59
- package/dist/legacyProtocol.d.ts +36 -42
- package/dist/license.d.ts +36 -37
- package/dist/machine.d.ts +54 -53
- package/dist/machine.js +1 -1
- package/dist/messageMeta.d.ts +20 -20
- package/dist/messageMeta.js +1 -1
- package/dist/messages.d.ts +338 -223
- package/dist/messages.js +1 -1
- package/dist/notification.d.ts +2 -3
- package/dist/ops.d.ts +9 -27
- package/dist/pairing.d.ts +9 -49
- package/dist/permissionSubject.d.ts +3 -26
- package/dist/protocol.d.ts +0 -6
- package/dist/rpc.d.ts +957 -196
- package/dist/rpc.js +1 -1
- package/dist/scheduledTasks.d.ts +59 -60
- package/dist/semver.d.ts +3 -22
- package/dist/sessionBtw.d.ts +152 -0
- package/dist/sessionBtw.js +1 -0
- package/dist/sessionResult.d.ts +21 -27
- package/dist/sessionTitle.d.ts +9 -0
- package/dist/sessionTitle.js +1 -0
- package/dist/socketEvents.d.ts +12 -4
- package/dist/socketEvents.js +1 -1
- package/dist/sourceMetadata.d.ts +3 -16
- package/dist/spawnError.d.ts +7 -14
- package/dist/stats.d.ts +99 -68
- package/dist/stats.js +1 -1
- package/dist/sync.d.ts +285 -51
- package/dist/sync.js +1 -1
- package/dist/taskResult.d.ts +3 -20
- package/dist/telemetry.d.ts +1 -11
- package/dist/utils.d.ts +0 -1
- package/dist/workItems.d.ts +321 -0
- package/dist/workItems.js +1 -0
- package/package.json +1 -1
package/dist/gateway.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";import{z as e}from"zod";const t=e.string().url();export const GatewayRouteStatusSchema=e.enum(["draft","validating","active","disabled","error"]),GatewayProtocolSchema=e.enum(["anthropic_messages","openai_responses","openai_chat"]),GatewayErrorCodeSchema=e.enum(["unauthorized","route-not-found","route-disabled","connection-disabled","protocol-not-supported","request-too-large","upstream-timeout","upstream-unavailable","client-aborted","model-not-allowed","invalid-request"]);const n=e.object({status:e.enum(["active","disabled"]),baseUrl:e.string().url(),apiKey:e.string().min(1),authScheme:e.enum(["x-api-key","bearer"])}).strict();export const GatewayRouteSchema=e.object({id:e.string().min(1),alias:e.string().min(1),enterpriseId:e.string().min(1),agent:e.enum(["claude","codex","opencode"]),provider:e.string().min(1).default("unknown"),model:e.string().min(1),requestProtocol:GatewayProtocolSchema,upstreamProtocol:GatewayProtocolSchema,status:GatewayRouteStatusSchema,connection:n}).strict(),GatewayTokenClaimsSchema=e.object({enterpriseId:e.string().min(1),userId:e.string().min(1)}).strict(),GatewayConnectionCreateSchema=e.object({name:e.string().min(1).max(100),baseUrl:t,apiKeys:e.array(e.string().trim().min(1).max(2e3)).min(1).max(20)}).strict(),GatewayConnectionUpdateSchema=e.object({name:e.string().min(1).max(100).optional(),baseUrl:t.optional(),apiKeys:e.array(e.string().trim().min(1).max(2e3)).min(1).max(20).optional(),status:e.enum(["active","disabled"]).optional()}).strict(),GatewayConnectionKeyAddSchema=e.object({apiKey:e.string().trim().min(1).max(2e3)}).strict(),GatewayConnectionViewSchema=e.object({id:e.string().min(1),enterpriseId:e.string().min(1),name:e.string().min(1),baseUrl:e.string().url(),apiKeyCount:e.number().int().nonnegative(),apiKeys:e.array(e.object({fingerprint:e.string().regex(/^[a-f0-9]{16}$/),masked:e.string().min(1)}).strict()),status:e.enum(["active","disabled"]),metadata:e.unknown(),createdAt:e.string().datetime(),updatedAt:e.string().datetime()}).strict(),GatewayConnectionViewResponseSchema=e.object({ok:e.literal(!0),data:e.array(GatewayConnectionViewSchema)}).strict(),GatewayConnectionMutationResponseSchema=e.object({ok:e.literal(!0),data:GatewayConnectionViewSchema}).strict(),GatewayCapabilityViewSchema=e.object({connectionId:e.string().min(1),connectionName:e.string().min(1),agent:e.enum(["claude","codex"]),requestProtocol:e.enum(["anthropic_messages","openai_responses"]),models:e.array(e.string().min(1)),status:e.enum(["ready","unknown","unavailable","unsupported"])}).strict(),GatewayCapabilityViewResponseSchema=e.object({ok:e.literal(!0),data:e.array(GatewayCapabilityViewSchema)}).strict(),GatewayConnectionKeyFingerprintSchema=e.string().regex(/^[a-f0-9]{16}$/,"invalid gateway key fingerprint");const a=e.object({connectionId:e.string().min(1),userId:e.string().min(1),machineId:e.string().min(1),agent:e.literal("claude"),model:e.string().min(1).max(200),requestProtocol:e.literal("anthropic_messages"),upstreamProtocol:e.literal("anthropic_messages"),provider:e.string().min(1).max(100),alias:e.string().min(1).max(100).regex(/^[a-zA-Z0-9][a-zA-Z0-9._-]*$/)}).strict(),i=e.object({connectionId:e.string().min(1),userId:e.string().min(1),machineId:e.string().min(1),agent:e.literal("codex"),model:e.string().min(1).max(200),requestProtocol:e.literal("openai_responses"),upstreamProtocol:e.literal("openai_responses"),provider:e.string().min(1).max(100),alias:e.string().min(1).max(100).regex(/^[a-zA-Z0-9][a-zA-Z0-9._-]*$/)}).strict();export const GatewayRouteCreateSchema=e.discriminatedUnion("agent",[a,i]),GatewayRouteUpdateSchema=e.object({model:e.string().min(1).max(200).optional(),provider:e.string().min(1).max(100).optional(),status:e.enum(["disabled","error"]).optional()}).strict(),GatewayRouteViewSchema=e.object({id:e.string().min(1),enterpriseId:e.string().min(1),alias:e.string().min(1),agent:e.enum(["claude","codex","opencode"]),provider:e.string().min(1),model:e.string().min(1),requestProtocol:GatewayProtocolSchema,upstreamProtocol:GatewayProtocolSchema,status:GatewayRouteStatusSchema,connection:e.object({id:e.string().min(1),name:e.string().min(1),status:e.enum(["active","disabled"])}).strict().optional()}).strict().extend({connectionId:e.string().min(1),lastValidationAt:e.string().datetime().nullable(),lastErrorCode:e.string().min(1).nullable(),runtimeBinding:e.object({id:e.string().min(1),status:e.enum(["active","expired","revoked"]),expiresAt:e.string().datetime().nullable()}).strict().nullable()}),GatewayRouteViewResponseSchema=e.object({ok:e.literal(!0),data:e.array(GatewayRouteViewSchema)}).strict(),GatewayRouteMutationResponseSchema=e.object({ok:e.literal(!0),data:e.object({route:GatewayRouteViewSchema}).strict()}).strict(),EnterpriseNativeModelCatalogEntrySchema=e.object({model:e.string().min(1),provider:e.string().min(1),mode:e.string().min(1),inputCostPerToken:e.number().nullable(),outputCostPerToken:e.number().nullable(),maxInputTokens:e.number().int().nullable(),maxOutputTokens:e.number().int().nullable(),source:e.enum(["github","custom"])}).strict(),EnterpriseNativeModelCatalogResponseSchema=e.object({ok:e.literal(!0),data:e.array(EnterpriseNativeModelCatalogEntrySchema)}).strict(),GatewayRequestListQuerySchema=e.object({from:e.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional(),to:e.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional(),userId:e.string().optional(),machineId:e.string().optional(),routeId:e.string().optional(),agent:e.string().optional(),model:e.string().optional(),provider:e.string().optional(),outcome:e.string().optional(),limit:e.number().int().min(1).max(200),offset:e.number().int().min(0),cursor:e.string().optional()}).strict(),GatewayUsageSummarySchema=e.object({requestCount:e.number().int().nonnegative(),inputTokens:e.number().nonnegative(),outputTokens:e.number().nonnegative(),cacheReadTokens:e.number().nonnegative(),cacheWriteTokens:e.number().nonnegative(),reasoningTokens:e.number().nonnegative(),totalTokens:e.number().nonnegative(),costMicros:e.number().nullable(),pricedCount:e.number().int().nonnegative(),unpricedCount:e.number().int().nonnegative(),errorCount:e.number().int().nonnegative(),errorRate:e.number().min(0).max(1),latencyMs:e.object({p50:e.number().nullable(),p95:e.number().nullable()}).strict(),breakdown:e.array(e.object({agent:e.string().nullable(),model:e.string().nullable(),provider:e.string().nullable(),requestCount:e.number().int().nonnegative(),inputTokens:e.number().nonnegative(),outputTokens:e.number().nonnegative(),totalTokens:e.number().nonnegative(),costMicros:e.number().nullable()}).strict())}).strict(),GatewayDailyUsageSchema=e.object({day:e.string().regex(/^\d{4}-\d{2}-\d{2}$/),agent:e.string().nullable(),model:e.string().nullable(),provider:e.string().nullable(),requestCount:e.number().int().nonnegative(),inputTokens:e.number().nonnegative(),outputTokens:e.number().nonnegative(),cacheReadTokens:e.number().nonnegative(),cacheWriteTokens:e.number().nonnegative(),totalTokens:e.number().nonnegative(),costMicros:e.number().nullable(),currency:e.string().nullable()}).strict();
|
package/dist/goals.d.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { AccountLanguage } from './accountLanguage.js';
|
|
3
|
+
export declare const HANDOFF_BRIEF_TEMPLATE = "## Current status\nDescribe what is true now and what the next Agent should understand first.\n\n## Completed\n- List work that is actually done.\n\n## Verification\n- List checks, tests, or observations and their results.\n\n## Open issues and risks\n- List unfinished work, uncertainty, or say \"None known\".\n\n## Next steps\n- List the next concrete actions, including any user decision needed.";
|
|
4
|
+
|
|
5
|
+
export declare const HANDOFF_BRIEF_TEMPLATE_ZH = "## \u5F53\u524D\u72B6\u6001\n\u63CF\u8FF0\u73B0\u5728\u7684\u60C5\u51B5\uFF0C\u4EE5\u53CA\u4E0B\u4E00\u4F4D Agent \u9996\u5148\u9700\u8981\u7406\u89E3\u7684\u5185\u5BB9\u3002\n\n## \u5DF2\u5B8C\u6210\n- \u5217\u51FA\u5B9E\u9645\u5DF2\u5B8C\u6210\u7684\u5DE5\u4F5C\u3002\n\n## \u9A8C\u8BC1\u7ED3\u679C\n- \u5217\u51FA\u68C0\u67E5\u3001\u6D4B\u8BD5\u6216\u89C2\u5BDF\u53CA\u5176\u7ED3\u679C\u3002\n\n## \u672A\u5B8C\u6210\u4E0E\u98CE\u9669\n- \u5217\u51FA\u672A\u5B8C\u6210\u7684\u5DE5\u4F5C\u3001\u4E0D\u786E\u5B9A\u6027\uFF0C\u6216\u5199\u300C\u6682\u65E0\u300D\u3002\n\n## \u4E0B\u4E00\u6B65\n- \u5217\u51FA\u63A5\u4E0B\u6765\u8981\u91C7\u53D6\u7684\u5177\u4F53\u884C\u52A8\uFF0C\u5305\u62EC\u9700\u8981\u7528\u6237\u51B3\u5B9A\u7684\u4E8B\u9879\u3002";
|
|
6
|
+
export declare const HANDOFF_BRIEF_REQUIREMENTS = "The brief must contain non-empty sections for Current status, Completed, Verification, Open issues and risks, and Next steps. Markdown inside each section is unrestricted.";
|
|
7
|
+
export declare const HANDOFF_SOURCE_REFERENCE_GUIDANCE = "Source reference rules:\n- Include at least one file path or resource identifier directly relevant to this handoff.\n- Prefer files actually changed, tests or configuration used for verification, and the relevant design document.\n- Each reference must let the next Agent locate context; do not use project names, directories, \"source code\", or \"tests\" as stand-ins.\n- References are navigation pointers, not proof of a claim or an acceptance result. Put commands and their results in Verification.\n- Do not include unrelated files just to make the list longer.\n\nGood: [\"packages/web/src/pages/SessionDetailPage.tsx\", \"packages/web/test/SessionDetailPage.test.tsx\"]\nBad: [\"packages/web\", \"source code\", \"tests\"]";
|
|
8
|
+
export declare const SESSION_DELIVERY_TEMPLATE = "## This session delivered\n\n## Files, outputs and evidence\n\n## Verification performed\n\n## Open questions or risks\n\n## Suggested follow-up";
|
|
9
|
+
export declare const SESSION_DELIVERY_TEMPLATE_ZH = "## \u672C\u6B21\u4F1A\u8BDD\u4EA4\u4ED8\n\n## \u6587\u4EF6\u3001\u4EA7\u51FA\u4E0E\u8BC1\u636E\n\n## \u5DF2\u6267\u884C\u7684\u9A8C\u8BC1\n\n## \u672A\u51B3\u95EE\u9898\u6216\u98CE\u9669\n\n## \u5EFA\u8BAE\u540E\u7EED\u52A8\u4F5C";
|
|
10
|
+
export declare function sessionDeliveryTemplate(language: AccountLanguage): string;
|
|
11
|
+
export declare const SESSION_DELIVERY_REQUIREMENTS = "The delivery must contain all five session delivery sections.";
|
|
12
|
+
export declare function getMissingHandoffBriefSections(brief: string): readonly string[];
|
|
13
|
+
export declare const HandoffBriefSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";import{z as l}from"zod";export const HANDOFF_BRIEF_TEMPLATE=`## Current status
|
|
2
|
+
Describe what is true now and what the next Agent should understand first.
|
|
3
|
+
|
|
4
|
+
## Completed
|
|
5
|
+
- List work that is actually done.
|
|
6
|
+
|
|
7
|
+
## Verification
|
|
8
|
+
- List checks, tests, or observations and their results.
|
|
9
|
+
|
|
10
|
+
## Open issues and risks
|
|
11
|
+
- List unfinished work, uncertainty, or say "None known".
|
|
12
|
+
|
|
13
|
+
## Next steps
|
|
14
|
+
- List the next concrete actions, including any user decision needed.`,HANDOFF_BRIEF_TEMPLATE_ZH=`## \u5F53\u524D\u72B6\u6001
|
|
15
|
+
\u63CF\u8FF0\u73B0\u5728\u7684\u60C5\u51B5\uFF0C\u4EE5\u53CA\u4E0B\u4E00\u4F4D Agent \u9996\u5148\u9700\u8981\u7406\u89E3\u7684\u5185\u5BB9\u3002
|
|
16
|
+
|
|
17
|
+
## \u5DF2\u5B8C\u6210
|
|
18
|
+
- \u5217\u51FA\u5B9E\u9645\u5DF2\u5B8C\u6210\u7684\u5DE5\u4F5C\u3002
|
|
19
|
+
|
|
20
|
+
## \u9A8C\u8BC1\u7ED3\u679C
|
|
21
|
+
- \u5217\u51FA\u68C0\u67E5\u3001\u6D4B\u8BD5\u6216\u89C2\u5BDF\u53CA\u5176\u7ED3\u679C\u3002
|
|
22
|
+
|
|
23
|
+
## \u672A\u5B8C\u6210\u4E0E\u98CE\u9669
|
|
24
|
+
- \u5217\u51FA\u672A\u5B8C\u6210\u7684\u5DE5\u4F5C\u3001\u4E0D\u786E\u5B9A\u6027\uFF0C\u6216\u5199\u300C\u6682\u65E0\u300D\u3002
|
|
25
|
+
|
|
26
|
+
## \u4E0B\u4E00\u6B65
|
|
27
|
+
- \u5217\u51FA\u63A5\u4E0B\u6765\u8981\u91C7\u53D6\u7684\u5177\u4F53\u884C\u52A8\uFF0C\u5305\u62EC\u9700\u8981\u7528\u6237\u51B3\u5B9A\u7684\u4E8B\u9879\u3002`,HANDOFF_BRIEF_REQUIREMENTS="The brief must contain non-empty sections for Current status, Completed, Verification, Open issues and risks, and Next steps. Markdown inside each section is unrestricted.",HANDOFF_SOURCE_REFERENCE_GUIDANCE=`Source reference rules:
|
|
28
|
+
- Include at least one file path or resource identifier directly relevant to this handoff.
|
|
29
|
+
- Prefer files actually changed, tests or configuration used for verification, and the relevant design document.
|
|
30
|
+
- Each reference must let the next Agent locate context; do not use project names, directories, "source code", or "tests" as stand-ins.
|
|
31
|
+
- References are navigation pointers, not proof of a claim or an acceptance result. Put commands and their results in Verification.
|
|
32
|
+
- Do not include unrelated files just to make the list longer.
|
|
33
|
+
|
|
34
|
+
Good: ["packages/web/src/pages/SessionDetailPage.tsx", "packages/web/test/SessionDetailPage.test.tsx"]
|
|
35
|
+
Bad: ["packages/web", "source code", "tests"]`,SESSION_DELIVERY_TEMPLATE=`## This session delivered
|
|
36
|
+
|
|
37
|
+
## Files, outputs and evidence
|
|
38
|
+
|
|
39
|
+
## Verification performed
|
|
40
|
+
|
|
41
|
+
## Open questions or risks
|
|
42
|
+
|
|
43
|
+
## Suggested follow-up`,SESSION_DELIVERY_TEMPLATE_ZH=`## \u672C\u6B21\u4F1A\u8BDD\u4EA4\u4ED8
|
|
44
|
+
|
|
45
|
+
## \u6587\u4EF6\u3001\u4EA7\u51FA\u4E0E\u8BC1\u636E
|
|
46
|
+
|
|
47
|
+
## \u5DF2\u6267\u884C\u7684\u9A8C\u8BC1
|
|
48
|
+
|
|
49
|
+
## \u672A\u51B3\u95EE\u9898\u6216\u98CE\u9669
|
|
50
|
+
|
|
51
|
+
## \u5EFA\u8BAE\u540E\u7EED\u52A8\u4F5C`;export function sessionDeliveryTemplate(e){return e==="zh-Hans"?SESSION_DELIVERY_TEMPLATE_ZH:SESSION_DELIVERY_TEMPLATE}export const SESSION_DELIVERY_REQUIREMENTS="The delivery must contain all five session delivery sections.";const f={currentStatus:["current status","\u5F53\u524D\u72B6\u6001"],completed:["completed","\u5DF2\u5B8C\u6210"],verification:["verification","verification results","\u9A8C\u8BC1\u7ED3\u679C"],openIssues:["open issues and risks","open issues","risks","\u672A\u5B8C\u6210\u4E0E\u98CE\u9669","\u9057\u7559\u95EE\u9898"],nextSteps:["next steps","\u4E0B\u4E00\u6B65"]};function o(e){return e.trim().replace(/\s+/g," ").toLocaleLowerCase()}function m(e,s){const t=e.split(/\r?\n/),i=new Set(s.map(o)),p=new Set(Object.values(f).flatMap(n=>n.map(o)));for(let n=0;n<t.length;n++){const E=t[n]??"",a=/^(?:#{1,6})\s+(.+?)\s*$/.exec(E);if(!a||!i.has(o(a[1]??"")))continue;const c=[];for(let r=n+1;r<t.length;r++){const d=t[r]??"",u=/^(?:#{1,6})\s+(.+?)\s*$/.exec(d);if(u&&p.has(o(u[1]??"")))break;c.push(d)}return c.join(`
|
|
52
|
+
`).trim()}return null}export function getMissingHandoffBriefSections(e){const s=[];for(const[t,i]of Object.entries(f))m(e,i)||s.push(t);return s}export const HandoffBriefSchema=l.string().trim().min(1).max(6e4).superRefine((e,s)=>{const t=getMissingHandoffBriefSections(e);t.length>0&&s.addIssue({code:l.ZodIssueCode.custom,message:`missing required sections: ${t.join(", ")}`})});
|
package/dist/inboundEvents.d.ts
CHANGED
|
@@ -1,26 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Inbound Socket.IO event payload schemas (daemon/web → server).
|
|
3
|
-
*
|
|
4
|
-
* These validate the HIGHEST-FREQUENCY channel in the system: every session
|
|
5
|
-
* create / state change / message / machine register flows through here. Unlike
|
|
6
|
-
* REST bodies (validated by `.strict()` schemas in their own modules), these
|
|
7
|
-
* events were historically validated by hand-written `is*` type predicates in
|
|
8
|
-
* server's `sessionPayloads.ts` — which drift from the wire contract silently.
|
|
9
|
-
*
|
|
10
|
-
* Mode choice — `.passthrough()`, NOT `.strict()`:
|
|
11
|
-
* The daemon runs on the user's machine and upgrades lag the server. A newer
|
|
12
|
-
* daemon may add fields an older server hasn't learned yet; strict rejection
|
|
13
|
-
* would fail the whole session-create over an additive field. Passthrough lets
|
|
14
|
-
* additive fields ride along while still enforcing that REQUIRED fields exist
|
|
15
|
-
* with the right type — which is the actual defense against silent drops.
|
|
16
|
-
* Same principle already applied in envelope.ts / machine.ts.
|
|
17
|
-
*
|
|
18
|
-
* When a field is intentionally NOT consumed by the server (daemon-only
|
|
19
|
-
* bookkeeping), that's fine — passthrough carries it. Required fields the server
|
|
20
|
-
* relies on are listed explicitly below.
|
|
21
|
-
*/
|
|
22
1
|
import { z } from 'zod';
|
|
23
|
-
|
|
2
|
+
|
|
24
3
|
export declare const SessionCreatePayloadSchema: z.ZodObject<{
|
|
25
4
|
tag: z.ZodString;
|
|
26
5
|
metadata: z.ZodOptional<z.ZodString>;
|
|
@@ -28,6 +7,12 @@ export declare const SessionCreatePayloadSchema: z.ZodObject<{
|
|
|
28
7
|
source: z.ZodOptional<z.ZodString>;
|
|
29
8
|
claudeSessionId: z.ZodOptional<z.ZodString>;
|
|
30
9
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
10
|
+
|
|
11
|
+
ownerInstanceId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
|
|
13
|
+
handoffEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
|
|
15
|
+
inheritedFrom: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
31
16
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
32
17
|
tag: z.ZodString;
|
|
33
18
|
metadata: z.ZodOptional<z.ZodString>;
|
|
@@ -35,6 +20,12 @@ export declare const SessionCreatePayloadSchema: z.ZodObject<{
|
|
|
35
20
|
source: z.ZodOptional<z.ZodString>;
|
|
36
21
|
claudeSessionId: z.ZodOptional<z.ZodString>;
|
|
37
22
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
23
|
+
|
|
24
|
+
ownerInstanceId: z.ZodOptional<z.ZodString>;
|
|
25
|
+
|
|
26
|
+
handoffEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
|
|
28
|
+
inheritedFrom: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
38
29
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
39
30
|
tag: z.ZodString;
|
|
40
31
|
metadata: z.ZodOptional<z.ZodString>;
|
|
@@ -42,9 +33,15 @@ export declare const SessionCreatePayloadSchema: z.ZodObject<{
|
|
|
42
33
|
source: z.ZodOptional<z.ZodString>;
|
|
43
34
|
claudeSessionId: z.ZodOptional<z.ZodString>;
|
|
44
35
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
36
|
+
|
|
37
|
+
ownerInstanceId: z.ZodOptional<z.ZodString>;
|
|
38
|
+
|
|
39
|
+
handoffEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
+
|
|
41
|
+
inheritedFrom: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
45
42
|
}, z.ZodTypeAny, "passthrough">>;
|
|
46
43
|
export type SessionCreatePayload = z.infer<typeof SessionCreatePayloadSchema>;
|
|
47
|
-
|
|
44
|
+
|
|
48
45
|
export declare const UpdateMetadataPayloadSchema: z.ZodObject<{
|
|
49
46
|
sessionId: z.ZodString;
|
|
50
47
|
metadata: z.ZodString;
|
|
@@ -59,7 +56,7 @@ export declare const UpdateMetadataPayloadSchema: z.ZodObject<{
|
|
|
59
56
|
expectedVersion: z.ZodNumber;
|
|
60
57
|
}, z.ZodTypeAny, "passthrough">>;
|
|
61
58
|
export type UpdateMetadataPayload = z.infer<typeof UpdateMetadataPayloadSchema>;
|
|
62
|
-
|
|
59
|
+
|
|
63
60
|
export declare const ContextUsageUpdatePayloadSchema: z.ZodObject<{
|
|
64
61
|
sessionId: z.ZodString;
|
|
65
62
|
contextUsage: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -71,7 +68,7 @@ export declare const ContextUsageUpdatePayloadSchema: z.ZodObject<{
|
|
|
71
68
|
contextUsage: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
72
69
|
}, z.ZodTypeAny, "passthrough">>;
|
|
73
70
|
export type ContextUsageUpdatePayload = z.infer<typeof ContextUsageUpdatePayloadSchema>;
|
|
74
|
-
|
|
71
|
+
|
|
75
72
|
export declare const UpdateStatePayloadSchema: z.ZodObject<{
|
|
76
73
|
sessionId: z.ZodString;
|
|
77
74
|
agentState: z.ZodString;
|
|
@@ -86,22 +83,37 @@ export declare const UpdateStatePayloadSchema: z.ZodObject<{
|
|
|
86
83
|
expectedVersion: z.ZodNumber;
|
|
87
84
|
}, z.ZodTypeAny, "passthrough">>;
|
|
88
85
|
export type UpdateStatePayload = z.infer<typeof UpdateStatePayloadSchema>;
|
|
89
|
-
|
|
86
|
+
|
|
90
87
|
export declare const SessionAlivePayloadSchema: z.ZodObject<{
|
|
91
88
|
sessionId: z.ZodString;
|
|
92
89
|
takeoverToken: z.ZodOptional<z.ZodString>;
|
|
90
|
+
|
|
91
|
+
ownerInstanceId: z.ZodOptional<z.ZodString>;
|
|
92
|
+
reconnectKey: z.ZodOptional<z.ZodString>;
|
|
93
|
+
ownerEpoch: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
94
|
+
connectionGeneration: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
93
95
|
runtimeStatus: z.ZodOptional<z.ZodEnum<["idle", "thinking", "tool_running", "permission_required", "disconnected"]>>;
|
|
94
96
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
95
97
|
sessionId: z.ZodString;
|
|
96
98
|
takeoverToken: z.ZodOptional<z.ZodString>;
|
|
99
|
+
|
|
100
|
+
ownerInstanceId: z.ZodOptional<z.ZodString>;
|
|
101
|
+
reconnectKey: z.ZodOptional<z.ZodString>;
|
|
102
|
+
ownerEpoch: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
103
|
+
connectionGeneration: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
97
104
|
runtimeStatus: z.ZodOptional<z.ZodEnum<["idle", "thinking", "tool_running", "permission_required", "disconnected"]>>;
|
|
98
105
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
99
106
|
sessionId: z.ZodString;
|
|
100
107
|
takeoverToken: z.ZodOptional<z.ZodString>;
|
|
108
|
+
|
|
109
|
+
ownerInstanceId: z.ZodOptional<z.ZodString>;
|
|
110
|
+
reconnectKey: z.ZodOptional<z.ZodString>;
|
|
111
|
+
ownerEpoch: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
112
|
+
connectionGeneration: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
101
113
|
runtimeStatus: z.ZodOptional<z.ZodEnum<["idle", "thinking", "tool_running", "permission_required", "disconnected"]>>;
|
|
102
114
|
}, z.ZodTypeAny, "passthrough">>;
|
|
103
115
|
export type SessionAlivePayload = z.infer<typeof SessionAlivePayloadSchema>;
|
|
104
|
-
|
|
116
|
+
|
|
105
117
|
export declare const GetSessionRuntimeStatusPayloadSchema: z.ZodObject<{
|
|
106
118
|
sessionId: z.ZodString;
|
|
107
119
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -118,7 +130,7 @@ export declare const SessionDeletePayloadSchema: z.ZodObject<{
|
|
|
118
130
|
sessionId: z.ZodString;
|
|
119
131
|
}, z.ZodTypeAny, "passthrough">>;
|
|
120
132
|
export type SessionDeletePayload = z.infer<typeof SessionDeletePayloadSchema>;
|
|
121
|
-
|
|
133
|
+
|
|
122
134
|
export declare const SessionEndPayloadSchema: z.ZodObject<{
|
|
123
135
|
sessionId: z.ZodString;
|
|
124
136
|
summary: z.ZodOptional<z.ZodString>;
|
|
@@ -130,7 +142,16 @@ export declare const SessionEndPayloadSchema: z.ZodObject<{
|
|
|
130
142
|
summary: z.ZodOptional<z.ZodString>;
|
|
131
143
|
}, z.ZodTypeAny, "passthrough">>;
|
|
132
144
|
export type SessionEndPayload = z.infer<typeof SessionEndPayloadSchema>;
|
|
133
|
-
|
|
145
|
+
|
|
146
|
+
export declare const SessionTerminatePayloadSchema: z.ZodObject<{
|
|
147
|
+
sessionId: z.ZodString;
|
|
148
|
+
}, "strict", z.ZodTypeAny, {
|
|
149
|
+
sessionId: string;
|
|
150
|
+
}, {
|
|
151
|
+
sessionId: string;
|
|
152
|
+
}>;
|
|
153
|
+
export type SessionTerminatePayload = z.infer<typeof SessionTerminatePayloadSchema>;
|
|
154
|
+
|
|
134
155
|
export declare const RenameSessionPayloadSchema: z.ZodObject<{
|
|
135
156
|
sessionId: z.ZodString;
|
|
136
157
|
displayName: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -142,7 +163,23 @@ export declare const RenameSessionPayloadSchema: z.ZodObject<{
|
|
|
142
163
|
displayName: z.ZodEffects<z.ZodString, string, string>;
|
|
143
164
|
}, z.ZodTypeAny, "passthrough">>;
|
|
144
165
|
export type RenameSessionPayload = z.infer<typeof RenameSessionPayloadSchema>;
|
|
145
|
-
|
|
166
|
+
export declare const SessionContextResetPayloadSchema: z.ZodObject<{
|
|
167
|
+
sessionId: z.ZodString;
|
|
168
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
169
|
+
sessionId: z.ZodString;
|
|
170
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
171
|
+
sessionId: z.ZodString;
|
|
172
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
173
|
+
export type SessionContextResetPayload = z.infer<typeof SessionContextResetPayloadSchema>;
|
|
174
|
+
export declare const ClaimAutoSessionTitlePayloadSchema: z.ZodObject<{
|
|
175
|
+
sessionId: z.ZodString;
|
|
176
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
177
|
+
sessionId: z.ZodString;
|
|
178
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
179
|
+
sessionId: z.ZodString;
|
|
180
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
181
|
+
export type ClaimAutoSessionTitlePayload = z.infer<typeof ClaimAutoSessionTitlePayloadSchema>;
|
|
182
|
+
|
|
146
183
|
export declare const MessagePayloadSchema: z.ZodEffects<z.ZodObject<{
|
|
147
184
|
sessionId: z.ZodString;
|
|
148
185
|
localId: z.ZodString;
|
|
@@ -234,44 +271,34 @@ export declare const BatchMessagePayloadSchema: z.ZodObject<{
|
|
|
234
271
|
skipBroadcast: z.ZodOptional<z.ZodBoolean>;
|
|
235
272
|
}, z.ZodTypeAny, "passthrough">>;
|
|
236
273
|
export type BatchMessagePayload = z.infer<typeof BatchMessagePayloadSchema>;
|
|
237
|
-
|
|
274
|
+
|
|
238
275
|
export declare const GetMessagesPayloadSchema: z.ZodObject<{
|
|
239
276
|
sessionId: z.ZodString;
|
|
240
277
|
fromSeq: z.ZodOptional<z.ZodNumber>;
|
|
241
278
|
beforeSeq: z.ZodOptional<z.ZodNumber>;
|
|
242
279
|
order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
|
|
243
280
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
281
|
+
|
|
282
|
+
contextCycle: z.ZodOptional<z.ZodLiteral<"latest">>;
|
|
244
283
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
245
284
|
sessionId: z.ZodString;
|
|
246
285
|
fromSeq: z.ZodOptional<z.ZodNumber>;
|
|
247
286
|
beforeSeq: z.ZodOptional<z.ZodNumber>;
|
|
248
287
|
order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
|
|
249
288
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
289
|
+
|
|
290
|
+
contextCycle: z.ZodOptional<z.ZodLiteral<"latest">>;
|
|
250
291
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
251
292
|
sessionId: z.ZodString;
|
|
252
293
|
fromSeq: z.ZodOptional<z.ZodNumber>;
|
|
253
294
|
beforeSeq: z.ZodOptional<z.ZodNumber>;
|
|
254
295
|
order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
|
|
255
296
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
297
|
+
|
|
298
|
+
contextCycle: z.ZodOptional<z.ZodLiteral<"latest">>;
|
|
256
299
|
}, z.ZodTypeAny, "passthrough">>;
|
|
257
300
|
export type GetMessagesPayload = z.infer<typeof GetMessagesPayloadSchema>;
|
|
258
|
-
|
|
259
|
-
* session-status — daemon's fire-and-forget status ping.
|
|
260
|
-
*
|
|
261
|
-
* NOTE: `status` here is a free string, NOT the `SessionStatusSchema` enum in
|
|
262
|
-
* machine.ts — that enum omits `turn-completed`, which the daemon DOES send.
|
|
263
|
-
* The set below is the daemon's actual vocabulary.
|
|
264
|
-
*
|
|
265
|
-
* SECURITY — this schema is `.strict()` ON PURPOSE (the only inbound schema that
|
|
266
|
-
* is). IM notifications derived from this event are delivered to third-party
|
|
267
|
-
* webhooks (Feishu/DingTalk). This channel must carry NOTHING but the two fields
|
|
268
|
-
* below — no conversation content, no summary, no message text, no future field
|
|
269
|
-
* that might smuggle sensitive data out. `.strict()` REJECTS any extra field
|
|
270
|
-
* (loudly, not silently), so the day someone tries to attach `summary` /
|
|
271
|
-
* `context` / `lastMessage` / anything else, their code fails here and they are
|
|
272
|
-
* forced to ask "can this field leave the machine?". Default-deny, then allow.
|
|
273
|
-
* Do NOT relax this to `.passthrough()`. See docs/spec/notification-im.md.
|
|
274
|
-
*/
|
|
301
|
+
|
|
275
302
|
export declare const INBOUND_SESSION_STATUSES: readonly ["idle", "thinking", "tool_running", "permission_required", "disconnected", "turn-completed"];
|
|
276
303
|
export declare const SessionStatusPayloadSchema: z.ZodObject<{
|
|
277
304
|
sessionId: z.ZodString;
|
|
@@ -284,12 +311,7 @@ export declare const SessionStatusPayloadSchema: z.ZodObject<{
|
|
|
284
311
|
sessionId: string;
|
|
285
312
|
}>;
|
|
286
313
|
export type SessionStatusPayload = z.infer<typeof SessionStatusPayloadSchema>;
|
|
287
|
-
|
|
288
|
-
* machine-register — daemon reports its identity + capabilities on connect.
|
|
289
|
-
* Mirrors daemon's MachineRegisterInfo; only hostname/platform are required.
|
|
290
|
-
* All capability fields are optional and additive (passthrough tolerates new
|
|
291
|
-
* ones a newer daemon may add).
|
|
292
|
-
*/
|
|
314
|
+
|
|
293
315
|
export declare const MachineRegisterPayloadSchema: z.ZodObject<{
|
|
294
316
|
hostname: z.ZodString;
|
|
295
317
|
platform: z.ZodString;
|
|
@@ -333,6 +355,8 @@ export declare const MachineRegisterPayloadSchema: z.ZodObject<{
|
|
|
333
355
|
id: z.ZodString;
|
|
334
356
|
label: z.ZodString;
|
|
335
357
|
}, z.ZodTypeAny, "passthrough">>, "many">>>;
|
|
358
|
+
|
|
359
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
336
360
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
337
361
|
hostname: z.ZodString;
|
|
338
362
|
platform: z.ZodString;
|
|
@@ -376,6 +400,8 @@ export declare const MachineRegisterPayloadSchema: z.ZodObject<{
|
|
|
376
400
|
id: z.ZodString;
|
|
377
401
|
label: z.ZodString;
|
|
378
402
|
}, z.ZodTypeAny, "passthrough">>, "many">>>;
|
|
403
|
+
|
|
404
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
379
405
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
380
406
|
hostname: z.ZodString;
|
|
381
407
|
platform: z.ZodString;
|
|
@@ -419,9 +445,11 @@ export declare const MachineRegisterPayloadSchema: z.ZodObject<{
|
|
|
419
445
|
id: z.ZodString;
|
|
420
446
|
label: z.ZodString;
|
|
421
447
|
}, z.ZodTypeAny, "passthrough">>, "many">>>;
|
|
448
|
+
|
|
449
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
422
450
|
}, z.ZodTypeAny, "passthrough">>;
|
|
423
451
|
export type MachineRegisterPayload = z.infer<typeof MachineRegisterPayloadSchema>;
|
|
424
|
-
|
|
452
|
+
|
|
425
453
|
export declare const HistorySessionEntrySchema: z.ZodObject<{
|
|
426
454
|
claudeSessionId: z.ZodString;
|
|
427
455
|
projectPath: z.ZodString;
|
|
@@ -528,4 +556,3 @@ export declare const RegisterHistorySessionsPayloadSchema: z.ZodObject<{
|
|
|
528
556
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
529
557
|
}, z.ZodTypeAny, "passthrough">>;
|
|
530
558
|
export type RegisterHistorySessionsPayload = z.infer<typeof RegisterHistorySessionsPayloadSchema>;
|
|
531
|
-
//# sourceMappingURL=inboundEvents.d.ts.map
|
package/dist/inboundEvents.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{z as o}from"zod";const t=o.string().min(1);export const SessionCreatePayloadSchema=o.object({tag:t,metadata:o.string().optional(),dataEncryptionKey:o.string().optional(),source:o.string().optional(),claudeSessionId:o.string().optional(),projectPath:o.string().optional()}).passthrough(),UpdateMetadataPayloadSchema=o.object({sessionId:t,metadata:o.string(),expectedVersion:o.number().int().min(0)}).passthrough(),ContextUsageUpdatePayloadSchema=o.object({sessionId:t,contextUsage:o.record(o.unknown())}).passthrough(),UpdateStatePayloadSchema=o.object({sessionId:t,agentState:o.string(),expectedVersion:o.number().int().min(0)}).passthrough(),SessionAlivePayloadSchema=o.object({sessionId:t,takeoverToken:t.optional(),runtimeStatus:o.enum(["idle","thinking","tool_running","permission_required","disconnected"]).optional()}).passthrough(),GetSessionRuntimeStatusPayloadSchema=o.object({sessionId:t}).strict(),SessionDeletePayloadSchema=o.object({sessionId:t}).passthrough(),SessionEndPayloadSchema=o.object({sessionId:t,summary:o.string().optional()}).passthrough(),RenameSessionPayloadSchema=o.object({sessionId:t,displayName:o.string().refine(e=>e.trim()!=="","displayName must not be blank")}).passthrough(),MessagePayloadSchema=o.object({sessionId:t,localId:t,content:o.unknown(),skipBroadcast:o.boolean().optional(),ephemeral:o.boolean().optional()}).passthrough().refine(e=>"content"in e,{message:"content is required",path:["content"]});const
|
|
1
|
+
"use strict";import{z as o}from"zod";const t=o.string().min(1),a=9223372036854775807n,n=o.string().refine(e=>/^(0|[1-9]\d*)$/.test(e)?BigInt(e)<=a:!1,"expected canonical non-negative int64");export const SessionCreatePayloadSchema=o.object({tag:t,metadata:o.string().optional(),dataEncryptionKey:o.string().optional(),source:o.string().optional(),claudeSessionId:o.string().optional(),projectPath:o.string().optional(),ownerInstanceId:t.optional(),handoffEnabled:o.boolean().optional(),inheritedFrom:o.array(o.string().uuid()).max(5).optional()}).passthrough(),UpdateMetadataPayloadSchema=o.object({sessionId:t,metadata:o.string(),expectedVersion:o.number().int().min(0)}).passthrough(),ContextUsageUpdatePayloadSchema=o.object({sessionId:t,contextUsage:o.record(o.unknown())}).passthrough(),UpdateStatePayloadSchema=o.object({sessionId:t,agentState:o.string(),expectedVersion:o.number().int().min(0)}).passthrough(),SessionAlivePayloadSchema=o.object({sessionId:t,takeoverToken:t.optional(),ownerInstanceId:t.optional(),reconnectKey:t.optional(),ownerEpoch:n.optional(),connectionGeneration:n.optional(),runtimeStatus:o.enum(["idle","thinking","tool_running","permission_required","disconnected"]).optional()}).passthrough(),GetSessionRuntimeStatusPayloadSchema=o.object({sessionId:t}).strict(),SessionDeletePayloadSchema=o.object({sessionId:t}).passthrough(),SessionEndPayloadSchema=o.object({sessionId:t,summary:o.string().optional()}).passthrough(),SessionTerminatePayloadSchema=o.object({sessionId:t}).strict(),RenameSessionPayloadSchema=o.object({sessionId:t,displayName:o.string().refine(e=>e.trim()!=="","displayName must not be blank")}).passthrough(),SessionContextResetPayloadSchema=o.object({sessionId:t}).passthrough(),ClaimAutoSessionTitlePayloadSchema=o.object({sessionId:t}).passthrough(),MessagePayloadSchema=o.object({sessionId:t,localId:t,content:o.unknown(),skipBroadcast:o.boolean().optional(),ephemeral:o.boolean().optional()}).passthrough().refine(e=>"content"in e,{message:"content is required",path:["content"]});const s=o.object({localId:t,content:o.unknown()}).passthrough().refine(e=>"content"in e,{message:"content is required",path:["content"]});export const BatchMessagePayloadSchema=o.object({sessionId:t,messages:o.array(s).min(1).max(100),skipBroadcast:o.boolean().optional()}).passthrough(),GetMessagesPayloadSchema=o.object({sessionId:t,fromSeq:o.number().int().min(0).optional(),beforeSeq:o.number().int().min(1).optional(),order:o.enum(["asc","desc"]).optional(),limit:o.number().int().min(1).optional(),contextCycle:o.literal("latest").optional()}).passthrough(),INBOUND_SESSION_STATUSES=["idle","thinking","tool_running","permission_required","disconnected","turn-completed"],SessionStatusPayloadSchema=o.object({sessionId:t,status:o.enum(INBOUND_SESSION_STATUSES)}).strict(),MachineRegisterPayloadSchema=o.object({hostname:t,platform:t,arch:o.string().optional(),displayName:o.string().optional(),daemonVersion:o.string().optional(),availableAgents:o.array(o.string()).optional(),agentVersions:o.record(o.string()).optional(),terminalHost:o.string().optional(),terminalPort:o.number().optional(),upgradeStatus:o.string().optional(),upgradeError:o.string().optional(),lastUpgradeError:o.string().optional(),derivationVersion:o.number().optional(),autoUpgradeDaemon:o.boolean().optional(),notifyFeishu:o.boolean().optional(),notifyDingtalk:o.boolean().optional(),agentModels:o.record(o.array(o.object({id:o.string(),displayName:o.string(),isDefault:o.boolean(),hidden:o.boolean()}).passthrough())).optional(),agentModes:o.record(o.array(o.object({id:o.string(),label:o.string()}).passthrough())).optional(),capabilities:o.array(o.string()).optional()}).passthrough(),HistorySessionEntrySchema=o.object({claudeSessionId:t,projectPath:o.string(),title:o.string().nullable().optional(),messageCount:o.number(),createdAt:o.string(),agentType:o.string(),isSubagent:o.boolean().optional()}).passthrough(),RegisterHistorySessionsPayloadSchema=o.object({entries:o.array(HistorySessionEntrySchema)}).passthrough();
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export { ACCOUNT_LANGUAGES, DEFAULT_ACCOUNT_LANGUAGE, ACCOUNT_LANGUAGE_CAPABILITY, AccountLanguageSchema, AccountLanguageRequestSchema, AccountLanguageResponseSchema, isAccountLanguage, } from './accountLanguage.js';
|
|
2
|
+
export type { AccountLanguage } from './accountLanguage.js';
|
|
3
|
+
export { parseSessionTitleFromTag, resolveSessionTitle, stripSessionTitleShortId, } from './sessionTitle.js';
|
|
1
4
|
export { SessionTextEventSchema, SessionServiceEventSchema, SessionToolCallStartEventSchema, SessionToolCallEndEventSchema, SessionFileEventSchema, SessionTurnStartEventSchema, SessionTurnEndEventSchema, SessionTurnEndStatusSchema, TurnUsageSchema, SessionStartEventSchema, SessionStopEventSchema, SessionEventSchema, SessionPermissionResolvedEventSchema, PermissionActionSchema, SessionImageEventSchema, ImageAttachmentSchema, SessionContextUsageEventSchema, SessionCompactBoundaryEventSchema, emptyContextUsageSnapshot, } from './events.js';
|
|
2
5
|
export type { SessionEvent, SessionTurnEndStatus, TurnUsage, SessionQuestionEvent, SessionPermissionRequestEvent, SessionAnswerEvent, SessionPermissionResolvedEvent, PermissionAction, ImageAttachment, SessionContextUsageEvent, SessionCompactBoundaryEvent, } from './events.js';
|
|
3
6
|
export { QuestionOptionSchema, SessionQuestionEventSchema, SessionPermissionRequestEventSchema, SessionAnswerEventSchema, AnswerQuestionParamsSchema, ApprovePermissionParamsSchema, DenyPermissionParamsSchema, PermissionModeSchema, } from './interactionEvents.js';
|
|
@@ -7,34 +10,39 @@ export type { SessionRole, SessionEnvelope, CreateEnvelopeOptions } from './enve
|
|
|
7
10
|
export { NotificationEventTypeSchema, DispatchNotificationParamsSchema } from './notification.js';
|
|
8
11
|
export type { NotificationEventType, DispatchNotificationParams } from './notification.js';
|
|
9
12
|
export { AgentTypeSchema, MessageMetaSchema, AGENT_TYPES, SPAWNABLE_AGENTS, CLI_AGENT_TYPES, } from './messageMeta.js';
|
|
10
|
-
export { AGENT_SUPPORTS_IMAGES } from './messageMeta.js';
|
|
13
|
+
export { AGENT_SUPPORTS_IMAGES, AGENT_DISPLAY_NAMES } from './messageMeta.js';
|
|
11
14
|
export type { AgentType, MessageMeta, CliAgentType } from './messageMeta.js';
|
|
12
|
-
export { SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, MessageContentSchema, } from './messages.js';
|
|
13
|
-
export
|
|
15
|
+
export { SessionContextBoundaryKindSchema, getSessionContextBoundary, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, MessageContentSchema, } from './messages.js';
|
|
16
|
+
export * from './sessionBtw.js';
|
|
17
|
+
export type { SessionContextBoundaryKind, SessionMessageContent, SessionMessage, SessionProtocolMessage, MessageContent, } from './messages.js';
|
|
14
18
|
export { UserMessageSchema, AgentMessageSchema, LegacyMessageContentSchema, } from './legacyProtocol.js';
|
|
15
19
|
export type { UserMessage, AgentMessage, LegacyMessageContent } from './legacyProtocol.js';
|
|
16
20
|
export { VersionedEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VersionedMachineEncryptedValueSchema, UpdateNewMessageBodySchema, UpdateSessionBodySchema, UpdateMachineBodySchema, UpdateSessionResetBodySchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, } from './sync.js';
|
|
17
21
|
export type { VersionedEncryptedValue, VersionedNullableEncryptedValue, VersionedMachineEncryptedValue, UpdateNewMessageBody, UpdateSessionBody, UpdateMachineBody, UpdateSessionResetBody, CoreUpdateBody, CoreUpdateContainer, } from './sync.js';
|
|
18
|
-
export { RpcMethod, type RpcMethodType, SESSION_RPC_METHODS, MACHINE_RPC_METHODS, DAEMON_REQUIRED_RPC_METHODS, RpcCallSchema, RpcResultSchema, SpawnSessionParamsSchema, GetMessagesParamsSchema, GetMessagesResponseSchema, MachineInfoResponseSchema, CheckPathParamsSchema, AGENT_ENV_NONE, AgentEnvConfigSchema, AgentEnvConfigSetSchema, AgentSettingsSchema, SetAgentSettingsSchema, LabsSettingsSchema, CustomModelSchema, SkillDefinitionSchema, } from './rpc.js';
|
|
19
|
-
export
|
|
20
|
-
export {
|
|
22
|
+
export { RpcMethod, type RpcMethodType, SESSION_RPC_METHODS, MACHINE_RPC_METHODS, DAEMON_REQUIRED_RPC_METHODS, RpcCallSchema, RpcResultSchema, SpawnSessionParamsSchema, GetMessagesParamsSchema, GetMessagesResponseSchema, MachineInfoResponseSchema, CheckPathParamsSchema, AGENT_ENV_NONE, AgentEnvConfigSchema, AgentEnvConfigSetSchema, AgentSettingsSchema, SetAgentSettingsSchema, LabsSettingsSchema, CustomModelSchema, SkillDefinitionSchema, AiHelperConfigSchema, LocalAiHelperConfigSchema, LocalAgentSettingsSchema, AiHelperPayloadSchema, AiHelperDecryptedPayloadSchema, AiHelperParamsSchema, AiHelperCancelParamsSchema, } from './rpc.js';
|
|
23
|
+
export { HANDOFF_BRIEF_TEMPLATE, HANDOFF_BRIEF_TEMPLATE_ZH, HANDOFF_BRIEF_REQUIREMENTS, HANDOFF_SOURCE_REFERENCE_GUIDANCE, SESSION_DELIVERY_TEMPLATE, SESSION_DELIVERY_TEMPLATE_ZH, sessionDeliveryTemplate, SESSION_DELIVERY_REQUIREMENTS, HandoffBriefSchema, getMissingHandoffBriefSections, } from './handoffBrief.js';
|
|
24
|
+
export { SESSION_HANDOFF_CAPABILITY, HandoffProposalContentSchema, HandoffProposalCreateSchema, HandoffProposalStatusSchema, HandoffProposalContentEnvelopeSchema, HandoffProposalRecordSchema, InheritedDeliverySummarySchema, SessionHandoffContextSchema, AccountDeliveryRowSchema, AccountDeliveryPageSchema, DeliveryConsumerSchema, } from './workItems.js';
|
|
25
|
+
export type { HandoffProposalContent, HandoffProposalCreate, HandoffProposalRecord, HandoffProposalStatus, HandoffProposalContentEnvelope, InheritedDeliverySummary, SessionHandoffContext, AccountDeliveryRow, AccountDeliveryPage, DeliveryConsumer, } from './workItems.js';
|
|
26
|
+
export type { RpcCall, RpcResult, SpawnSessionParams, CheckPathParams, GetMessagesParams, GetMessagesResponse, MachineInfoResponse, AgentEnvConfig, AgentSettings, LabsSettings, CustomModel, SkillDefinition, AiHelperConfig, LocalAiHelperConfig, LocalAgentSettings, AiHelperParams, AiHelperCancelParams, } from './rpc.js';
|
|
27
|
+
export * from './enterprisePolicyExports.js';
|
|
28
|
+
export { AGENT_CAPABILITIES, getAgentCapability, updateDynamicModes, getDynamicModes, normalizeModelId, NATIVE_MODE_TO_POLICY, resolvePolicyMode, } from './agentCapabilities.js';
|
|
21
29
|
export type { AgentCapability, AgentPermissionMode, AgentModelOption, ModelSource, } from './agentCapabilities.js';
|
|
22
|
-
export { ModelUsageEntrySchema, DailyActivitySchema, DailyModelTokensSchema, LongestSessionSchema, ClaudeStatsDataSchema, ProjectSummarySchema, StatsOverviewSchema, AgentTypeUsageSchema, ActivityUploadSchema, UsageReportSchema, TokenTrendPointSchema, ModelBreakdownEntrySchema, QuotaConfigSchema, } from './stats.js';
|
|
23
|
-
export type { StatsOverview, ClaudeStatsData, ProjectSummary, ModelUsageEntry as WireModelUsageEntry,
|
|
24
|
-
DailyActivity as WireDailyActivity,
|
|
25
|
-
LongestSession as WireLongestSession,
|
|
26
|
-
AgentTypeUsage, ActivityUpload, UsageReport, TokenTrendPoint, ModelBreakdownEntry, QuotaConfig, QuotaStatusSchema, QuotaStatus, } from './stats.js';
|
|
30
|
+
export { ModelUsageEntrySchema, DailyActivitySchema, DailyModelTokensSchema, LongestSessionSchema, ClaudeStatsDataSchema, ProjectSummarySchema, StatsOverviewSchema, AgentTypeUsageSchema, AgentSessionUsageEntrySchema, AgentSessionUsageResponseSchema, ActivityUploadSchema, UsageReportSchema, TokenTrendPointSchema, ModelBreakdownEntrySchema, QuotaConfigSchema, } from './stats.js';
|
|
31
|
+
export type { StatsOverview, ClaudeStatsData, ProjectSummary, ModelUsageEntry as WireModelUsageEntry,
|
|
32
|
+
DailyActivity as WireDailyActivity,
|
|
33
|
+
LongestSession as WireLongestSession,
|
|
34
|
+
AgentTypeUsage, AgentSessionUsageEntry, AgentSessionUsageResponse, ActivityUpload, UsageReport, TokenTrendPoint, ModelBreakdownEntry, QuotaConfig, QuotaStatusSchema, QuotaStatus, } from './stats.js';
|
|
27
35
|
export { ControlLevel } from './controlLevel.js';
|
|
28
36
|
export type { ControlLevelType } from './controlLevel.js';
|
|
29
37
|
export { TEXT_EXTS, CODE_EXTS, DOC_EXTS, IMG_EXTS, FILE_CATEGORY_MAX_SIZE, BLOCKED_EXTS, ALLOWED_EXTENSIONS, FILE_SIGNATURES, getFileExt, resolveFileCategory, verifyMagicBytes, } from './fileWhitelist.js';
|
|
30
38
|
export type { FileCategory } from './fileWhitelist.js';
|
|
31
|
-
export { PairingState, PairingRequestSchema, PairingResponseSchema, PairingExchangeSchema, PairingDeliverSchema, PairingStatusSchema, parseVersionByte, encodeVersionByte,
|
|
39
|
+
export { PairingState, PairingRequestSchema, PairingResponseSchema, PairingExchangeSchema, PairingDeliverSchema, PairingStatusSchema, parseVersionByte, encodeVersionByte, CURRENT_DERIVATION_VERSION, } from './pairing.js';
|
|
32
40
|
export type { PairingRequest, PairingResponse, PairingExchange, PairingDeliver, PairingStatus, } from './pairing.js';
|
|
33
41
|
export { PlatformSchema, SessionStatusSchema, MachineSummarySchema, MachineRegisterResultSchema, } from './machine.js';
|
|
34
42
|
export type { Platform, SessionStatus, MachineSummary, MachineRegisterResult } from './machine.js';
|
|
35
|
-
export { SessionCreatePayloadSchema, UpdateMetadataPayloadSchema, UpdateStatePayloadSchema, ContextUsageUpdatePayloadSchema, SessionAlivePayloadSchema, GetSessionRuntimeStatusPayloadSchema, SessionDeletePayloadSchema, SessionEndPayloadSchema, RenameSessionPayloadSchema, MessagePayloadSchema, BatchMessagePayloadSchema, GetMessagesPayloadSchema, SessionStatusPayloadSchema, MachineRegisterPayloadSchema, RegisterHistorySessionsPayloadSchema, HistorySessionEntrySchema, INBOUND_SESSION_STATUSES, } from './inboundEvents.js';
|
|
36
|
-
export type { SessionCreatePayload, UpdateMetadataPayload, UpdateStatePayload, ContextUsageUpdatePayload, SessionAlivePayload, GetSessionRuntimeStatusPayload, SessionDeletePayload, SessionEndPayload, RenameSessionPayload, MessagePayload, BatchMessagePayload, GetMessagesPayload, SessionStatusPayload, MachineRegisterPayload, RegisterHistorySessionsPayload, HistorySessionEntry, } from './inboundEvents.js';
|
|
37
|
-
export { FEATURE_REGISTRY, isFeatureAvailable, getUnavailableFeatures, isSubFeatureAvailable, getSubFeatureMinVersion, } from './features.js';
|
|
43
|
+
export { SessionCreatePayloadSchema, UpdateMetadataPayloadSchema, UpdateStatePayloadSchema, ContextUsageUpdatePayloadSchema, SessionAlivePayloadSchema, GetSessionRuntimeStatusPayloadSchema, SessionDeletePayloadSchema, SessionEndPayloadSchema, SessionTerminatePayloadSchema, RenameSessionPayloadSchema, SessionContextResetPayloadSchema, ClaimAutoSessionTitlePayloadSchema, MessagePayloadSchema, BatchMessagePayloadSchema, GetMessagesPayloadSchema, SessionStatusPayloadSchema, MachineRegisterPayloadSchema, RegisterHistorySessionsPayloadSchema, HistorySessionEntrySchema, INBOUND_SESSION_STATUSES, } from './inboundEvents.js';
|
|
44
|
+
export type { SessionCreatePayload, UpdateMetadataPayload, UpdateStatePayload, ContextUsageUpdatePayload, SessionAlivePayload, GetSessionRuntimeStatusPayload, SessionDeletePayload, SessionEndPayload, SessionTerminatePayload, RenameSessionPayload, SessionContextResetPayload, ClaimAutoSessionTitlePayload, MessagePayload, BatchMessagePayload, GetMessagesPayload, SessionStatusPayload, MachineRegisterPayload, RegisterHistorySessionsPayload, HistorySessionEntry, } from './inboundEvents.js';
|
|
45
|
+
export { FEATURE_REGISTRY, isFeatureAvailable, getUnavailableFeatures, isSubFeatureAvailable, getSubFeatureMinVersion, getFeatureMinVersion, } from './features.js';
|
|
38
46
|
export type { FeatureDefinition, SubFeatureDefinition } from './features.js';
|
|
39
47
|
export { SessionResultSchema } from './sessionResult.js';
|
|
40
48
|
export type { SessionResult } from './sessionResult.js';
|
|
@@ -61,6 +69,8 @@ export type { TelemetryEventType, TelemetryEvent, TelemetryEventStrict, Telemetr
|
|
|
61
69
|
export * from './checkpointSchemas.js';
|
|
62
70
|
export { SourceMetadataSchema } from './sourceMetadata.js';
|
|
63
71
|
export type { SourceMetadata } from './sourceMetadata.js';
|
|
72
|
+
export * from './gateway.js';
|
|
73
|
+
export * from './enterpriseRuntime.js';
|
|
64
74
|
export { OpsRpcMessageSchema, OpsMethodSchema, OpsRpcTypeSchema, DockerImageRefSchema, FileEntrySchema, FileStatSchema, StorageUsageSchema, SyncUserSchema, SyncFullPayloadSchema, SyncUserCreatedPayloadSchema, SyncContainerStatusPayloadSchema, SyncUserPairedPayloadSchema, type OpsRpcMessage, type OpsMethod, type OpsRpcType, type DockerImageRef, type OpsTunnelMetrics, type FileEntry, type FileStat, type StorageUsage, type SyncUser, type SyncFullPayload, type SyncUserCreatedPayload, type SyncContainerStatusPayload, type SyncUserPairedPayload, } from './ops.js';
|
|
65
75
|
export * from './edition.js';
|
|
66
76
|
export { LicensePayloadSchema, LicenseFileSchema, EnterpriseLicenseSchema, PrivateLicenseSchema, } from './license.js';
|
|
@@ -74,4 +84,3 @@ export interface SetupProgress {
|
|
|
74
84
|
readonly user: boolean;
|
|
75
85
|
}
|
|
76
86
|
export type { ActivityPreferences } from './activityPreferences.js';
|
|
77
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";export{SessionTextEventSchema,SessionServiceEventSchema,SessionToolCallStartEventSchema,SessionToolCallEndEventSchema,SessionFileEventSchema,SessionTurnStartEventSchema,SessionTurnEndEventSchema,SessionTurnEndStatusSchema,TurnUsageSchema,SessionStartEventSchema,SessionStopEventSchema,SessionEventSchema,SessionPermissionResolvedEventSchema,PermissionActionSchema,SessionImageEventSchema,ImageAttachmentSchema,SessionContextUsageEventSchema,SessionCompactBoundaryEventSchema,emptyContextUsageSnapshot}from"./events.js";export{QuestionOptionSchema,SessionQuestionEventSchema,SessionPermissionRequestEventSchema,SessionAnswerEventSchema,AnswerQuestionParamsSchema,ApprovePermissionParamsSchema,DenyPermissionParamsSchema,PermissionModeSchema}from"./interactionEvents.js";export{SessionRoleSchema,SessionEnvelopeSchema,createEnvelope}from"./envelope.js";export{NotificationEventTypeSchema,DispatchNotificationParamsSchema}from"./notification.js";export{AgentTypeSchema,MessageMetaSchema,AGENT_TYPES,SPAWNABLE_AGENTS,CLI_AGENT_TYPES}from"./messageMeta.js";export{AGENT_SUPPORTS_IMAGES}from"./messageMeta.js";export{SessionMessageContentSchema,SessionMessageSchema,SessionProtocolMessageSchema,MessageContentSchema}from"./messages.js";export{UserMessageSchema,AgentMessageSchema,LegacyMessageContentSchema}from"./legacyProtocol.js";export{VersionedEncryptedValueSchema,VersionedNullableEncryptedValueSchema,VersionedMachineEncryptedValueSchema,UpdateNewMessageBodySchema,UpdateSessionBodySchema,UpdateMachineBodySchema,UpdateSessionResetBodySchema,CoreUpdateBodySchema,CoreUpdateContainerSchema}from"./sync.js";export{RpcMethod,SESSION_RPC_METHODS,MACHINE_RPC_METHODS,DAEMON_REQUIRED_RPC_METHODS,RpcCallSchema,RpcResultSchema,SpawnSessionParamsSchema,GetMessagesParamsSchema,GetMessagesResponseSchema,MachineInfoResponseSchema,CheckPathParamsSchema,AGENT_ENV_NONE,AgentEnvConfigSchema,AgentEnvConfigSetSchema,AgentSettingsSchema,SetAgentSettingsSchema,LabsSettingsSchema,CustomModelSchema,SkillDefinitionSchema}from"./rpc.js";export{AGENT_CAPABILITIES,getAgentCapability,updateDynamicModes,getDynamicModes,normalizeModelId}from"./agentCapabilities.js";export{ModelUsageEntrySchema,DailyActivitySchema,DailyModelTokensSchema,LongestSessionSchema,ClaudeStatsDataSchema,ProjectSummarySchema,StatsOverviewSchema,AgentTypeUsageSchema,ActivityUploadSchema,UsageReportSchema,TokenTrendPointSchema,ModelBreakdownEntrySchema,QuotaConfigSchema}from"./stats.js";export{ControlLevel}from"./controlLevel.js";export{TEXT_EXTS,CODE_EXTS,DOC_EXTS,IMG_EXTS,FILE_CATEGORY_MAX_SIZE,BLOCKED_EXTS,ALLOWED_EXTENSIONS,FILE_SIGNATURES,getFileExt,resolveFileCategory,verifyMagicBytes}from"./fileWhitelist.js";export{PairingState,PairingRequestSchema,PairingResponseSchema,PairingExchangeSchema,PairingDeliverSchema,PairingStatusSchema,parseVersionByte,encodeVersionByte,
|
|
1
|
+
"use strict";export{ACCOUNT_LANGUAGES,DEFAULT_ACCOUNT_LANGUAGE,ACCOUNT_LANGUAGE_CAPABILITY,AccountLanguageSchema,AccountLanguageRequestSchema,AccountLanguageResponseSchema,isAccountLanguage}from"./accountLanguage.js";export{parseSessionTitleFromTag,resolveSessionTitle,stripSessionTitleShortId}from"./sessionTitle.js";export{SessionTextEventSchema,SessionServiceEventSchema,SessionToolCallStartEventSchema,SessionToolCallEndEventSchema,SessionFileEventSchema,SessionTurnStartEventSchema,SessionTurnEndEventSchema,SessionTurnEndStatusSchema,TurnUsageSchema,SessionStartEventSchema,SessionStopEventSchema,SessionEventSchema,SessionPermissionResolvedEventSchema,PermissionActionSchema,SessionImageEventSchema,ImageAttachmentSchema,SessionContextUsageEventSchema,SessionCompactBoundaryEventSchema,emptyContextUsageSnapshot}from"./events.js";export{QuestionOptionSchema,SessionQuestionEventSchema,SessionPermissionRequestEventSchema,SessionAnswerEventSchema,AnswerQuestionParamsSchema,ApprovePermissionParamsSchema,DenyPermissionParamsSchema,PermissionModeSchema}from"./interactionEvents.js";export{SessionRoleSchema,SessionEnvelopeSchema,createEnvelope}from"./envelope.js";export{NotificationEventTypeSchema,DispatchNotificationParamsSchema}from"./notification.js";export{AgentTypeSchema,MessageMetaSchema,AGENT_TYPES,SPAWNABLE_AGENTS,CLI_AGENT_TYPES}from"./messageMeta.js";export{AGENT_SUPPORTS_IMAGES,AGENT_DISPLAY_NAMES}from"./messageMeta.js";export{SessionContextBoundaryKindSchema,getSessionContextBoundary,SessionMessageContentSchema,SessionMessageSchema,SessionProtocolMessageSchema,MessageContentSchema}from"./messages.js";export*from"./sessionBtw.js";export{UserMessageSchema,AgentMessageSchema,LegacyMessageContentSchema}from"./legacyProtocol.js";export{VersionedEncryptedValueSchema,VersionedNullableEncryptedValueSchema,VersionedMachineEncryptedValueSchema,UpdateNewMessageBodySchema,UpdateSessionBodySchema,UpdateMachineBodySchema,UpdateSessionResetBodySchema,CoreUpdateBodySchema,CoreUpdateContainerSchema}from"./sync.js";export{RpcMethod,SESSION_RPC_METHODS,MACHINE_RPC_METHODS,DAEMON_REQUIRED_RPC_METHODS,RpcCallSchema,RpcResultSchema,SpawnSessionParamsSchema,GetMessagesParamsSchema,GetMessagesResponseSchema,MachineInfoResponseSchema,CheckPathParamsSchema,AGENT_ENV_NONE,AgentEnvConfigSchema,AgentEnvConfigSetSchema,AgentSettingsSchema,SetAgentSettingsSchema,LabsSettingsSchema,CustomModelSchema,SkillDefinitionSchema,AiHelperConfigSchema,LocalAiHelperConfigSchema,LocalAgentSettingsSchema,AiHelperPayloadSchema,AiHelperDecryptedPayloadSchema,AiHelperParamsSchema,AiHelperCancelParamsSchema}from"./rpc.js";export{HANDOFF_BRIEF_TEMPLATE,HANDOFF_BRIEF_TEMPLATE_ZH,HANDOFF_BRIEF_REQUIREMENTS,HANDOFF_SOURCE_REFERENCE_GUIDANCE,SESSION_DELIVERY_TEMPLATE,SESSION_DELIVERY_TEMPLATE_ZH,sessionDeliveryTemplate,SESSION_DELIVERY_REQUIREMENTS,HandoffBriefSchema,getMissingHandoffBriefSections}from"./handoffBrief.js";export{SESSION_HANDOFF_CAPABILITY,HandoffProposalContentSchema,HandoffProposalCreateSchema,HandoffProposalStatusSchema,HandoffProposalContentEnvelopeSchema,HandoffProposalRecordSchema,InheritedDeliverySummarySchema,SessionHandoffContextSchema,AccountDeliveryRowSchema,AccountDeliveryPageSchema,DeliveryConsumerSchema}from"./workItems.js";export*from"./enterprisePolicyExports.js";export{AGENT_CAPABILITIES,getAgentCapability,updateDynamicModes,getDynamicModes,normalizeModelId,NATIVE_MODE_TO_POLICY,resolvePolicyMode}from"./agentCapabilities.js";export{ModelUsageEntrySchema,DailyActivitySchema,DailyModelTokensSchema,LongestSessionSchema,ClaudeStatsDataSchema,ProjectSummarySchema,StatsOverviewSchema,AgentTypeUsageSchema,AgentSessionUsageEntrySchema,AgentSessionUsageResponseSchema,ActivityUploadSchema,UsageReportSchema,TokenTrendPointSchema,ModelBreakdownEntrySchema,QuotaConfigSchema}from"./stats.js";export{ControlLevel}from"./controlLevel.js";export{TEXT_EXTS,CODE_EXTS,DOC_EXTS,IMG_EXTS,FILE_CATEGORY_MAX_SIZE,BLOCKED_EXTS,ALLOWED_EXTENSIONS,FILE_SIGNATURES,getFileExt,resolveFileCategory,verifyMagicBytes}from"./fileWhitelist.js";export{PairingState,PairingRequestSchema,PairingResponseSchema,PairingExchangeSchema,PairingDeliverSchema,PairingStatusSchema,parseVersionByte,encodeVersionByte,CURRENT_DERIVATION_VERSION}from"./pairing.js";export{PlatformSchema,SessionStatusSchema,MachineSummarySchema,MachineRegisterResultSchema}from"./machine.js";export{SessionCreatePayloadSchema,UpdateMetadataPayloadSchema,UpdateStatePayloadSchema,ContextUsageUpdatePayloadSchema,SessionAlivePayloadSchema,GetSessionRuntimeStatusPayloadSchema,SessionDeletePayloadSchema,SessionEndPayloadSchema,SessionTerminatePayloadSchema,RenameSessionPayloadSchema,SessionContextResetPayloadSchema,ClaimAutoSessionTitlePayloadSchema,MessagePayloadSchema,BatchMessagePayloadSchema,GetMessagesPayloadSchema,SessionStatusPayloadSchema,MachineRegisterPayloadSchema,RegisterHistorySessionsPayloadSchema,HistorySessionEntrySchema,INBOUND_SESSION_STATUSES}from"./inboundEvents.js";export{FEATURE_REGISTRY,isFeatureAvailable,getUnavailableFeatures,isSubFeatureAvailable,getSubFeatureMinVersion,getFeatureMinVersion}from"./features.js";export{SessionResultSchema}from"./sessionResult.js";export{SpawnErrorCodeSchema,SpawnErrorSchema,createSpawnError}from"./spawnError.js";export{AGENT_INSTALL_GUIDE}from"./agentInstallGuide.js";export{AGENT_COMMON_ENV_VARS}from"./agentCommonEnv.js";export{RetryPolicySchema,MissedRunPolicySchema,ScheduledSpawnParamsSchema,TaskExecutionStatusSchema,TaskExecutionTriggerSchema,TaskTriggerTypeSchema,TaskResultSchema,TaskStatsSchema,TaskExecutionBarSchema,TaskCardStatsSchema,CreateScheduledTaskSchema,UpdateScheduledTaskSchema,ScheduledTaskSummarySchema,TaskExecutionSchema,TriggerCallSchema,TriggerExecutionSchema,RegenerateTokenResponseSchema,CRON_RE}from"./scheduledTasks.js";export{TASK_RESULT_PREFIX,serializeTaskResult,parseTaskResultPayload,extractTaskResultFromText}from"./taskResult.js";export{PROTOCOL_VERSION}from"./protocol.js";export{parseSemver,compareVersions,satisfiesMin}from"./semver.js";export{createId}from"./utils.js";export{errorMessage}from"./errorMessage.js";export{BG_TASK_PREFIX,encodeBgTask,parseBgTask,isBgTaskLifecycleLine}from"./bgTask.js";export{BASH_TOOL_NAMES,isBashToolName,extractCommandSubject,MIN_SUBJECT_LENGTH}from"./permissionSubject.js";export{SOCKET_EVENTS}from"./socketEvents.js";export{TelemetryEventTypeSchema,TelemetryEventSchema,TelemetryReportPayloadSchema,sanitizeContext}from"./telemetry.js";export*from"./checkpointSchemas.js";export{SourceMetadataSchema}from"./sourceMetadata.js";export*from"./gateway.js";export*from"./enterpriseRuntime.js";export{OpsRpcMessageSchema,OpsMethodSchema,OpsRpcTypeSchema,DockerImageRefSchema,FileEntrySchema,FileStatSchema,StorageUsageSchema,SyncUserSchema,SyncFullPayloadSchema,SyncUserCreatedPayloadSchema,SyncContainerStatusPayloadSchema,SyncUserPairedPayloadSchema}from"./ops.js";export*from"./edition.js";export{LicensePayloadSchema,LicenseFileSchema,EnterpriseLicenseSchema,PrivateLicenseSchema}from"./license.js";export{FeedbackTypeSchema,FeedbackStatusSchema,DeviceInfoSchema,MachineSnapshotSchema,CreateFeedbackSchema,UpdateFeedbackSchema,RunModeSchema,RunModesSchema,BugFieldsSchema,SettingsSnapshotSchema}from"./feedback.js";
|