@makaio/framework 1.0.0-dev-1783477169057 → 1.0.0-dev-1783687982716
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/.makaio-build.json +2 -2
- package/dist/adapter-CA8rPIUz.mjs +1 -0
- package/dist/adapters/config/index.d.mts +1 -1
- package/dist/adapters/index.d.mts +142 -168
- package/dist/adapters/index.mjs +6 -6
- package/dist/bus/index.d.mts +22 -22
- package/dist/bus/index.mjs +1 -1
- package/dist/client-DaR4mzqn.mjs +1 -0
- package/dist/contracts/adapter/index.d.mts +1 -1
- package/dist/contracts/adapter/index.mjs +1 -1
- package/dist/contracts/artifact/index.d.mts +1 -1
- package/dist/contracts/canonical-model/index.d.mts +1 -1
- package/dist/contracts/client/index.d.mts +2 -2
- package/dist/contracts/client/index.mjs +1 -1
- package/dist/contracts/extension/index.d.mts +2 -2
- package/dist/contracts/facet/index.d.mts +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/index.d.mts +255 -203
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +3 -3
- package/dist/contracts/session/index.d.mts +3 -3
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/skill/index.d.mts +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/workflow/index.d.mts +3 -3
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/{definition-DePb3ke-.d.mts → definition-s9PIua2B.d.mts} +1 -1
- package/dist/drizzle/0024_external_settlement_fingerprint.sql +1 -0
- package/dist/drizzle/0025_external_registration_frame.sql +1 -0
- package/dist/drizzle/meta/_journal.json +14 -0
- package/dist/{index-Dv4oGVZK.d.mts → index-B4ZddkPI.d.mts} +413 -336
- package/dist/{index-BX1MxwFr.d.mts → index-B9d_8_V2.d.mts} +21 -21
- package/dist/{index-BeouVICp.d.mts → index-BUrNl0QJ.d.mts} +4 -4
- package/dist/{index-2fK9iSHI.d.mts → index-BWIkf5oJ.d.mts} +6 -6
- package/dist/{index-Bl42SCEI.d.mts → index-Bc82MC0z.d.mts} +4 -4
- package/dist/{index-CQQcnpev.d.mts → index-CAhKyxfm.d.mts} +437 -57
- package/dist/{index-B3fjN5HX.d.mts → index-CmHdpW0E.d.mts} +7 -7
- package/dist/{index-CA-AJbq6.d.mts → index-D4gn93gL.d.mts} +16 -16
- package/dist/{index-B-6DtLLz.d.mts → index-D7rWAEY0.d.mts} +1 -1
- package/dist/{index-j_X5xefv2.d.mts → index-D94cDExW2.d.mts} +11 -11
- package/dist/{index-DScUb-hF.d.mts → index-DLDQDXhD.d.mts} +2 -2
- package/dist/{index-uM4KZopE.d.mts → index-DNfNwGu6.d.mts} +8 -8
- package/dist/{index-BMbmoarE.d.mts → index-DTBQOCar.d.mts} +16 -16
- package/dist/{index-CwFSL4xI.d.mts → index-DTkGyKKA.d.mts} +180 -21
- package/dist/{index-BjO4Zkap.d.mts → index-DsLpP5ek.d.mts} +1 -1
- package/dist/{index-DMz-2ACU.d.mts → index-WHUV7neB.d.mts} +105 -105
- package/dist/{index-BcwOnvUh.d.mts → index-mU2lnU7O.d.mts} +6 -6
- package/dist/{index-C_xQM96Y.d.mts → index-oePgeOph.d.mts} +473 -389
- package/dist/kernel/extension/index.d.mts +1 -1
- package/dist/kernel/index.d.mts +2 -2
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/loop-gate-handlers-o2B5FPdF.mjs +1 -0
- package/dist/{namespace-TPbegIMi.d.mts → namespace-B9V9R3AY.d.mts} +25 -25
- package/dist/{namespace-Boh42UoL.d.mts → namespace-BGIeqwfU.d.mts} +24 -0
- package/dist/{namespace-COEUMuHL.d.mts → namespace-BLER-Qom.d.mts} +154 -154
- package/dist/{namespace-OLAh9wHU.d.mts → namespace-Dm454cNM.d.mts} +9 -9
- package/dist/{namespace-D94HrTtq.d.mts → namespace-d_0I6P7N.d.mts} +6 -6
- package/dist/node/transports/index.d.mts +25 -3
- package/dist/node/transports/index.mjs +1 -1
- package/dist/package-Co_GO3UD.mjs +7 -0
- package/dist/{package-B6mEMD8r.d.mts → package-DmVZxufT.d.mts} +1 -1
- package/dist/package.json +1 -1
- package/dist/{schemas-CDBn9MTz.d.mts → schemas-B_t6oOK-.d.mts} +154 -154
- package/dist/{schemas-D512XweP.d.mts → schemas-CJ2JvA7d.d.mts} +3 -3
- package/dist/{schemas-DOV4UouN2.d.mts → schemas-CNUk34qC2.d.mts} +2 -2
- package/dist/schemas-CVo8qAK-.mjs +1 -0
- package/dist/services/adapter-subsystem/index.d.mts +2 -2
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/index.d.mts +2 -2
- package/dist/services/agent-runtime/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/schemas.d.mts +1 -1
- package/dist/services/context-rules/index.d.mts +3 -3
- package/dist/services/execution-target/index.d.mts +1 -1
- package/dist/services/harness/index.d.mts +3 -3
- package/dist/services/index.d.mts +94 -94
- package/dist/services/index.mjs +1 -1
- package/dist/services/log-import/browser.d.mts +2 -2
- package/dist/services/log-import/index.d.mts +2 -2
- package/dist/services/log-import/log-import.d.mts +1 -1
- package/dist/services/log-import/namespace.d.mts +2 -2
- package/dist/services/log-import/schemas.d.mts +1 -1
- package/dist/services/session/index.d.mts +4 -4
- package/dist/services/session/index.mjs +1 -1
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/session/session-events/namespace.d.mts +1 -1
- package/dist/services/session/storage/namespace.d.mts +1 -1
- package/dist/services/session/testing/index.mjs +1 -1
- package/dist/services/session-editor/index.d.mts +1 -1
- package/dist/services/settings/namespace.d.mts +2 -2
- package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
- package/dist/services/subagent-template/index.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/services/tool-approval/index.mjs +1 -1
- package/dist/services/tools/index.mjs +1 -1
- package/dist/session-CX6QDhi2.mjs +76 -0
- package/dist/session-DBfQkgdy.mjs +1 -0
- package/dist/{tool-approval-service-BNXgr-az.mjs → tool-approval-service-DEiMKTv9.mjs} +1 -1
- package/dist/{tools-BaO4GYj0.mjs → tools-CGFZkB7F.mjs} +1 -1
- package/dist/{transition-Bbjlwv5K.d.mts → transition-OzGXyy3p.d.mts} +1 -1
- package/dist/{types-D7W0ntGr.d.mts → types-1a2D10yb.d.mts} +28 -3
- package/dist/{types-BNW5n6qm.d.mts → types-BMS6yfLS.d.mts} +1 -1
- package/dist/{types-jruUn6oW.d.mts → types-BSilhlYE.d.mts} +260 -246
- package/dist/{types-CNkx2awa.d.mts → types-BWduCvRU.d.mts} +1 -1
- package/dist/workflow-C3dgVwTY.mjs +1 -0
- package/dist/workflow-engine/index.d.mts +295 -27
- package/dist/workflow-engine/index.mjs +1 -1
- package/dist/workflow-engine/package.d.mts +1 -1
- package/dist/workflow-engine/package.mjs +1 -1
- package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
- package/package.json +1 -1
- package/dist/adapter-Lx6K7yQS.mjs +0 -1
- package/dist/client-l1Rq5p6X.mjs +0 -1
- package/dist/loop-gate-handlers-Bjmat-K3.mjs +0 -1
- package/dist/package-BQn_RTo7.mjs +0 -1
- package/dist/schemas-CkOigLAT.mjs +0 -1
- package/dist/session-CoGaTin6.mjs +0 -69
- package/dist/session-Dp7z5N1d.mjs +0 -1
- package/dist/workflow-C1z7I5CI.mjs +0 -1
|
@@ -88,9 +88,9 @@ declare const ClientSchemas: {
|
|
|
88
88
|
baseConfigDir: z.ZodOptional<z.ZodString>;
|
|
89
89
|
projectDir: z.ZodOptional<z.ZodString>;
|
|
90
90
|
configInheritance: z.ZodOptional<z.ZodEnum<{
|
|
91
|
+
empty: "empty";
|
|
91
92
|
"auth-only": "auth-only";
|
|
92
93
|
full: "full";
|
|
93
|
-
empty: "empty";
|
|
94
94
|
}>>;
|
|
95
95
|
}, z.core.$strip>;
|
|
96
96
|
response: z.ZodObject<{
|
|
@@ -458,6 +458,40 @@ declare const ClientSchemas: {
|
|
|
458
458
|
}, z.core.$strip>;
|
|
459
459
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
460
460
|
}, z.core.$strip>;
|
|
461
|
+
'session.usage.snapshot': z.ZodObject<{
|
|
462
|
+
clientId: z.ZodString;
|
|
463
|
+
clientAccountId: z.ZodOptional<z.ZodString>;
|
|
464
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
465
|
+
adapterSessionId: z.ZodOptional<z.ZodString>;
|
|
466
|
+
source: z.ZodString;
|
|
467
|
+
observedAt: z.ZodNumber;
|
|
468
|
+
clientVersion: z.ZodOptional<z.ZodString>;
|
|
469
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
470
|
+
modelDisplayName: z.ZodOptional<z.ZodString>;
|
|
471
|
+
modelFamily: z.ZodOptional<z.ZodString>;
|
|
472
|
+
latestRequestInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
473
|
+
latestRequestOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
474
|
+
latestRequestCacheReadTokens: z.ZodOptional<z.ZodNumber>;
|
|
475
|
+
latestRequestCacheWriteTokens: z.ZodOptional<z.ZodNumber>;
|
|
476
|
+
currentContextInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
477
|
+
currentContextOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
478
|
+
contextWindowSizeTokens: z.ZodOptional<z.ZodNumber>;
|
|
479
|
+
contextUsedPercentage: z.ZodOptional<z.ZodNumber>;
|
|
480
|
+
contextRemainingPercentage: z.ZodOptional<z.ZodNumber>;
|
|
481
|
+
contextThresholdExceeded: z.ZodOptional<z.ZodBoolean>;
|
|
482
|
+
totalCost: z.ZodOptional<z.ZodNumber>;
|
|
483
|
+
costCurrency: z.ZodOptional<z.ZodString>;
|
|
484
|
+
costProvenance: z.ZodOptional<z.ZodEnum<{
|
|
485
|
+
"provider-reported": "provider-reported";
|
|
486
|
+
"client-reported": "client-reported";
|
|
487
|
+
estimated: "estimated";
|
|
488
|
+
}>>;
|
|
489
|
+
totalDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
490
|
+
totalApiDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
491
|
+
totalLinesAdded: z.ZodOptional<z.ZodNumber>;
|
|
492
|
+
totalLinesRemoved: z.ZodOptional<z.ZodNumber>;
|
|
493
|
+
totalEdits: z.ZodOptional<z.ZodNumber>;
|
|
494
|
+
}, z.core.$strict>;
|
|
461
495
|
'session.started': z.ZodObject<{
|
|
462
496
|
clientId: z.ZodString;
|
|
463
497
|
source: z.ZodString;
|
|
@@ -472,8 +506,8 @@ declare const ClientSchemas: {
|
|
|
472
506
|
fork: "fork";
|
|
473
507
|
fresh: "fresh";
|
|
474
508
|
resume: "resume";
|
|
475
|
-
clear: "clear";
|
|
476
509
|
compact: "compact";
|
|
510
|
+
clear: "clear";
|
|
477
511
|
}>>;
|
|
478
512
|
parentAdapterSessionId: z.ZodOptional<z.ZodString>;
|
|
479
513
|
}, z.core.$strip>;
|
|
@@ -611,8 +645,8 @@ declare const ClientSchemas: {
|
|
|
611
645
|
"signed-binary-bucket": "signed-binary-bucket";
|
|
612
646
|
}>;
|
|
613
647
|
stage: z.ZodEnum<{
|
|
614
|
-
resolving: "resolving";
|
|
615
648
|
downloading: "downloading";
|
|
649
|
+
resolving: "resolving";
|
|
616
650
|
verifying: "verifying";
|
|
617
651
|
extracting: "extracting";
|
|
618
652
|
installing: "installing";
|
|
@@ -651,8 +685,8 @@ declare const ClientSchemas: {
|
|
|
651
685
|
reason: z.ZodEnum<{
|
|
652
686
|
update: "update";
|
|
653
687
|
install: "install";
|
|
654
|
-
uninstall: "uninstall";
|
|
655
688
|
"set-active": "set-active";
|
|
689
|
+
uninstall: "uninstall";
|
|
656
690
|
}>;
|
|
657
691
|
}, z.core.$strip>;
|
|
658
692
|
resolveBinary: {
|
|
@@ -909,6 +943,63 @@ declare const ClientUsageIngestSchema: {
|
|
|
909
943
|
type ClientUsageIngestRequest = z.infer<typeof ClientUsageIngestSchema.request>;
|
|
910
944
|
type ClientUsageIngestResponse = z.infer<typeof ClientUsageIngestSchema.response>;
|
|
911
945
|
//#endregion
|
|
946
|
+
//#region core/contracts/src/client/session-usage.d.ts
|
|
947
|
+
/** Provenance of a monetary amount reported in a client session snapshot. */
|
|
948
|
+
declare const ClientSessionUsageCostProvenanceSchema: z.ZodEnum<{
|
|
949
|
+
"provider-reported": "provider-reported";
|
|
950
|
+
"client-reported": "client-reported";
|
|
951
|
+
estimated: "estimated";
|
|
952
|
+
}>;
|
|
953
|
+
/** Provenance of a monetary amount reported in a client session snapshot. */
|
|
954
|
+
type ClientSessionUsageCostProvenance = z.infer<typeof ClientSessionUsageCostProvenanceSchema>;
|
|
955
|
+
/**
|
|
956
|
+
* Snapshot of usage measurements for one interactive client session.
|
|
957
|
+
*
|
|
958
|
+
* Field names encode gauge/counter semantics explicitly:
|
|
959
|
+
* - `latestRequest*` is the most recent API-call usage.
|
|
960
|
+
* - `currentContext*` is the current context-window gauge.
|
|
961
|
+
* - `total*` is cumulative for the native client session.
|
|
962
|
+
*
|
|
963
|
+
* The contract contains no prompts, responses, transcripts, tool arguments,
|
|
964
|
+
* filesystem paths, or open metadata bags.
|
|
965
|
+
*/
|
|
966
|
+
declare const ClientSessionUsageSnapshotSchema: z.ZodObject<{
|
|
967
|
+
clientId: z.ZodString;
|
|
968
|
+
clientAccountId: z.ZodOptional<z.ZodString>;
|
|
969
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
970
|
+
adapterSessionId: z.ZodOptional<z.ZodString>;
|
|
971
|
+
source: z.ZodString;
|
|
972
|
+
observedAt: z.ZodNumber;
|
|
973
|
+
clientVersion: z.ZodOptional<z.ZodString>;
|
|
974
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
975
|
+
modelDisplayName: z.ZodOptional<z.ZodString>;
|
|
976
|
+
modelFamily: z.ZodOptional<z.ZodString>;
|
|
977
|
+
latestRequestInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
978
|
+
latestRequestOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
979
|
+
latestRequestCacheReadTokens: z.ZodOptional<z.ZodNumber>;
|
|
980
|
+
latestRequestCacheWriteTokens: z.ZodOptional<z.ZodNumber>;
|
|
981
|
+
currentContextInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
982
|
+
currentContextOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
983
|
+
contextWindowSizeTokens: z.ZodOptional<z.ZodNumber>;
|
|
984
|
+
contextUsedPercentage: z.ZodOptional<z.ZodNumber>;
|
|
985
|
+
contextRemainingPercentage: z.ZodOptional<z.ZodNumber>;
|
|
986
|
+
contextThresholdExceeded: z.ZodOptional<z.ZodBoolean>;
|
|
987
|
+
totalCost: z.ZodOptional<z.ZodNumber>;
|
|
988
|
+
costCurrency: z.ZodOptional<z.ZodString>;
|
|
989
|
+
costProvenance: z.ZodOptional<z.ZodEnum<{
|
|
990
|
+
"provider-reported": "provider-reported";
|
|
991
|
+
"client-reported": "client-reported";
|
|
992
|
+
estimated: "estimated";
|
|
993
|
+
}>>;
|
|
994
|
+
totalDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
995
|
+
totalApiDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
996
|
+
totalLinesAdded: z.ZodOptional<z.ZodNumber>;
|
|
997
|
+
totalLinesRemoved: z.ZodOptional<z.ZodNumber>;
|
|
998
|
+
totalEdits: z.ZodOptional<z.ZodNumber>;
|
|
999
|
+
}, z.core.$strict>;
|
|
1000
|
+
/** Snapshot of usage measurements for one interactive client session. */
|
|
1001
|
+
type ClientSessionUsageSnapshot = z.infer<typeof ClientSessionUsageSnapshotSchema>;
|
|
1002
|
+
//#endregion
|
|
912
1003
|
//#region core/contracts/src/client/binary-management.d.ts
|
|
913
1004
|
/**
|
|
914
1005
|
* Install strategies that Makaio supports for managed client binaries.
|
|
@@ -1064,8 +1155,8 @@ type ClientSetActiveResponse = z.infer<typeof ClientSetActiveSchema.response>;
|
|
|
1064
1155
|
* - `'activating'` — marking the installed version as active.
|
|
1065
1156
|
*/
|
|
1066
1157
|
declare const InstallStageSchema: z.ZodEnum<{
|
|
1067
|
-
resolving: "resolving";
|
|
1068
1158
|
downloading: "downloading";
|
|
1159
|
+
resolving: "resolving";
|
|
1069
1160
|
verifying: "verifying";
|
|
1070
1161
|
extracting: "extracting";
|
|
1071
1162
|
installing: "installing";
|
|
@@ -1088,8 +1179,8 @@ declare const ClientInstallProgressSchema: z.ZodObject<{
|
|
|
1088
1179
|
"signed-binary-bucket": "signed-binary-bucket";
|
|
1089
1180
|
}>;
|
|
1090
1181
|
stage: z.ZodEnum<{
|
|
1091
|
-
resolving: "resolving";
|
|
1092
1182
|
downloading: "downloading";
|
|
1183
|
+
resolving: "resolving";
|
|
1093
1184
|
verifying: "verifying";
|
|
1094
1185
|
extracting: "extracting";
|
|
1095
1186
|
installing: "installing";
|
|
@@ -1151,8 +1242,8 @@ declare const ClientVersionChangedSchema: z.ZodObject<{
|
|
|
1151
1242
|
reason: z.ZodEnum<{
|
|
1152
1243
|
update: "update";
|
|
1153
1244
|
install: "install";
|
|
1154
|
-
uninstall: "uninstall";
|
|
1155
1245
|
"set-active": "set-active";
|
|
1246
|
+
uninstall: "uninstall";
|
|
1156
1247
|
}>;
|
|
1157
1248
|
}, z.core.$strip>;
|
|
1158
1249
|
type ClientVersionChanged = z.infer<typeof ClientVersionChangedSchema>;
|
|
@@ -1394,8 +1485,8 @@ declare const ClientSessionStartModeSchema: z.ZodEnum<{
|
|
|
1394
1485
|
fork: "fork";
|
|
1395
1486
|
fresh: "fresh";
|
|
1396
1487
|
resume: "resume";
|
|
1397
|
-
clear: "clear";
|
|
1398
1488
|
compact: "compact";
|
|
1489
|
+
clear: "clear";
|
|
1399
1490
|
}>;
|
|
1400
1491
|
/** Client-reported session start mode discriminator. */
|
|
1401
1492
|
type ClientSessionStartMode = z.infer<typeof ClientSessionStartModeSchema>;
|
|
@@ -1413,8 +1504,8 @@ declare const ClientSessionStartedSchema: z.ZodObject<{
|
|
|
1413
1504
|
fork: "fork";
|
|
1414
1505
|
fresh: "fresh";
|
|
1415
1506
|
resume: "resume";
|
|
1416
|
-
clear: "clear";
|
|
1417
1507
|
compact: "compact";
|
|
1508
|
+
clear: "clear";
|
|
1418
1509
|
}>>;
|
|
1419
1510
|
parentAdapterSessionId: z.ZodOptional<z.ZodString>;
|
|
1420
1511
|
}, z.core.$strip>;
|
|
@@ -1579,9 +1670,9 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
|
|
|
1579
1670
|
baseConfigDir: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1580
1671
|
projectDir: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1581
1672
|
configInheritance: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
1673
|
+
empty: "empty";
|
|
1582
1674
|
"auth-only": "auth-only";
|
|
1583
1675
|
full: "full";
|
|
1584
|
-
empty: "empty";
|
|
1585
1676
|
}>>;
|
|
1586
1677
|
}, _$zod_v4_core0.$strip>;
|
|
1587
1678
|
response: _$zod.ZodObject<{
|
|
@@ -1933,6 +2024,40 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
|
|
|
1933
2024
|
}, _$zod_v4_core0.$strip>;
|
|
1934
2025
|
metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
1935
2026
|
}, _$zod_v4_core0.$strip>;
|
|
2027
|
+
'session.usage.snapshot': _$zod.ZodObject<{
|
|
2028
|
+
clientId: _$zod.ZodString;
|
|
2029
|
+
clientAccountId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2030
|
+
sessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2031
|
+
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2032
|
+
source: _$zod.ZodString;
|
|
2033
|
+
observedAt: _$zod.ZodNumber;
|
|
2034
|
+
clientVersion: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2035
|
+
modelId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2036
|
+
modelDisplayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2037
|
+
modelFamily: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2038
|
+
latestRequestInputTokens: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2039
|
+
latestRequestOutputTokens: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2040
|
+
latestRequestCacheReadTokens: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2041
|
+
latestRequestCacheWriteTokens: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2042
|
+
currentContextInputTokens: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2043
|
+
currentContextOutputTokens: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2044
|
+
contextWindowSizeTokens: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2045
|
+
contextUsedPercentage: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2046
|
+
contextRemainingPercentage: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2047
|
+
contextThresholdExceeded: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
2048
|
+
totalCost: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2049
|
+
costCurrency: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2050
|
+
costProvenance: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2051
|
+
"provider-reported": "provider-reported";
|
|
2052
|
+
"client-reported": "client-reported";
|
|
2053
|
+
estimated: "estimated";
|
|
2054
|
+
}>>;
|
|
2055
|
+
totalDurationMs: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2056
|
+
totalApiDurationMs: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2057
|
+
totalLinesAdded: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2058
|
+
totalLinesRemoved: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2059
|
+
totalEdits: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2060
|
+
}, _$zod_v4_core0.$strict>;
|
|
1936
2061
|
'session.started': _$zod.ZodObject<{
|
|
1937
2062
|
clientId: _$zod.ZodString;
|
|
1938
2063
|
source: _$zod.ZodString;
|
|
@@ -1947,8 +2072,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
|
|
|
1947
2072
|
fork: "fork";
|
|
1948
2073
|
fresh: "fresh";
|
|
1949
2074
|
resume: "resume";
|
|
1950
|
-
clear: "clear";
|
|
1951
2075
|
compact: "compact";
|
|
2076
|
+
clear: "clear";
|
|
1952
2077
|
}>>;
|
|
1953
2078
|
parentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1954
2079
|
}, _$zod_v4_core0.$strip>;
|
|
@@ -2086,8 +2211,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
|
|
|
2086
2211
|
"signed-binary-bucket": "signed-binary-bucket";
|
|
2087
2212
|
}>;
|
|
2088
2213
|
stage: _$zod.ZodEnum<{
|
|
2089
|
-
resolving: "resolving";
|
|
2090
2214
|
downloading: "downloading";
|
|
2215
|
+
resolving: "resolving";
|
|
2091
2216
|
verifying: "verifying";
|
|
2092
2217
|
extracting: "extracting";
|
|
2093
2218
|
installing: "installing";
|
|
@@ -2126,8 +2251,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
|
|
|
2126
2251
|
reason: _$zod.ZodEnum<{
|
|
2127
2252
|
update: "update";
|
|
2128
2253
|
install: "install";
|
|
2129
|
-
uninstall: "uninstall";
|
|
2130
2254
|
"set-active": "set-active";
|
|
2255
|
+
uninstall: "uninstall";
|
|
2131
2256
|
}>;
|
|
2132
2257
|
}, _$zod_v4_core0.$strip>;
|
|
2133
2258
|
resolveBinary: {
|
|
@@ -2182,9 +2307,9 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
2182
2307
|
baseConfigDir: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2183
2308
|
projectDir: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2184
2309
|
configInheritance: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2310
|
+
empty: "empty";
|
|
2185
2311
|
"auth-only": "auth-only";
|
|
2186
2312
|
full: "full";
|
|
2187
|
-
empty: "empty";
|
|
2188
2313
|
}>>;
|
|
2189
2314
|
}, _$zod_v4_core0.$strip>;
|
|
2190
2315
|
response: _$zod.ZodObject<{
|
|
@@ -2536,6 +2661,40 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
2536
2661
|
}, _$zod_v4_core0.$strip>;
|
|
2537
2662
|
metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
2538
2663
|
}, _$zod_v4_core0.$strip>;
|
|
2664
|
+
'session.usage.snapshot': _$zod.ZodObject<{
|
|
2665
|
+
clientId: _$zod.ZodString;
|
|
2666
|
+
clientAccountId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2667
|
+
sessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2668
|
+
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2669
|
+
source: _$zod.ZodString;
|
|
2670
|
+
observedAt: _$zod.ZodNumber;
|
|
2671
|
+
clientVersion: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2672
|
+
modelId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2673
|
+
modelDisplayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2674
|
+
modelFamily: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2675
|
+
latestRequestInputTokens: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2676
|
+
latestRequestOutputTokens: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2677
|
+
latestRequestCacheReadTokens: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2678
|
+
latestRequestCacheWriteTokens: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2679
|
+
currentContextInputTokens: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2680
|
+
currentContextOutputTokens: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2681
|
+
contextWindowSizeTokens: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2682
|
+
contextUsedPercentage: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2683
|
+
contextRemainingPercentage: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2684
|
+
contextThresholdExceeded: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
2685
|
+
totalCost: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2686
|
+
costCurrency: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2687
|
+
costProvenance: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2688
|
+
"provider-reported": "provider-reported";
|
|
2689
|
+
"client-reported": "client-reported";
|
|
2690
|
+
estimated: "estimated";
|
|
2691
|
+
}>>;
|
|
2692
|
+
totalDurationMs: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2693
|
+
totalApiDurationMs: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2694
|
+
totalLinesAdded: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2695
|
+
totalLinesRemoved: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2696
|
+
totalEdits: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2697
|
+
}, _$zod_v4_core0.$strict>;
|
|
2539
2698
|
'session.started': _$zod.ZodObject<{
|
|
2540
2699
|
clientId: _$zod.ZodString;
|
|
2541
2700
|
source: _$zod.ZodString;
|
|
@@ -2550,8 +2709,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
2550
2709
|
fork: "fork";
|
|
2551
2710
|
fresh: "fresh";
|
|
2552
2711
|
resume: "resume";
|
|
2553
|
-
clear: "clear";
|
|
2554
2712
|
compact: "compact";
|
|
2713
|
+
clear: "clear";
|
|
2555
2714
|
}>>;
|
|
2556
2715
|
parentAdapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2557
2716
|
}, _$zod_v4_core0.$strip>;
|
|
@@ -2689,8 +2848,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
2689
2848
|
"signed-binary-bucket": "signed-binary-bucket";
|
|
2690
2849
|
}>;
|
|
2691
2850
|
stage: _$zod.ZodEnum<{
|
|
2692
|
-
resolving: "resolving";
|
|
2693
2851
|
downloading: "downloading";
|
|
2852
|
+
resolving: "resolving";
|
|
2694
2853
|
verifying: "verifying";
|
|
2695
2854
|
extracting: "extracting";
|
|
2696
2855
|
installing: "installing";
|
|
@@ -2729,8 +2888,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
2729
2888
|
reason: _$zod.ZodEnum<{
|
|
2730
2889
|
update: "update";
|
|
2731
2890
|
install: "install";
|
|
2732
|
-
uninstall: "uninstall";
|
|
2733
2891
|
"set-active": "set-active";
|
|
2892
|
+
uninstall: "uninstall";
|
|
2734
2893
|
}>;
|
|
2735
2894
|
}, _$zod_v4_core0.$strip>;
|
|
2736
2895
|
resolveBinary: {
|
|
@@ -2809,9 +2968,9 @@ declare const SessionConfigEnvSchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
|
2809
2968
|
* Policy for materializing a session config directory from a base client config.
|
|
2810
2969
|
*/
|
|
2811
2970
|
declare const SessionConfigInheritanceSchema: z.ZodEnum<{
|
|
2971
|
+
empty: "empty";
|
|
2812
2972
|
"auth-only": "auth-only";
|
|
2813
2973
|
full: "full";
|
|
2814
|
-
empty: "empty";
|
|
2815
2974
|
}>;
|
|
2816
2975
|
type SessionConfigInheritance = z.infer<typeof SessionConfigInheritanceSchema>;
|
|
2817
2976
|
/**
|
|
@@ -2966,9 +3125,9 @@ declare const ClientSessionConfigSchemas: {
|
|
|
2966
3125
|
baseConfigDir: z.ZodOptional<z.ZodString>;
|
|
2967
3126
|
projectDir: z.ZodOptional<z.ZodString>;
|
|
2968
3127
|
configInheritance: z.ZodOptional<z.ZodEnum<{
|
|
3128
|
+
empty: "empty";
|
|
2969
3129
|
"auth-only": "auth-only";
|
|
2970
3130
|
full: "full";
|
|
2971
|
-
empty: "empty";
|
|
2972
3131
|
}>>;
|
|
2973
3132
|
}, z.core.$strip>;
|
|
2974
3133
|
response: z.ZodObject<{
|
|
@@ -3021,9 +3180,9 @@ declare const SessionConfigSetupRequestSchema: z.ZodObject<{
|
|
|
3021
3180
|
win32: "win32";
|
|
3022
3181
|
}>;
|
|
3023
3182
|
configInheritance: z.ZodEnum<{
|
|
3183
|
+
empty: "empty";
|
|
3024
3184
|
"auth-only": "auth-only";
|
|
3025
3185
|
full: "full";
|
|
3026
|
-
empty: "empty";
|
|
3027
3186
|
}>;
|
|
3028
3187
|
}, z.core.$strip>;
|
|
3029
3188
|
type SessionConfigSetupRequest = z.infer<typeof SessionConfigSetupRequestSchema>;
|
|
@@ -3130,4 +3289,4 @@ type SessionConfigDestroyResponse = z.infer<(typeof ClientSessionConfigSchemas)[
|
|
|
3130
3289
|
type SessionConfigCleanupRequest = z.infer<(typeof ClientSessionConfigSchemas)['sessionConfig.cleanup']['request']>;
|
|
3131
3290
|
type SessionConfigCleanupResponse = z.infer<(typeof ClientSessionConfigSchemas)['sessionConfig.cleanup']['response']>;
|
|
3132
3291
|
//#endregion
|
|
3133
|
-
export { ClientSessionToolPre as $, ManagedInstallStrategySchema as $t, SessionConfigIdSchema as A,
|
|
3292
|
+
export { ClientSessionToolPre as $, ManagedInstallStrategySchema as $t, SessionConfigIdSchema as A, ClientUsageWindows as An, ClientInstallResponse as At, SessionConfigTeardownResponseSchema as B, ClientUninstallSchema as Bt, SessionConfigCleanupRequest as C, ClientUsageIngestRequest as Cn, ClientBinaryListEntry as Ct, SessionConfigDestroyRequest as D, ClientUsageSnapshotSchema as Dn, ClientInstallProgress as Dt, SessionConfigCreateResponse as E, ClientUsageSnapshot as En, ClientInstallCompletedSchema as Et, SessionConfigSetupResponse as F, ClientResolveBinaryRequest as Fn, ClientSetActiveRequest as Ft, ClientSessionObservedBase as G, ClientVersionChangedSchema as Gt, ClientNamespace as H, ClientUpdateResponse as Ht, SessionConfigSetupResponseSchema as I, ClientResolveBinaryResponse as In, ClientSetActiveResponse as It, ClientSessionStartModeSchema as J, InstallStage as Jt, ClientSessionObservedBaseSchema as K, InstallError as Kt, SessionConfigTeardownRequest as L, ClientResolveBinarySchema as Ln, ClientSetActiveSchema as Lt, SessionConfigInheritanceSchema as M, ClientSchemas as Mn, ClientListRequest as Mt, SessionConfigSetupRequest as N, ClientExecutionContext as Nn, ClientListResponse as Nt, SessionConfigDestroyResponse as O, ClientUsageWindow as On, ClientInstallProgressSchema as Ot, SessionConfigSetupRequestSchema as P, ClientExecutionContextSchema as Pn, ClientListSchema as Pt, ClientSessionToolPostSchema as Q, ManagedInstallStrategy as Qt, SessionConfigTeardownRequestSchema as R, ClientUninstallRequest as Rt, ProfileUpdateResponse as S, ClientSessionLocatorSchema as Sn, ClientRuntimeStartedSchema as St, SessionConfigCreateRequest as T, ClientUsageIngestSchema as Tn, ClientInstallCompleted as Tt, ClientSubjects as U, ClientUpdateSchema as Ut, createClientDefinition as V, ClientUpdateRequest as Vt, CLIENT_SESSION_START_MODES as W, ClientVersionChanged as Wt, ClientSessionStartedSchema as X, InstalledVersionEntry as Xt, ClientSessionStarted as Y, InstallStageSchema as Yt, ClientSessionToolPost as Z, InstalledVersionEntrySchema as Zt, ProfileListRequest as _, ClientScanTargetSchema as _n, ClientRuntimeSource as _t, ClientConfigPrimeSchema as a, ClientAccountIdentifierSchema as an, ClientSessionUserPromptSubmitted as at, ProfileSetDefaultResponse as b, ClientSessionAccountObserveSchema as bn, ClientRuntimeSourceSchema as bt, ClientProfileSchema as c, ClientAccountObserveSchema as cn, ClientWiringEntrySchema as ct, ProfileCreateRequest as d, ClientIdentityObservation as dn, ClientRuntimeIsAdapterManagedRequest as dt, ClientSessionUsageCostProvenance as en, ClientSessionToolPreSchema as et, ProfileCreateResponse as f, ClientIdentityObservationSchema as fn, ClientRuntimeIsAdapterManagedResponse as ft, ProfileGetResponse as g, ClientScanTarget as gn, ClientRuntimeObserveSchema as gt, ProfileGetRequest as h, ClientScanResultSchema as hn, ClientRuntimeObserveResponse as ht, ClientConfigPrimeResponse as i, ClientAccountIdentifier as in, ClientSessionTurnStartedSchema as it, SessionConfigInheritance as j, ClientUsageWindowsSchema as jn, ClientInstallSchema as jt, SessionConfigEnvSchema as k, ClientUsageWindowSchema as kn, ClientInstallRequest as kt, ClientProfileSchemas as l, ClientIdentifierStrength as ln, ClientRuntimeEvidenceBase as lt, ProfileDeleteResponse as m, ClientScanResult as mn, ClientRuntimeObserveRequest as mt, ClientConfigPrimePhaseSchema as n, ClientSessionUsageSnapshot as nn, ClientSessionTurnCompletedSchema as nt, ClientProfile as o, ClientAccountObserveRequest as on, ClientSessionUserPromptSubmittedSchema as ot, ProfileDeleteRequest as p, ClientMetadataSchema as pn, ClientRuntimeIsAdapterManagedSchema as pt, ClientSessionStartMode as q, InstallErrorSchema as qt, ClientConfigPrimeRequest as r, ClientSessionUsageSnapshotSchema as rn, ClientSessionTurnStarted as rt, ClientProfileNameSchema as s, ClientAccountObserveResponse as sn, ClientWiringEntry as st, ClientConfigPrimePhase as t, ClientSessionUsageCostProvenanceSchema as tn, ClientSessionTurnCompleted as tt, ClientSessionConfigSchemas as u, ClientIdentifierStrengthSchema as un, ClientRuntimeEvidenceBaseSchema as ut, ProfileListResponse as v, ClientSessionAccountObserveRequest as vn, ClientRuntimeSourceLayer as vt, SessionConfigCleanupResponse as w, ClientUsageIngestResponse as wn, ClientBinaryListEntrySchema as wt, ProfileUpdateRequest as x, ClientSessionLocator as xn, ClientRuntimeStarted as xt, ProfileSetDefaultRequest as y, ClientSessionAccountObserveResponse as yn, ClientRuntimeSourceLayerSchema as yt, SessionConfigTeardownResponse as z, ClientUninstallResponse as zt };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as CliContribution } from "./types-DCvp_swt.mjs";
|
|
2
|
-
import { c as ExtensionInfo } from "./index-
|
|
2
|
+
import { c as ExtensionInfo } from "./index-D4gn93gL.mjs";
|
|
3
3
|
import { r as WindowRegistry } from "./window-registry-ofIUQnfo.mjs";
|
|
4
4
|
import { IMakaioBus } from "@makaio/framework/bus";
|
|
5
5
|
import { ExtensionContributionProcessor, ExtensionService, ExtensionToken, MakaioExtension, NodeExtensionContext, StorageDialect, TrayManifest, VersionLiteral } from "@makaio/framework/contracts";
|