@artifactshare/cli 0.8.2 → 0.8.4

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to `@artifactshare/cli` are documented here.
4
4
  For user-facing announcements, see https://artifactshare.com/updates?product=cli.
5
5
 
6
+ ## 0.8.4 - 2026-07-27
7
+
8
+ - Route capable coding agents to the CLI even when MCP is available; use remote MCP for chat and temporary sandboxes with uncertain CLI network access.
9
+
10
+ ## 0.8.3 - 2026-07-26
11
+
12
+ - HTML append inserts content before the closing body tag when present, while Markdown and HTML fragments without that tag still append at the source end.
13
+
6
14
  ## 0.8.2 - 2026-07-26
7
15
 
8
16
  - Add `append` for appending UTF-8 content to single-file Markdown and HTML artifacts.
package/README.md CHANGED
@@ -52,7 +52,7 @@ runs add versions to the same file.
52
52
  | `open <target>` | First command for agents opening a shared URL; ensures skills, then reads or suggests download |
53
53
  | `share <path>` | Share a file or folder as a new shared file (`--project`, `--home`, `--visibility`, `--key`, link expiry options) |
54
54
  | `update <target> <path>` | Add a new version to an existing file (ID or share URL) |
55
- | `append <target> <path>` | Append a non-empty UTF-8 file exactly as-is to a single-file Markdown or HTML artifact |
55
+ | `append <target> <path>` | Append a non-empty UTF-8 file without a separator: at Markdown source end or before `</body>` in HTML, falling back to source end |
56
56
  | `edit <target>` | Change title, sharing, link expiry, explicit viewers, or project placement |
57
57
  | `delete <target>` | Permanently delete a file you shared |
58
58
  | `resolve <value>` | Find files by URL, ID, title, or project name |
package/dist/index.js CHANGED
@@ -772,7 +772,7 @@ function appendOutcomeUnknownError(artifactId, error) {
772
772
  code: "append_outcome_unknown",
773
773
  message: "The append result is unknown.",
774
774
  why: error instanceof Error ? `The connection ended before confirmation: ${error.message}` : "The connection ended before Artifact Share confirmed whether the append was saved.",
775
- hint: `Run ${CLI_INVOCATION} artifacts get ${artifactId} --json and inspect the end of content before deciding whether to retry append.`,
775
+ hint: `Run ${CLI_INVOCATION} artifacts get ${artifactId} --json before retrying append. Inspect the source end for Markdown; for HTML, inspect immediately before the selected closing body tag, or the source end when that tag is absent.`,
776
776
  agentRecoverable: true,
777
777
  requiresHuman: false,
778
778
  recovery: {
@@ -5565,7 +5565,7 @@ Common failures:
5565
5565
  });
5566
5566
  const appendDefinition = define({
5567
5567
  name: "append",
5568
- description: "Append a local file to an existing Markdown or HTML artifact.",
5568
+ description: "Append a local UTF-8 file without a separator: at the end of Markdown source, or before an ASCII case-insensitive </body> in HTML and at the end if none exists. Creates a new version at the same URL.",
5569
5569
  toKebab: true,
5570
5570
  args: {
5571
5571
  ...commonArgs,
@@ -5579,7 +5579,7 @@ const appendDefinition = define({
5579
5579
  description: "Non-empty UTF-8 file to append"
5580
5580
  }
5581
5581
  },
5582
- examples: `Append <path> to the current source of an existing artifact.\n\nStatic sites are not supported. Use update to replace the full source instead.`
5582
+ examples: `Append <path> without a separator and create a new version at the existing share URL.\n\nFor Markdown, the file is added at the end of the current source. For HTML, it is inserted immediately before an ASCII case-insensitive </body> closing tag; when the tag is absent, it is added at the end.\n\nStatic sites are not supported. Use update to replace the full source instead.`
5583
5583
  });
5584
5584
  const editDefinition = define({
5585
5585
  name: "edit",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artifactshare/cli",
3
- "version": "0.8.2",
3
+ "version": "0.8.4",
4
4
  "description": "Upload and share HTML, Markdown, folders, and static sites from terminals, AI agents, automation, and CI.",
5
5
  "homepage": "https://artifactshare.com/connect",
6
6
  "license": "Apache-2.0",
@@ -4,7 +4,7 @@ description: Share, publish, upload, host, update, open, or read back existing f
4
4
  ---
5
5
 
6
6
  <!-- artifactshare-skill
7
- version: 30
7
+ version: 32
8
8
  managed: true
9
9
  -->
10
10
 
@@ -30,9 +30,13 @@ sites, and Artifact Share URLs.
30
30
  Run commands with `npx --yes @artifactshare/cli`. When unsure about a
31
31
  command or flag, run `npx --yes @artifactshare/cli <command> --help` first.
32
32
 
33
- Use the CLI whenever the file already exists locally as a file or folder.
34
- The remote MCP tools accept HTML or Markdown source strings; they cannot read
35
- paths like `/Users/.../report.html` from the user's filesystem.
33
+ Honor an explicit user request to use CLI or MCP before selecting the default
34
+ below. Use the CLI when a coding agent can access a user-controlled workspace,
35
+ install the CLI package, and reach Artifact Share, even when MCP tools are also
36
+ available. Use remote MCP for source text in chat or a temporary sandbox when
37
+ CLI network access is unavailable or uncertain; a temporary file alone is not
38
+ enough to try `npx`. MCP OAuth is not CLI authentication: follow the CLI
39
+ `auth_required` recovery for first setup, then reuse the saved CLI profile.
36
40
 
37
41
  When passing paths or free-form text through a shell, quote them. Paths may
38
42
  contain `$`, spaces, `*`, or `?`; use single quotes such as
@@ -81,8 +85,10 @@ contain `$`, spaces, `*`, or `?`; use single quotes such as
81
85
  ## Share
82
86
 
83
87
  Use `share` for new files. Use `update` to replace an existing artifact. Use
84
- `append` to add a non-empty UTF-8 file exactly as-is to a single-file Markdown
85
- or HTML artifact; it adds no newline or separator and does not support sites.
88
+ `append` to add a non-empty UTF-8 file exactly as-is to a single-file artifact;
89
+ Markdown is appended at source end, while HTML is inserted before an ASCII
90
+ case-insensitive `</body>` when present, or at source end otherwise. It adds no
91
+ newline or separator and does not support sites.
86
92
 
87
93
  ```bash
88
94
  npx --yes @artifactshare/cli share ./report.html --json
@@ -4,7 +4,7 @@ alwaysApply: false
4
4
  ---
5
5
 
6
6
  <!-- artifactshare-skill
7
- version: 30
7
+ version: 32
8
8
  managed: true
9
9
  -->
10
10
 
@@ -28,12 +28,17 @@ for creating or designing an artifact inside the chat. Artifact Share is for
28
28
  sharing, updating, opening, or reading back existing files, folders, static
29
29
  sites, and Artifact Share URLs.
30
30
 
31
- Use the CLI for local files and folders. The remote MCP tools accept HTML or
32
- Markdown source strings; they cannot read paths like `/Users/.../report.html`
33
- from the user's filesystem.
31
+ A user-named CLI or MCP route overrides automatic capability selection. Prefer
32
+ the CLI when a coding agent can work in a user-controlled workspace, fetch the
33
+ package, and connect to Artifact Share, even when MCP is available. Use
34
+ remote MCP for source text in chat or a temporary sandbox when CLI network
35
+ access is unavailable or uncertain; a temporary file alone is not enough to
36
+ try `npx`. MCP OAuth is separate from CLI authentication: follow the CLI
37
+ `auth_required` recovery, then reuse the saved profile.
34
38
  Use `append <target> <path> --json` to append a non-empty UTF-8 file exactly
35
- as-is to a single-file Markdown or HTML artifact. It inserts no separator and
36
- does not support static sites.
39
+ as-is to a single-file artifact. Markdown is appended at source end; HTML is
40
+ inserted before an ASCII case-insensitive `</body>` when present, or at source
41
+ end otherwise. It inserts no separator and does not support static sites.
37
42
 
38
43
  Quote paths and free-form text before passing them through a shell. Paths may
39
44
  contain `$`, spaces, `*`, or `?`; use single quotes such as