@gaia-ai/plugin-claude 0.3.0 → 0.4.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 keytec GmbH
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # @gaia-ai/plugin-claude
2
+
3
+ GAIA agent plugin for the Claude CLI.
4
+
5
+ Part of the GAIA conductor. Install the meta package `@gaia-ai/gaia` to get the `gaia` CLI with all plugins. Source: https://git.key-tec.de/keytec/gaia (conductor/).
@@ -1,4 +1,4 @@
1
- import type { AgentPlugin, GaiaAgent } from '@gaia-ai/gaia/plugin';
1
+ import { type AgentPlugin, type GaiaAgent } from '@gaia-ai/core';
2
2
  /**
3
3
  * Encode an absolute cwd the way Claude Code names its per-project transcript
4
4
  * directory under `~/.claude/projects/`: every non-alphanumeric char → `-`.
package/dist/src/index.js CHANGED
@@ -1,10 +1,7 @@
1
1
  import { readdir, readFile, stat } from 'node:fs/promises';
2
2
  import { homedir } from 'node:os';
3
3
  import { join } from 'node:path';
4
- /** POSIX single-quote a string for safe shell embedding. */
5
- function shellSingleQuote(value) {
6
- return `'${value.replaceAll("'", "'\\''")}'`;
7
- }
4
+ import { shellQuote } from '@gaia-ai/core';
8
5
  /**
9
6
  * Encode an absolute cwd the way Claude Code names its per-project transcript
10
7
  * directory under `~/.claude/projects/`: every non-alphanumeric char → `-`.
@@ -24,7 +21,7 @@ export class ClaudeAgent {
24
21
  if (prompt === '') {
25
22
  return 'claude';
26
23
  }
27
- const parts = ['claude', shellSingleQuote(prompt)];
24
+ const parts = ['claude', shellQuote(prompt)];
28
25
  if (this.options.model) {
29
26
  parts.push('--model', this.options.model);
30
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gaia-ai/plugin-claude",
3
- "version": "0.3.0",
3
+ "version": "0.4.1",
4
4
  "description": "GAIA agent plugin for the Claude CLI.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -19,6 +19,6 @@
19
19
  "directory": "conductor/plugins/claude"
20
20
  },
21
21
  "peerDependencies": {
22
- "@gaia-ai/gaia": "^0.3.0"
22
+ "@gaia-ai/core": "^0.4.1"
23
23
  }
24
24
  }