Skip to content

Commit 865a5b7

Browse files
Initial copy of the inkstudioai CLI from the Ink Studio AI repository
0 parents  commit 865a5b7

20 files changed

Lines changed: 3889 additions & 0 deletions

‎.github/workflows/ci.yml‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
# Runs the tests on every Node version that package.json "engines" supports.
4+
5+
on:
6+
pull_request:
7+
push:
8+
branches: [main]
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
test:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
node: ["18.17", "20", "22"]
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version: ${{ matrix.node }}
26+
27+
# No dependencies, so no install step. Bash expands the glob, which Node 18 needs.
28+
- name: Run the tests
29+
run: node --test test/*.test.mjs

‎.github/workflows/release.yml‎

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Release
2+
3+
# Publishes the `inkstudioai` package to npm, then its server.json to the
4+
# MCP Registry. Release: set the same version in package.json and in both
5+
# version fields of server.json, merge, then push a tag `v<version>`.
6+
#
7+
# npm: trusted publishing (OIDC), so there is no npm token. On npmjs.com,
8+
# package inkstudioai > Settings > Trusted Publisher > GitHub Actions:
9+
# user ciroartz, repository inkstudioai-cli, workflow release.yml.
10+
# From a public repository, npm adds provenance on its own.
11+
#
12+
# MCP Registry: GitHub OIDC login, which owns the io.github.ciroartz/ namespace.
13+
14+
on:
15+
push:
16+
tags: ["v*"]
17+
18+
concurrency:
19+
group: release
20+
cancel-in-progress: false
21+
22+
permissions:
23+
contents: read
24+
id-token: write
25+
26+
jobs:
27+
release:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v4
31+
32+
# Trusted publishing needs Node 22.14 or later and npm 11.5.1 or later.
33+
- uses: actions/setup-node@v4
34+
with:
35+
node-version: "22"
36+
registry-url: https://registry.npmjs.org
37+
38+
- name: Update npm
39+
run: npm install -g npm@11
40+
41+
- name: Run the tests
42+
run: node --test test/*.test.mjs
43+
44+
- name: Check that the tag, package.json, and server.json agree
45+
run: |
46+
version=$(node -p "require('./package.json').version")
47+
server=$(node -p "const s = require('./server.json'); s.version + ' ' + s.packages[0].version")
48+
if [ "${GITHUB_REF_NAME}" != "v${version}" ] || [ "${server}" != "${version} ${version}" ]; then
49+
echo "Tag ${GITHUB_REF_NAME}, package.json ${version}, and server.json (${server}) must match." >&2
50+
exit 1
51+
fi
52+
53+
- name: Publish to npm
54+
run: npm publish --access public
55+
56+
- name: Install mcp-publisher
57+
run: |
58+
curl -fsSL "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_linux_amd64.tar.gz" | tar xz mcp-publisher
59+
60+
- name: Publish to the MCP Registry
61+
run: |
62+
./mcp-publisher login github-oidc
63+
# The registry checks mcpName on npm, which can lag a few seconds behind the publish.
64+
for attempt in 1 2 3 4 5; do
65+
./mcp-publisher publish && exit 0
66+
sleep 20
67+
done
68+
exit 1

‎.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
*.tgz
3+
.DS_Store

‎CHANGELOG.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changelog
2+
3+
## 0.1.0
4+
5+
First release.
6+
7+
- Commands: `login` (browser sign-in or `--key`), `logout`, `whoami`, `generate`, `designs`, `gallery`, `styles`, `pricing`, `buy`, `open`, and `mcp`.
8+
- MCP server with the tools `generate_tattoo`, `list_styles`, `get_account`, `search_gallery`, `get_pricing`, `create_checkout`, and `login`.

‎CONTRIBUTING.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Contributing
2+
3+
Bug reports and ideas are welcome in [GitHub issues](https://github.com/ciroartz/inkstudioai-cli/issues).
4+
5+
This repository is a copy of the CLI folder from the private Ink Studio AI repository. Each change there is copied here by an automated commit. A pull request here cannot be merged directly; we apply accepted changes in the main repository, and they come back here with the next copy.
6+
7+
Run the tests with `npm test` (Node.js 18.17 or later, no install step).

‎LICENSE‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 Ink Studio AI
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.

0 commit comments

Comments
 (0)