@makaio/framework 1.0.0-dev-1779046984397 → 1.0.0-dev-1779051654000
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/README.md +32 -315
- package/dist/{account-identity-Ce1Bwrqi.mjs → account-identity-Bg_vKkcs.mjs} +1 -1
- package/dist/{adapter-CbyjCE2d.mjs → adapter-CpF2aK_-.mjs} +1 -1
- package/dist/adapters/config/index.d.mts +1 -1
- package/dist/adapters/config/index.mjs +1 -1
- package/dist/adapters/index.d.mts +2 -2
- package/dist/adapters/index.mjs +1 -1
- package/dist/adapters/node.d.mts +1 -1
- package/dist/adapters/node.mjs +1 -1
- package/dist/client-DMWXCWhM.mjs +1 -0
- package/dist/clients/index.d.mts +122 -347
- package/dist/clients/index.mjs +2 -1
- package/dist/{clients-namespace-B0xAPZ6J.d.mts → clients-namespace-UHj5wt-l.d.mts} +7 -7
- package/dist/contracts/adapter/index.d.mts +2 -2
- package/dist/contracts/adapter/index.mjs +1 -1
- package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
- package/dist/contracts/client/index.d.mts +3 -3
- package/dist/contracts/client/index.mjs +1 -1
- package/dist/contracts/common/index.d.mts +1 -1
- package/dist/contracts/config/index.d.mts +6 -6
- package/dist/contracts/config/index.mjs +1 -1
- package/dist/contracts/extension/index.d.mts +2 -2
- package/dist/contracts/extension/index.mjs +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/harness/index.mjs +1 -1
- package/dist/contracts/host/index.mjs +1 -1
- package/dist/contracts/index.d.mts +64 -63
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/model-registry/index.mjs +1 -1
- package/dist/contracts/native-session-supervisor/index.mjs +1 -1
- package/dist/contracts/platform/index.mjs +1 -1
- package/dist/contracts/session/index.d.mts +2 -2
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/shared/index.d.mts +1 -1
- package/dist/contracts/shared/index.mjs +1 -1
- package/dist/contracts/skill/index.mjs +1 -1
- package/dist/contracts/timeout/index.d.mts +2 -0
- package/dist/contracts/timeout/index.mjs +1 -0
- package/dist/contracts/toast/index.mjs +1 -1
- package/dist/contracts/variant/index.mjs +1 -1
- package/dist/{definition-DxvZ9e22.d.mts → definition-DB7bbFSa.d.mts} +84 -91
- package/dist/{extension-COqwS-2Q.mjs → extension-53GerdGg.mjs} +1 -1
- package/dist/extension-fJmv8Yri.mjs +1 -0
- package/dist/{handlers-iGKUJ380.mjs → handlers-DR_4_rAT.mjs} +1 -1
- package/dist/{harness-CEq1Zkf9.mjs → harness-B6lGP9rm.mjs} +1 -1
- package/dist/{index-DBQtpFLE.d.mts → index-BnSQE7z7.d.mts} +3 -3
- package/dist/{index-CVA0m1g9.d.mts → index-CnmPtjnA.d.mts} +4 -4
- package/dist/{index-hapw9_En.d.mts → index-Cq8B7cwK.d.mts} +67 -67
- package/dist/{index-BJOfdtbw.d.mts → index-DGTFJB_8.d.mts} +3 -3
- package/dist/{index-DubqLGH8.d.mts → index-DaEp4UWW.d.mts} +56 -62
- package/dist/{index-C9F3Fc1A.d.mts → index-DwCA1HWa.d.mts} +133 -79
- package/dist/index-E8d_RwaF.d.mts +28 -0
- package/dist/{index-BB419vv-.d.mts → index-e5C62_M3.d.mts} +31 -11
- package/dist/{index-Bv15sNLn.d.mts → index-sBob9D25.d.mts} +1 -1
- package/dist/{index-BAKM2GMH2.d.mts → index-tKvu34DJ2.d.mts} +6 -6
- package/dist/{index-BdPwu6c0.d.mts → index-yvN8UcEH.d.mts} +110 -110
- package/dist/kernel/cli/index.mjs +1 -1
- package/dist/kernel/cli/schemas.mjs +1 -1
- package/dist/kernel/extension/index.d.mts +1 -1
- package/dist/kernel/extension/index.mjs +1 -1
- package/dist/kernel/index.d.mts +2 -2
- package/dist/kernel/index.mjs +1 -1
- package/dist/kernel/namespace/index.mjs +1 -1
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/kernel/observability/index.mjs +1 -1
- package/dist/kernel/providers/index.mjs +1 -1
- package/dist/kernel/window/index.mjs +1 -1
- package/dist/{namespace-CkLUtc0g.d.mts → namespace-B1E57soL.d.mts} +22 -22
- package/dist/{namespace-bq4Prtzn.d.mts → namespace-B5ZCshBw.d.mts} +75 -75
- package/dist/{namespace-CCDEOwmW.d.mts → namespace-BCRNwPnw.d.mts} +6 -6
- package/dist/{namespace-ptv-pw_g.d.mts → namespace-BKrV_2gZ.d.mts} +9 -9
- package/dist/{namespace-O5SNY-LV.d.mts → namespace-BpIE-jQW.d.mts} +14 -14
- package/dist/{namespace-8cNguvIp.mjs → namespace-DGMO2E8f.mjs} +1 -1
- package/dist/{namespace-FWx6HxaW.d.mts → namespace-DXnMk3U8.d.mts} +14 -14
- package/dist/{namespace-xkvVw3hf2.d.mts → namespace-DwCyOaZn2.d.mts} +2 -2
- package/dist/{namespace-C2ufjgaQ.d.mts → namespace-Ysg1N6rR.d.mts} +24 -24
- package/dist/{native-session-supervisor-L-UIaEfd.mjs → native-session-supervisor-zPt624Tp.mjs} +1 -1
- package/dist/node/bus-server/index.d.mts +1 -1
- package/dist/node/bus-server/index.mjs +1 -1
- package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
- package/dist/node/bus-server/server-lifecycle.mjs +1 -1
- package/dist/{orchestrator-shared-Wv1GI2mW.mjs → orchestrator-shared-D2txLAUs.mjs} +1 -1
- package/dist/profile-Cq4A7kQa.mjs +1 -0
- package/dist/{provider-context-CNRQ4d5m.mjs → provider-context-BB4eD8ON.mjs} +1 -1
- package/dist/{schema-BwzXEtT2.d.mts → schema-B295yplx.d.mts} +1 -1
- package/dist/{schema-CAw_BqaG.mjs → schema-C4iznV0q.mjs} +1 -1
- package/dist/{schema-introspection-D61TT_7b.mjs → schema-introspection-DCYC47_d.mjs} +1 -1
- package/dist/{schemas-BdMU-gew.d.mts → schemas-BWvuaL0w.d.mts} +4 -4
- package/dist/{schemas-D9108Iv1.d.mts → schemas-BfMZAwff.d.mts} +7 -7
- package/dist/{schemas-BXstpWVp.mjs → schemas-Bn8aqDIE.mjs} +1 -1
- package/dist/{schemas-qmn5SWPU.d.mts → schemas-C31qbb0s.d.mts} +4 -4
- package/dist/{schemas-DbWs_hj8.d.mts → schemas-DYqKRNju.d.mts} +3 -3
- package/dist/{schemas-DENVYyds.d.mts → schemas-Ra8pz5M-.d.mts} +14 -14
- package/dist/services/adapter-runtime/index.mjs +1 -1
- package/dist/services/adapter-subsystem/index.d.mts +2 -2
- package/dist/services/adapter-subsystem/index.mjs +1 -1
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/adapter-subsystem/namespace.mjs +1 -1
- package/dist/services/capability/index.mjs +1 -1
- package/dist/services/context-rules/index.mjs +1 -1
- package/dist/services/execution-target/index.d.mts +3 -3
- package/dist/services/execution-target/index.mjs +1 -1
- package/dist/services/execution-target/namespace.d.mts +1 -1
- package/dist/services/execution-target/schemas.d.mts +1 -1
- package/dist/services/filesystem/namespace.d.mts +6 -6
- package/dist/services/filesystem/schemas.d.mts +3 -3
- package/dist/services/harness/index.d.mts +34 -34
- package/dist/services/harness/index.mjs +1 -1
- package/dist/services/harness/storage/schema.d.mts +4 -4
- package/dist/services/index.d.mts +70 -71
- package/dist/services/index.mjs +1 -1
- package/dist/services/log-import/log-import.mjs +1 -1
- package/dist/services/log-import/namespace.mjs +1 -1
- package/dist/services/log-import/schemas.mjs +1 -1
- package/dist/services/model-registry/index.mjs +1 -1
- package/dist/services/preferences/index.d.mts +2 -2
- package/dist/services/preferences/schemas.d.mts +1 -1
- package/dist/services/preferences/storage-namespace.d.mts +2 -2
- package/dist/services/provider-context/index.mjs +1 -1
- package/dist/services/provider-runtime/index.mjs +1 -1
- package/dist/services/session/handlers/index.mjs +1 -1
- package/dist/services/session/index.d.mts +7 -7
- package/dist/services/session/index.mjs +1 -1
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/session/messages/namespace.mjs +1 -1
- package/dist/services/session/orchestrator-testing/index.mjs +1 -1
- package/dist/services/session/session-events/namespace.d.mts +1 -1
- package/dist/services/session/session-events/namespace.mjs +1 -1
- package/dist/services/session/storage/namespace.d.mts +1 -1
- package/dist/services/session/storage/schema.d.mts +1 -1
- package/dist/services/session/testing/index.mjs +1 -1
- package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
- package/dist/services/session/turns/namespace.d.mts +1 -1
- package/dist/services/session/turns/namespace.mjs +1 -1
- package/dist/services/session-editor/index.mjs +1 -1
- package/dist/services/settings/index.d.mts +1 -1
- package/dist/services/settings/index.mjs +1 -1
- package/dist/services/settings/namespace.d.mts +9 -9
- package/dist/services/settings/namespace.mjs +1 -1
- package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
- package/dist/services/settings/storage/clients-namespace.mjs +1 -1
- package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
- package/dist/services/settings/storage/index.d.mts +1 -1
- package/dist/services/settings/storage/index.mjs +1 -1
- package/dist/services/settings/storage/providers-namespace.mjs +1 -1
- package/dist/services/tool-approval/index.mjs +1 -1
- package/dist/services/tools/index.mjs +1 -1
- package/dist/services/tray-menu/index.d.mts +2 -2
- package/dist/services/tray-menu/index.mjs +1 -1
- package/dist/services/tray-menu/namespace.d.mts +1 -1
- package/dist/services/tray-menu/schemas.d.mts +1 -1
- package/dist/services/turn/index.d.mts +1 -1
- package/dist/services/turn/namespace.d.mts +1 -1
- package/dist/services/turn/schemas.d.mts +11 -11
- package/dist/services/worker/index.d.mts +1 -1
- package/dist/services/worker/schemas.d.mts +1 -1
- package/dist/{session-piI1R5rP.mjs → session-BCSf-Fgj.mjs} +1 -1
- package/dist/{session-Do6lDZM4.mjs → session-BNo_cIiz.mjs} +1 -1
- package/dist/{shared-DxHLl9UP.mjs → shared-BhuSHZXH.mjs} +1 -1
- package/dist/{skill-CB5h-ZFQ.mjs → skill-20_SBXaI.mjs} +1 -1
- package/dist/storage/handlers/drizzle/index.mjs +1 -1
- package/dist/storage/handlers/index.mjs +1 -1
- package/dist/{storage-namespace-DAm8iWEj.d.mts → storage-namespace-DoH-Wkjp.d.mts} +10 -10
- package/dist/timeout-D33CUZ0M.mjs +1 -0
- package/dist/{tool-approval-service-BcBSUZCO.mjs → tool-approval-service-CZCPfvVy.mjs} +1 -1
- package/dist/{tools-CDSgj0ee.mjs → tools-Cid9D99F.mjs} +1 -1
- package/dist/{types-BjToUrHp.d.mts → types--nrtGZ1V.d.mts} +24 -24
- package/dist/ui-kernel/index.d.mts +4 -4
- package/dist/ui-kernel/pages/namespace.d.mts +4 -4
- package/dist/ui-kernel/pages/schemas.d.mts +1 -1
- package/package.json +5 -1
- package/dist/client-Dh4x4GQN.mjs +0 -1
- package/dist/extension-Cbrl4YGX.mjs +0 -1
- package/dist/index-CNxS4Tlu.d.mts +0 -1
- package/dist/profile-4StaDQW0.mjs +0 -1
- package/dist/schemas-CGZy_rU6.d.mts +0 -13
- /package/dist/{base-orchestrator-9z8TuA5a.d.mts → base-orchestrator-BOAPgqF7.d.mts} +0 -0
- /package/dist/{capability-service-tnpR_TaB.mjs → capability-service-DV32ecwR.mjs} +0 -0
- /package/dist/{cleanEnvForAdapter-DvcIGXTG.mjs → cleanEnvForAdapter-hTPNvPU5.mjs} +0 -0
- /package/dist/{config-namespace-DLSs83zr.d.mts → config-namespace-ChZOpi1W.d.mts} +0 -0
- /package/dist/{config-namespace-MJT8P0Ud.mjs → config-namespace-wJ2CakDB.mjs} +0 -0
- /package/dist/{cursor-storage-DOQdvo9j.mjs → cursor-storage-BoNI7OAR.mjs} +0 -0
- /package/dist/{drizzle-CWVVw7Er.mjs → drizzle-Bn2GtW8c.mjs} +0 -0
- /package/dist/{execution-target-BW_uiBVe.mjs → execution-target-D6MgthYs.mjs} +0 -0
- /package/dist/{extension-namespace-zaGKi6Qj.mjs → extension-namespace-CTd9kOtt.mjs} +0 -0
- /package/dist/{host-CXAUGGN0.mjs → host-CvEht5RT.mjs} +0 -0
- /package/dist/{identity-B_A0mE63.mjs → identity-DBST3-XO.mjs} +0 -0
- /package/dist/{index-PdUSmPT2.d.mts → index-D2jejYlV.d.mts} +0 -0
- /package/dist/{index-T0471kWA.d.mts → index-DQWMu5fS.d.mts} +0 -0
- /package/dist/{model-registry-CIscwC52.mjs → model-registry-Dzpssh9j.mjs} +0 -0
- /package/dist/{model-registry-BNzpR6TU.mjs → model-registry-xINyxQUT.mjs} +0 -0
- /package/dist/{namespace-Bmc7AW4J2.mjs → namespace-C_h7scWx2.mjs} +0 -0
- /package/dist/{namespace-N0dfwSg6.mjs → namespace-DBw9BYr8.mjs} +0 -0
- /package/dist/{namespace-pNcSglBS.mjs → namespace-DUVgMfTR.mjs} +0 -0
- /package/dist/{namespace-0yuzAKlr.mjs → namespace-OwAf1Brw.mjs} +0 -0
- /package/dist/{namespace-CfEWMXBx.mjs → namespace-Zb8HAbyF.mjs} +0 -0
- /package/dist/{namespace-Db-p67Rg.mjs → namespace-aALq9tnE.mjs} +0 -0
- /package/dist/{namespace-D5Wrt7YU.mjs → namespace-yxIxUsjo.mjs} +0 -0
- /package/dist/{platform-BbSLVg5b.mjs → platform-BMFUpmTA.mjs} +0 -0
- /package/dist/{providers-Cr4Za8a1.mjs → providers-DhiW_fx4.mjs} +0 -0
- /package/dist/{schema-uSGW-6oM.mjs → schema-D3ZG13h9.mjs} +0 -0
- /package/dist/{schemas-C40ZAJ33.mjs → schemas-CEBe89yE.mjs} +0 -0
- /package/dist/{schemas-Co_sVhzz.mjs → schemas-COnLJnt_.mjs} +0 -0
- /package/dist/{schemas-CLxtoKFy.mjs → schemas-CrnlCRep.mjs} +0 -0
- /package/dist/{server-lifecycle-Cf_SZ27k.d.mts → server-lifecycle-BC6FRn86.d.mts} +0 -0
- /package/dist/{server-lifecycle-DbFwlrTW.mjs → server-lifecycle-Dx5WgfoS.mjs} +0 -0
- /package/dist/{session-lineage-Eev4uo4I.d.mts → session-lineage-B0cpHfuc.d.mts} +0 -0
- /package/dist/{shared-schemas-BgQv_tnu.mjs → shared-schemas-Byah36lG.mjs} +0 -0
- /package/dist/{storage-namespace-ADwyijoe.mjs → storage-namespace-BIDs9LPb.mjs} +0 -0
- /package/dist/{storage-namespace-definition-CHu2k14q.mjs → storage-namespace-definition-BjK9nZAN.mjs} +0 -0
- /package/dist/{tray-menu-service-CTXC1Elg.mjs → tray-menu-service-BAYtLdAg.mjs} +0 -0
- /package/dist/{types-CD1LJwPc.d.mts → types-C11LvekX.d.mts} +0 -0
- /package/dist/{ui-config-CXmbsqZV.mjs → ui-config-zawaoEfB.mjs} +0 -0
- /package/dist/{variant-D5kSrL3m.mjs → variant-BZWfmS0q.mjs} +0 -0
- /package/dist/{version-CjS20oXi.mjs → version-D8S4O22A.mjs} +0 -0
- /package/dist/{window-registry-CUftmDr3.mjs → window-registry-B_-hBEcV.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as MessageBlock$1 } from "./index-
|
|
1
|
+
import { s as MessageBlock$1 } from "./index-DGTFJB_8.mjs";
|
|
2
2
|
import * as _$zod from "zod";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
|
|
@@ -159,8 +159,8 @@ declare const MakaioSessionSchema: z.ZodObject<{
|
|
|
159
159
|
executionTargetId: z.ZodOptional<z.ZodString>;
|
|
160
160
|
spawningToolCallId: z.ZodOptional<z.ZodString>;
|
|
161
161
|
approvalPolicyOverride: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
162
|
-
reject: "reject";
|
|
163
162
|
"always-ask": "always-ask";
|
|
163
|
+
reject: "reject";
|
|
164
164
|
"full-access": "full-access";
|
|
165
165
|
}>>>;
|
|
166
166
|
}, z.core.$strip>;
|
|
@@ -270,8 +270,8 @@ declare const SessionWithPreviewSchema: z.ZodObject<{
|
|
|
270
270
|
executionTargetId: z.ZodOptional<z.ZodString>;
|
|
271
271
|
spawningToolCallId: z.ZodOptional<z.ZodString>;
|
|
272
272
|
approvalPolicyOverride: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
273
|
-
reject: "reject";
|
|
274
273
|
"always-ask": "always-ask";
|
|
274
|
+
reject: "reject";
|
|
275
275
|
"full-access": "full-access";
|
|
276
276
|
}>>>;
|
|
277
277
|
preview: z.ZodOptional<z.ZodObject<{
|
|
@@ -455,8 +455,8 @@ declare const SessionSnapshotSchema: z.ZodObject<{
|
|
|
455
455
|
executionTargetId: z.ZodOptional<z.ZodString>;
|
|
456
456
|
spawningToolCallId: z.ZodOptional<z.ZodString>;
|
|
457
457
|
approvalPolicyOverride: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
458
|
-
reject: "reject";
|
|
459
458
|
"always-ask": "always-ask";
|
|
459
|
+
reject: "reject";
|
|
460
460
|
"full-access": "full-access";
|
|
461
461
|
}>>>;
|
|
462
462
|
}, z.core.$strip>>;
|
|
@@ -576,8 +576,8 @@ declare const SessionSnapshotSchema: z.ZodObject<{
|
|
|
576
576
|
startedAt: z.ZodNumber;
|
|
577
577
|
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
578
578
|
status: z.ZodEnum<{
|
|
579
|
-
error: "error";
|
|
580
579
|
completed: "completed";
|
|
580
|
+
error: "error";
|
|
581
581
|
active: "active";
|
|
582
582
|
}>;
|
|
583
583
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -780,11 +780,11 @@ declare const SessionSnapshotSchema: z.ZodObject<{
|
|
|
780
780
|
messageId: z.ZodString;
|
|
781
781
|
agentId: z.ZodString;
|
|
782
782
|
outcome: z.ZodEnum<{
|
|
783
|
-
error: "error";
|
|
784
783
|
completed: "completed";
|
|
785
784
|
superseded: "superseded";
|
|
786
785
|
merged: "merged";
|
|
787
786
|
cancelled: "cancelled";
|
|
787
|
+
error: "error";
|
|
788
788
|
rejected: "rejected";
|
|
789
789
|
}>;
|
|
790
790
|
supersededBy: z.ZodOptional<z.ZodString>;
|
|
@@ -2093,11 +2093,11 @@ declare const OrchestratorSchemas: {
|
|
|
2093
2093
|
messageId: z.ZodString;
|
|
2094
2094
|
agentId: z.ZodString;
|
|
2095
2095
|
outcome: z.ZodEnum<{
|
|
2096
|
-
error: "error";
|
|
2097
2096
|
completed: "completed";
|
|
2098
2097
|
superseded: "superseded";
|
|
2099
2098
|
merged: "merged";
|
|
2100
2099
|
cancelled: "cancelled";
|
|
2100
|
+
error: "error";
|
|
2101
2101
|
rejected: "rejected";
|
|
2102
2102
|
}>;
|
|
2103
2103
|
supersededBy: z.ZodOptional<z.ZodString>;
|
|
@@ -2414,11 +2414,11 @@ declare const MakaioSessionEventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedU
|
|
|
2414
2414
|
messageId: z.ZodString;
|
|
2415
2415
|
agentId: z.ZodString;
|
|
2416
2416
|
outcome: z.ZodEnum<{
|
|
2417
|
-
error: "error";
|
|
2418
2417
|
completed: "completed";
|
|
2419
2418
|
superseded: "superseded";
|
|
2420
2419
|
merged: "merged";
|
|
2421
2420
|
cancelled: "cancelled";
|
|
2421
|
+
error: "error";
|
|
2422
2422
|
rejected: "rejected";
|
|
2423
2423
|
}>;
|
|
2424
2424
|
supersededBy: z.ZodOptional<z.ZodString>;
|
|
@@ -2946,8 +2946,8 @@ type SessionMessage$1 = z.infer<typeof SessionMessageSchema$1>;
|
|
|
2946
2946
|
* Turn status in the conversation lifecycle.
|
|
2947
2947
|
*/
|
|
2948
2948
|
declare const TurnStatusSchema$1: z.ZodEnum<{
|
|
2949
|
-
error: "error";
|
|
2950
2949
|
completed: "completed";
|
|
2950
|
+
error: "error";
|
|
2951
2951
|
active: "active";
|
|
2952
2952
|
}>;
|
|
2953
2953
|
type TurnStatus = z.infer<typeof TurnStatusSchema$1>;
|
|
@@ -2989,8 +2989,8 @@ declare const TurnSchema$1: z.ZodObject<{
|
|
|
2989
2989
|
startedAt: z.ZodNumber;
|
|
2990
2990
|
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
2991
2991
|
status: z.ZodEnum<{
|
|
2992
|
-
error: "error";
|
|
2993
2992
|
completed: "completed";
|
|
2993
|
+
error: "error";
|
|
2994
2994
|
active: "active";
|
|
2995
2995
|
}>;
|
|
2996
2996
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -4219,11 +4219,11 @@ declare const SessionSchemas: {
|
|
|
4219
4219
|
messageId: _$zod.ZodString;
|
|
4220
4220
|
agentId: _$zod.ZodString;
|
|
4221
4221
|
outcome: _$zod.ZodEnum<{
|
|
4222
|
-
error: "error";
|
|
4223
4222
|
completed: "completed";
|
|
4224
4223
|
superseded: "superseded";
|
|
4225
4224
|
merged: "merged";
|
|
4226
4225
|
cancelled: "cancelled";
|
|
4226
|
+
error: "error";
|
|
4227
4227
|
rejected: "rejected";
|
|
4228
4228
|
}>;
|
|
4229
4229
|
supersededBy: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -4572,8 +4572,8 @@ declare const SessionSchemas: {
|
|
|
4572
4572
|
executionTargetId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
4573
4573
|
spawningToolCallId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
4574
4574
|
approvalPolicyOverride: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodEnum<{
|
|
4575
|
-
reject: "reject";
|
|
4576
4575
|
"always-ask": "always-ask";
|
|
4576
|
+
reject: "reject";
|
|
4577
4577
|
"full-access": "full-access";
|
|
4578
4578
|
}>>>;
|
|
4579
4579
|
}, _$zod_v4_core0.$strip>>;
|
|
@@ -4693,8 +4693,8 @@ declare const SessionSchemas: {
|
|
|
4693
4693
|
startedAt: _$zod.ZodNumber;
|
|
4694
4694
|
completedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
4695
4695
|
status: _$zod.ZodEnum<{
|
|
4696
|
-
error: "error";
|
|
4697
4696
|
completed: "completed";
|
|
4697
|
+
error: "error";
|
|
4698
4698
|
active: "active";
|
|
4699
4699
|
}>;
|
|
4700
4700
|
error: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -4897,11 +4897,11 @@ declare const SessionSchemas: {
|
|
|
4897
4897
|
messageId: _$zod.ZodString;
|
|
4898
4898
|
agentId: _$zod.ZodString;
|
|
4899
4899
|
outcome: _$zod.ZodEnum<{
|
|
4900
|
-
error: "error";
|
|
4901
4900
|
completed: "completed";
|
|
4902
4901
|
superseded: "superseded";
|
|
4903
4902
|
merged: "merged";
|
|
4904
4903
|
cancelled: "cancelled";
|
|
4904
|
+
error: "error";
|
|
4905
4905
|
rejected: "rejected";
|
|
4906
4906
|
}>;
|
|
4907
4907
|
supersededBy: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -5118,8 +5118,8 @@ declare const SessionSchemas: {
|
|
|
5118
5118
|
executionTargetId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
5119
5119
|
spawningToolCallId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
5120
5120
|
approvalPolicyOverride: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodEnum<{
|
|
5121
|
-
reject: "reject";
|
|
5122
5121
|
"always-ask": "always-ask";
|
|
5122
|
+
reject: "reject";
|
|
5123
5123
|
"full-access": "full-access";
|
|
5124
5124
|
}>>>;
|
|
5125
5125
|
}, _$zod_v4_core0.$strip>>;
|
|
@@ -5239,8 +5239,8 @@ declare const SessionSchemas: {
|
|
|
5239
5239
|
startedAt: _$zod.ZodNumber;
|
|
5240
5240
|
completedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
5241
5241
|
status: _$zod.ZodEnum<{
|
|
5242
|
-
error: "error";
|
|
5243
5242
|
completed: "completed";
|
|
5243
|
+
error: "error";
|
|
5244
5244
|
active: "active";
|
|
5245
5245
|
}>;
|
|
5246
5246
|
error: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -5443,11 +5443,11 @@ declare const SessionSchemas: {
|
|
|
5443
5443
|
messageId: _$zod.ZodString;
|
|
5444
5444
|
agentId: _$zod.ZodString;
|
|
5445
5445
|
outcome: _$zod.ZodEnum<{
|
|
5446
|
-
error: "error";
|
|
5447
5446
|
completed: "completed";
|
|
5448
5447
|
superseded: "superseded";
|
|
5449
5448
|
merged: "merged";
|
|
5450
5449
|
cancelled: "cancelled";
|
|
5450
|
+
error: "error";
|
|
5451
5451
|
rejected: "rejected";
|
|
5452
5452
|
}>;
|
|
5453
5453
|
supersededBy: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -5647,8 +5647,8 @@ declare const SessionSchemas: {
|
|
|
5647
5647
|
maxTokens: _$zod.ZodNumber;
|
|
5648
5648
|
percentage: _$zod.ZodNumber;
|
|
5649
5649
|
level: _$zod.ZodEnum<{
|
|
5650
|
-
warn: "warn";
|
|
5651
5650
|
critical: "critical";
|
|
5651
|
+
warn: "warn";
|
|
5652
5652
|
ok: "ok";
|
|
5653
5653
|
}>;
|
|
5654
5654
|
lastUpdatedAt: _$zod.ZodNumber;
|
|
@@ -5841,11 +5841,11 @@ declare const SessionSchemas: {
|
|
|
5841
5841
|
messageId: _$zod.ZodString;
|
|
5842
5842
|
agentId: _$zod.ZodString;
|
|
5843
5843
|
outcome: _$zod.ZodEnum<{
|
|
5844
|
-
error: "error";
|
|
5845
5844
|
completed: "completed";
|
|
5846
5845
|
superseded: "superseded";
|
|
5847
5846
|
merged: "merged";
|
|
5848
5847
|
cancelled: "cancelled";
|
|
5848
|
+
error: "error";
|
|
5849
5849
|
rejected: "rejected";
|
|
5850
5850
|
}>;
|
|
5851
5851
|
supersededBy: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -6063,8 +6063,8 @@ declare const SessionSchemas: {
|
|
|
6063
6063
|
executionTargetId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6064
6064
|
spawningToolCallId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6065
6065
|
approvalPolicyOverride: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodEnum<{
|
|
6066
|
-
reject: "reject";
|
|
6067
6066
|
"always-ask": "always-ask";
|
|
6067
|
+
reject: "reject";
|
|
6068
6068
|
"full-access": "full-access";
|
|
6069
6069
|
}>>>;
|
|
6070
6070
|
preview: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
@@ -6184,8 +6184,8 @@ declare const SessionSchemas: {
|
|
|
6184
6184
|
executionTargetId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6185
6185
|
spawningToolCallId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6186
6186
|
approvalPolicyOverride: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodEnum<{
|
|
6187
|
-
reject: "reject";
|
|
6188
6187
|
"always-ask": "always-ask";
|
|
6188
|
+
reject: "reject";
|
|
6189
6189
|
"full-access": "full-access";
|
|
6190
6190
|
}>>>;
|
|
6191
6191
|
preview: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
@@ -6296,8 +6296,8 @@ declare const SessionSchemas: {
|
|
|
6296
6296
|
executionTargetId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6297
6297
|
spawningToolCallId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6298
6298
|
approvalPolicyOverride: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodEnum<{
|
|
6299
|
-
reject: "reject";
|
|
6300
6299
|
"always-ask": "always-ask";
|
|
6300
|
+
reject: "reject";
|
|
6301
6301
|
"full-access": "full-access";
|
|
6302
6302
|
}>>>;
|
|
6303
6303
|
}, _$zod_v4_core0.$strip>>;
|
|
@@ -6386,8 +6386,8 @@ declare const SessionSchemas: {
|
|
|
6386
6386
|
sessionId: _$zod.ZodString;
|
|
6387
6387
|
executionTargetId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
6388
6388
|
approvalPolicyOverride: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodEnum<{
|
|
6389
|
-
reject: "reject";
|
|
6390
6389
|
"always-ask": "always-ask";
|
|
6390
|
+
reject: "reject";
|
|
6391
6391
|
"full-access": "full-access";
|
|
6392
6392
|
}>>>;
|
|
6393
6393
|
title: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -6496,8 +6496,8 @@ declare const SessionSchemas: {
|
|
|
6496
6496
|
executionTargetId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6497
6497
|
spawningToolCallId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6498
6498
|
approvalPolicyOverride: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodEnum<{
|
|
6499
|
-
reject: "reject";
|
|
6500
6499
|
"always-ask": "always-ask";
|
|
6500
|
+
reject: "reject";
|
|
6501
6501
|
"full-access": "full-access";
|
|
6502
6502
|
}>>>;
|
|
6503
6503
|
}, _$zod_v4_core0.$strip>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as PageSurfaceConfig, s as SurfaceId } from "../schemas-
|
|
1
|
+
import { r as PageSurfaceConfig, s as SurfaceId } from "../schemas-BWvuaL0w.mjs";
|
|
2
2
|
import * as _$zod from "zod";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import * as _$_makaio_core0 from "@makaio/framework/core";
|
|
@@ -2308,8 +2308,8 @@ declare const UiSchemas: {
|
|
|
2308
2308
|
*/
|
|
2309
2309
|
ready: z.ZodObject<{
|
|
2310
2310
|
surface: z.ZodEnum<{
|
|
2311
|
-
web: "web";
|
|
2312
2311
|
mobile: "mobile";
|
|
2312
|
+
web: "web";
|
|
2313
2313
|
electron: "electron";
|
|
2314
2314
|
electrobun: "electrobun";
|
|
2315
2315
|
tray: "tray";
|
|
@@ -2408,8 +2408,8 @@ type UiShortcutTriggeredEvent = z.infer<(typeof UiSchemas)['shortcut.triggered']
|
|
|
2408
2408
|
declare const UiNamespace: _$_makaio_core0.BusNamespaceDefinition<"ui", {
|
|
2409
2409
|
ready: _$zod.ZodObject<{
|
|
2410
2410
|
surface: _$zod.ZodEnum<{
|
|
2411
|
-
web: "web";
|
|
2412
2411
|
mobile: "mobile";
|
|
2412
|
+
web: "web";
|
|
2413
2413
|
electron: "electron";
|
|
2414
2414
|
electrobun: "electrobun";
|
|
2415
2415
|
tray: "tray";
|
|
@@ -2449,8 +2449,8 @@ declare const UiNamespace: _$_makaio_core0.BusNamespaceDefinition<"ui", {
|
|
|
2449
2449
|
declare const UiSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjectDefinitions<"ui", {
|
|
2450
2450
|
ready: _$zod.ZodObject<{
|
|
2451
2451
|
surface: _$zod.ZodEnum<{
|
|
2452
|
-
web: "web";
|
|
2453
2452
|
mobile: "mobile";
|
|
2453
|
+
web: "web";
|
|
2454
2454
|
electron: "electron";
|
|
2455
2455
|
electrobun: "electrobun";
|
|
2456
2456
|
tray: "tray";
|
|
@@ -14,8 +14,8 @@ declare const PageNamespace: _$_makaio_core0.BusNamespaceDefinition<"pages", {
|
|
|
14
14
|
readonly list: {
|
|
15
15
|
readonly request: _$zod.ZodObject<{
|
|
16
16
|
surface: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
17
|
-
web: "web";
|
|
18
17
|
mobile: "mobile";
|
|
18
|
+
web: "web";
|
|
19
19
|
electron: "electron";
|
|
20
20
|
electrobun: "electrobun";
|
|
21
21
|
tray: "tray";
|
|
@@ -34,8 +34,8 @@ declare const PageNamespace: _$_makaio_core0.BusNamespaceDefinition<"pages", {
|
|
|
34
34
|
}>;
|
|
35
35
|
level: _$zod.ZodCustom<_$_makaio_contracts0.UiNavigationLevel, _$_makaio_contracts0.UiNavigationLevel>;
|
|
36
36
|
surfaces: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodLiteral<"all">, _$zod.ZodArray<_$zod.ZodEnum<{
|
|
37
|
-
web: "web";
|
|
38
37
|
mobile: "mobile";
|
|
38
|
+
web: "web";
|
|
39
39
|
electron: "electron";
|
|
40
40
|
electrobun: "electrobun";
|
|
41
41
|
tray: "tray";
|
|
@@ -54,8 +54,8 @@ declare const PageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubj
|
|
|
54
54
|
readonly list: {
|
|
55
55
|
readonly request: _$zod.ZodObject<{
|
|
56
56
|
surface: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
57
|
-
web: "web";
|
|
58
57
|
mobile: "mobile";
|
|
58
|
+
web: "web";
|
|
59
59
|
electron: "electron";
|
|
60
60
|
electrobun: "electrobun";
|
|
61
61
|
tray: "tray";
|
|
@@ -74,8 +74,8 @@ declare const PageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubj
|
|
|
74
74
|
}>;
|
|
75
75
|
level: _$zod.ZodCustom<_$_makaio_contracts0.UiNavigationLevel, _$_makaio_contracts0.UiNavigationLevel>;
|
|
76
76
|
surfaces: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodLiteral<"all">, _$zod.ZodArray<_$zod.ZodEnum<{
|
|
77
|
-
web: "web";
|
|
78
77
|
mobile: "mobile";
|
|
78
|
+
web: "web";
|
|
79
79
|
electron: "electron";
|
|
80
80
|
electrobun: "electrobun";
|
|
81
81
|
tray: "tray";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as SurfaceCapabilitySchema, c as SurfaceIdSchema, i as SurfaceCapability, l as isPageVisibleOnSurface, n as PageSchemas, o as SurfaceDeclaration, r as PageSurfaceConfig, s as SurfaceId, t as PageMetadata } from "../../schemas-
|
|
1
|
+
import { a as SurfaceCapabilitySchema, c as SurfaceIdSchema, i as SurfaceCapability, l as isPageVisibleOnSurface, n as PageSchemas, o as SurfaceDeclaration, r as PageSurfaceConfig, s as SurfaceId, t as PageMetadata } from "../../schemas-BWvuaL0w.mjs";
|
|
2
2
|
export { PageMetadata, PageSchemas, PageSurfaceConfig, SurfaceCapability, SurfaceCapabilitySchema, SurfaceDeclaration, SurfaceId, SurfaceIdSchema, isPageVisibleOnSurface };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@makaio/framework",
|
|
3
|
-
"version": "1.0.0-dev-
|
|
3
|
+
"version": "1.0.0-dev-1779051654000",
|
|
4
4
|
"description": "Typed, bus-centric framework for building and orchestrating AI agents with tools, sessions, and events",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -90,6 +90,10 @@
|
|
|
90
90
|
"types": "./dist/contracts/toast/index.d.mts",
|
|
91
91
|
"default": "./dist/contracts/toast/index.mjs"
|
|
92
92
|
},
|
|
93
|
+
"./contracts/timeout": {
|
|
94
|
+
"types": "./dist/contracts/timeout/index.d.mts",
|
|
95
|
+
"default": "./dist/contracts/timeout/index.mjs"
|
|
96
|
+
},
|
|
93
97
|
"./contracts/variant": {
|
|
94
98
|
"types": "./dist/contracts/variant/index.d.mts",
|
|
95
99
|
"default": "./dist/contracts/variant/index.mjs"
|
package/dist/client-Dh4x4GQN.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./schemas-Co_sVhzz.mjs";import{f as t,h as n,i as r,m as i,p as a,r as o}from"./profile-4StaDQW0.mjs";import{n as ee,t as te}from"./version-CjS20oXi.mjs";import{c as ne,d as re,n as ie,o as ae,s as oe,t as s,u as se}from"./account-identity-Ce1Bwrqi.mjs";import{z as c}from"zod";import{createBusNamespace as ce}from"@makaio/framework/core";const l=c.object({tag:c.string(),description:c.string().optional()}),u=c.object({name:c.string(),friendlyName:c.string(),description:c.string().optional(),category:c.string().optional(),capabilities:c.array(l).default([])}),d=c.object({id:c.string(),name:c.string(),description:c.string().optional(),glob:c.string().optional()}),f=c.object({name:c.string().min(1),frameworkSubject:c.string().min(1).optional()}),p=c.object({envVar:i.regex(/^[A-Za-z_][A-Za-z0-9_]*$/,{message:`envVar must be a valid environment variable name (letters, digits, underscores)`}),defaultPath:i.refine(e=>e===`~`||e.startsWith(`~/`)||n(e),{message:`defaultPath must be absolute, '~', or start with '~/'`}),pathKind:c.enum([`directory`,`file`]).default(`directory`)}),m=c.object({type:c.literal(`manifest-bucket`),config:c.object({baseUrl:c.string().url(),versionIndex:c.object({latest:c.string().min(1)}),manifestPath:c.string().min(1),manifestChecksumField:c.string().min(1),binaryPath:c.string().min(1),archiveFormat:c.enum([`raw`,`tar.gz`,`zip`]).optional()})}),h=c.object({type:c.literal(`npm`),package:c.string().min(1)}),g=c.object({type:c.literal(`github-release`),repo:c.string().regex(/^[^/]+\/[^/]+$/,{message:`repo must be in 'owner/repo' format`}),assetPattern:c.record(c.string().min(1),c.string().min(1)),archiveFormat:c.enum([`tar.gz`,`zip`])}),_=c.discriminatedUnion(`type`,[m,h,g]),v=c.object({kind:c.string().min(1),payload:c.record(c.string(),c.unknown()).optional()}),y=c.object({supportsHooks:c.boolean().default(!1),supportsStatusline:c.boolean().default(!1),supportsSupervisorLaunch:c.boolean().default(!1),supportsManagedBinary:c.boolean().default(!1),hookEvents:c.array(f).default([])}).refine(e=>e.supportsHooks||e.hookEvents.length===0,{message:`hookEvents must be empty when supportsHooks is false`,path:[`hookEvents`]}),b=c.object({name:c.string().min(1),supportedVersions:ee}).strict(),x=c.object({id:c.string(),name:c.string(),version:te,description:c.string().optional(),binary:b.optional(),nativeTools:c.array(u).default([]),defaultApprovalPolicy:e,logSources:c.array(d).optional(),defaultProviderId:c.string().optional(),runtimeCapabilities:y.optional().transform(e=>y.parse(e??{})),managedInstall:_.optional(),versionCommand:c.array(c.string().min(1)).min(1).optional(),postInstall:v.optional(),configIsolation:p.optional()}).strict().refine(e=>!e.runtimeCapabilities.supportsManagedBinary||e.managedInstall!==void 0,{message:`managedInstall is required when runtimeCapabilities.supportsManagedBinary is true`,path:[`managedInstall`]}).refine(e=>e.managedInstall===void 0||e.runtimeCapabilities.supportsManagedBinary,{message:`runtimeCapabilities.supportsManagedBinary must be true when managedInstall is provided`,path:[`runtimeCapabilities`,`supportsManagedBinary`]}).refine(e=>e.managedInstall===void 0||e.versionCommand!==void 0,{message:`versionCommand is required when managedInstall is provided`,path:[`versionCommand`]}).superRefine((e,t)=>{if(e.managedInstall===void 0||e.versionCommand===void 0)return;let n=e.versionCommand[0],r=n.startsWith(`/`),i=/^[A-Za-z]:[/\\]/.test(n),a=n.startsWith(`\\`);if(r||i||a){t.addIssue({code:c.ZodIssueCode.custom,path:[`versionCommand`,0],message:`versionCommand[0] must be a relative path within the install directory`});return}n.split(/[/\\]/).some(e=>e===`..`)&&t.addIssue({code:c.ZodIssueCode.custom,path:[`versionCommand`,0],message:`versionCommand[0] must be a relative path within the install directory`})}),S=c.object({binaryPath:t.nullable(),env:c.record(c.string(),c.string()),configDir:t.nullable(),source:c.enum([`managed`,`global`]),version:i.nullable()}),C={request:c.object({clientId:i,sessionId:i.optional(),projectDir:t.optional(),preferSource:c.enum([`managed`,`global`]).optional(),harnessId:i.optional()}),response:S},w=c.enum([`manifest-bucket`,`npm`,`github-release`]),T=c.enum([`fresh`,`cached`,`error`]),E=c.object({version:i,installPath:t,installedAt:a,isActive:c.boolean()}),D=c.object({clientId:i,installedVersions:c.array(E),activeVersion:i.nullable(),latestAvailableVersion:i.nullable(),latestVersionLastCheckedAt:a.nullable(),latestVersionSourceStatus:T,updateAvailable:c.boolean()}),O={request:c.object({forceRefresh:c.boolean().optional()}),response:c.object({clients:c.array(D)})},k={request:c.object({clientId:i,version:i.optional()}),response:c.object({jobId:i,requestedVersion:i.nullable(),resolvedVersion:i.nullable()})},A={request:c.object({clientId:i,version:i}),response:c.object({clientId:i,removedVersion:i,activeVersion:i.nullable()})},j={request:c.object({clientId:i}),response:c.object({jobId:i,resolvedVersion:i.nullable()})},M={request:c.object({clientId:i,version:i}),response:c.object({clientId:i,activeVersion:i})},N=c.enum([`resolving`,`downloading`,`verifying`,`extracting`,`installing`,`post-install`,`activating`]),P=c.object({jobId:i,clientId:i,version:i.optional(),strategy:w,stage:N,progress:c.number().min(0).max(100).nullable(),installPath:t.optional(),activeAfterCompletion:c.boolean().optional(),metadata:c.record(c.string(),c.unknown()).optional()}),F=c.object({message:c.string(),code:c.string().optional()}),I=c.object({jobId:i,clientId:i,version:i.optional(),strategy:w,status:c.enum([`success`,`error`]),installPath:t.optional(),activeVersion:i.nullable(),error:F.optional(),metadata:c.record(c.string(),c.unknown()).optional()}),L=c.object({clientId:i,previousActiveVersion:i.nullable(),activeVersion:i.nullable(),reason:c.enum([`install`,`update`,`set-active`,`uninstall`])}),R=c.enum([`supervisor`,`adapter`,`client-hook`,`statusline`,`cli-wrapper`]),z=c.object({layer:R,producer:i}),B=c.object({supervisorSessionId:i.optional(),pid:c.number().int().positive().optional(),parentPid:c.number().int().positive().optional(),adapterSessionId:i.optional(),sessionId:i.optional(),cwd:c.string().optional(),argv:c.array(c.string()).optional(),metadata:c.record(c.string(),c.unknown()).optional()}),V={request:c.object({clientId:i,source:z,observedAt:a}).merge(B).refine(e=>e.supervisorSessionId!==void 0||e.pid!==void 0||e.adapterSessionId!==void 0,{message:`At least one hard-evidence field is required (supervisorSessionId, pid, or adapterSessionId)`}),response:c.object({clientRuntimeId:i,created:c.boolean(),promoted:c.boolean()})},H=B.extend({clientRuntimeId:i,clientId:i,status:c.enum([`observed`,`started`]),source:z,observedAt:a}),U=c.object({clientId:i,source:i,observedAt:a,sessionId:c.string().optional(),adapterSessionId:c.string().optional(),metadata:c.record(c.string(),c.unknown()).optional()}),W=U.extend({}),G=U.extend({prompt:i.optional()}),K=U.extend({}),q=U.extend({}),J=U.extend({toolName:i.optional(),toolCallId:i.optional()}),Y=U.extend({toolName:i.optional(),toolCallId:i.optional(),success:c.boolean().optional()}),X=c.object({group:i,name:i,installed:c.boolean(),command:i}),Z={"runtime.observe":V,"runtime.started":H,scan:{request:c.object({targets:c.array(oe).optional()}),response:c.object({results:c.array(ae)})},"session.account.observe":ne,"account.observe":ie,"account.activate":{request:c.object({clientId:i,clientAccountId:i,identifiers:c.array(s).min(1),displayLabel:c.string().optional()}),response:c.object({accepted:c.boolean()})},"account.getActive":{request:c.object({clientId:i}),response:c.object({identity:c.object({clientAccountId:i,identifiers:c.array(s).min(1),displayLabel:c.string().optional()}).nullable()})},"usage.ingest":se,"usage.snapshot":re,"session.started":W,"session.userPrompt.submitted":G,"session.turn.started":K,"session.turn.completed":q,"session.tool.pre":J,"session.tool.post":Y,"wiring.list":{request:c.object({clientId:i.optional(),projectDir:t.optional(),makaioCommand:i}),response:c.object({results:c.array(c.object({clientId:i,entries:c.array(X)}))})},list:O,install:k,uninstall:A,update:j,setActive:M,"installJob.progress":P,"installJob.completed":I,"version.changed":L,resolveBinary:C,...o,...r},Q=ce(`client`,Z),le=Q.subjects;function $(e){if(Array.isArray(e)){for(let t of e)$(t);return Object.freeze(e)}if(e&&typeof e==`object`){for(let t of Object.values(e))$(t);return Object.freeze(e)}return e}function ue(e){return $(x.parse(e))}export{T as A,p as B,M as C,F as D,L as E,x as F,h as G,d as H,f as I,v as K,y as L,S as M,C as N,N as O,b as P,l as R,O as S,j as T,_ as U,g as V,m as W,H as _,U as a,P as b,J as c,G as d,X as f,z as g,R as h,Z as i,w as j,E as k,q as l,V as m,Q as n,W as o,B as p,le as r,Y as s,ue as t,K as u,D as v,A as w,k as x,I as y,u as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./definition-DkYy1PZz.mjs";import{n as t,t as n}from"./version-CjS20oXi.mjs";import{z as r}from"zod";const i=r.object({entrypoint:r.string().startsWith(`/`,{message:`Entrypoint must be a URL path starting with "/"`})}),a=r.object({endpoint:r.string().url().optional()}),o=r.union([e,r.object({anthropic:a.optional(),openai:a.optional()}).refine(e=>Object.keys(e).length>0,{message:`ProtocolRef config object must specify at least one protocol`})]),s=r.object({id:r.string().min(1),version:t,binaryVersion:t.optional()}),c=r.object({name:r.string().min(1),displayName:r.string().min(1).optional(),description:r.string().optional(),clients:r.array(s).readonly().optional(),protocols:r.array(o).min(1).readonly(),defaultProvider:r.string().min(1).optional()}),l=r.object({id:r.string().min(1),name:r.string().min(1),description:r.string().optional(),binary:r.object({name:r.string().min(1)}).strict().optional()}).strict(),u=r.object({id:r.string().min(1),name:r.string().min(1),description:r.string().optional()}),d=r.object({prefix:r.string().min(1),description:r.string().optional(),stage:r.enum([`gather`,`transform`,`action`]).optional()}),f=r.object({adapterName:r.string().min(1),displayName:r.string().min(1),logFilePattern:r.string().min(1).optional()}),p=r.object({id:r.string().min(1),label:r.string().min(1),description:r.string().optional(),icon:r.string().min(1).optional(),selectionMode:r.enum([`single`,`multi`]),messageRoles:r.array(r.enum([`user`,`assistant`])).readonly().optional()}),m=r.object({tiles:r.boolean().optional(),widgets:r.boolean().optional(),pages:r.boolean().optional(),routes:r.boolean().optional()}),h={adapters:`adapter`,clients:`client`,providers:`provider`,triggers:`trigger`,logImporters:`log importer`,sessionEventActions:`session event action`};function g(e,t,n){e.addIssue({code:r.ZodIssueCode.custom,path:[t],message:`Duplicate ${h[t]} contribution identifier "${n}"`})}function _(e,t){let n=new Set,r=new Set,i=[];for(let a of e??[]){let e=t(a);if(n.has(e)){r.has(e)||(r.add(e),i.push(e));continue}n.add(e)}return i}const v=r.object({adapters:r.array(c).readonly().optional(),clients:r.array(l).readonly().optional(),providers:r.array(u).readonly().optional(),triggers:r.array(d).readonly().optional(),logImporters:r.array(f).readonly().optional(),sessionEventActions:r.array(p).readonly().optional(),create:r.boolean().optional(),tools:r.boolean().optional(),bootstrap:r.boolean().optional(),namespace:r.boolean().optional(),configSchema:r.boolean().optional(),uiConfig:r.boolean().optional(),ui:m.optional()}).superRefine((e,t)=>{for(let n of _(e.adapters,e=>e.name))g(t,`adapters`,n);for(let n of _(e.clients,e=>e.id))g(t,`clients`,n);for(let n of _(e.providers,e=>e.id))g(t,`providers`,n);for(let n of _(e.triggers,e=>e.prefix))g(t,`triggers`,n);for(let n of _(e.logImporters,e=>e.adapterName))g(t,`logImporters`,n);for(let n of _(e.sessionEventActions,e=>e.id))g(t,`sessionEventActions`,n)}),y=r.string().trim().min(1).transform(e=>e),b=r.object({name:r.string().min(1),required:r.boolean().optional()}),x=r.object({id:r.string(),style:r.enum([`tray-popover`,`utility`,`panel`]),width:r.number().optional(),height:r.number().optional(),singleton:r.boolean().optional(),params:r.array(b).readonly().optional()}).superRefine((e,t)=>{let n=new Set;for(let[i,a]of e.params?.entries()??[]){if(!n.has(a.name)){n.add(a.name);continue}t.addIssue({code:r.ZodIssueCode.custom,message:`Duplicate window param "${a.name}"`,path:[`params`,i,`name`]})}}),S=r.object({label:r.string(),section:r.enum([`utilities`,`tools`,`views`]).optional(),opensWindow:r.string().optional(),action:r.string().optional()}),C=r.object({name:r.string().min(1),description:r.string(),required:r.boolean().optional(),positional:r.boolean().optional(),short:r.string().regex(/^-[A-Za-z0-9]$/,`Expected a short flag like -p`).optional(),type:r.enum([`string`,`boolean`,`number`]).optional()}),w=r.object({name:r.string().min(1),description:r.string(),args:r.array(C).readonly().optional()}),T=r.object({name:r.string().min(1),description:r.string(),subcommands:r.array(w).readonly().optional(),hasInteractive:r.boolean().optional()}),E=r.string().min(1).refine(e=>!/^(?:[\\/]|[A-Za-z]:)/.test(e),`Expected a relative path`).refine(e=>!e.split(/[\\/]/).some(e=>e===``||e===`.`||e===`..`),`Path must not contain empty or dot segments`),D=r.object({migrations:E.optional(),migrationSourceId:r.string().min(1).optional()}),O=r.object({type:r.literal(`extension`),name:r.string().min(1),version:t,optional:r.boolean().optional()});function k(e,t=`>=0.1.0`,n){return n===void 0?{type:`extension`,name:e,version:t}:{type:`extension`,name:e,version:t,optional:n}}const A=r.discriminatedUnion(`type`,[r.object({type:r.literal(`host`),id:r.string().min(1)}),r.object({type:r.literal(`capability`),id:r.string().min(1),version:t.optional()})]),j=r.object({name:r.string().min(1).regex(/^(@[^/\\]+\/)?[^/\\]+$/,`Extension name must be a plain identifier or an npm-scoped name (@scope/pkg)`).refine(e=>(e.startsWith(`@`)?e.split(`/`):[e]).every(e=>e!==`.`&&e!==`..`),`Extension name must not be a dot-segment`),displayName:r.string().min(1),version:n,surface:r.enum([`interactive`,`headless`,`any`]).optional(),dependencies:r.array(O).readonly().optional(),requires:r.array(A).readonly().optional(),provides:r.array(y).readonly().optional(),windows:r.array(x).readonly().optional(),tray:S.optional(),cli:T.optional(),storage:D.optional(),browser:i.optional(),contributions:v.optional()});function M(e){return Object.freeze({name:e})}const N=r.object({command:r.string().min(1),args:r.array(r.string()).optional(),env:r.record(r.string(),r.string()).optional(),healthTimeoutMs:r.number().int().positive().optional(),shutdownTimeoutMs:r.number().int().positive().optional()}),P=r.enum([`none`,`on-crash`,`always`]),F=N.extend({restartPolicy:P.optional()}),I=r.discriminatedUnion(`type`,[F.extend({type:r.literal(`bus-stdio`)}),F.extend({type:r.literal(`bus-websocket`)}),N.extend({type:r.literal(`mcp-stdio`)})]);function L(e){if(e.includes(`\\`)||e.startsWith(`./`)||e.startsWith(`../`)||e.startsWith(`/`))return!1;let t=e.split(`/`),n=t.at(-1);return!n||n.includes(`.`)?!1:t.every(e=>e!==``&&e!==`.`&&e!==`..`&&e!==`src`&&e!==`dist`)}const R=r.union([r.literal(!0),r.string().min(1).refine(L,{message:`entrypoint stem must use forward-slash path stems, must not contain empty, . or .. segments, must not include a dotted final segment, and must not contain src or dist segments`})]),z=r.object({server:R.optional(),browser:R.optional(),cli:R.optional()}).refine(e=>e.server!==void 0||e.browser!==void 0||e.cli!==void 0,{message:`at least one entrypoint must be declared`});function B(e){return e.execution===`detached`}const V=j.extend({version:n,makaio:r.object({framework:t}).strict().readonly(),entrypoints:z.optional(),execution:r.enum([`embedded`,`detached`]).optional(),transport:I.optional(),config:r.object({defaults:r.record(r.string(),r.unknown()).optional()}).optional()}).superRefine((e,t)=>{e.execution===`detached`?(e.transport===void 0&&t.addIssue({code:r.ZodIssueCode.custom,message:`detached extensions must declare a 'transport' config`,path:[`transport`]}),e.entrypoints!==void 0&&t.addIssue({code:r.ZodIssueCode.custom,message:`detached extensions must not declare entrypoints`,path:[`entrypoints`]})):(e.entrypoints===void 0&&t.addIssue({code:r.ZodIssueCode.custom,message:`embedded extensions must declare at least one entrypoint`,path:[`entrypoints`]}),e.transport!==void 0&&t.addIssue({code:r.ZodIssueCode.custom,message:`embedded extensions must not declare a transport config`,path:[`transport`]}))});function H(e){return e}function U(e){return H(V.parse(e))}function W(e){let t=V.safeParse(e);return t.success?{success:!0,data:H(t.data)}:t}const G=r.discriminatedUnion(`kind`,[r.object({kind:r.literal(`configure-integration`),clientId:r.string().min(1),bundle:r.string().min(1)}),r.object({kind:r.literal(`install-extension`),extensionName:r.string().min(1)}),r.object({kind:r.literal(`open-url`),url:r.string().url()}),r.object({kind:r.literal(`run-command`),command:r.string().min(1)})]),K=r.enum([`info`,`recommended`,`degraded`]),q=r.object({severity:K,title:r.string().min(1),message:r.string().min(1),action:G.optional()});function J(e){switch(e.kind){case`configure-integration`:return`Configure`;case`install-extension`:return`Install`;case`open-url`:return`Open`;case`run-command`:return`Run`}}const Y=r.object({extensionName:r.string().min(1),warnings:r.array(q)});function X(e,t){return e.parse(t??{})}function Z(e){return JSON.stringify([e.extensionId,e.type,e.name,e.filename])}export{v as A,x as C,s as D,y as E,p as F,d as I,m as L,a as M,o as N,c as O,u as P,i as R,S,k as T,w as _,q as a,A as b,I as c,B as d,U as f,T as g,C as h,Y as i,f as j,l as k,V as l,M as m,X as n,K as o,W as p,G as r,J as s,Z as t,z as u,O as v,b as w,D as x,j as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{z as e}from"zod";import*as t from"node:path";const n=e.string().trim().min(1),r=e.number().int().finite().nonnegative().describe(`Unix epoch timestamp in milliseconds`);function i(e){return t.posix.isAbsolute(e)||t.win32.isAbsolute(e)}const a=e.string().trim().min(1).refine(i,{message:`Path must be absolute`}),o=e.string().min(1).regex(/^[A-Za-z0-9][A-Za-z0-9._-]*$/,`Profile name must be a safe path component`),s=o,c=e.object({id:n,clientId:n,name:o,description:e.string().nullable(),configDir:a,isDefault:e.boolean(),createdAt:r,updatedAt:r}),l=e.record(e.string(),e.string()),u=e.enum([`auth-only`,`full`,`empty`]),d={"profile.create":{request:e.object({clientId:n,name:o,description:e.string().optional()}),response:e.object({profile:c})},"profile.list":{request:e.object({clientId:n}),response:e.object({profiles:e.array(c)})},"profile.get":{request:e.object({clientId:n,name:o}),response:e.object({profile:c.nullable()})},"profile.update":{request:e.object({clientId:n,name:o,description:e.string().optional()}),response:e.object({profile:c})},"profile.delete":{request:e.object({clientId:n,name:o}),response:e.object({success:e.boolean()})},"profile.setDefault":{request:e.object({clientId:n,name:o}),response:e.object({profile:c})}},f={"sessionConfig.create":{request:e.object({clientId:n,sessionId:s,profileName:o.optional(),baseConfigDir:a.optional(),projectDir:a.optional(),configInheritance:u.optional()}),response:e.object({sessionDir:a,env:l})},"sessionConfig.destroy":{request:e.object({clientId:n,sessionId:s}),response:e.object({success:e.boolean()})},"sessionConfig.cleanup":{request:e.object({clientId:n.optional()}),response:e.object({removed:e.array(a)})}},p=e.object({sessionDir:a,baseConfigDir:a,projectDir:a.optional(),platform:e.enum([`darwin`,`linux`,`win32`]),configInheritance:u}),m=e.object({sessionDir:a,platform:e.enum([`darwin`,`linux`,`win32`])}),h=e.object({success:e.boolean()}),g=e.object({env:e.record(e.string(),e.string()).optional()});export{l as a,p as c,h as d,a as f,i as h,f as i,g as l,n as m,c as n,s as o,r as p,d as r,u as s,o as t,m as u};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
|
|
3
|
-
//#region packages/contracts/src/timeout/schemas.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Categories of timeouts in the adapter lifecycle.
|
|
6
|
-
*/
|
|
7
|
-
type TimeoutCategory = 'initialization' | 'acknowledgement' | 'completion' | 'toolApproval' | 'eventWait';
|
|
8
|
-
/**
|
|
9
|
-
* Complete timeout configuration where all categories are required.
|
|
10
|
-
*/
|
|
11
|
-
type RequiredTimeoutConfig = Record<TimeoutCategory, number>;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { RequiredTimeoutConfig as t };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|