@guinetik/primitives-ts 0.3.0 → 0.4.1

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.
@@ -0,0 +1,75 @@
1
+ /**
2
+ * Autonomous Agent Monitoring Types
3
+ * Shared between API and Admin for agent monitoring features
4
+ */
5
+ /**
6
+ * Agent status enum
7
+ */
8
+ export declare enum AgentStatus {
9
+ /** Agent is online and idle */
10
+ ONLINE = "ONLINE",
11
+ /** Agent is offline or stopped */
12
+ OFFLINE = "OFFLINE",
13
+ /** Agent is actively working on a task */
14
+ WORKING = "WORKING",
15
+ /** Agent encountered an error */
16
+ ERROR = "ERROR"
17
+ }
18
+ /**
19
+ * Individual agent information
20
+ */
21
+ export interface AgentInfo {
22
+ /** Unique identifier for the agent */
23
+ id: string;
24
+ /** Agent name (e.g., 'dev-agent', 'designer-agent') */
25
+ name: string;
26
+ /** Current status of the agent */
27
+ status: AgentStatus;
28
+ /** Last time the agent status was updated */
29
+ updatedAt: Date;
30
+ /** Optional error message if agent is in ERROR state */
31
+ errorMessage?: string;
32
+ }
33
+ /**
34
+ * Summary statistics for all agents
35
+ */
36
+ export interface AgentSummary {
37
+ /** Total number of agents */
38
+ total: number;
39
+ /** Number of agents currently running */
40
+ running: number;
41
+ /** Number of idle agents */
42
+ idle: number;
43
+ /** Number of failed/error agents */
44
+ failed: number;
45
+ }
46
+ /**
47
+ * Response from agent status endpoint
48
+ */
49
+ export interface AgentStatusResponse {
50
+ /** ISO timestamp when status was retrieved */
51
+ timestamp: string;
52
+ /** List of all agents and their statuses */
53
+ agents: AgentInfo[];
54
+ /** Optional summary statistics */
55
+ summary?: AgentSummary;
56
+ }
57
+ /**
58
+ * Response from agent logs endpoint
59
+ */
60
+ export interface AgentLogsResponse {
61
+ /** Array of log lines */
62
+ logs: string[];
63
+ /** Total number of log lines returned */
64
+ total: number;
65
+ }
66
+ /**
67
+ * Query parameters for fetching agent logs
68
+ */
69
+ export interface AgentLogsQuery {
70
+ /** Number of log lines to retrieve (default: 50, min: 10, max: 1000) */
71
+ lines?: number;
72
+ /** Offset for pagination (default: 0) */
73
+ offset?: number;
74
+ }
75
+ //# sourceMappingURL=agent.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent.types.d.ts","sourceRoot":"","sources":["../src/agent.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,oBAAY,WAAW;IACrB,+BAA+B;IAC/B,MAAM,WAAW;IAEjB,kCAAkC;IAClC,OAAO,YAAY;IAEnB,0CAA0C;IAC1C,OAAO,YAAY;IAEnB,iCAAiC;IACjC,KAAK,UAAU;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,sCAAsC;IACtC,EAAE,EAAE,MAAM,CAAC;IAEX,uDAAuD;IACvD,IAAI,EAAE,MAAM,CAAC;IAEb,kCAAkC;IAClC,MAAM,EAAE,WAAW,CAAC;IAEpB,6CAA6C;IAC7C,SAAS,EAAE,IAAI,CAAC;IAEhB,wDAAwD;IACxD,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IAEd,yCAAyC;IACzC,OAAO,EAAE,MAAM,CAAC;IAEhB,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAC;IAEb,oCAAoC;IACpC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,8CAA8C;IAC9C,SAAS,EAAE,MAAM,CAAC;IAElB,4CAA4C;IAC5C,MAAM,EAAE,SAAS,EAAE,CAAC;IAEpB,kCAAkC;IAClC,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,yBAAyB;IACzB,IAAI,EAAE,MAAM,EAAE,CAAC;IAEf,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,yCAAyC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * Autonomous Agent Monitoring Types
4
+ * Shared between API and Admin for agent monitoring features
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.AgentStatus = void 0;
8
+ /**
9
+ * Agent status enum
10
+ */
11
+ var AgentStatus;
12
+ (function (AgentStatus) {
13
+ /** Agent is online and idle */
14
+ AgentStatus["ONLINE"] = "ONLINE";
15
+ /** Agent is offline or stopped */
16
+ AgentStatus["OFFLINE"] = "OFFLINE";
17
+ /** Agent is actively working on a task */
18
+ AgentStatus["WORKING"] = "WORKING";
19
+ /** Agent encountered an error */
20
+ AgentStatus["ERROR"] = "ERROR";
21
+ })(AgentStatus || (exports.AgentStatus = AgentStatus = {}));
package/dist/index.d.ts CHANGED
@@ -16,6 +16,7 @@ export * from './totp.types';
16
16
  export * from './deployment-history.types';
17
17
  export * from './github.types';
18
18
  export * from './chat.types';
19
+ export * from './agent.types';
19
20
  export type { Security, SecurityChallengeOptions, SecurityChallengeResult } from './security.interface';
20
21
  export { SecurityLevel } from './security.interface';
21
22
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,cAAc,cAAc,CAAC;AAG7B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,iBAAiB,CAAC;AAGhC,cAAc,mBAAmB,CAAC;AAGlC,cAAc,2BAA2B,CAAC;AAG1C,cAAc,cAAc,CAAC;AAG7B,cAAc,4BAA4B,CAAC;AAG3C,cAAc,gBAAgB,CAAC;AAG/B,cAAc,cAAc,CAAC;AAG7B,YAAY,EAAE,QAAQ,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACxG,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,cAAc,cAAc,CAAC;AAG7B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,iBAAiB,CAAC;AAGhC,cAAc,mBAAmB,CAAC;AAGlC,cAAc,2BAA2B,CAAC;AAG1C,cAAc,cAAc,CAAC;AAG7B,cAAc,4BAA4B,CAAC;AAG3C,cAAc,gBAAgB,CAAC;AAG/B,cAAc,cAAc,CAAC;AAG7B,cAAc,eAAe,CAAC;AAG9B,YAAY,EAAE,QAAQ,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACxG,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC"}
package/dist/index.js CHANGED
@@ -42,5 +42,7 @@ __exportStar(require("./deployment-history.types"), exports);
42
42
  __exportStar(require("./github.types"), exports);
43
43
  // Chat system types
44
44
  __exportStar(require("./chat.types"), exports);
45
+ // Agent monitoring types
46
+ __exportStar(require("./agent.types"), exports);
45
47
  var security_interface_1 = require("./security.interface");
46
48
  Object.defineProperty(exports, "SecurityLevel", { enumerable: true, get: function () { return security_interface_1.SecurityLevel; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guinetik/primitives-ts",
3
- "version": "0.3.0",
3
+ "version": "0.4.1",
4
4
  "description": "Shared TypeScript primitives for Guinetik projects",
5
5
  "author": "Guinetik",
6
6
  "license": "MIT",