@ebowwa/glm-daemon-telegram 1.4.0 → 1.4.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +34 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebowwa/glm-daemon-telegram",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "Telegram adapter for GLM Daemon with ButlerAgent personality",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/index.ts CHANGED
@@ -272,7 +272,7 @@ const TOOLS: Tool[] = [
272
272
  parameters: { type: 'object', properties: {} },
273
273
  handler: async () => {
274
274
  try {
275
- const result = execSync('doppler secrets --plain 2>&1 | cut -f1').toString();
275
+ const result = execSync('doppler secrets 2>&1').toString();
276
276
  return result;
277
277
  } catch (e: any) {
278
278
  if (e.message?.includes('not found')) return 'doppler CLI not installed';
@@ -280,6 +280,39 @@ const TOOLS: Tool[] = [
280
280
  }
281
281
  }
282
282
  },
283
+ {
284
+ name: 'doppler_projects',
285
+ description: 'List all Doppler projects in the workplace.',
286
+ parameters: { type: 'object', properties: {} },
287
+ handler: async () => {
288
+ try {
289
+ const result = execSync('doppler projects 2>&1').toString();
290
+ return result;
291
+ } catch (e: any) {
292
+ if (e.message?.includes('not found')) return 'doppler CLI not installed';
293
+ return e.stdout?.toString() || e.message;
294
+ }
295
+ }
296
+ },
297
+ {
298
+ name: 'doppler_configs',
299
+ description: 'List configs for a Doppler project.',
300
+ parameters: {
301
+ type: 'object',
302
+ properties: {
303
+ project: { type: 'string', description: 'Project name (optional, uses current)' }
304
+ }
305
+ },
306
+ handler: async (args) => {
307
+ try {
308
+ const project = args.project ? `-p ${args.project}` : '';
309
+ const result = execSync(`doppler configs ${project} 2>&1`).toString();
310
+ return result;
311
+ } catch (e: any) {
312
+ return e.stdout?.toString() || e.message;
313
+ }
314
+ }
315
+ },
283
316
  {
284
317
  name: 'systemctl_status',
285
318
  description: 'Check status of a systemd service.',