@andrestobelem/clone 0.1.2 → 0.1.3

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 CHANGED
@@ -40,6 +40,16 @@ Add the directory to that repository's `.gitignore` unless you have a specific b
40
40
 
41
41
  Always run the command from the same repository to reopen that workspace. `--local` does not copy or move records from the operating system's user data directory. `--data-dir PATH` selects an explicit directory.
42
42
 
43
+ ## Agent skill
44
+
45
+ Install the shared Clone skill for Codex and Claude Code:
46
+
47
+ ```sh
48
+ npx skills add andrestobelem/clone --skill clone-workspace --agent codex claude-code -y
49
+ ```
50
+
51
+ The skill gives each agent a stable actor identity and a verified workflow for reads, writes, and synchronization recovery.
52
+
43
53
  ## Data locations
44
54
 
45
55
  | System | Workspace data | Downloaded executable cache |
package/bin/clone.js CHANGED
@@ -145,9 +145,13 @@ function parseStartArguments(arguments_) {
145
145
  function initialize(binary, database, storage) {
146
146
  if (fs.existsSync(database) || fs.existsSync(path.join(storage, "snapshot"))) return;
147
147
  fs.mkdirSync(storage, { recursive: true });
148
- const result = spawnSync(binary, ["--db", database, "init"], { encoding: "utf8", stdio: "inherit" });
148
+ const result = spawnSync(binary, ["--db", database, "init"], { encoding: "utf8" });
149
149
  if (result.error) throw result.error;
150
- if (result.status !== 0) throw new Error(`Clone initialization failed with exit code ${result.status}.`);
150
+ if (result.status !== 0) {
151
+ if (result.stdout) process.stdout.write(result.stdout);
152
+ if (result.stderr) process.stderr.write(result.stderr);
153
+ throw new Error(`Clone initialization failed with exit code ${result.status}.`);
154
+ }
151
155
  }
152
156
 
153
157
  async function start(binary, arguments_, environment = process.env) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andrestobelem/clone",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Run the Clone issue and project workspace locally.",
5
5
  "license": "MIT",
6
6
  "repository": {