nexus-agentd 0.3.0 → 0.4.0
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/LICENSE +22 -22
- package/README.md +201 -143
- package/dist/a2a/runtime.js +9 -4
- package/dist/artifact-store.d.ts +15 -0
- package/dist/artifact-store.js +97 -5
- package/dist/process-tree.js +137 -10
- package/dist/run-store.d.ts +38 -0
- package/dist/run-store.js +94 -3
- package/dist/server.js +55 -1
- package/dist/session/admin-runs.js +1 -0
- package/dist/session.d.ts +7 -1
- package/dist/session.js +82 -2
- package/dist/types.d.ts +2 -0
- package/dist/webui/app/sources.js +13 -12
- package/dist/webui/icons.d.ts +1 -0
- package/dist/webui/icons.js +1 -0
- package/dist/webui/index.js +11 -11
- package/dist/webui/markup.js +1 -0
- package/dist/webui/styles.js +64 -31
- package/nexus-agentd.example.json +38 -38
- package/package.json +2 -2
package/dist/session.js
CHANGED
|
@@ -654,12 +654,24 @@ export class SessionManager {
|
|
|
654
654
|
const store = this.runStore;
|
|
655
655
|
return store?.getOwnerKeyId?.(id);
|
|
656
656
|
}
|
|
657
|
+
deleteRun(id) {
|
|
658
|
+
const store = this.runStore;
|
|
659
|
+
return store?.deleteRun?.(id);
|
|
660
|
+
}
|
|
657
661
|
ownsRun(id, keyId) {
|
|
658
662
|
return this.getRunOwnerKeyId(id) === keyId;
|
|
659
663
|
}
|
|
660
664
|
getRunArtifacts(id) {
|
|
661
665
|
return this.getRun(id).artifacts;
|
|
662
666
|
}
|
|
667
|
+
listArtifacts(query = {}) {
|
|
668
|
+
const store = this.runStore;
|
|
669
|
+
return store?.listArtifacts?.(query) || { artifacts: [], total: 0 };
|
|
670
|
+
}
|
|
671
|
+
async removeRunArtifact(runId, artifactId) {
|
|
672
|
+
const store = this.runStore;
|
|
673
|
+
return store?.removeArtifact?.(runId, artifactId);
|
|
674
|
+
}
|
|
663
675
|
getStorageMetrics() {
|
|
664
676
|
return this.runStore?.metrics();
|
|
665
677
|
}
|
|
@@ -924,9 +936,46 @@ function mediaTypeForPath(path) {
|
|
|
924
936
|
case '.txt':
|
|
925
937
|
case '.log':
|
|
926
938
|
case '.md':
|
|
939
|
+
case '.markdown':
|
|
940
|
+
case '.conf':
|
|
941
|
+
case '.ini':
|
|
942
|
+
case '.toml':
|
|
943
|
+
case '.env':
|
|
927
944
|
return 'text/plain';
|
|
928
945
|
case '.json':
|
|
929
946
|
return 'application/json';
|
|
947
|
+
case '.html':
|
|
948
|
+
case '.htm':
|
|
949
|
+
return 'text/html';
|
|
950
|
+
case '.css':
|
|
951
|
+
return 'text/css';
|
|
952
|
+
case '.js':
|
|
953
|
+
case '.mjs':
|
|
954
|
+
case '.cjs':
|
|
955
|
+
return 'text/javascript';
|
|
956
|
+
case '.ts':
|
|
957
|
+
case '.tsx':
|
|
958
|
+
case '.jsx':
|
|
959
|
+
case '.py':
|
|
960
|
+
case '.rb':
|
|
961
|
+
case '.go':
|
|
962
|
+
case '.rs':
|
|
963
|
+
case '.java':
|
|
964
|
+
case '.c':
|
|
965
|
+
case '.h':
|
|
966
|
+
case '.cpp':
|
|
967
|
+
case '.sh':
|
|
968
|
+
case '.bash':
|
|
969
|
+
case '.ps1':
|
|
970
|
+
case '.sql':
|
|
971
|
+
return 'text/plain';
|
|
972
|
+
case '.yaml':
|
|
973
|
+
case '.yml':
|
|
974
|
+
return 'text/yaml';
|
|
975
|
+
case '.xml':
|
|
976
|
+
return 'application/xml';
|
|
977
|
+
case '.csv':
|
|
978
|
+
return 'text/csv';
|
|
930
979
|
case '.pdf':
|
|
931
980
|
return 'application/pdf';
|
|
932
981
|
case '.png':
|
|
@@ -940,10 +989,41 @@ function mediaTypeForPath(path) {
|
|
|
940
989
|
return 'image/webp';
|
|
941
990
|
case '.svg':
|
|
942
991
|
return 'image/svg+xml';
|
|
943
|
-
case '.
|
|
944
|
-
return '
|
|
992
|
+
case '.bmp':
|
|
993
|
+
return 'image/bmp';
|
|
994
|
+
case '.ico':
|
|
995
|
+
return 'image/x-icon';
|
|
996
|
+
case '.wav':
|
|
997
|
+
return 'audio/wav';
|
|
998
|
+
case '.mp3':
|
|
999
|
+
return 'audio/mpeg';
|
|
1000
|
+
case '.ogg':
|
|
1001
|
+
case '.oga':
|
|
1002
|
+
return 'audio/ogg';
|
|
1003
|
+
case '.m4a':
|
|
1004
|
+
return 'audio/mp4';
|
|
1005
|
+
case '.aac':
|
|
1006
|
+
return 'audio/aac';
|
|
1007
|
+
case '.flac':
|
|
1008
|
+
return 'audio/flac';
|
|
1009
|
+
case '.mp4':
|
|
1010
|
+
return 'video/mp4';
|
|
1011
|
+
case '.webm':
|
|
1012
|
+
return 'video/webm';
|
|
1013
|
+
case '.mov':
|
|
1014
|
+
return 'video/quicktime';
|
|
1015
|
+
case '.mkv':
|
|
1016
|
+
return 'video/x-matroska';
|
|
945
1017
|
case '.zip':
|
|
946
1018
|
return 'application/zip';
|
|
1019
|
+
case '.doc':
|
|
1020
|
+
return 'application/msword';
|
|
1021
|
+
case '.docx':
|
|
1022
|
+
return 'application/vnd.openxmlformats-officedocument.wordprocessingml.document';
|
|
1023
|
+
case '.xlsx':
|
|
1024
|
+
return 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet';
|
|
1025
|
+
case '.pptx':
|
|
1026
|
+
return 'application/vnd.openxmlformats-officedocument.presentationml.presentation';
|
|
947
1027
|
default:
|
|
948
1028
|
return 'application/octet-stream';
|
|
949
1029
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -268,6 +268,7 @@ export interface AgentdRunArtifactView {
|
|
|
268
268
|
size?: number;
|
|
269
269
|
downloadable?: boolean;
|
|
270
270
|
storageStatus?: 'pending' | 'available' | 'metadata_only' | 'expired' | 'evicted' | 'failed';
|
|
271
|
+
createdAt?: number;
|
|
271
272
|
}
|
|
272
273
|
export interface AgentdRunView {
|
|
273
274
|
id: string;
|
|
@@ -301,6 +302,7 @@ export interface AgentdRunDetail extends AgentdRunView {
|
|
|
301
302
|
export interface AgentdRunControls {
|
|
302
303
|
canCancel: boolean;
|
|
303
304
|
canRetry: boolean;
|
|
305
|
+
canDelete?: boolean;
|
|
304
306
|
pendingRequest?: AgentdPendingRequest;
|
|
305
307
|
unavailableReason?: string;
|
|
306
308
|
}
|