teamclaws 2.0.16 → 2.0.18

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/constants.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export const PACKAGE_NAME = "teamclaws";
2
- export const PACKAGE_VERSION = "2.0.16";
2
+ export const PACKAGE_VERSION = "2.0.18";
3
3
  export const CLIENT_NAME = "teamclaws-cli";
4
4
  export const CONTRACT_VERSION = 1;
5
5
  export const OUTPUT_SCHEMA_VERSION = 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teamclaws",
3
- "version": "2.0.16",
3
+ "version": "2.0.18",
4
4
  "description": "Official TeamClaws command-line client and agent skills",
5
5
  "license": "PolyForm-Shield-1.0.0",
6
6
  "homepage": "https://teamclaws.com",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: teamclaws-project
3
- description: Put authorized files, jobs, agents, or projects on a paired TeamClaws server and run them, including services with the user's public or private access choice.
3
+ description: Find and retrieve authorized files from a paired TeamClaws workspace, or put files, jobs, agents, and projects there and run them.
4
4
  ---
5
5
 
6
6
  # Put work on a TeamClaws server
@@ -59,11 +59,49 @@ teamclaws shell <server-id> --command <one-quoted-command-argument> --json
59
59
  ```
60
60
 
61
61
  This sends the exact command over the authenticated workspace HTTPS shell API.
62
- Each command starts in the remote account's home; use explicit working directories.
63
- The result has `stdout`, `stderr`, and `exit_code`. Require exit 0 and independent
64
- destination verification. There is no dedicated CLI file-transfer command and no
62
+ Check `pwd`, `printf '%s\n' "$HOME"`, and `id` rather than assuming the starting
63
+ directory is the user's home. Use explicit working directories in commands.
64
+ The result has `stdout`, `stderr`, and `exit_code`. Inspect the output and status
65
+ for the operation performed; do not treat every nonzero status as a stop condition.
66
+ Verify file transfers against the destination bytes. There is no dedicated CLI file-transfer command and no
65
67
  implicit SSH connection. Do not invent one or handle the saved credential yourself.
66
68
 
69
+ ### Find a file the user left on the server
70
+
71
+ When the user names a file without a path, explain where they probably put it
72
+ when working through the CLI, then inspect those locations before asking them
73
+ for a full path:
74
+
75
+ - The directory reported by `pwd`, and the project's directory if known.
76
+ - `/tmp/`, especially an existing `/tmp/teamclaws-shared/` handoff directory,
77
+ and `/var/tmp/`. These are temporary locations, not durable storage.
78
+ - The shared workspace, commonly `/home/teamclaws_user/`, including documented
79
+ project, artifact, or handoff directories in `LOCAL_AGENT.md` or project instructions.
80
+ - The paired user's `$HOME` and its `workspace/` directory. This private home
81
+ can differ from the shared workspace and from another agent's home.
82
+
83
+ These are likely locations, not a guarantee that every directory exists or is
84
+ shared with every identity. Inspect the actual paths and permissions. A
85
+ provider's private temporary namespace may differ from the paired shell's `/tmp`.
86
+ Do not change permissions or switch identities to search inaccessible locations.
87
+
88
+ Search the named directory and its children for the exact filename first;
89
+ use a case-insensitive or partial-name search if needed. Prefer `rg --files
90
+ --hidden --no-ignore -g '<filename>' <directory>` when available; otherwise use
91
+ `find <directory> -iname '<filename>' -print`. A search can return matches and a
92
+ nonzero status when one child directory is unreadable. Keep those matches and
93
+ continue searching every other readable directory; report inaccessible branches
94
+ separately. Do not use `set -e` or `&&` to abort independent searches on such errors.
95
+ Do not suppress permission errors or turn an incomplete search into a claim that
96
+ the file does not exist. Check
97
+ directory symlinks explicitly without following them outside the authorized scope.
98
+
99
+ If the file is still unfound, report the actual searched locations and access
100
+ failures before asking for its full path or originating chat/project. To retrieve
101
+ a found non-secret file, return its bytes through the paired shell (base64 is
102
+ suitable), save them locally, and compare the remote and saved SHA-256 hashes.
103
+ Preserve the remote original and do not print encoded file contents unnecessarily.
104
+
67
105
  For ordinary files, use the shell to create a new staging directory, decode
68
106
  base64-encoded file bytes there, and compare SHA-256 hashes against the local
69
107
  files. Construct the argument with a subprocess argument list (no local shell