@openclaw/googlechat 2026.9.1-beta.1 → 2026.9.2
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/{actions-DUdoL8WV.js → actions-6QiB4LOV.js} +10 -9
- package/dist/api.js +2 -2
- package/dist/{approval-auth-Pxi5Q60c.js → approval-auth-CEu4-wG6.js} +2 -2
- package/dist/approval-card-text-ChngxXdJ.js +6 -0
- package/dist/{approval-handler.runtime-Bhm1R0FC.js → approval-handler.runtime-BlNZVfJD.js} +24 -13
- package/dist/{channel-D2PMvPgX.js → channel-C_PzX4pt.js} +44 -35
- package/dist/{channel-base-BpHXDsur.js → channel-base-B3EzcV7X.js} +35 -23
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.adapters-aCFAB5lK.js → channel.adapters-CQxQqwUQ.js} +58 -25
- package/dist/{channel.runtime-CDUYuYp7.js → channel.runtime-DBXW-pey.js} +35 -53
- package/dist/directory-contract-api.js +1 -1
- package/dist/{secret-contract-BFYyuE0F.js → secret-contract-DmWM0kwM.js} +1 -1
- package/dist/secret-contract-api.js +1 -1
- package/dist/setup-plugin-api.js +1 -1
- package/node_modules/google-auth-library/node_modules/gcp-metadata/build/src/index.js +59 -40
- package/node_modules/google-auth-library/node_modules/gcp-metadata/build/src/index.js.map +1 -1
- package/node_modules/google-auth-library/node_modules/gcp-metadata/package.json +20 -23
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/colours.d.ts +1 -29
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/colours.js +13 -13
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/colours.js.map +1 -1
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/index.d.ts +1 -0
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/index.js +1 -1
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/index.js.map +1 -1
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/logging-utils.d.ts +2 -135
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/logging-utils.js +35 -58
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/logging-utils.js.map +1 -1
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/temporal.js +8 -8
- package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/temporal.js.map +1 -1
- package/node_modules/google-auth-library/node_modules/google-logging-utils/package.json +16 -14
- package/node_modules/google-auth-library/package.json +7 -7
- package/openclaw.plugin.json +0 -5
- package/package.json +5 -5
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/LICENSE +0 -202
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/README.md +0 -73
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/colours.d.ts +0 -1
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/colours.js +0 -81
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/colours.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/index.d.ts +0 -2
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/index.js +0 -31
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/index.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/logging-utils.d.ts +0 -89
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/logging-utils.js +0 -414
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/logging-utils.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/temporal.d.ts +0 -45
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/temporal.js +0 -68
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/temporal.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/package.json +0 -47
- /package/node_modules/google-auth-library/node_modules/{gcp-metadata/node_modules/google-logging-utils → google-logging-utils}/build/src/types.d.ts +0 -0
- /package/node_modules/google-auth-library/node_modules/{gcp-metadata/node_modules/google-logging-utils → google-logging-utils}/build/src/types.js +0 -0
- /package/node_modules/google-auth-library/node_modules/{gcp-metadata/node_modules/google-logging-utils → google-logging-utils}/build/src/types.js.map +0 -0
|
@@ -1,60 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from 'events';
|
|
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
|
-
}
|
|
2
|
+
import { LogFields, LogSeverity, AdhocDebugLogCallable, AdhocDebugLogFunction, DebugLogBackend } from './types';
|
|
58
3
|
/**
|
|
59
4
|
* Our logger instance. This actually contains the meat of dealing
|
|
60
5
|
* with log lines, including EventEmitter. This contains the function
|
|
@@ -66,7 +11,7 @@ export declare class AdhocDebugLogger extends EventEmitter {
|
|
|
66
11
|
func: AdhocDebugLogFunction;
|
|
67
12
|
/**
|
|
68
13
|
* @param upstream The backend will pass a function that will be
|
|
69
|
-
*
|
|
14
|
+
* called whenever our logger function is invoked.
|
|
70
15
|
*/
|
|
71
16
|
constructor(namespace: string, upstream: AdhocDebugLogCallable);
|
|
72
17
|
invoke(fields: LogFields, ...args: unknown[]): void;
|
|
@@ -76,84 +21,6 @@ export declare class AdhocDebugLogger extends EventEmitter {
|
|
|
76
21
|
* This can be used in place of a real logger while waiting for Promises or disabling logging.
|
|
77
22
|
*/
|
|
78
23
|
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
|
-
}
|
|
157
24
|
/**
|
|
158
25
|
* @returns A backend based on Node util.debuglog; this is the default.
|
|
159
26
|
*/
|
|
@@ -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 =
|
|
49
|
+
exports.env = exports.DebugLogBackendBase = exports.placeholder = exports.AdhocDebugLogger = void 0;
|
|
50
50
|
exports.getNodeBackend = getNodeBackend;
|
|
51
51
|
exports.getDebugBackend = getDebugBackend;
|
|
52
52
|
exports.getStructuredBackend = getStructuredBackend;
|
|
@@ -56,44 +56,28 @@ 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");
|
|
59
60
|
// Some functions (as noted) are based on the Node standard library, from
|
|
60
61
|
// the following file:
|
|
61
62
|
//
|
|
62
63
|
// https://github.com/nodejs/node/blob/main/lib/internal/util/debuglog.js
|
|
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 = {}));
|
|
64
|
+
// NOTE: The previous 'export declare interface AdhocDebugLogger' was correctly removed.
|
|
88
65
|
/**
|
|
89
66
|
* Our logger instance. This actually contains the meat of dealing
|
|
90
67
|
* with log lines, including EventEmitter. This contains the function
|
|
91
68
|
* that will be passed back to users of the package.
|
|
92
69
|
*/
|
|
93
70
|
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;
|
|
94
78
|
/**
|
|
95
79
|
* @param upstream The backend will pass a function that will be
|
|
96
|
-
*
|
|
80
|
+
* called whenever our logger function is invoked.
|
|
97
81
|
*/
|
|
98
82
|
constructor(namespace, upstream) {
|
|
99
83
|
super();
|
|
@@ -106,10 +90,10 @@ class AdhocDebugLogger extends events_1.EventEmitter {
|
|
|
106
90
|
on: (event, listener) => this.on(event, listener),
|
|
107
91
|
});
|
|
108
92
|
// Convenience methods for log levels.
|
|
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);
|
|
93
|
+
this.func.debug = (...args) => this.invokeSeverity(types_1.LogSeverity.DEBUG, ...args);
|
|
94
|
+
this.func.info = (...args) => this.invokeSeverity(types_1.LogSeverity.INFO, ...args);
|
|
95
|
+
this.func.warn = (...args) => this.invokeSeverity(types_1.LogSeverity.WARNING, ...args);
|
|
96
|
+
this.func.error = (...args) => this.invokeSeverity(types_1.LogSeverity.ERROR, ...args);
|
|
113
97
|
this.func.sublog = (namespace) => log(namespace, this.func);
|
|
114
98
|
}
|
|
115
99
|
invoke(fields, ...args) {
|
|
@@ -139,6 +123,7 @@ exports.AdhocDebugLogger = AdhocDebugLogger;
|
|
|
139
123
|
* This can be used in place of a real logger while waiting for Promises or disabling logging.
|
|
140
124
|
*/
|
|
141
125
|
exports.placeholder = new AdhocDebugLogger('', () => { }).func;
|
|
126
|
+
// 🌟 REMOVED: AdhocDebugLogCallable, AdhocDebugLogFunction, DebugLogBackend declarations
|
|
142
127
|
/**
|
|
143
128
|
* The base class for debug logging backends. It's possible to use this, but the
|
|
144
129
|
* same non-guarantees above still apply (unstable interface, etc).
|
|
@@ -147,14 +132,13 @@ exports.placeholder = new AdhocDebugLogger('', () => { }).func;
|
|
|
147
132
|
* @internal
|
|
148
133
|
*/
|
|
149
134
|
class DebugLogBackendBase {
|
|
135
|
+
cached = new Map();
|
|
136
|
+
filters = [];
|
|
137
|
+
filtersSet = false;
|
|
150
138
|
constructor() {
|
|
151
|
-
var _a;
|
|
152
|
-
this.cached = new Map();
|
|
153
|
-
this.filters = [];
|
|
154
|
-
this.filtersSet = false;
|
|
155
139
|
// Look for the Node config variable for what systems to enable. We'll store
|
|
156
140
|
// these for the log method below, which will call setFilters() once.
|
|
157
|
-
let nodeFlag =
|
|
141
|
+
let nodeFlag = process.env[exports.env.nodeEnables] ?? '*';
|
|
158
142
|
if (nodeFlag === 'all') {
|
|
159
143
|
nodeFlag = '*';
|
|
160
144
|
}
|
|
@@ -191,12 +175,9 @@ exports.DebugLogBackendBase = DebugLogBackendBase;
|
|
|
191
175
|
// the user duplicates it into NODE_DEBUG, which isn't reasonable).
|
|
192
176
|
//
|
|
193
177
|
class NodeBackend extends DebugLogBackendBase {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
// variable is empty.
|
|
198
|
-
this.enabledRegexp = /.*/g;
|
|
199
|
-
}
|
|
178
|
+
// Default to allowing all systems, since we gate earlier based on whether the
|
|
179
|
+
// variable is empty.
|
|
180
|
+
enabledRegexp = /.*/g;
|
|
200
181
|
isEnabled(namespace) {
|
|
201
182
|
return this.enabledRegexp.test(namespace);
|
|
202
183
|
}
|
|
@@ -205,23 +186,22 @@ class NodeBackend extends DebugLogBackendBase {
|
|
|
205
186
|
return () => { };
|
|
206
187
|
}
|
|
207
188
|
return (fields, ...args) => {
|
|
208
|
-
var _a;
|
|
209
189
|
// TODO: `fields` needs to be turned into a string here, one way or another.
|
|
210
190
|
const nscolour = `${colours_1.Colours.green}${namespace}${colours_1.Colours.reset}`;
|
|
211
191
|
const pid = `${colours_1.Colours.yellow}${process.pid}${colours_1.Colours.reset}`;
|
|
212
192
|
let level;
|
|
213
193
|
switch (fields.severity) {
|
|
214
|
-
case LogSeverity.ERROR:
|
|
194
|
+
case types_1.LogSeverity.ERROR:
|
|
215
195
|
level = `${colours_1.Colours.red}${fields.severity}${colours_1.Colours.reset}`;
|
|
216
196
|
break;
|
|
217
|
-
case LogSeverity.INFO:
|
|
197
|
+
case types_1.LogSeverity.INFO:
|
|
218
198
|
level = `${colours_1.Colours.magenta}${fields.severity}${colours_1.Colours.reset}`;
|
|
219
199
|
break;
|
|
220
|
-
case LogSeverity.WARNING:
|
|
200
|
+
case types_1.LogSeverity.WARNING:
|
|
221
201
|
level = `${colours_1.Colours.yellow}${fields.severity}${colours_1.Colours.reset}`;
|
|
222
202
|
break;
|
|
223
203
|
default:
|
|
224
|
-
level =
|
|
204
|
+
level = fields.severity ?? types_1.LogSeverity.DEFAULT;
|
|
225
205
|
break;
|
|
226
206
|
}
|
|
227
207
|
const msg = util.formatWithOptions({ colors: colours_1.Colours.enabled }, ...args);
|
|
@@ -254,6 +234,7 @@ function getNodeBackend() {
|
|
|
254
234
|
return new NodeBackend();
|
|
255
235
|
}
|
|
256
236
|
class DebugBackend extends DebugLogBackendBase {
|
|
237
|
+
debugPkg;
|
|
257
238
|
constructor(pkg) {
|
|
258
239
|
super();
|
|
259
240
|
this.debugPkg = pkg;
|
|
@@ -266,8 +247,7 @@ class DebugBackend extends DebugLogBackendBase {
|
|
|
266
247
|
};
|
|
267
248
|
}
|
|
268
249
|
setFilters() {
|
|
269
|
-
|
|
270
|
-
const existingFilters = (_a = process.env['NODE_DEBUG']) !== null && _a !== void 0 ? _a : '';
|
|
250
|
+
const existingFilters = process.env['NODE_DEBUG'] ?? '';
|
|
271
251
|
process.env['NODE_DEBUG'] = `${existingFilters}${existingFilters ? ',' : ''}${this.filters.join(',')}`;
|
|
272
252
|
}
|
|
273
253
|
}
|
|
@@ -296,17 +276,15 @@ function getDebugBackend(debugPkg) {
|
|
|
296
276
|
* of `DebugLogBackendBase` (any of the backends exposed by this package will work).
|
|
297
277
|
*/
|
|
298
278
|
class StructuredBackend extends DebugLogBackendBase {
|
|
279
|
+
upstream;
|
|
299
280
|
constructor(upstream) {
|
|
300
|
-
var _a;
|
|
301
281
|
super();
|
|
302
|
-
this.upstream =
|
|
282
|
+
this.upstream = upstream ?? undefined;
|
|
303
283
|
}
|
|
304
284
|
makeLogger(namespace) {
|
|
305
|
-
|
|
306
|
-
const debugLogger = (_a = this.upstream) === null || _a === void 0 ? void 0 : _a.makeLogger(namespace);
|
|
285
|
+
const debugLogger = this.upstream?.makeLogger(namespace);
|
|
307
286
|
return (fields, ...args) => {
|
|
308
|
-
|
|
309
|
-
const severity = (_a = fields.severity) !== null && _a !== void 0 ? _a : LogSeverity.INFO;
|
|
287
|
+
const severity = fields.severity ?? types_1.LogSeverity.INFO;
|
|
310
288
|
const json = Object.assign({
|
|
311
289
|
severity,
|
|
312
290
|
message: util.format(...args),
|
|
@@ -321,8 +299,7 @@ class StructuredBackend extends DebugLogBackendBase {
|
|
|
321
299
|
};
|
|
322
300
|
}
|
|
323
301
|
setFilters() {
|
|
324
|
-
|
|
325
|
-
(_a = this.upstream) === null || _a === void 0 ? void 0 : _a.setFilters();
|
|
302
|
+
this.upstream?.setFilters();
|
|
326
303
|
}
|
|
327
304
|
}
|
|
328
305
|
/**
|
|
@@ -427,7 +404,7 @@ function log(namespace, parent) {
|
|
|
427
404
|
}
|
|
428
405
|
previousBackend = cachedBackend;
|
|
429
406
|
}
|
|
430
|
-
cachedBackend
|
|
407
|
+
cachedBackend?.log(namespace, fields, ...args);
|
|
431
408
|
});
|
|
432
409
|
return newLogger;
|
|
433
410
|
})();
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwOjC,wCAEC;AAgDD,0CAEC;AAuDD,oDAIC;AA4BD,gCAGC;AAYD,kBAmEC;AAncD,mCAAoC;AACpC,iDAAmC;AACnC,2CAA6B;AAC7B,uCAAkC;AAClC,mCAMiB;AAEjB,yEAAyE;AACzE,sBAAsB;AACtB,EAAE;AACF,yEAAyE;AAEzE,wFAAwF;AAExF;;;;GAIG;AACH,MAAa,gBAAiB,SAAQ,qBAAY;IAChD,uCAAuC;IACvC,SAAS,CAAS;IAElB,8CAA8C;IAC9C,2EAA2E;IAC3E,QAAQ,CAAwB;IAEhC,+DAA+D;IAC/D,IAAI,CAAwB;IAE5B;;;OAGG;IACH,YAAY,SAAiB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BAA4B;IAC5B,IAAI,aAAa,KAAK,IAAI,EAAE,CAAC;QAC3B,uBAAuB;QACvB,OAAO,mBAAW,CAAC;IACrB,CAAC;SAAM,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;QACvC,gDAAgD;QAChD,aAAa,GAAG,cAAc,EAAE,CAAC;IACnC,CAAC;IAED,2EAA2E;IAC3E,MAAM,MAAM,GAAqB,CAAC,GAAG,EAAE;QACrC,IAAI,eAAe,GAAgC,SAAS,CAAC;QAC7D,MAAM,SAAS,GAAG,IAAI,gBAAgB,CACpC,SAAS,EACT,CAAC,MAAiB,EAAE,GAAG,IAAe,EAAE,EAAE;YACxC,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,EAAE,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"}
|
package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/temporal.js
CHANGED
|
@@ -26,6 +26,10 @@ 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;
|
|
29
33
|
constructor(millis) {
|
|
30
34
|
this.millis = millis;
|
|
31
35
|
}
|
|
@@ -53,16 +57,12 @@ class Duration {
|
|
|
53
57
|
* minutes, millis.
|
|
54
58
|
*/
|
|
55
59
|
static from(durationLike) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
millis += (
|
|
59
|
-
millis += (
|
|
60
|
-
millis += ((_d = durationLike.hours) !== null && _d !== void 0 ? _d : 0) * Duration.hourInMillis;
|
|
60
|
+
let millis = durationLike.millis ?? 0;
|
|
61
|
+
millis += (durationLike.seconds ?? 0) * Duration.secondInMillis;
|
|
62
|
+
millis += (durationLike.minutes ?? 0) * Duration.minuteInMillis;
|
|
63
|
+
millis += (durationLike.hours ?? 0) * Duration.hourInMillis;
|
|
61
64
|
return new Duration(millis);
|
|
62
65
|
}
|
|
63
66
|
}
|
|
64
67
|
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
|
package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/temporal.js.map
CHANGED
|
@@ -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,mEAAm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,KAAK,IAAI,CAAC,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC;QAE5D,OAAO,IAAI,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC9B,CAAC;;AA1CH,4BA2CC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "google-logging-utils",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
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",
|
|
6
7
|
"files": [
|
|
7
8
|
"build/src"
|
|
8
9
|
],
|
|
@@ -16,30 +17,31 @@
|
|
|
16
17
|
"prepare": "npm run compile",
|
|
17
18
|
"precompile": "gts clean",
|
|
18
19
|
"samples-test": "cd samples/ && npm link ../ && npm install && npm test && cd ../",
|
|
19
|
-
"system-test": "echo no system tests 🙀"
|
|
20
|
+
"system-test": "echo no system tests 🙀",
|
|
21
|
+
"docs": "echo no docs needed"
|
|
20
22
|
},
|
|
21
23
|
"author": "Google API Authors",
|
|
22
24
|
"license": "Apache-2.0",
|
|
23
25
|
"repository": {
|
|
24
26
|
"type": "git",
|
|
25
|
-
"directory": "
|
|
26
|
-
"url": "https://github.com/googleapis/google-cloud-node
|
|
27
|
+
"directory": "core/packages/logging-utils",
|
|
28
|
+
"url": "https://github.com/googleapis/google-cloud-node.git"
|
|
27
29
|
},
|
|
28
30
|
"devDependencies": {
|
|
29
31
|
"@types/mocha": "^10.0.10",
|
|
30
|
-
"@types/node": "^
|
|
31
|
-
"@types/sinon": "^
|
|
32
|
-
"c8": "^
|
|
33
|
-
"gts": "^
|
|
34
|
-
"mocha": "^
|
|
35
|
-
"sinon": "
|
|
36
|
-
"typescript": "
|
|
32
|
+
"@types/node": "^24.0.0",
|
|
33
|
+
"@types/sinon": "^21.0.0",
|
|
34
|
+
"c8": "^10.1.3",
|
|
35
|
+
"gts": "^6.0.2",
|
|
36
|
+
"mocha": "^11.1.0",
|
|
37
|
+
"sinon": "21.0.3",
|
|
38
|
+
"typescript": "5.8.3"
|
|
37
39
|
},
|
|
38
40
|
"bugs": {
|
|
39
|
-
"url": "https://github.com/googleapis/google-cloud-node
|
|
41
|
+
"url": "https://github.com/googleapis/google-cloud-node/issues"
|
|
40
42
|
},
|
|
41
|
-
"homepage": "https://github.com/googleapis/google-cloud-node
|
|
43
|
+
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/core/packages/logging-utils",
|
|
42
44
|
"engines": {
|
|
43
|
-
"node": ">=
|
|
45
|
+
"node": ">=22"
|
|
44
46
|
}
|
|
45
47
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "google-auth-library",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.2",
|
|
4
4
|
"author": "Google Inc.",
|
|
5
5
|
"description": "Google APIs Authentication Client Library for Node.js",
|
|
6
6
|
"engines": {
|
|
7
|
-
"node": ">=
|
|
7
|
+
"node": ">=22"
|
|
8
8
|
},
|
|
9
9
|
"main": "./build/src/index.js",
|
|
10
10
|
"types": "./build/src/index.d.ts",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"base64-js": "^1.3.0",
|
|
25
25
|
"ecdsa-sig-formatter": "^1.0.11",
|
|
26
26
|
"gaxios": "^7.1.4",
|
|
27
|
-
"gcp-metadata": "
|
|
28
|
-
"google-logging-utils": "
|
|
27
|
+
"gcp-metadata": "^9.0.0",
|
|
28
|
+
"google-logging-utils": "^2.0.0",
|
|
29
29
|
"jws": "^4.0.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
"gts": "^6.0.2",
|
|
43
43
|
"is-docker": "^3.0.0",
|
|
44
44
|
"jsdoc": "^4.0.4",
|
|
45
|
-
"jsdoc-fresh": "^
|
|
46
|
-
"jsdoc-region-tag": "^
|
|
45
|
+
"jsdoc-fresh": "^6.0.0",
|
|
46
|
+
"jsdoc-region-tag": "^5.0.0",
|
|
47
47
|
"karma": "^6.0.0",
|
|
48
48
|
"karma-chrome-launcher": "^3.0.0",
|
|
49
49
|
"karma-coverage": "^2.0.0",
|
|
50
50
|
"karma-firefox-launcher": "^2.0.0",
|
|
51
51
|
"karma-mocha": "^2.0.0",
|
|
52
52
|
"karma-sourcemap-loader": "^0.4.0",
|
|
53
|
-
"karma-webpack": "^5.0.
|
|
53
|
+
"karma-webpack": "^5.0.0",
|
|
54
54
|
"keypair": "^1.0.4",
|
|
55
55
|
"mocha": "^11.1.0",
|
|
56
56
|
"mv": "^2.1.1",
|
package/openclaw.plugin.json
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
},
|
|
6
6
|
"name": "Google Chat",
|
|
7
7
|
"description": "OpenClaw Google Chat channel plugin for spaces and direct messages.",
|
|
8
|
-
"icon": "https://cdn.simpleicons.org/googlechat",
|
|
9
8
|
"activation": {
|
|
10
9
|
"onStartup": false
|
|
11
10
|
},
|
|
@@ -553,7 +552,6 @@
|
|
|
553
552
|
}
|
|
554
553
|
},
|
|
555
554
|
"groupPolicy": {
|
|
556
|
-
"default": "allowlist",
|
|
557
555
|
"type": "string",
|
|
558
556
|
"enum": [
|
|
559
557
|
"open",
|
|
@@ -937,9 +935,6 @@
|
|
|
937
935
|
]
|
|
938
936
|
}
|
|
939
937
|
},
|
|
940
|
-
"required": [
|
|
941
|
-
"groupPolicy"
|
|
942
|
-
],
|
|
943
938
|
"additionalProperties": false
|
|
944
939
|
}
|
|
945
940
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/googlechat",
|
|
3
|
-
"version": "2026.9.
|
|
3
|
+
"version": "2026.9.2",
|
|
4
4
|
"description": "OpenClaw Google Chat channel plugin for spaces and direct messages.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"google-auth-library": "
|
|
11
|
+
"google-auth-library": "11.0.2",
|
|
12
12
|
"zod": "4.4.3"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"openclaw": ">=2026.9.
|
|
15
|
+
"openclaw": ">=2026.9.2"
|
|
16
16
|
},
|
|
17
17
|
"peerDependenciesMeta": {
|
|
18
18
|
"openclaw": {
|
|
@@ -134,10 +134,10 @@
|
|
|
134
134
|
"minHostVersion": ">=2026.4.10"
|
|
135
135
|
},
|
|
136
136
|
"compat": {
|
|
137
|
-
"pluginApi": ">=2026.9.
|
|
137
|
+
"pluginApi": ">=2026.9.2"
|
|
138
138
|
},
|
|
139
139
|
"build": {
|
|
140
|
-
"openclawVersion": "2026.9.
|
|
140
|
+
"openclawVersion": "2026.9.2"
|
|
141
141
|
},
|
|
142
142
|
"release": {
|
|
143
143
|
"publishToClawHub": true,
|