@kinotic-ai/system-api 5.0.0-beta.6 → 5.0.0-beta.8
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/index.cjs +17 -0
- package/dist/index.d.cts +36 -1
- package/dist/index.d.ts +36 -1
- package/dist/index.js +17 -0
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -49,6 +49,7 @@ __export(exports_src, {
|
|
|
49
49
|
VmNodeRegistration: () => VmNodeRegistration,
|
|
50
50
|
VmNodeOrchestrationServiceProxy: () => VmNodeOrchestrationServiceProxy,
|
|
51
51
|
VmNode: () => VmNode,
|
|
52
|
+
TraceLogProperties: () => TraceLogProperties,
|
|
52
53
|
SystemOrganizationService: () => SystemOrganizationService,
|
|
53
54
|
SystemApiPlugin: () => SystemApiPlugin,
|
|
54
55
|
SingleLoggerLevelsDescriptor: () => SingleLoggerLevelsDescriptor,
|
|
@@ -235,6 +236,11 @@ class LoggersDescriptor {
|
|
|
235
236
|
groups = new Map;
|
|
236
237
|
}
|
|
237
238
|
|
|
239
|
+
class TraceLogProperties {
|
|
240
|
+
includes = [];
|
|
241
|
+
excludes = [];
|
|
242
|
+
}
|
|
243
|
+
|
|
238
244
|
// packages/system-api/src/api/services/LogManager.ts
|
|
239
245
|
class LogManager {
|
|
240
246
|
serviceProxy;
|
|
@@ -260,6 +266,15 @@ class LogManager {
|
|
|
260
266
|
configureLogLevel(nodeId, name, level) {
|
|
261
267
|
return this.serviceProxy.invoke("configureLogLevel", [name, level], nodeId);
|
|
262
268
|
}
|
|
269
|
+
async traceLog(nodeId) {
|
|
270
|
+
const data = await this.serviceProxy.invoke("traceLog", null, nodeId);
|
|
271
|
+
const ret = new TraceLogProperties;
|
|
272
|
+
Object.assign(ret, data);
|
|
273
|
+
return ret;
|
|
274
|
+
}
|
|
275
|
+
configureTraceLog(nodeId, traceLog) {
|
|
276
|
+
return this.serviceProxy.invoke("configureTraceLog", [traceLog], nodeId);
|
|
277
|
+
}
|
|
263
278
|
}
|
|
264
279
|
|
|
265
280
|
// packages/system-api/src/api/services/IKinoticClusterInfoService.ts
|
|
@@ -339,5 +354,7 @@ class KinoticNodeInfo {
|
|
|
339
354
|
nodeId = "";
|
|
340
355
|
order = 0;
|
|
341
356
|
local = false;
|
|
357
|
+
addresses = [];
|
|
358
|
+
hostNames = [];
|
|
342
359
|
version = "";
|
|
343
360
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -300,6 +300,22 @@ declare class LoggersDescriptor {
|
|
|
300
300
|
groups: Map<string, GroupLoggerLevelsDescriptor>;
|
|
301
301
|
}
|
|
302
302
|
/**
|
|
303
|
+
* The CRI patterns that decide what trace logging prints.
|
|
304
|
+
*
|
|
305
|
+
* Each pattern is matched against the fully qualified CRI with Ant wildcards, where `*` matches
|
|
306
|
+
* within one segment and `**` across segments, so
|
|
307
|
+
* `srv://system-api~com.acme.HeartbeatService/*` covers every method of that service and
|
|
308
|
+
* `srv://system-api~com.acme.HeartbeatService/ping` covers only that one.
|
|
309
|
+
* An include wins over an exclude, so `excludes: ['**']` plus the handful of includes worth
|
|
310
|
+
* watching narrows trace logging to those services alone.
|
|
311
|
+
*/
|
|
312
|
+
declare class TraceLogProperties {
|
|
313
|
+
/** CRIs kept in trace logging whatever the excludes say. Empty leaves the excludes to decide. */
|
|
314
|
+
includes: string[];
|
|
315
|
+
/** CRIs left out of trace logging, request and reply both, unless an include covers them. */
|
|
316
|
+
excludes: string[];
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
303
319
|
* Provides the ability to manage loggers
|
|
304
320
|
*/
|
|
305
321
|
interface ILogManager {
|
|
@@ -321,6 +337,21 @@ interface ILogManager {
|
|
|
321
337
|
* @param level the {@link LogLevel} to set for the logger with the given name
|
|
322
338
|
*/
|
|
323
339
|
configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
|
|
340
|
+
/**
|
|
341
|
+
* @param nodeId the kinotic node to get the trace log patterns from
|
|
342
|
+
* @return the CRI patterns currently deciding what the node trace logs
|
|
343
|
+
*/
|
|
344
|
+
traceLog(nodeId: string): Promise<TraceLogProperties>;
|
|
345
|
+
/**
|
|
346
|
+
* Configures the CRI patterns deciding what the node trace logs, silencing a service that
|
|
347
|
+
* would otherwise bury the log while trace logging is on.
|
|
348
|
+
* The patterns replace whatever the node is using and last until it restarts, which returns it
|
|
349
|
+
* to the `kinotic.traceLog` it was configured with.
|
|
350
|
+
*
|
|
351
|
+
* @param nodeId the kinotic node to set the trace log patterns on
|
|
352
|
+
* @param traceLog the include and exclude patterns to apply
|
|
353
|
+
*/
|
|
354
|
+
configureTraceLog(nodeId: string, traceLog: TraceLogProperties): Promise<void>;
|
|
324
355
|
}
|
|
325
356
|
import { IKinotic as IKinotic5 } from "@kinotic-ai/core";
|
|
326
357
|
/**
|
|
@@ -331,6 +362,8 @@ declare class KinoticNodeInfo {
|
|
|
331
362
|
nodeId: string;
|
|
332
363
|
order: number;
|
|
333
364
|
local: boolean;
|
|
365
|
+
addresses: string[];
|
|
366
|
+
hostNames: string[];
|
|
334
367
|
version: string;
|
|
335
368
|
}
|
|
336
369
|
/**
|
|
@@ -408,8 +441,10 @@ declare class LogManager implements ILogManager {
|
|
|
408
441
|
loggers(nodeId: string): Promise<LoggersDescriptor>;
|
|
409
442
|
loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
|
|
410
443
|
configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
|
|
444
|
+
traceLog(nodeId: string): Promise<TraceLogProperties>;
|
|
445
|
+
configureTraceLog(nodeId: string, traceLog: TraceLogProperties): Promise<void>;
|
|
411
446
|
}
|
|
412
447
|
declare module "@kinotic-ai/core" {
|
|
413
448
|
interface KinoticSingleton extends ISystemApiExtension {}
|
|
414
449
|
}
|
|
415
|
-
export { WorkloadStatusReport, WorkloadServiceProxy, WorkloadOrchestrationService, VmProviderType, VmNodeStatusType, VmNodeStatus, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, SystemOrganizationService, SystemApiPlugin, SingleLoggerLevelsDescriptor, SYSTEM_API_ZONE, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticNodeInfo, KinoticClusterInfoService, KinoticClusterInfo, IWorkloadService, IWorkloadOrchestrationService, IVmNodeService, ISystemOrganizationService, ISystemApiExtension, ILogManager, IKinoticClusterInfoService, GroupLoggerLevelsDescriptor };
|
|
450
|
+
export { WorkloadStatusReport, WorkloadServiceProxy, WorkloadOrchestrationService, VmProviderType, VmNodeStatusType, VmNodeStatus, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, TraceLogProperties, SystemOrganizationService, SystemApiPlugin, SingleLoggerLevelsDescriptor, SYSTEM_API_ZONE, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticNodeInfo, KinoticClusterInfoService, KinoticClusterInfo, IWorkloadService, IWorkloadOrchestrationService, IVmNodeService, ISystemOrganizationService, ISystemApiExtension, ILogManager, IKinoticClusterInfoService, GroupLoggerLevelsDescriptor };
|
package/dist/index.d.ts
CHANGED
|
@@ -300,6 +300,22 @@ declare class LoggersDescriptor {
|
|
|
300
300
|
groups: Map<string, GroupLoggerLevelsDescriptor>;
|
|
301
301
|
}
|
|
302
302
|
/**
|
|
303
|
+
* The CRI patterns that decide what trace logging prints.
|
|
304
|
+
*
|
|
305
|
+
* Each pattern is matched against the fully qualified CRI with Ant wildcards, where `*` matches
|
|
306
|
+
* within one segment and `**` across segments, so
|
|
307
|
+
* `srv://system-api~com.acme.HeartbeatService/*` covers every method of that service and
|
|
308
|
+
* `srv://system-api~com.acme.HeartbeatService/ping` covers only that one.
|
|
309
|
+
* An include wins over an exclude, so `excludes: ['**']` plus the handful of includes worth
|
|
310
|
+
* watching narrows trace logging to those services alone.
|
|
311
|
+
*/
|
|
312
|
+
declare class TraceLogProperties {
|
|
313
|
+
/** CRIs kept in trace logging whatever the excludes say. Empty leaves the excludes to decide. */
|
|
314
|
+
includes: string[];
|
|
315
|
+
/** CRIs left out of trace logging, request and reply both, unless an include covers them. */
|
|
316
|
+
excludes: string[];
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
303
319
|
* Provides the ability to manage loggers
|
|
304
320
|
*/
|
|
305
321
|
interface ILogManager {
|
|
@@ -321,6 +337,21 @@ interface ILogManager {
|
|
|
321
337
|
* @param level the {@link LogLevel} to set for the logger with the given name
|
|
322
338
|
*/
|
|
323
339
|
configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
|
|
340
|
+
/**
|
|
341
|
+
* @param nodeId the kinotic node to get the trace log patterns from
|
|
342
|
+
* @return the CRI patterns currently deciding what the node trace logs
|
|
343
|
+
*/
|
|
344
|
+
traceLog(nodeId: string): Promise<TraceLogProperties>;
|
|
345
|
+
/**
|
|
346
|
+
* Configures the CRI patterns deciding what the node trace logs, silencing a service that
|
|
347
|
+
* would otherwise bury the log while trace logging is on.
|
|
348
|
+
* The patterns replace whatever the node is using and last until it restarts, which returns it
|
|
349
|
+
* to the `kinotic.traceLog` it was configured with.
|
|
350
|
+
*
|
|
351
|
+
* @param nodeId the kinotic node to set the trace log patterns on
|
|
352
|
+
* @param traceLog the include and exclude patterns to apply
|
|
353
|
+
*/
|
|
354
|
+
configureTraceLog(nodeId: string, traceLog: TraceLogProperties): Promise<void>;
|
|
324
355
|
}
|
|
325
356
|
import { IKinotic as IKinotic5 } from "@kinotic-ai/core";
|
|
326
357
|
/**
|
|
@@ -331,6 +362,8 @@ declare class KinoticNodeInfo {
|
|
|
331
362
|
nodeId: string;
|
|
332
363
|
order: number;
|
|
333
364
|
local: boolean;
|
|
365
|
+
addresses: string[];
|
|
366
|
+
hostNames: string[];
|
|
334
367
|
version: string;
|
|
335
368
|
}
|
|
336
369
|
/**
|
|
@@ -408,8 +441,10 @@ declare class LogManager implements ILogManager {
|
|
|
408
441
|
loggers(nodeId: string): Promise<LoggersDescriptor>;
|
|
409
442
|
loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
|
|
410
443
|
configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
|
|
444
|
+
traceLog(nodeId: string): Promise<TraceLogProperties>;
|
|
445
|
+
configureTraceLog(nodeId: string, traceLog: TraceLogProperties): Promise<void>;
|
|
411
446
|
}
|
|
412
447
|
declare module "@kinotic-ai/core" {
|
|
413
448
|
interface KinoticSingleton extends ISystemApiExtension {}
|
|
414
449
|
}
|
|
415
|
-
export { WorkloadStatusReport, WorkloadServiceProxy, WorkloadOrchestrationService, VmProviderType, VmNodeStatusType, VmNodeStatus, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, SystemOrganizationService, SystemApiPlugin, SingleLoggerLevelsDescriptor, SYSTEM_API_ZONE, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticNodeInfo, KinoticClusterInfoService, KinoticClusterInfo, IWorkloadService, IWorkloadOrchestrationService, IVmNodeService, ISystemOrganizationService, ISystemApiExtension, ILogManager, IKinoticClusterInfoService, GroupLoggerLevelsDescriptor };
|
|
450
|
+
export { WorkloadStatusReport, WorkloadServiceProxy, WorkloadOrchestrationService, VmProviderType, VmNodeStatusType, VmNodeStatus, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, TraceLogProperties, SystemOrganizationService, SystemApiPlugin, SingleLoggerLevelsDescriptor, SYSTEM_API_ZONE, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticNodeInfo, KinoticClusterInfoService, KinoticClusterInfo, IWorkloadService, IWorkloadOrchestrationService, IVmNodeService, ISystemOrganizationService, ISystemApiExtension, ILogManager, IKinoticClusterInfoService, GroupLoggerLevelsDescriptor };
|
package/dist/index.js
CHANGED
|
@@ -171,6 +171,11 @@ class LoggersDescriptor {
|
|
|
171
171
|
groups = new Map;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
+
class TraceLogProperties {
|
|
175
|
+
includes = [];
|
|
176
|
+
excludes = [];
|
|
177
|
+
}
|
|
178
|
+
|
|
174
179
|
// packages/system-api/src/api/services/LogManager.ts
|
|
175
180
|
class LogManager {
|
|
176
181
|
serviceProxy;
|
|
@@ -196,6 +201,15 @@ class LogManager {
|
|
|
196
201
|
configureLogLevel(nodeId, name, level) {
|
|
197
202
|
return this.serviceProxy.invoke("configureLogLevel", [name, level], nodeId);
|
|
198
203
|
}
|
|
204
|
+
async traceLog(nodeId) {
|
|
205
|
+
const data = await this.serviceProxy.invoke("traceLog", null, nodeId);
|
|
206
|
+
const ret = new TraceLogProperties;
|
|
207
|
+
Object.assign(ret, data);
|
|
208
|
+
return ret;
|
|
209
|
+
}
|
|
210
|
+
configureTraceLog(nodeId, traceLog) {
|
|
211
|
+
return this.serviceProxy.invoke("configureTraceLog", [traceLog], nodeId);
|
|
212
|
+
}
|
|
199
213
|
}
|
|
200
214
|
|
|
201
215
|
// packages/system-api/src/api/services/IKinoticClusterInfoService.ts
|
|
@@ -277,6 +291,8 @@ class KinoticNodeInfo {
|
|
|
277
291
|
nodeId = "";
|
|
278
292
|
order = 0;
|
|
279
293
|
local = false;
|
|
294
|
+
addresses = [];
|
|
295
|
+
hostNames = [];
|
|
280
296
|
version = "";
|
|
281
297
|
}
|
|
282
298
|
export {
|
|
@@ -289,6 +305,7 @@ export {
|
|
|
289
305
|
VmNodeRegistration,
|
|
290
306
|
VmNodeOrchestrationServiceProxy,
|
|
291
307
|
VmNode,
|
|
308
|
+
TraceLogProperties,
|
|
292
309
|
SystemOrganizationService,
|
|
293
310
|
SystemApiPlugin,
|
|
294
311
|
SingleLoggerLevelsDescriptor,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kinotic-ai/system-api",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Client API for the Kinotic platform's system plane: the workload and node orchestration services platform machines and operators use.",
|
|
6
6
|
"files": [
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"coverage": "bun test --coverage --pass-with-no-tests"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@kinotic-ai/management-api": "5.0.0-beta.
|
|
41
|
+
"@kinotic-ai/management-api": "5.0.0-beta.24"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@kinotic-ai/core": ">=5.0.0-beta.
|
|
44
|
+
"@kinotic-ai/core": ">=5.0.0-beta.9"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@kinotic-ai/core": "5.0.0-beta.
|
|
47
|
+
"@kinotic-ai/core": "5.0.0-beta.9",
|
|
48
48
|
"@types/bun": "^1.3.9",
|
|
49
49
|
"typescript": "^5.9.3"
|
|
50
50
|
}
|