@openclaw/googlechat 2026.7.2-beta.4 → 2026.7.2-beta.5
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/README.md +1 -1
- package/dist/{actions-DBF3ImbA.js → actions-wnreW-IQ.js} +2 -2
- package/dist/api.js +2 -2
- package/dist/{approval-auth-BztBRceh.js → approval-auth-G-OFufNc.js} +2 -2
- package/dist/{approval-handler.runtime-CWoYapMp.js → approval-handler.runtime-BJXVLK9y.js} +3 -3
- package/dist/{channel-DMP6V9MO.js → channel-CehfTiWZ.js} +8 -8
- package/dist/{channel-base-BOLIr2sb.js → channel-base-CC85hRUC.js} +23 -43
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.adapters-X7Hlcajj.js → channel.adapters-DLatFGZz.js} +5 -13
- package/dist/{channel.runtime-rGazhnxA.js → channel.runtime-Bz0__ttC.js} +2 -2
- package/dist/directory-contract-api.js +1 -1
- package/dist/{doctor-contract-CWlBAcKf.js → doctor-contract-BpuSvJro.js} +14 -43
- package/dist/doctor-contract-api.js +1 -1
- package/dist/setup-plugin-api.js +1 -1
- package/node_modules/google-logging-utils/build/src/colours.d.ts +29 -1
- package/node_modules/google-logging-utils/build/src/colours.js +13 -13
- package/node_modules/google-logging-utils/build/src/colours.js.map +1 -1
- package/node_modules/google-logging-utils/build/src/index.d.ts +0 -1
- package/node_modules/google-logging-utils/build/src/index.js +1 -1
- package/node_modules/google-logging-utils/build/src/index.js.map +1 -1
- package/node_modules/google-logging-utils/build/src/logging-utils.d.ts +135 -2
- package/node_modules/google-logging-utils/build/src/logging-utils.js +58 -35
- package/node_modules/google-logging-utils/build/src/logging-utils.js.map +1 -1
- package/node_modules/google-logging-utils/build/src/temporal.js +8 -8
- package/node_modules/google-logging-utils/build/src/temporal.js.map +1 -1
- package/node_modules/google-logging-utils/package.json +9 -11
- package/package.json +4 -5
- package/node_modules/google-logging-utils/build/src/types.d.ts +0 -78
- package/node_modules/google-logging-utils/build/src/types.js +0 -16
- package/node_modules/google-logging-utils/build/src/types.js.map +0 -1
- package/npm-shrinkwrap.json +0 -313
|
@@ -1,5 +1,60 @@
|
|
|
1
1
|
import { EventEmitter } from 'events';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* This module defines an ad-hoc debug logger for Google Cloud Platform
|
|
4
|
+
* client libraries in Node. An ad-hoc debug logger is a tool which lets
|
|
5
|
+
* users use an external, unified interface (in this case, environment
|
|
6
|
+
* variables) to determine what logging they want to see at runtime. This
|
|
7
|
+
* isn't necessarily fed into the console, but is meant to be under the
|
|
8
|
+
* control of the user. The kind of logging that will be produced by this
|
|
9
|
+
* is more like "call retry happened", not "events you'd want to record
|
|
10
|
+
* in Cloud Logger".
|
|
11
|
+
*
|
|
12
|
+
* More for Googlers implementing libraries with it:
|
|
13
|
+
* go/cloud-client-logging-design
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* Possible log levels. These are a subset of Cloud Observability levels.
|
|
17
|
+
* https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#LogSeverity
|
|
18
|
+
*/
|
|
19
|
+
export declare enum LogSeverity {
|
|
20
|
+
DEFAULT = "DEFAULT",
|
|
21
|
+
DEBUG = "DEBUG",
|
|
22
|
+
INFO = "INFO",
|
|
23
|
+
WARNING = "WARNING",
|
|
24
|
+
ERROR = "ERROR"
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A set of suggested log metadata fields.
|
|
28
|
+
*/
|
|
29
|
+
export interface LogFields {
|
|
30
|
+
/**
|
|
31
|
+
* Log level - undefined/null === DEFAULT.
|
|
32
|
+
*/
|
|
33
|
+
severity?: LogSeverity;
|
|
34
|
+
/**
|
|
35
|
+
* If this log is associated with an OpenTelemetry trace, you can put the
|
|
36
|
+
* trace ID here to pass on that association.
|
|
37
|
+
*/
|
|
38
|
+
telemetryTraceId?: string;
|
|
39
|
+
/**
|
|
40
|
+
* If this log is associated with an OpenTelemetry trace, you can put the
|
|
41
|
+
* span ID here to pass on that association.
|
|
42
|
+
*/
|
|
43
|
+
telemetrySpanId?: string;
|
|
44
|
+
/**
|
|
45
|
+
* This is a catch-all for any other items you might want to go into
|
|
46
|
+
* structured logs. Library implementers, please see the spec docs above
|
|
47
|
+
* for the items envisioned to go here.
|
|
48
|
+
*/
|
|
49
|
+
other?: unknown;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Adds typings for event sinks.
|
|
53
|
+
*/
|
|
54
|
+
export declare interface AdhocDebugLogger {
|
|
55
|
+
on(event: 'log', listener: (fields: LogFields, args: unknown[]) => void): this;
|
|
56
|
+
on(event: string, listener: Function): this;
|
|
57
|
+
}
|
|
3
58
|
/**
|
|
4
59
|
* Our logger instance. This actually contains the meat of dealing
|
|
5
60
|
* with log lines, including EventEmitter. This contains the function
|
|
@@ -11,7 +66,7 @@ export declare class AdhocDebugLogger extends EventEmitter {
|
|
|
11
66
|
func: AdhocDebugLogFunction;
|
|
12
67
|
/**
|
|
13
68
|
* @param upstream The backend will pass a function that will be
|
|
14
|
-
*
|
|
69
|
+
* called whenever our logger function is invoked.
|
|
15
70
|
*/
|
|
16
71
|
constructor(namespace: string, upstream: AdhocDebugLogCallable);
|
|
17
72
|
invoke(fields: LogFields, ...args: unknown[]): void;
|
|
@@ -21,6 +76,84 @@ export declare class AdhocDebugLogger extends EventEmitter {
|
|
|
21
76
|
* This can be used in place of a real logger while waiting for Promises or disabling logging.
|
|
22
77
|
*/
|
|
23
78
|
export declare const placeholder: AdhocDebugLogFunction;
|
|
79
|
+
/**
|
|
80
|
+
* When the user receives a log function (below), this will be the basic function
|
|
81
|
+
* call interface for it.
|
|
82
|
+
*/
|
|
83
|
+
export interface AdhocDebugLogCallable {
|
|
84
|
+
(fields: LogFields, ...args: unknown[]): void;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Adds typing info for the EventEmitter we're adding to the returned function.
|
|
88
|
+
*
|
|
89
|
+
* Note that this interface may change at any time, as we're reserving the
|
|
90
|
+
* right to add new backends at the logger level.
|
|
91
|
+
*
|
|
92
|
+
* @private
|
|
93
|
+
* @internal
|
|
94
|
+
*/
|
|
95
|
+
export interface AdhocDebugLogFunction extends AdhocDebugLogCallable {
|
|
96
|
+
instance: AdhocDebugLogger;
|
|
97
|
+
on(event: 'log', listener: (fields: LogFields, args: unknown[]) => void): this;
|
|
98
|
+
debug(...args: unknown[]): void;
|
|
99
|
+
info(...args: unknown[]): void;
|
|
100
|
+
warn(...args: unknown[]): void;
|
|
101
|
+
error(...args: unknown[]): void;
|
|
102
|
+
sublog(namespace: string): AdhocDebugLogFunction;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* One of these can be passed to support a third-party backend, like "debug".
|
|
106
|
+
* We're splitting this out because ESM can complicate optional module loading.
|
|
107
|
+
*
|
|
108
|
+
* Note that this interface may change at any time, as we're reserving the
|
|
109
|
+
* right to add new backends at the logger level.
|
|
110
|
+
*
|
|
111
|
+
* @private
|
|
112
|
+
* @internal
|
|
113
|
+
*/
|
|
114
|
+
export interface DebugLogBackend {
|
|
115
|
+
/**
|
|
116
|
+
* Outputs a log to this backend.
|
|
117
|
+
*
|
|
118
|
+
* @param namespace The "system" that will be used for filtering. This may also
|
|
119
|
+
* include a "subsystem" in the form "system:subsystem".
|
|
120
|
+
* @param fields Logging fields to be included as metadata.
|
|
121
|
+
* @param args Any parameters to passed to a utils.format() type formatter.
|
|
122
|
+
*/
|
|
123
|
+
log(namespace: string, fields: LogFields, ...args: unknown[]): void;
|
|
124
|
+
/**
|
|
125
|
+
* Passes in the system/subsystem filters from the global environment variables.
|
|
126
|
+
* This lets the backend merge with any native ones.
|
|
127
|
+
*
|
|
128
|
+
* @param filters A list of wildcards matching systems or system:subsystem pairs.
|
|
129
|
+
*/
|
|
130
|
+
setFilters(filters: string[]): void;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* The base class for debug logging backends. It's possible to use this, but the
|
|
134
|
+
* same non-guarantees above still apply (unstable interface, etc).
|
|
135
|
+
*
|
|
136
|
+
* @private
|
|
137
|
+
* @internal
|
|
138
|
+
*/
|
|
139
|
+
export declare abstract class DebugLogBackendBase implements DebugLogBackend {
|
|
140
|
+
cached: Map<string, AdhocDebugLogCallable>;
|
|
141
|
+
filters: string[];
|
|
142
|
+
filtersSet: boolean;
|
|
143
|
+
constructor();
|
|
144
|
+
/**
|
|
145
|
+
* Creates a callback function that we can call to send log lines out.
|
|
146
|
+
*
|
|
147
|
+
* @param namespace The system/subsystem namespace.
|
|
148
|
+
*/
|
|
149
|
+
abstract makeLogger(namespace: string): AdhocDebugLogCallable;
|
|
150
|
+
/**
|
|
151
|
+
* Provides a callback for the subclass to hook if it needs to do something
|
|
152
|
+
* specific with `this.filters`.
|
|
153
|
+
*/
|
|
154
|
+
abstract setFilters(): void;
|
|
155
|
+
log(namespace: string, fields: LogFields, ...args: unknown[]): void;
|
|
156
|
+
}
|
|
24
157
|
/**
|
|
25
158
|
* @returns A backend based on Node util.debuglog; this is the default.
|
|
26
159
|
*/
|
|
@@ -46,7 +46,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
46
46
|
};
|
|
47
47
|
})();
|
|
48
48
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
-
exports.env = exports.DebugLogBackendBase = exports.placeholder = exports.AdhocDebugLogger = void 0;
|
|
49
|
+
exports.env = exports.DebugLogBackendBase = exports.placeholder = exports.AdhocDebugLogger = exports.LogSeverity = void 0;
|
|
50
50
|
exports.getNodeBackend = getNodeBackend;
|
|
51
51
|
exports.getDebugBackend = getDebugBackend;
|
|
52
52
|
exports.getStructuredBackend = getStructuredBackend;
|
|
@@ -56,28 +56,44 @@ const events_1 = require("events");
|
|
|
56
56
|
const process = __importStar(require("process"));
|
|
57
57
|
const util = __importStar(require("util"));
|
|
58
58
|
const colours_1 = require("./colours");
|
|
59
|
-
const types_1 = require("./types");
|
|
60
59
|
// Some functions (as noted) are based on the Node standard library, from
|
|
61
60
|
// the following file:
|
|
62
61
|
//
|
|
63
62
|
// https://github.com/nodejs/node/blob/main/lib/internal/util/debuglog.js
|
|
64
|
-
|
|
63
|
+
/**
|
|
64
|
+
* This module defines an ad-hoc debug logger for Google Cloud Platform
|
|
65
|
+
* client libraries in Node. An ad-hoc debug logger is a tool which lets
|
|
66
|
+
* users use an external, unified interface (in this case, environment
|
|
67
|
+
* variables) to determine what logging they want to see at runtime. This
|
|
68
|
+
* isn't necessarily fed into the console, but is meant to be under the
|
|
69
|
+
* control of the user. The kind of logging that will be produced by this
|
|
70
|
+
* is more like "call retry happened", not "events you'd want to record
|
|
71
|
+
* in Cloud Logger".
|
|
72
|
+
*
|
|
73
|
+
* More for Googlers implementing libraries with it:
|
|
74
|
+
* go/cloud-client-logging-design
|
|
75
|
+
*/
|
|
76
|
+
/**
|
|
77
|
+
* Possible log levels. These are a subset of Cloud Observability levels.
|
|
78
|
+
* https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#LogSeverity
|
|
79
|
+
*/
|
|
80
|
+
var LogSeverity;
|
|
81
|
+
(function (LogSeverity) {
|
|
82
|
+
LogSeverity["DEFAULT"] = "DEFAULT";
|
|
83
|
+
LogSeverity["DEBUG"] = "DEBUG";
|
|
84
|
+
LogSeverity["INFO"] = "INFO";
|
|
85
|
+
LogSeverity["WARNING"] = "WARNING";
|
|
86
|
+
LogSeverity["ERROR"] = "ERROR";
|
|
87
|
+
})(LogSeverity || (exports.LogSeverity = LogSeverity = {}));
|
|
65
88
|
/**
|
|
66
89
|
* Our logger instance. This actually contains the meat of dealing
|
|
67
90
|
* with log lines, including EventEmitter. This contains the function
|
|
68
91
|
* that will be passed back to users of the package.
|
|
69
92
|
*/
|
|
70
93
|
class AdhocDebugLogger extends events_1.EventEmitter {
|
|
71
|
-
// Our namespace (system/subsystem/etc)
|
|
72
|
-
namespace;
|
|
73
|
-
// The function we'll call with new log lines.
|
|
74
|
-
// Should be built in Node util stuff, or the "debug" package, or whatever.
|
|
75
|
-
upstream;
|
|
76
|
-
// Self-referential function wrapper that calls invoke() on us.
|
|
77
|
-
func;
|
|
78
94
|
/**
|
|
79
95
|
* @param upstream The backend will pass a function that will be
|
|
80
|
-
*
|
|
96
|
+
* called whenever our logger function is invoked.
|
|
81
97
|
*/
|
|
82
98
|
constructor(namespace, upstream) {
|
|
83
99
|
super();
|
|
@@ -90,10 +106,10 @@ class AdhocDebugLogger extends events_1.EventEmitter {
|
|
|
90
106
|
on: (event, listener) => this.on(event, listener),
|
|
91
107
|
});
|
|
92
108
|
// Convenience methods for log levels.
|
|
93
|
-
this.func.debug = (...args) => this.invokeSeverity(
|
|
94
|
-
this.func.info = (...args) => this.invokeSeverity(
|
|
95
|
-
this.func.warn = (...args) => this.invokeSeverity(
|
|
96
|
-
this.func.error = (...args) => this.invokeSeverity(
|
|
109
|
+
this.func.debug = (...args) => this.invokeSeverity(LogSeverity.DEBUG, ...args);
|
|
110
|
+
this.func.info = (...args) => this.invokeSeverity(LogSeverity.INFO, ...args);
|
|
111
|
+
this.func.warn = (...args) => this.invokeSeverity(LogSeverity.WARNING, ...args);
|
|
112
|
+
this.func.error = (...args) => this.invokeSeverity(LogSeverity.ERROR, ...args);
|
|
97
113
|
this.func.sublog = (namespace) => log(namespace, this.func);
|
|
98
114
|
}
|
|
99
115
|
invoke(fields, ...args) {
|
|
@@ -123,7 +139,6 @@ exports.AdhocDebugLogger = AdhocDebugLogger;
|
|
|
123
139
|
* This can be used in place of a real logger while waiting for Promises or disabling logging.
|
|
124
140
|
*/
|
|
125
141
|
exports.placeholder = new AdhocDebugLogger('', () => { }).func;
|
|
126
|
-
// 🌟 REMOVED: AdhocDebugLogCallable, AdhocDebugLogFunction, DebugLogBackend declarations
|
|
127
142
|
/**
|
|
128
143
|
* The base class for debug logging backends. It's possible to use this, but the
|
|
129
144
|
* same non-guarantees above still apply (unstable interface, etc).
|
|
@@ -132,13 +147,14 @@ exports.placeholder = new AdhocDebugLogger('', () => { }).func;
|
|
|
132
147
|
* @internal
|
|
133
148
|
*/
|
|
134
149
|
class DebugLogBackendBase {
|
|
135
|
-
cached = new Map();
|
|
136
|
-
filters = [];
|
|
137
|
-
filtersSet = false;
|
|
138
150
|
constructor() {
|
|
151
|
+
var _a;
|
|
152
|
+
this.cached = new Map();
|
|
153
|
+
this.filters = [];
|
|
154
|
+
this.filtersSet = false;
|
|
139
155
|
// Look for the Node config variable for what systems to enable. We'll store
|
|
140
156
|
// these for the log method below, which will call setFilters() once.
|
|
141
|
-
let nodeFlag = process.env[exports.env.nodeEnables]
|
|
157
|
+
let nodeFlag = (_a = process.env[exports.env.nodeEnables]) !== null && _a !== void 0 ? _a : '*';
|
|
142
158
|
if (nodeFlag === 'all') {
|
|
143
159
|
nodeFlag = '*';
|
|
144
160
|
}
|
|
@@ -175,9 +191,12 @@ exports.DebugLogBackendBase = DebugLogBackendBase;
|
|
|
175
191
|
// the user duplicates it into NODE_DEBUG, which isn't reasonable).
|
|
176
192
|
//
|
|
177
193
|
class NodeBackend extends DebugLogBackendBase {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
194
|
+
constructor() {
|
|
195
|
+
super(...arguments);
|
|
196
|
+
// Default to allowing all systems, since we gate earlier based on whether the
|
|
197
|
+
// variable is empty.
|
|
198
|
+
this.enabledRegexp = /.*/g;
|
|
199
|
+
}
|
|
181
200
|
isEnabled(namespace) {
|
|
182
201
|
return this.enabledRegexp.test(namespace);
|
|
183
202
|
}
|
|
@@ -186,22 +205,23 @@ class NodeBackend extends DebugLogBackendBase {
|
|
|
186
205
|
return () => { };
|
|
187
206
|
}
|
|
188
207
|
return (fields, ...args) => {
|
|
208
|
+
var _a;
|
|
189
209
|
// TODO: `fields` needs to be turned into a string here, one way or another.
|
|
190
210
|
const nscolour = `${colours_1.Colours.green}${namespace}${colours_1.Colours.reset}`;
|
|
191
211
|
const pid = `${colours_1.Colours.yellow}${process.pid}${colours_1.Colours.reset}`;
|
|
192
212
|
let level;
|
|
193
213
|
switch (fields.severity) {
|
|
194
|
-
case
|
|
214
|
+
case LogSeverity.ERROR:
|
|
195
215
|
level = `${colours_1.Colours.red}${fields.severity}${colours_1.Colours.reset}`;
|
|
196
216
|
break;
|
|
197
|
-
case
|
|
217
|
+
case LogSeverity.INFO:
|
|
198
218
|
level = `${colours_1.Colours.magenta}${fields.severity}${colours_1.Colours.reset}`;
|
|
199
219
|
break;
|
|
200
|
-
case
|
|
220
|
+
case LogSeverity.WARNING:
|
|
201
221
|
level = `${colours_1.Colours.yellow}${fields.severity}${colours_1.Colours.reset}`;
|
|
202
222
|
break;
|
|
203
223
|
default:
|
|
204
|
-
level = fields.severity
|
|
224
|
+
level = (_a = fields.severity) !== null && _a !== void 0 ? _a : LogSeverity.DEFAULT;
|
|
205
225
|
break;
|
|
206
226
|
}
|
|
207
227
|
const msg = util.formatWithOptions({ colors: colours_1.Colours.enabled }, ...args);
|
|
@@ -234,7 +254,6 @@ function getNodeBackend() {
|
|
|
234
254
|
return new NodeBackend();
|
|
235
255
|
}
|
|
236
256
|
class DebugBackend extends DebugLogBackendBase {
|
|
237
|
-
debugPkg;
|
|
238
257
|
constructor(pkg) {
|
|
239
258
|
super();
|
|
240
259
|
this.debugPkg = pkg;
|
|
@@ -247,7 +266,8 @@ class DebugBackend extends DebugLogBackendBase {
|
|
|
247
266
|
};
|
|
248
267
|
}
|
|
249
268
|
setFilters() {
|
|
250
|
-
|
|
269
|
+
var _a;
|
|
270
|
+
const existingFilters = (_a = process.env['NODE_DEBUG']) !== null && _a !== void 0 ? _a : '';
|
|
251
271
|
process.env['NODE_DEBUG'] = `${existingFilters}${existingFilters ? ',' : ''}${this.filters.join(',')}`;
|
|
252
272
|
}
|
|
253
273
|
}
|
|
@@ -276,15 +296,17 @@ function getDebugBackend(debugPkg) {
|
|
|
276
296
|
* of `DebugLogBackendBase` (any of the backends exposed by this package will work).
|
|
277
297
|
*/
|
|
278
298
|
class StructuredBackend extends DebugLogBackendBase {
|
|
279
|
-
upstream;
|
|
280
299
|
constructor(upstream) {
|
|
300
|
+
var _a;
|
|
281
301
|
super();
|
|
282
|
-
this.upstream = upstream
|
|
302
|
+
this.upstream = (_a = upstream) !== null && _a !== void 0 ? _a : undefined;
|
|
283
303
|
}
|
|
284
304
|
makeLogger(namespace) {
|
|
285
|
-
|
|
305
|
+
var _a;
|
|
306
|
+
const debugLogger = (_a = this.upstream) === null || _a === void 0 ? void 0 : _a.makeLogger(namespace);
|
|
286
307
|
return (fields, ...args) => {
|
|
287
|
-
|
|
308
|
+
var _a;
|
|
309
|
+
const severity = (_a = fields.severity) !== null && _a !== void 0 ? _a : LogSeverity.INFO;
|
|
288
310
|
const json = Object.assign({
|
|
289
311
|
severity,
|
|
290
312
|
message: util.format(...args),
|
|
@@ -299,7 +321,8 @@ class StructuredBackend extends DebugLogBackendBase {
|
|
|
299
321
|
};
|
|
300
322
|
}
|
|
301
323
|
setFilters() {
|
|
302
|
-
|
|
324
|
+
var _a;
|
|
325
|
+
(_a = this.upstream) === null || _a === void 0 ? void 0 : _a.setFilters();
|
|
303
326
|
}
|
|
304
327
|
}
|
|
305
328
|
/**
|
|
@@ -404,7 +427,7 @@ function log(namespace, parent) {
|
|
|
404
427
|
}
|
|
405
428
|
previousBackend = cachedBackend;
|
|
406
429
|
}
|
|
407
|
-
cachedBackend
|
|
430
|
+
cachedBackend === null || cachedBackend === void 0 ? void 0 : cachedBackend.log(namespace, fields, ...args);
|
|
408
431
|
});
|
|
409
432
|
return newLogger;
|
|
410
433
|
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging-utils.js","sourceRoot":"","sources":["../../src/logging-utils.ts"],"names":[],"mappings":";AAAA,iCAAiC;AACjC,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;;;;;;;;;;;;;;;;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xC,IAAI,eAAe,KAAK,aAAa,EAAE,CAAC;gBACtC,sCAAsC;gBACtC,IAAI,aAAa,KAAK,IAAI,EAAE,CAAC;oBAC3B,uBAAuB;oBACvB,OAAO;gBACT,CAAC;qBAAM,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;oBACvC,gDAAgD;oBAChD,aAAa,GAAG,cAAc,EAAE,CAAC;gBACnC,CAAC;gBAED,eAAe,GAAG,aAAa,CAAC;YAClC,CAAC;YAED,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC;QACjD,CAAC,CACF,CAAC;QACF,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC,EAAE,CAAC;IAEL,WAAW,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IACnC,OAAO,MAAM,CAAC,IAAI,CAAC;AACrB,CAAC"}
|
|
@@ -26,10 +26,6 @@ exports.Duration = void 0;
|
|
|
26
26
|
* https://tc39.es/proposal-temporal/docs/duration.html
|
|
27
27
|
*/
|
|
28
28
|
class Duration {
|
|
29
|
-
millis;
|
|
30
|
-
static secondInMillis = 1000;
|
|
31
|
-
static minuteInMillis = Duration.secondInMillis * 60;
|
|
32
|
-
static hourInMillis = Duration.minuteInMillis * 60;
|
|
33
29
|
constructor(millis) {
|
|
34
30
|
this.millis = millis;
|
|
35
31
|
}
|
|
@@ -57,12 +53,16 @@ class Duration {
|
|
|
57
53
|
* minutes, millis.
|
|
58
54
|
*/
|
|
59
55
|
static from(durationLike) {
|
|
60
|
-
|
|
61
|
-
millis
|
|
62
|
-
millis += (durationLike.
|
|
63
|
-
millis += (durationLike.
|
|
56
|
+
var _a, _b, _c, _d;
|
|
57
|
+
let millis = (_a = durationLike.millis) !== null && _a !== void 0 ? _a : 0;
|
|
58
|
+
millis += ((_b = durationLike.seconds) !== null && _b !== void 0 ? _b : 0) * Duration.secondInMillis;
|
|
59
|
+
millis += ((_c = durationLike.minutes) !== null && _c !== void 0 ? _c : 0) * Duration.minuteInMillis;
|
|
60
|
+
millis += ((_d = durationLike.hours) !== null && _d !== void 0 ? _d : 0) * Duration.hourInMillis;
|
|
64
61
|
return new Duration(millis);
|
|
65
62
|
}
|
|
66
63
|
}
|
|
67
64
|
exports.Duration = Duration;
|
|
65
|
+
Duration.secondInMillis = 1000;
|
|
66
|
+
Duration.minuteInMillis = Duration.secondInMillis * 60;
|
|
67
|
+
Duration.hourInMillis = Duration.minuteInMillis * 60;
|
|
68
68
|
//# sourceMappingURL=temporal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"temporal.js","sourceRoot":"","sources":["../../src/temporal.ts"],"names":[],"mappings":";AAAA,iCAAiC;AACjC,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AA6BjC;;;;;;;;;;GAUG;AACH,MAAa,QAAQ;
|
|
1
|
+
{"version":3,"file":"temporal.js","sourceRoot":"","sources":["../../src/temporal.ts"],"names":[],"mappings":";AAAA,iCAAiC;AACjC,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AA6BjC;;;;;;;;;;GAUG;AACH,MAAa,QAAQ;IAOnB,YAAoB,MAAc;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,OAAoB;QAC1B,QAAQ,OAAO,EAAE,CAAC;YAChB,KAAK,MAAM;gBACT,OAAO,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,YAAY,CAAC;YAC7C,KAAK,QAAQ;gBACX,OAAO,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,cAAc,CAAC;YAC/C,KAAK,QAAQ;gBACX,OAAO,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,cAAc,CAAC;YAC/C,KAAK,aAAa;gBAChB,OAAO,IAAI,CAAC,MAAM,CAAC;YACrB;gBACE,MAAM,IAAI,KAAK,CAAC,sCAAsC,OAAO,EAAE,CAAC,CAAC;QACrE,CAAC;IACH,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,IAAI,CAAC,YAA0B;;QACpC,IAAI,MAAM,GAAG,MAAA,YAAY,CAAC,MAAM,mCAAI,CAAC,CAAC;QACtC,MAAM,IAAI,CAAC,MAAA,YAAY,CAAC,OAAO,mCAAI,CAAC,CAAC,GAAG,QAAQ,CAAC,cAAc,CAAC;QAChE,MAAM,IAAI,CAAC,MAAA,YAAY,CAAC,OAAO,mCAAI,CAAC,CAAC,GAAG,QAAQ,CAAC,cAAc,CAAC;QAChE,MAAM,IAAI,CAAC,MAAA,YAAY,CAAC,KAAK,mCAAI,CAAC,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC;QAE5D,OAAO,IAAI,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC9B,CAAC;;AA1CH,4BA2CC;AAxCgB,uBAAc,GAAG,IAAI,CAAC;AACtB,uBAAc,GAAG,QAAQ,CAAC,cAAc,GAAG,EAAE,CAAC;AAC9C,qBAAY,GAAG,QAAQ,CAAC,cAAc,GAAG,EAAE,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "google-logging-utils",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "A debug logger package for other Google libraries",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
|
-
"types": "build/src/index.d.ts",
|
|
7
6
|
"files": [
|
|
8
7
|
"build/src"
|
|
9
8
|
],
|
|
@@ -17,8 +16,7 @@
|
|
|
17
16
|
"prepare": "npm run compile",
|
|
18
17
|
"precompile": "gts clean",
|
|
19
18
|
"samples-test": "cd samples/ && npm link ../ && npm install && npm test && cd ../",
|
|
20
|
-
"system-test": "echo no system tests 🙀"
|
|
21
|
-
"docs": "echo no docs needed"
|
|
19
|
+
"system-test": "echo no system tests 🙀"
|
|
22
20
|
},
|
|
23
21
|
"author": "Google API Authors",
|
|
24
22
|
"license": "Apache-2.0",
|
|
@@ -29,13 +27,13 @@
|
|
|
29
27
|
},
|
|
30
28
|
"devDependencies": {
|
|
31
29
|
"@types/mocha": "^10.0.10",
|
|
32
|
-
"@types/node": "^
|
|
33
|
-
"@types/sinon": "^
|
|
34
|
-
"c8": "^
|
|
35
|
-
"gts": "^
|
|
36
|
-
"mocha": "^
|
|
37
|
-
"sinon": "21.0.
|
|
38
|
-
"typescript": "5.
|
|
30
|
+
"@types/node": "^22.9.1",
|
|
31
|
+
"@types/sinon": "^17.0.3",
|
|
32
|
+
"c8": "^9.0.0",
|
|
33
|
+
"gts": "^5.3.1",
|
|
34
|
+
"mocha": "^9.0.0",
|
|
35
|
+
"sinon": "^21.0.0",
|
|
36
|
+
"typescript": "^5.1.6"
|
|
39
37
|
},
|
|
40
38
|
"bugs": {
|
|
41
39
|
"url": "https://github.com/googleapis/google-cloud-node-core/issues"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/googlechat",
|
|
3
|
-
"version": "2026.7.2-beta.
|
|
3
|
+
"version": "2026.7.2-beta.5",
|
|
4
4
|
"description": "OpenClaw Google Chat channel plugin for spaces and direct messages.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"zod": "4.4.3"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"openclaw": ">=2026.7.2-beta.
|
|
15
|
+
"openclaw": ">=2026.7.2-beta.5"
|
|
16
16
|
},
|
|
17
17
|
"peerDependenciesMeta": {
|
|
18
18
|
"openclaw": {
|
|
@@ -129,10 +129,10 @@
|
|
|
129
129
|
"minHostVersion": ">=2026.4.10"
|
|
130
130
|
},
|
|
131
131
|
"compat": {
|
|
132
|
-
"pluginApi": ">=2026.7.2-beta.
|
|
132
|
+
"pluginApi": ">=2026.7.2-beta.5"
|
|
133
133
|
},
|
|
134
134
|
"build": {
|
|
135
|
-
"openclawVersion": "2026.7.2-beta.
|
|
135
|
+
"openclawVersion": "2026.7.2-beta.5"
|
|
136
136
|
},
|
|
137
137
|
"release": {
|
|
138
138
|
"publishToClawHub": true,
|
|
@@ -146,7 +146,6 @@
|
|
|
146
146
|
"files": [
|
|
147
147
|
"dist/**",
|
|
148
148
|
"openclaw.plugin.json",
|
|
149
|
-
"npm-shrinkwrap.json",
|
|
150
149
|
"README.md"
|
|
151
150
|
],
|
|
152
151
|
"bundledDependencies": [
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { AdhocDebugLogger } from './logging-utils';
|
|
2
|
-
/**
|
|
3
|
-
* Possible log levels. These are a subset of Cloud Observability levels.
|
|
4
|
-
* https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#LogSeverity
|
|
5
|
-
*/
|
|
6
|
-
export declare enum LogSeverity {
|
|
7
|
-
DEFAULT = "DEFAULT",
|
|
8
|
-
DEBUG = "DEBUG",
|
|
9
|
-
INFO = "INFO",
|
|
10
|
-
WARNING = "WARNING",
|
|
11
|
-
ERROR = "ERROR"
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* A set of suggested log metadata fields.
|
|
15
|
-
*/
|
|
16
|
-
export interface LogFields {
|
|
17
|
-
/**
|
|
18
|
-
* Log level - undefined/null === DEFAULT.
|
|
19
|
-
*/
|
|
20
|
-
severity?: LogSeverity;
|
|
21
|
-
/**
|
|
22
|
-
* If this log is associated with an OpenTelemetry trace, you can put the
|
|
23
|
-
* trace ID here to pass on that association.
|
|
24
|
-
*/
|
|
25
|
-
telemetryTraceId?: string;
|
|
26
|
-
/**
|
|
27
|
-
* If this log is associated with an OpenTelemetry trace, you can put the
|
|
28
|
-
* span ID here to pass on that association.
|
|
29
|
-
*/
|
|
30
|
-
telemetrySpanId?: string;
|
|
31
|
-
/**
|
|
32
|
-
* This is a catch-all for any other items you might want to go into
|
|
33
|
-
* structured logs. Library implementers, please see the spec docs above
|
|
34
|
-
* for the items envisioned to go here.
|
|
35
|
-
*/
|
|
36
|
-
other?: unknown;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* When the user receives a log function (below), this will be the basic function
|
|
40
|
-
* call interface for it.
|
|
41
|
-
*/
|
|
42
|
-
export interface AdhocDebugLogCallable {
|
|
43
|
-
(fields: LogFields, ...args: unknown[]): void;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Adds typing info for the EventEmitter we're adding to the returned function.
|
|
47
|
-
*/
|
|
48
|
-
export interface AdhocDebugLogFunction extends AdhocDebugLogCallable {
|
|
49
|
-
instance: AdhocDebugLogger;
|
|
50
|
-
on(event: 'log', listener: (fields: LogFields, args: unknown[]) => void): this;
|
|
51
|
-
debug(...args: unknown[]): void;
|
|
52
|
-
info(...args: unknown[]): void;
|
|
53
|
-
warn(...args: unknown[]): void;
|
|
54
|
-
error(...args: unknown[]): void;
|
|
55
|
-
sublog(namespace: string): AdhocDebugLogFunction;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* One of these can be passed to support a third-party backend, like "debug".
|
|
59
|
-
* We're splitting this out because ESM can complicate optional module loading.
|
|
60
|
-
*/
|
|
61
|
-
export interface DebugLogBackend {
|
|
62
|
-
/**
|
|
63
|
-
* Outputs a log to this backend.
|
|
64
|
-
*
|
|
65
|
-
* @param namespace The "system" that will be used for filtering. This may also
|
|
66
|
-
* include a "subsystem" in the form "system:subsystem".
|
|
67
|
-
* @param fields Logging fields to be included as metadata.
|
|
68
|
-
* @param args Any parameters to passed to a utils.format() type formatter.
|
|
69
|
-
*/
|
|
70
|
-
log(namespace: string, fields: LogFields, ...args: unknown[]): void;
|
|
71
|
-
/**
|
|
72
|
-
* Passes in the system/subsystem filters from the global environment variables.
|
|
73
|
-
* This lets the backend merge with any native ones.
|
|
74
|
-
*
|
|
75
|
-
* @param filters A list of wildcards matching systems or system:subsystem pairs.
|
|
76
|
-
*/
|
|
77
|
-
setFilters(filters: string[]): void;
|
|
78
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LogSeverity = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Possible log levels. These are a subset of Cloud Observability levels.
|
|
6
|
-
* https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#LogSeverity
|
|
7
|
-
*/
|
|
8
|
-
var LogSeverity;
|
|
9
|
-
(function (LogSeverity) {
|
|
10
|
-
LogSeverity["DEFAULT"] = "DEFAULT";
|
|
11
|
-
LogSeverity["DEBUG"] = "DEBUG";
|
|
12
|
-
LogSeverity["INFO"] = "INFO";
|
|
13
|
-
LogSeverity["WARNING"] = "WARNING";
|
|
14
|
-
LogSeverity["ERROR"] = "ERROR";
|
|
15
|
-
})(LogSeverity || (exports.LogSeverity = LogSeverity = {}));
|
|
16
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACH,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;IACf,4BAAa,CAAA;IACb,kCAAmB,CAAA;IACnB,8BAAe,CAAA;AACjB,CAAC,EANW,WAAW,2BAAX,WAAW,QAMtB"}
|