@openclaw/googlechat 2026.8.1 → 2026.8.33

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.
Files changed (58) hide show
  1. package/dist/{actions-Bsv9COyy.js → .setup/actions-CnsW76xm.mjs} +10 -9
  2. package/dist/{approval-auth-DnqxUj0j.js → .setup/approval-auth-CjHhfBEJ.mjs} +2 -2
  3. package/dist/{approval-handler.runtime-5Yr5TCX6.js → .setup/approval-handler.runtime-B_SV-U0a.mjs} +3 -3
  4. package/dist/{channel-DAC3b287.js → .setup/channel-7n76_HdW.mjs} +42 -37
  5. package/dist/{channel-base-BpHXDsur.js → .setup/channel-base-B3EzcV7X.mjs} +35 -23
  6. package/dist/{channel.adapters-C2dHazJR.js → .setup/channel.adapters-BmXpUQo9.mjs} +16 -14
  7. package/dist/{channel.runtime-DqiduEYL.js → .setup/channel.runtime-IC-dNFiT.mjs} +11 -10
  8. package/dist/{runtime-api-Dh0CNVS4.js → .setup/runtime-api-Cc5ZuXih.mjs} +1 -1
  9. package/dist/.setup/secret-contract-api-DHLd5XO3.mjs +3 -0
  10. package/dist/.setup/setup-plugin-api-C0zTOlHy.mjs +5 -0
  11. package/dist/.setup/setup-plugin-api-DWL3ZytB.mjs +2 -0
  12. package/dist/api.js +2 -2
  13. package/dist/channel-config-api.js +1 -1
  14. package/dist/channel-plugin-api.js +1 -1
  15. package/dist/directory-contract-api.js +1 -1
  16. package/dist/doctor-contract-api.js +1 -1
  17. package/dist/runtime-api.js +2 -2
  18. package/dist/secret-contract-api.js +1 -1
  19. package/dist/setup-entry.js +3 -2
  20. package/dist/setup-plugin-api.js +1 -4
  21. package/node_modules/google-auth-library/node_modules/gcp-metadata/build/src/index.js +59 -40
  22. package/node_modules/google-auth-library/node_modules/gcp-metadata/build/src/index.js.map +1 -1
  23. package/node_modules/google-auth-library/node_modules/gcp-metadata/package.json +20 -23
  24. package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/colours.d.ts +1 -29
  25. package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/colours.js +13 -13
  26. package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/colours.js.map +1 -1
  27. package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/index.d.ts +1 -0
  28. package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/index.js +1 -1
  29. package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/index.js.map +1 -1
  30. package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/logging-utils.d.ts +2 -135
  31. package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/logging-utils.js +35 -58
  32. package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/logging-utils.js.map +1 -1
  33. package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/temporal.js +8 -8
  34. package/node_modules/google-auth-library/node_modules/google-logging-utils/build/src/temporal.js.map +1 -1
  35. package/node_modules/google-auth-library/node_modules/google-logging-utils/package.json +16 -14
  36. package/node_modules/google-auth-library/package.json +7 -7
  37. package/package.json +5 -5
  38. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/LICENSE +0 -202
  39. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/README.md +0 -73
  40. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/colours.d.ts +0 -1
  41. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/colours.js +0 -81
  42. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/colours.js.map +0 -1
  43. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/index.d.ts +0 -2
  44. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/index.js +0 -31
  45. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/index.js.map +0 -1
  46. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/logging-utils.d.ts +0 -89
  47. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/logging-utils.js +0 -414
  48. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/logging-utils.js.map +0 -1
  49. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/temporal.d.ts +0 -45
  50. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/temporal.js +0 -68
  51. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/build/src/temporal.js.map +0 -1
  52. package/node_modules/google-auth-library/node_modules/gcp-metadata/node_modules/google-logging-utils/package.json +0 -47
  53. /package/dist/{config-api-CsD0IFxF.js → .setup/config-api-CsD0IFxF.mjs} +0 -0
  54. /package/dist/{doctor-contract-BLvSmTXT.js → .setup/doctor-contract-BLvSmTXT.mjs} +0 -0
  55. /package/dist/{secret-contract-DmWM0kwM.js → .setup/secret-contract-DmWM0kwM.mjs} +0 -0
  56. /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
  57. /package/node_modules/google-auth-library/node_modules/{gcp-metadata/node_modules/google-logging-utils → google-logging-utils}/build/src/types.js +0 -0
  58. /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,73 +0,0 @@
1
- # Google Logging Tools
2
-
3
- ## About
4
- This package defines an ad-hoc debug logger utility that can be used as a lightweight alternative to "printf debugging" via `console.log`, and provides more, and more structured information. It is based largely on the ideas of the Node `util.debuglog` function, and the `debug` npm package.
5
-
6
- ## Contracts
7
- These are logging utilities meant primarily for use as an "adhoc debug logger" inside Google libraries. It's possible to use this outside of that context, but it is currently not supported. (You're on your own.)
8
-
9
- Additionally, everything about the debug logging is not intended to be a stable interface - you can't rely on messages to remain the same, or to continue to exist from one version to the next. For now, it is meant to be a tool for local usage by users, to get the equivalent of "printf debugging" output. In the future, it may tie into more things (OpenTelemetry Logging, etc). Structured log output is possible for vacuuming into Cloud Logging.
10
-
11
- This npm package itself is intended to follow semver standards for its own interfaces, but no guarantees are made for supported time windows, etc.
12
-
13
- ## Usage
14
- The user interface for this logging is very similar to Node's built-in logging. The primary unit of logging is called a "system", and some libraries may have sub-units called "subsystems". You separate the system and subsystem with a colon, like "pubsub:leasing" or similar. Wildcards may be used (e.g. "pubsub:*"), and multiple of these system/system:subsystem pairs may be listed out, separated by commas. For generated GAPIC libraries, the "system" will generally be the part of the package name specific to the library (e.g. `@google-cloud/translate` will be `translate`).
15
-
16
- The environment variable for activating logging is `GOOGLE_SDK_NODE_LOGGING`. So you could run your application similarly to this:
17
-
18
- ```
19
- GOOGLE_SDK_NODE_LOGGING=translate node yourApp.js
20
- ```
21
-
22
- Or even enable everything, though you might end up with a firehose if you have multiple libraries as dependencies:
23
-
24
- ```
25
- GOOGLE_SDK_NODE_LOGGING=* node yourApp.js
26
- ```
27
-
28
- ## Logging
29
- Logging functions are created by calling the `log()` function. You pass a system or system:subsystem identifier, and a function is returned. This function may be called directly:
30
-
31
- ```
32
- const logger = log('test');
33
- logger({other:{metadata: 'foo'}}, 'format string %j', {formatted: 'parameter'});
34
- ```
35
-
36
- You may also call shorthands that set the `severity` metadata field, and use defaults for the metadata object generally:
37
-
38
- ```
39
- logger.debug('format string %s', 'string');
40
- logger.info('format string %s', 'string');
41
- logger.warn('format string %s', 'string');
42
- logger.error('format string %s', 'string');
43
- ```
44
-
45
- Finally, the logger function may be used to create a "sub-log", i.e. adding a sub-system to a system:
46
-
47
- ```
48
- const sublogger = logger.sublog('specific');
49
- logger.info('big one');
50
- sublogger.info('specific!');
51
- ```
52
-
53
- This will output two logs, filed under `test` and `test:specific`, respectively.
54
-
55
- ## Backends
56
- Additionally, there is a concept of a logging backend. You can manually set where you want logs to go, by default, and how you want them processed. The `setBackend()` function lets you set a backend manually. `undefined` (reset to defaults) and `null` (disable logging) are also possible options.
57
-
58
- The package provides several built-in options:
59
-
60
- * `getNodeBackend()` This is the default that comes with setting the environment variable. It detects the possibility of coloration in the terminal and formats outputs using `util.format()`.
61
- * `getDebugBackend(debugpkg)` This interfaces with the `debug` npm package. You'd essentially do something like `setBackend(getDebugBackend(require('debug')))`.
62
- * `getStructuredBackend(upstream?)`. This converts log output into structured log JSON objects, suitable for feeding into Cloud Logging. An optional `upstream` parameter lets you funnel the output through another backend instead of `console.log`.
63
-
64
- ## Hooking logs
65
- The log objects you receive from calling `log()` can be hooked as event emitters, like so:
66
-
67
- ```
68
- loggingFunc.on('log', (fields: LogFields, args: unknown[]) => {
69
- // Process logs as you like.
70
- });
71
- ```
72
-
73
- This will not prevent normal log output, and system/system:subsystem identifiers will be cached to make sure that all logs of the same name will output to the same event handlers.
@@ -1,81 +0,0 @@
1
- "use strict";
2
- // Copyright 2024 Google LLC
3
- //
4
- // Licensed under the Apache License, Version 2.0 (the "License");
5
- // you may not use this file except in compliance with the License.
6
- // You may obtain a copy of the License at
7
- //
8
- // https://www.apache.org/licenses/LICENSE-2.0
9
- //
10
- // Unless required by applicable law or agreed to in writing, software
11
- // distributed under the License is distributed on an "AS IS" BASIS,
12
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- // See the License for the specific language governing permissions and
14
- // limitations under the License.
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.Colours = void 0;
17
- /**
18
- * Handles figuring out if we can use ANSI colours and handing out the escape codes.
19
- *
20
- * This is for package-internal use only, and may change at any time.
21
- *
22
- * @private
23
- * @internal
24
- */
25
- class Colours {
26
- static enabled = false;
27
- static reset = '';
28
- static bright = '';
29
- static dim = '';
30
- static red = '';
31
- static green = '';
32
- static yellow = '';
33
- static blue = '';
34
- static magenta = '';
35
- static cyan = '';
36
- static white = '';
37
- static grey = '';
38
- /**
39
- * @param stream The stream (e.g. process.stderr)
40
- * @returns true if the stream should have colourization enabled
41
- */
42
- static isEnabled(stream) {
43
- return (stream && // May happen in browsers.
44
- stream.isTTY &&
45
- (typeof stream.getColorDepth === 'function'
46
- ? stream.getColorDepth() > 2
47
- : true));
48
- }
49
- static refresh() {
50
- Colours.enabled = Colours.isEnabled(process?.stderr);
51
- if (!this.enabled) {
52
- Colours.reset = '';
53
- Colours.bright = '';
54
- Colours.dim = '';
55
- Colours.red = '';
56
- Colours.green = '';
57
- Colours.yellow = '';
58
- Colours.blue = '';
59
- Colours.magenta = '';
60
- Colours.cyan = '';
61
- Colours.white = '';
62
- Colours.grey = '';
63
- }
64
- else {
65
- Colours.reset = '\u001b[0m';
66
- Colours.bright = '\u001b[1m';
67
- Colours.dim = '\u001b[2m';
68
- Colours.red = '\u001b[31m';
69
- Colours.green = '\u001b[32m';
70
- Colours.yellow = '\u001b[33m';
71
- Colours.blue = '\u001b[34m';
72
- Colours.magenta = '\u001b[35m';
73
- Colours.cyan = '\u001b[36m';
74
- Colours.white = '\u001b[37m';
75
- Colours.grey = '\u001b[90m';
76
- }
77
- }
78
- }
79
- exports.Colours = Colours;
80
- Colours.refresh();
81
- //# sourceMappingURL=colours.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"colours.js","sourceRoot":"","sources":["../../src/colours.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAUjC;;;;;;;GAOG;AACH,MAAa,OAAO;IAClB,MAAM,CAAC,OAAO,GAAG,KAAK,CAAC;IACvB,MAAM,CAAC,KAAK,GAAG,EAAE,CAAC;IAClB,MAAM,CAAC,MAAM,GAAG,EAAE,CAAC;IACnB,MAAM,CAAC,GAAG,GAAG,EAAE,CAAC;IAEhB,MAAM,CAAC,GAAG,GAAG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,CAAC,KAAK,GAAG,WAAW,CAAC;YAC5B,OAAO,CAAC,MAAM,GAAG,WAAW,CAAC;YAC7B,OAAO,CAAC,GAAG,GAAG,WAAW,CAAC;YAC1B,OAAO,CAAC,GAAG,GAAG,YAAY,CAAC;YAC3B,OAAO,CAAC,KAAK,GAAG,YAAY,CAAC;YAC7B,OAAO,CAAC,MAAM,GAAG,YAAY,CAAC;YAC9B,OAAO,CAAC,IAAI,GAAG,YAAY,CAAC;YAC5B,OAAO,CAAC,OAAO,GAAG,YAAY,CAAC;YAC/B,OAAO,CAAC,IAAI,GAAG,YAAY,CAAC;YAC5B,OAAO,CAAC,KAAK,GAAG,YAAY,CAAC;YAC7B,OAAO,CAAC,IAAI,GAAG,YAAY,CAAC;QAC9B,CAAC;IACH,CAAC;;AAxDH,0BAyDC;AAED,OAAO,CAAC,OAAO,EAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './logging-utils';
2
- export type { LogFields, LogSeverity, AdhocDebugLogFunction, DebugLogBackend, } from './types';
@@ -1,31 +0,0 @@
1
- "use strict";
2
- // Copyright 2021-2024 Google LLC
3
- //
4
- // Licensed under the Apache License, Version 2.0 (the "License");
5
- // you may not use this file except in compliance with the License.
6
- // You may obtain a copy of the License at
7
- //
8
- // https://www.apache.org/licenses/LICENSE-2.0
9
- //
10
- // Unless required by applicable law or agreed to in writing, software
11
- // distributed under the License is distributed on an "AS IS" BASIS,
12
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- // See the License for the specific language governing permissions and
14
- // limitations under the License.
15
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- var desc = Object.getOwnPropertyDescriptor(m, k);
18
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
- desc = { enumerable: true, get: function() { return m[k]; } };
20
- }
21
- Object.defineProperty(o, k2, desc);
22
- }) : (function(o, m, k, k2) {
23
- if (k2 === undefined) k2 = k;
24
- o[k2] = m[k];
25
- }));
26
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
- };
29
- Object.defineProperty(exports, "__esModule", { value: true });
30
- __exportStar(require("./logging-utils"), exports);
31
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.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;;;;;;;;;;;;;;;;AAEjC,kDAAgC"}
@@ -1,89 +0,0 @@
1
- import { EventEmitter } from 'events';
2
- import { LogFields, LogSeverity, AdhocDebugLogCallable, AdhocDebugLogFunction, DebugLogBackend } from './types';
3
- /**
4
- * Our logger instance. This actually contains the meat of dealing
5
- * with log lines, including EventEmitter. This contains the function
6
- * that will be passed back to users of the package.
7
- */
8
- export declare class AdhocDebugLogger extends EventEmitter {
9
- namespace: string;
10
- upstream: AdhocDebugLogCallable;
11
- func: AdhocDebugLogFunction;
12
- /**
13
- * @param upstream The backend will pass a function that will be
14
- * called whenever our logger function is invoked.
15
- */
16
- constructor(namespace: string, upstream: AdhocDebugLogCallable);
17
- invoke(fields: LogFields, ...args: unknown[]): void;
18
- invokeSeverity(severity: LogSeverity, ...args: unknown[]): void;
19
- }
20
- /**
21
- * This can be used in place of a real logger while waiting for Promises or disabling logging.
22
- */
23
- export declare const placeholder: AdhocDebugLogFunction;
24
- /**
25
- * @returns A backend based on Node util.debuglog; this is the default.
26
- */
27
- export declare function getNodeBackend(): DebugLogBackend;
28
- type DebugPackage = any;
29
- /**
30
- * Creates a "debug" package backend. The user must call require('debug') and pass
31
- * the resulting object to this function.
32
- *
33
- * ```
34
- * setBackend(getDebugBackend(require('debug')))
35
- * ```
36
- *
37
- * https://www.npmjs.com/package/debug
38
- *
39
- * Note: Google does not explicitly endorse or recommend this package; it's just
40
- * being provided as an option.
41
- *
42
- * @returns A backend based on the npm "debug" package.
43
- */
44
- export declare function getDebugBackend(debugPkg: DebugPackage): DebugLogBackend;
45
- /**
46
- * Creates a "structured logging" backend. This pretty much works like the
47
- * Node logger, but it outputs structured logging JSON matching Google
48
- * Cloud's ingestion specs instead of plain text.
49
- *
50
- * ```
51
- * setBackend(getStructuredBackend())
52
- * ```
53
- *
54
- * @param upstream If you want to use something besides the Node backend to
55
- * write the actual log lines into, pass that here.
56
- * @returns A backend based on Google Cloud structured logging.
57
- */
58
- export declare function getStructuredBackend(upstream?: DebugLogBackend): DebugLogBackend;
59
- /**
60
- * The environment variables that we standardized on, for all ad-hoc logging.
61
- */
62
- export declare const env: {
63
- /**
64
- * Filter wildcards specific to the Node syntax, and similar to the built-in
65
- * utils.debuglog() environment variable. If missing, disables logging.
66
- */
67
- nodeEnables: string;
68
- };
69
- /**
70
- * Set the backend to use for our log output.
71
- * - A backend object
72
- * - null to disable logging
73
- * - undefined for "nothing yet", defaults to the Node backend
74
- *
75
- * @param backend Results from one of the get*Backend() functions.
76
- */
77
- export declare function setBackend(backend: DebugLogBackend | null | undefined): void;
78
- /**
79
- * Creates a logging function. Multiple calls to this with the same namespace
80
- * will produce the same logger, with the same event emitter hooks.
81
- *
82
- * Namespaces can be a simple string ("system" name), or a qualified string
83
- * (system:subsystem), which can be used for filtering, or for "system:*".
84
- *
85
- * @param namespace The namespace, a descriptive text string.
86
- * @returns A function you can call that works similar to console.log().
87
- */
88
- export declare function log(namespace: string, parent?: AdhocDebugLogFunction): AdhocDebugLogFunction;
89
- export {};