@aexol/spectral 0.9.174 → 0.9.175
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/extensions/desktop-screenshot/index.d.ts.map +1 -1
- package/dist/extensions/desktop-screenshot/index.js +6 -5
- package/dist/generated/zeus/const.d.ts.map +1 -1
- package/dist/generated/zeus/const.js +6 -2
- package/dist/generated/zeus/index.d.ts +24 -0
- package/dist/generated/zeus/index.d.ts.map +1 -1
- package/dist/relay/auto-optimizer.d.ts +1 -1
- package/dist/relay/auto-optimizer.d.ts.map +1 -1
- package/dist/relay/auto-optimizer.js +3 -3
- package/dist/relay/auto-research.d.ts +1 -1
- package/dist/relay/auto-research.d.ts.map +1 -1
- package/dist/relay/auto-research.js +3 -3
- package/dist/relay/dispatcher.js +2 -2
- package/dist/server/session-stream.d.ts +6 -1
- package/dist/server/session-stream.d.ts.map +1 -1
- package/dist/server/session-stream.js +32 -12
- package/dist/server/sqlite-adapter.d.ts +14 -0
- package/dist/server/sqlite-adapter.d.ts.map +1 -1
- package/dist/server/sqlite-adapter.js +43 -8
- package/dist/server/storage.d.ts +8 -0
- package/dist/server/storage.d.ts.map +1 -1
- package/dist/server/storage.js +12 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/extensions/desktop-screenshot/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAQH,OAAO,KAAK,EAEX,YAAY,EAEZ,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/extensions/desktop-screenshot/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAQH,OAAO,KAAK,EAEX,YAAY,EAEZ,MAAM,iCAAiC,CAAC;AA+dzC,wBAA8B,0BAA0B,CAAC,GAAG,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAoFzF"}
|
|
@@ -292,7 +292,7 @@ function listWin32Windows() {
|
|
|
292
292
|
" public delegate bool EnumWindowsProc(IntPtr hWnd, IntPtr lParam);",
|
|
293
293
|
"}",
|
|
294
294
|
'"@',
|
|
295
|
-
"$
|
|
295
|
+
"$script:acc = New-Object System.Collections.ArrayList",
|
|
296
296
|
"$callback = [Win32Window+EnumWindowsProc]{",
|
|
297
297
|
" param($hWnd, $lParam)",
|
|
298
298
|
" if (-not [Win32Window]::IsWindowVisible($hWnd)) { return $true }",
|
|
@@ -302,14 +302,15 @@ function listWin32Windows() {
|
|
|
302
302
|
" [Win32Window]::GetWindowText($hWnd, $sb, $sb.Capacity) | Out-Null",
|
|
303
303
|
" $title = $sb.ToString()",
|
|
304
304
|
" if ([string]::IsNullOrWhiteSpace($title)) { return $true }",
|
|
305
|
-
" $
|
|
306
|
-
" [Win32Window]::GetWindowThreadProcessId($hWnd, [ref]$
|
|
307
|
-
' try { $proc = Get-Process -Id $
|
|
305
|
+
" $procId = 0",
|
|
306
|
+
" [Win32Window]::GetWindowThreadProcessId($hWnd, [ref]$procId) | Out-Null",
|
|
307
|
+
' try { $proc = Get-Process -Id $procId -ErrorAction Stop; $owner = $proc.ProcessName } catch { $owner = "unknown" }',
|
|
308
308
|
" $tab = [char]9",
|
|
309
|
-
'
|
|
309
|
+
' [void]$script:acc.Add("$hWnd$tab$owner$tab$title")',
|
|
310
310
|
" return $true",
|
|
311
311
|
"}",
|
|
312
312
|
"[Win32Window]::EnumWindows($callback, [IntPtr]::Zero) | Out-Null",
|
|
313
|
+
'$script:acc | ForEach-Object { Write-Output $_ }',
|
|
313
314
|
];
|
|
314
315
|
const psScript = psLines.join("\r\n");
|
|
315
316
|
const psPath = join(tmpDir(), `${randomUUID()}.ps1`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../src/generated/zeus/const.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../src/generated/zeus/const.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAC,GAAG,CA+xB5C,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAC,GAAG,CAimC1C,CAAA;AAED,eAAO,MAAM,GAAG;;;;CAIf,CAAA"}
|
|
@@ -151,7 +151,8 @@ export const AllTypesProps = {
|
|
|
151
151
|
languageTags: "LanguageTag"
|
|
152
152
|
},
|
|
153
153
|
agents: {
|
|
154
|
-
scope: "PresetScope"
|
|
154
|
+
scope: "PresetScope",
|
|
155
|
+
mode: "AgentMode"
|
|
155
156
|
},
|
|
156
157
|
agent: {},
|
|
157
158
|
cloudDocument: {},
|
|
@@ -771,6 +772,7 @@ export const ReturnTypes = {
|
|
|
771
772
|
id: "ID",
|
|
772
773
|
teamId: "ID",
|
|
773
774
|
projectId: "ID",
|
|
775
|
+
parentId: "ID",
|
|
774
776
|
userId: "ID",
|
|
775
777
|
name: "String",
|
|
776
778
|
description: "String",
|
|
@@ -780,7 +782,9 @@ export const ReturnTypes = {
|
|
|
780
782
|
scope: "PresetScope",
|
|
781
783
|
source: "AgentSource",
|
|
782
784
|
createdAt: "DateTime",
|
|
783
|
-
updatedAt: "DateTime"
|
|
785
|
+
updatedAt: "DateTime",
|
|
786
|
+
parent: "Agent",
|
|
787
|
+
children: "Agent"
|
|
784
788
|
},
|
|
785
789
|
LeadEvent: {
|
|
786
790
|
id: "ID",
|
|
@@ -726,6 +726,7 @@ export type ValueTypes = {
|
|
|
726
726
|
id?: boolean | `@${string}`;
|
|
727
727
|
teamId?: boolean | `@${string}`;
|
|
728
728
|
projectId?: boolean | `@${string}`;
|
|
729
|
+
parentId?: boolean | `@${string}`;
|
|
729
730
|
userId?: boolean | `@${string}`;
|
|
730
731
|
name?: boolean | `@${string}`;
|
|
731
732
|
description?: boolean | `@${string}`;
|
|
@@ -736,12 +737,15 @@ export type ValueTypes = {
|
|
|
736
737
|
source?: boolean | `@${string}`;
|
|
737
738
|
createdAt?: boolean | `@${string}`;
|
|
738
739
|
updatedAt?: boolean | `@${string}`;
|
|
740
|
+
parent?: ValueTypes["Agent"];
|
|
741
|
+
children?: ValueTypes["Agent"];
|
|
739
742
|
__typename?: boolean | `@${string}`;
|
|
740
743
|
['...on Agent']?: Omit<ValueTypes["Agent"], "...on Agent">;
|
|
741
744
|
}>;
|
|
742
745
|
["CreateAgentInput"]: {
|
|
743
746
|
teamId: ValueTypes["ID"] | Variable<any, string>;
|
|
744
747
|
projectId?: ValueTypes["ID"] | undefined | null | Variable<any, string>;
|
|
748
|
+
parentId?: ValueTypes["ID"] | undefined | null | Variable<any, string>;
|
|
745
749
|
name: string | Variable<any, string>;
|
|
746
750
|
description: string | Variable<any, string>;
|
|
747
751
|
systemPrompt: string | Variable<any, string>;
|
|
@@ -752,6 +756,7 @@ export type ValueTypes = {
|
|
|
752
756
|
["UpdateAgentInput"]: {
|
|
753
757
|
name?: string | undefined | null | Variable<any, string>;
|
|
754
758
|
projectId?: ValueTypes["ID"] | undefined | null | Variable<any, string>;
|
|
759
|
+
parentId?: ValueTypes["ID"] | undefined | null | Variable<any, string>;
|
|
755
760
|
description?: string | undefined | null | Variable<any, string>;
|
|
756
761
|
systemPrompt?: string | undefined | null | Variable<any, string>;
|
|
757
762
|
model?: string | undefined | null | Variable<any, string>;
|
|
@@ -1343,6 +1348,8 @@ export type ValueTypes = {
|
|
|
1343
1348
|
teamId: ValueTypes["ID"] | Variable<any, string>;
|
|
1344
1349
|
projectId?: ValueTypes["ID"] | undefined | null | Variable<any, string>;
|
|
1345
1350
|
scope?: ValueTypes["PresetScope"] | undefined | null | Variable<any, string>;
|
|
1351
|
+
mode?: ValueTypes["AgentMode"] | undefined | null | Variable<any, string>;
|
|
1352
|
+
parentId?: ValueTypes["ID"] | undefined | null | Variable<any, string>;
|
|
1346
1353
|
}, ValueTypes["Agent"]];
|
|
1347
1354
|
agent?: [{
|
|
1348
1355
|
id: ValueTypes["ID"] | Variable<any, string>;
|
|
@@ -3037,6 +3044,7 @@ export type ResolverInputTypes = {
|
|
|
3037
3044
|
id?: boolean | `@${string}`;
|
|
3038
3045
|
teamId?: boolean | `@${string}`;
|
|
3039
3046
|
projectId?: boolean | `@${string}`;
|
|
3047
|
+
parentId?: boolean | `@${string}`;
|
|
3040
3048
|
userId?: boolean | `@${string}`;
|
|
3041
3049
|
name?: boolean | `@${string}`;
|
|
3042
3050
|
description?: boolean | `@${string}`;
|
|
@@ -3047,11 +3055,14 @@ export type ResolverInputTypes = {
|
|
|
3047
3055
|
source?: boolean | `@${string}`;
|
|
3048
3056
|
createdAt?: boolean | `@${string}`;
|
|
3049
3057
|
updatedAt?: boolean | `@${string}`;
|
|
3058
|
+
parent?: ResolverInputTypes["Agent"];
|
|
3059
|
+
children?: ResolverInputTypes["Agent"];
|
|
3050
3060
|
__typename?: boolean | `@${string}`;
|
|
3051
3061
|
}>;
|
|
3052
3062
|
["CreateAgentInput"]: {
|
|
3053
3063
|
teamId: ResolverInputTypes["ID"];
|
|
3054
3064
|
projectId?: ResolverInputTypes["ID"] | undefined | null;
|
|
3065
|
+
parentId?: ResolverInputTypes["ID"] | undefined | null;
|
|
3055
3066
|
name: string;
|
|
3056
3067
|
description: string;
|
|
3057
3068
|
systemPrompt: string;
|
|
@@ -3062,6 +3073,7 @@ export type ResolverInputTypes = {
|
|
|
3062
3073
|
["UpdateAgentInput"]: {
|
|
3063
3074
|
name?: string | undefined | null;
|
|
3064
3075
|
projectId?: ResolverInputTypes["ID"] | undefined | null;
|
|
3076
|
+
parentId?: ResolverInputTypes["ID"] | undefined | null;
|
|
3065
3077
|
description?: string | undefined | null;
|
|
3066
3078
|
systemPrompt?: string | undefined | null;
|
|
3067
3079
|
model?: string | undefined | null;
|
|
@@ -3623,6 +3635,8 @@ export type ResolverInputTypes = {
|
|
|
3623
3635
|
teamId: ResolverInputTypes["ID"];
|
|
3624
3636
|
projectId?: ResolverInputTypes["ID"] | undefined | null;
|
|
3625
3637
|
scope?: ResolverInputTypes["PresetScope"] | undefined | null;
|
|
3638
|
+
mode?: ResolverInputTypes["AgentMode"] | undefined | null;
|
|
3639
|
+
parentId?: ResolverInputTypes["ID"] | undefined | null;
|
|
3626
3640
|
}, ResolverInputTypes["Agent"]];
|
|
3627
3641
|
agent?: [{
|
|
3628
3642
|
id: ResolverInputTypes["ID"];
|
|
@@ -5255,6 +5269,7 @@ export type ModelTypes = {
|
|
|
5255
5269
|
id: ModelTypes["ID"];
|
|
5256
5270
|
teamId: ModelTypes["ID"];
|
|
5257
5271
|
projectId?: ModelTypes["ID"] | undefined | null;
|
|
5272
|
+
parentId?: ModelTypes["ID"] | undefined | null;
|
|
5258
5273
|
userId: ModelTypes["ID"];
|
|
5259
5274
|
name: string;
|
|
5260
5275
|
description: string;
|
|
@@ -5265,10 +5280,13 @@ export type ModelTypes = {
|
|
|
5265
5280
|
source: ModelTypes["AgentSource"];
|
|
5266
5281
|
createdAt: ModelTypes["DateTime"];
|
|
5267
5282
|
updatedAt: ModelTypes["DateTime"];
|
|
5283
|
+
parent?: ModelTypes["Agent"] | undefined | null;
|
|
5284
|
+
children: Array<ModelTypes["Agent"]>;
|
|
5268
5285
|
};
|
|
5269
5286
|
["CreateAgentInput"]: {
|
|
5270
5287
|
teamId: ModelTypes["ID"];
|
|
5271
5288
|
projectId?: ModelTypes["ID"] | undefined | null;
|
|
5289
|
+
parentId?: ModelTypes["ID"] | undefined | null;
|
|
5272
5290
|
name: string;
|
|
5273
5291
|
description: string;
|
|
5274
5292
|
systemPrompt: string;
|
|
@@ -5279,6 +5297,7 @@ export type ModelTypes = {
|
|
|
5279
5297
|
["UpdateAgentInput"]: {
|
|
5280
5298
|
name?: string | undefined | null;
|
|
5281
5299
|
projectId?: ModelTypes["ID"] | undefined | null;
|
|
5300
|
+
parentId?: ModelTypes["ID"] | undefined | null;
|
|
5282
5301
|
description?: string | undefined | null;
|
|
5283
5302
|
systemPrompt?: string | undefined | null;
|
|
5284
5303
|
model?: string | undefined | null;
|
|
@@ -6949,6 +6968,7 @@ export type GraphQLTypes = {
|
|
|
6949
6968
|
id: GraphQLTypes["ID"];
|
|
6950
6969
|
teamId: GraphQLTypes["ID"];
|
|
6951
6970
|
projectId?: GraphQLTypes["ID"] | undefined | null;
|
|
6971
|
+
parentId?: GraphQLTypes["ID"] | undefined | null;
|
|
6952
6972
|
userId: GraphQLTypes["ID"];
|
|
6953
6973
|
name: string;
|
|
6954
6974
|
description: string;
|
|
@@ -6959,11 +6979,14 @@ export type GraphQLTypes = {
|
|
|
6959
6979
|
source: GraphQLTypes["AgentSource"];
|
|
6960
6980
|
createdAt: GraphQLTypes["DateTime"];
|
|
6961
6981
|
updatedAt: GraphQLTypes["DateTime"];
|
|
6982
|
+
parent?: GraphQLTypes["Agent"] | undefined | null;
|
|
6983
|
+
children: Array<GraphQLTypes["Agent"]>;
|
|
6962
6984
|
['...on Agent']: Omit<GraphQLTypes["Agent"], "...on Agent">;
|
|
6963
6985
|
};
|
|
6964
6986
|
["CreateAgentInput"]: {
|
|
6965
6987
|
teamId: GraphQLTypes["ID"];
|
|
6966
6988
|
projectId?: GraphQLTypes["ID"] | undefined | null;
|
|
6989
|
+
parentId?: GraphQLTypes["ID"] | undefined | null;
|
|
6967
6990
|
name: string;
|
|
6968
6991
|
description: string;
|
|
6969
6992
|
systemPrompt: string;
|
|
@@ -6974,6 +6997,7 @@ export type GraphQLTypes = {
|
|
|
6974
6997
|
["UpdateAgentInput"]: {
|
|
6975
6998
|
name?: string | undefined | null;
|
|
6976
6999
|
projectId?: GraphQLTypes["ID"] | undefined | null;
|
|
7000
|
+
parentId?: GraphQLTypes["ID"] | undefined | null;
|
|
6977
7001
|
description?: string | undefined | null;
|
|
6978
7002
|
systemPrompt?: string | undefined | null;
|
|
6979
7003
|
model?: string | undefined | null;
|