@microsoft/agents-activity 1.5.0-beta.6.ga236d9a19c → 1.5.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.
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.js +1 -4
- package/dist/src/index.js.map +1 -1
- package/package.json +2 -8
- package/src/index.ts +0 -1
- package/dist/src/logger.d.ts +0 -48
- package/dist/src/logger.js +0 -99
- package/dist/src/logger.js.map +0 -1
- package/src/logger.ts +0 -104
package/dist/src/index.d.ts
CHANGED
|
@@ -41,6 +41,5 @@ export { MessageReactionTypes } from './messageReactionTypes';
|
|
|
41
41
|
export { TextFormatTypes } from './textFormatTypes';
|
|
42
42
|
export { TextHighlight } from './textHighlight';
|
|
43
43
|
export { ActivityTreatments } from './activityTreatments';
|
|
44
|
-
export { debug, Logger } from './logger';
|
|
45
44
|
export { AgentErrorDefinition, AgentError, ExceptionHelper } from './exceptionHelper';
|
|
46
45
|
export { Errors as ActivityErrors } from './errorHelper';
|
package/dist/src/index.js
CHANGED
|
@@ -18,7 +18,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
18
18
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.ActivityErrors = exports.ExceptionHelper = exports.
|
|
21
|
+
exports.ActivityErrors = exports.ExceptionHelper = exports.ActivityTreatments = exports.TextFormatTypes = exports.MessageReactionTypes = exports.InputHints = exports.DeliveryModes = exports.ActivityTypes = exports.ActivityImportance = exports.ActivityEventNames = exports.activityZodSchema = exports.Activity = exports.RoleTypes = exports.MembershipTypes = exports.MembershipSourceTypes = exports.EndOfConversationCodes = exports.Channels = exports.AttachmentLayoutTypes = exports.SemanticActionStateTypes = exports.ActionTypes = void 0;
|
|
22
22
|
/**
|
|
23
23
|
* Export statements for various modules.
|
|
24
24
|
*/
|
|
@@ -59,9 +59,6 @@ var textFormatTypes_1 = require("./textFormatTypes");
|
|
|
59
59
|
Object.defineProperty(exports, "TextFormatTypes", { enumerable: true, get: function () { return textFormatTypes_1.TextFormatTypes; } });
|
|
60
60
|
var activityTreatments_1 = require("./activityTreatments");
|
|
61
61
|
Object.defineProperty(exports, "ActivityTreatments", { enumerable: true, get: function () { return activityTreatments_1.ActivityTreatments; } });
|
|
62
|
-
var logger_1 = require("./logger");
|
|
63
|
-
Object.defineProperty(exports, "debug", { enumerable: true, get: function () { return logger_1.debug; } });
|
|
64
|
-
Object.defineProperty(exports, "Logger", { enumerable: true, get: function () { return logger_1.Logger; } });
|
|
65
62
|
var exceptionHelper_1 = require("./exceptionHelper");
|
|
66
63
|
Object.defineProperty(exports, "ExceptionHelper", { enumerable: true, get: function () { return exceptionHelper_1.ExceptionHelper; } });
|
|
67
64
|
var errorHelper_1 = require("./errorHelper");
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;AAEH;;GAEG;AACH,oDAAkD;AAAzC,0GAAA,WAAW,OAAA;AAGpB,8EAA4E;AAAnE,oIAAA,wBAAwB,OAAA;AAIjC,4EAA0E;AAAjE,8HAAA,qBAAqB,OAAA;AAG9B,oDAAkD;AAAzC,oGAAA,QAAQ,OAAA;AAGjB,gFAA8E;AAArE,gIAAA,sBAAsB,OAAA;AAG/B,8EAA4E;AAAnE,8HAAA,qBAAqB,OAAA;AAC9B,kEAAgE;AAAvD,kHAAA,eAAe,OAAA;AACxB,sDAAoD;AAA3C,sGAAA,SAAS,OAAA;AAOlB,oDAAiC;AAEjC,oEAAiD;AAEjD,uCAAwD;AAA/C,oGAAA,QAAQ,OAAA;AAAE,6GAAA,iBAAiB,OAAA;AACpC,2DAAyD;AAAhD,wHAAA,kBAAkB,OAAA;AAC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Ae,OAAA;AAC1D,6CAAwD;AAA/C,6GAAA,MAAM,OAAkB"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@microsoft/agents-activity",
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.1",
|
|
5
5
|
"homepage": "https://github.com/microsoft/Agents-for-js",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -19,8 +19,7 @@
|
|
|
19
19
|
"main": "dist/src/index.js",
|
|
20
20
|
"types": "dist/src/index.d.ts",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"
|
|
23
|
-
"uuid": "^11.1.0",
|
|
22
|
+
"uuid": "11.1.0",
|
|
24
23
|
"zod": "3.25.75"
|
|
25
24
|
},
|
|
26
25
|
"license": "MIT",
|
|
@@ -36,11 +35,6 @@
|
|
|
36
35
|
"import": "./dist/src/index.js",
|
|
37
36
|
"require": "./dist/src/index.js"
|
|
38
37
|
},
|
|
39
|
-
"./logger": {
|
|
40
|
-
"types": "./dist/src/logger.d.ts",
|
|
41
|
-
"import": "./dist/src/logger.js",
|
|
42
|
-
"require": "./dist/src/logger.js"
|
|
43
|
-
},
|
|
44
38
|
"./package.json": "./package.json"
|
|
45
39
|
},
|
|
46
40
|
"engines": {
|
package/src/index.ts
CHANGED
|
@@ -47,7 +47,6 @@ export { MessageReactionTypes } from './messageReactionTypes'
|
|
|
47
47
|
export { TextFormatTypes } from './textFormatTypes'
|
|
48
48
|
export { TextHighlight } from './textHighlight'
|
|
49
49
|
export { ActivityTreatments } from './activityTreatments'
|
|
50
|
-
export { debug, Logger } from './logger'
|
|
51
50
|
|
|
52
51
|
export { AgentErrorDefinition, AgentError, ExceptionHelper } from './exceptionHelper'
|
|
53
52
|
export { Errors as ActivityErrors } from './errorHelper'
|
package/dist/src/logger.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Logger class that provides colored logging functionality using the debug package.
|
|
7
|
-
* Supports different log levels: info, warn, error, and debug.
|
|
8
|
-
*/
|
|
9
|
-
export declare class Logger {
|
|
10
|
-
private loggers;
|
|
11
|
-
/**
|
|
12
|
-
* Creates a new Logger instance with the specified namespace.
|
|
13
|
-
* @param namespace The namespace to use for the logger
|
|
14
|
-
*/
|
|
15
|
-
constructor(namespace?: string);
|
|
16
|
-
private initializeLoggers;
|
|
17
|
-
private getPlatformColor;
|
|
18
|
-
/**
|
|
19
|
-
* Logs an informational message.
|
|
20
|
-
* @param message The message to log
|
|
21
|
-
* @param args Additional arguments to include in the log
|
|
22
|
-
*/
|
|
23
|
-
info(message: string, ...args: any[]): void;
|
|
24
|
-
/**
|
|
25
|
-
* Logs a warning message.
|
|
26
|
-
* @param message The message to log
|
|
27
|
-
* @param args Additional arguments to include in the log
|
|
28
|
-
*/
|
|
29
|
-
warn(message: string, ...args: any[]): void;
|
|
30
|
-
/**
|
|
31
|
-
* Logs an error message.
|
|
32
|
-
* @param message The message to log
|
|
33
|
-
* @param args Additional arguments to include in the log
|
|
34
|
-
*/
|
|
35
|
-
error(message: string, ...args: any[]): void;
|
|
36
|
-
/**
|
|
37
|
-
* Logs a debug message.
|
|
38
|
-
* @param message The message to log
|
|
39
|
-
* @param args Additional arguments to include in the log
|
|
40
|
-
*/
|
|
41
|
-
debug(message: string, ...args: any[]): void;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Creates a new Logger instance with the specified namespace.
|
|
45
|
-
* @param namespace The namespace to use for the logger
|
|
46
|
-
* @returns A new Logger instance
|
|
47
|
-
*/
|
|
48
|
-
export declare function debug(namespace: string): Logger;
|
package/dist/src/logger.js
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*/
|
|
6
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.Logger = void 0;
|
|
11
|
-
exports.debug = debug;
|
|
12
|
-
const debug_1 = __importDefault(require("debug"));
|
|
13
|
-
const loggerLevels = [
|
|
14
|
-
'info',
|
|
15
|
-
'warn',
|
|
16
|
-
'error',
|
|
17
|
-
'debug',
|
|
18
|
-
];
|
|
19
|
-
/**
|
|
20
|
-
* Logger class that provides colored logging functionality using the debug package.
|
|
21
|
-
* Supports different log levels: info, warn, error, and debug.
|
|
22
|
-
*/
|
|
23
|
-
class Logger {
|
|
24
|
-
/**
|
|
25
|
-
* Creates a new Logger instance with the specified namespace.
|
|
26
|
-
* @param namespace The namespace to use for the logger
|
|
27
|
-
*/
|
|
28
|
-
constructor(namespace = '') {
|
|
29
|
-
this.loggers = {};
|
|
30
|
-
this.initializeLoggers(namespace);
|
|
31
|
-
}
|
|
32
|
-
initializeLoggers(namespace) {
|
|
33
|
-
for (const level of loggerLevels) {
|
|
34
|
-
const logger = (0, debug_1.default)(`${namespace}:${level}`);
|
|
35
|
-
logger.color = this.getPlatformColor(level);
|
|
36
|
-
this.loggers[level] = logger;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
getPlatformColor(level) {
|
|
40
|
-
const platform = typeof window !== 'undefined' ? 'browser' : 'node';
|
|
41
|
-
const colors = {
|
|
42
|
-
node: {
|
|
43
|
-
info: '2', // Green
|
|
44
|
-
warn: '3', // Yellow
|
|
45
|
-
error: '1', // Red
|
|
46
|
-
debug: '4', // Blue
|
|
47
|
-
},
|
|
48
|
-
browser: {
|
|
49
|
-
info: '#33CC99', // Green
|
|
50
|
-
warn: '#CCCC33', // Yellow
|
|
51
|
-
error: '#CC3366', // Red
|
|
52
|
-
debug: '#0066FF', // Blue
|
|
53
|
-
},
|
|
54
|
-
};
|
|
55
|
-
return colors[platform][level];
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Logs an informational message.
|
|
59
|
-
* @param message The message to log
|
|
60
|
-
* @param args Additional arguments to include in the log
|
|
61
|
-
*/
|
|
62
|
-
info(message, ...args) {
|
|
63
|
-
this.loggers.info(message, ...args);
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Logs a warning message.
|
|
67
|
-
* @param message The message to log
|
|
68
|
-
* @param args Additional arguments to include in the log
|
|
69
|
-
*/
|
|
70
|
-
warn(message, ...args) {
|
|
71
|
-
this.loggers.warn(message, ...args);
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Logs an error message.
|
|
75
|
-
* @param message The message to log
|
|
76
|
-
* @param args Additional arguments to include in the log
|
|
77
|
-
*/
|
|
78
|
-
error(message, ...args) {
|
|
79
|
-
this.loggers.error(message, ...args);
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Logs a debug message.
|
|
83
|
-
* @param message The message to log
|
|
84
|
-
* @param args Additional arguments to include in the log
|
|
85
|
-
*/
|
|
86
|
-
debug(message, ...args) {
|
|
87
|
-
this.loggers.debug(message, ...args);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
exports.Logger = Logger;
|
|
91
|
-
/**
|
|
92
|
-
* Creates a new Logger instance with the specified namespace.
|
|
93
|
-
* @param namespace The namespace to use for the logger
|
|
94
|
-
* @returns A new Logger instance
|
|
95
|
-
*/
|
|
96
|
-
function debug(namespace) {
|
|
97
|
-
return new Logger(namespace);
|
|
98
|
-
}
|
|
99
|
-
//# sourceMappingURL=logger.js.map
|
package/dist/src/logger.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logger.ts"],"names":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ACH,IAAI,CAAE,OAAe,EAAE,GAAG,IAAW;QACnC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAA;IACrC,CAAC;IAED;;;;OAIG;IACH,IAAI,CAAE,OAAe,EAAE,GAAG,IAAW;QACnC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAA;IACrC,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAE,OAAe,EAAE,GAAG,IAAW;QACpC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAA;IACtC,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAE,OAAe,EAAE,GAAG,IAAW;QACpC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAA;IACtC,CAAC;CACF;AA1ED,wBA0EC;AAED;;;;GAIG;AACH,SAAgB,KAAK,CAAE,SAAiB;IACtC,OAAO,IAAI,MAAM,CAAC,SAAS,CAAC,CAAA;AAC9B,CAAC"}
|
package/src/logger.ts
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import createDebug, { Debugger } from 'debug'
|
|
7
|
-
|
|
8
|
-
const loggerLevels = [
|
|
9
|
-
'info',
|
|
10
|
-
'warn',
|
|
11
|
-
'error',
|
|
12
|
-
'debug',
|
|
13
|
-
] as const
|
|
14
|
-
|
|
15
|
-
type LoggerLevels = typeof loggerLevels[number]
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Logger class that provides colored logging functionality using the debug package.
|
|
19
|
-
* Supports different log levels: info, warn, error, and debug.
|
|
20
|
-
*/
|
|
21
|
-
export class Logger {
|
|
22
|
-
private loggers: { [K in LoggerLevels]: Debugger } = {} as any
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Creates a new Logger instance with the specified namespace.
|
|
26
|
-
* @param namespace The namespace to use for the logger
|
|
27
|
-
*/
|
|
28
|
-
constructor (namespace: string = '') {
|
|
29
|
-
this.initializeLoggers(namespace)
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
private initializeLoggers (namespace: string) {
|
|
33
|
-
for (const level of loggerLevels) {
|
|
34
|
-
const logger = createDebug(`${namespace}:${level}`)
|
|
35
|
-
logger.color = this.getPlatformColor(level)
|
|
36
|
-
this.loggers[level] = logger
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
private getPlatformColor (level: LoggerLevels): string {
|
|
41
|
-
const platform = typeof window !== 'undefined' ? 'browser' : 'node'
|
|
42
|
-
const colors = {
|
|
43
|
-
node: {
|
|
44
|
-
info: '2', // Green
|
|
45
|
-
warn: '3', // Yellow
|
|
46
|
-
error: '1', // Red
|
|
47
|
-
debug: '4', // Blue
|
|
48
|
-
},
|
|
49
|
-
browser: {
|
|
50
|
-
info: '#33CC99', // Green
|
|
51
|
-
warn: '#CCCC33', // Yellow
|
|
52
|
-
error: '#CC3366', // Red
|
|
53
|
-
debug: '#0066FF', // Blue
|
|
54
|
-
},
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
return colors[platform][level]
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Logs an informational message.
|
|
62
|
-
* @param message The message to log
|
|
63
|
-
* @param args Additional arguments to include in the log
|
|
64
|
-
*/
|
|
65
|
-
info (message: string, ...args: any[]) {
|
|
66
|
-
this.loggers.info(message, ...args)
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Logs a warning message.
|
|
71
|
-
* @param message The message to log
|
|
72
|
-
* @param args Additional arguments to include in the log
|
|
73
|
-
*/
|
|
74
|
-
warn (message: string, ...args: any[]) {
|
|
75
|
-
this.loggers.warn(message, ...args)
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Logs an error message.
|
|
80
|
-
* @param message The message to log
|
|
81
|
-
* @param args Additional arguments to include in the log
|
|
82
|
-
*/
|
|
83
|
-
error (message: string, ...args: any[]) {
|
|
84
|
-
this.loggers.error(message, ...args)
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Logs a debug message.
|
|
89
|
-
* @param message The message to log
|
|
90
|
-
* @param args Additional arguments to include in the log
|
|
91
|
-
*/
|
|
92
|
-
debug (message: string, ...args: any[]) {
|
|
93
|
-
this.loggers.debug(message, ...args)
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Creates a new Logger instance with the specified namespace.
|
|
99
|
-
* @param namespace The namespace to use for the logger
|
|
100
|
-
* @returns A new Logger instance
|
|
101
|
-
*/
|
|
102
|
-
export function debug (namespace: string): Logger {
|
|
103
|
-
return new Logger(namespace)
|
|
104
|
-
}
|