Skip to content

Commit 05a4a55

Browse files
AlexgodorojaAlex Godoroja
andauthored
catalogue: io.pilot.mysql v9.7.1 (#378)
catalogue: io.pilot.mysql v9.7.1 (rich, from R2) Co-authored-by: Alex Godoroja <alex@vulturelabs.io>
1 parent d2ff52d commit 05a4a55

3 files changed

Lines changed: 118 additions & 1 deletion

File tree

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"schema_version": 1,
3+
"id": "io.pilot.mysql",
4+
"display_name": "Mysql",
5+
"tagline": "MySQL 9.7.1 server + client as a native CLI for agents: a full, real client/server SQL database that runs entirely local",
6+
"description_md": "MySQL 9.7.1 server + client as a native CLI for agents: a full, real client/server SQL database that runs entirely locally with no cloud account and no provisioning. Initialize a data directory, start a server on 127.0.0.1, create databases, and run SQL — results as an aligned table or TSV — with the actual InnoDB engine (transactions, foreign keys, triggers, JSON, window functions). Lifecycle (initialize/start/stop/ping), createdb, query/query_tsv, databases/tables listing, mysqldump, and the full tool surface via a verbatim-argv passthrough. The transactional server-grade sibling of io.pilot.sqlite and io.pilot.postgres.",
7+
"vendor": {
8+
"name": "Pilot Protocol",
9+
"url": "https://pilotprotocol.network",
10+
"contact": "apps@pilotprotocol.network",
11+
"agent_usage": "Agents run a full local MySQL: mysql.initialize lays down a data directory, mysql.start/stop bring a server up (detached) / down on 127.0.0.1:<port>, mysql.ping probes it, mysql.createdb makes databases, mysql.query (aligned table) / mysql.query_tsv (TSV) run SQL, mysql.databases/mysql.tables introspect, mysql.dump backs up via mysqldump, and mysql.exec runs any bundled tool with a verbatim argv (+ optional stdin). Output is text/TSV, or {stdout,stderr,exit} on a non-zero exit.",
12+
"capabilities": "Delivers the official MySQL 9.7.1 server (mysqld) + client suite (mysql, mysqladmin, mysqldump, mysqlshow) as a sha-pinned, relocatable per-OS/arch bundle with a mysqlctl dispatcher that wires basedir/plugin-dir/error-messages to the staged location. A real client/server RDBMS: InnoDB transactions, foreign keys, triggers, stored routines, JSON, window functions, full-text — run locally with no server to provision and no cloud account. Repackaged from the conda-forge MySQL build; GPL-2.0.",
13+
"publisher_pubkey": "ed25519:cTZr4unmAHK/r8fS+TVQ4QiCIORimYe+y+bIdiUUfAY="
14+
},
15+
"source_url": "https://github.com/pilot-protocol/app-template/tree/main/submissions/io.pilot.mysql",
16+
"license": "",
17+
"categories": [],
18+
"size": {
19+
"bundle_bytes": 5359647
20+
},
21+
"methods": [
22+
{
23+
"name": "mysql.initialize",
24+
"summary": "Initialize a new MySQL data directory (system tables + an insecure `root@localhost` with an empty password) — the one-time setup before the first start. This is `mysqld --initialize-insecure --datadir=<datadir>`. The bundle's basedir/plugin-dir/error-messages are wired in automatically."
25+
},
26+
{
27+
"name": "mysql.start",
28+
"summary": "Start a local MySQL server from a data directory, listening on 127.0.0.1:<port>. Runs detached (`--daemonize`) and returns once the server is accepting connections. This is `mysqld --daemonize --datadir=<datadir> --socket=<datadir>/mysql.sock --port=<port> --bind-address=127.0.0.1 --mysqlx=OFF --pid-file=<datadir>/mysqld.pid --log-error=<datadir>/mysqld.err`."
29+
},
30+
{
31+
"name": "mysql.stop",
32+
"summary": "Stop the local server listening on <port> (a clean shutdown). This is `mysqladmin -h 127.0.0.1 -P <port> -u root shutdown`."
33+
},
34+
{
35+
"name": "mysql.ping",
36+
"summary": "Check whether the server on <port> is up and accepting connections (liveness probe). This is `mysqladmin -h 127.0.0.1 -P <port> -u root ping`."
37+
},
38+
{
39+
"name": "mysql.createdb",
40+
"summary": "Create a database on the running server (no-op if it already exists). This is `mysql -h 127.0.0.1 -P <port> -u root -e \"CREATE DATABASE IF NOT EXISTS <dbname>\"`."
41+
},
42+
{
43+
"name": "mysql.query",
44+
"summary": "Run SQL against a database and return an aligned ASCII table — the default, human-readable shape. May contain multiple `;`-separated statements. This is `mysql -h 127.0.0.1 -P <port> -u root -D <database> --table -e <sql>`."
45+
},
46+
{
47+
"name": "mysql.query_tsv",
48+
"summary": "Same as mysql.query but returns tab-separated values (header + rows) via `--batch` — the machine-parseable shape. This is `mysql -h 127.0.0.1 -P <port> -u root -D <database> --batch -e <sql>`."
49+
},
50+
{
51+
"name": "mysql.databases",
52+
"summary": "List the databases on the server (`SHOW DATABASES`). This is `mysql -h 127.0.0.1 -P <port> -u root --table -e \"SHOW DATABASES\"`."
53+
},
54+
{
55+
"name": "mysql.tables",
56+
"summary": "List the tables in a database (`SHOW TABLES`). This is `mysql -h 127.0.0.1 -P <port> -u root -D <database> --table -e \"SHOW TABLES\"`."
57+
},
58+
{
59+
"name": "mysql.dump",
60+
"summary": "Dump a database as SQL (schema + data) with mysqldump — a portable logical backup the agent can save or replay. This is `mysqldump -h 127.0.0.1 -P <port> -u root --no-tablespaces <database>`."
61+
},
62+
{
63+
"name": "mysql.exec",
64+
"summary": "Run any bundled MySQL tool with a verbatim argv — the full surface beyond the curated methods. Payload is {\"args\":[tool, ...]} where tool is one of `mysql`, `mysqld`, `mysqladmin`, `mysqldump`, `mysqlshow`, plus optional {\"stdin\":\"...\"} piped to the process. Examples: {\"args\":[\"mysql\",\"--protocol=TCP\",\"-h\",\"127.0.0.1\",\"-P\",\"13306\",\"-u\",\"root\",\"-D\",\"app\",\"--vertical\",\"-e\",\"SELECT * FROM t\\\\G\"]}; {\"args\":[\"mysqlshow\",\"--protocol=TCP\",\"-h\",\"127.0.0.1\",\"-P\",\"13306\",\"-u\",\"root\",\"app\"]}; {\"args\":[\"mysql\",\"--protocol=TCP\",\"-h\",\"127.0.0.1\",\"-P\",\"13306\",\"-u\",\"root\",\"-D\",\"app\"],\"stdin\":\"SOURCE /work/schema.sql;\"}."
65+
},
66+
{
67+
"name": "mysql.mysql_help",
68+
"summary": "Return the full `mysql` client help — every command-line option — captured from the delivered binary. The reference for what mysql.query / mysql.exec accept."
69+
},
70+
{
71+
"name": "mysql.version",
72+
"summary": "Print the delivered MySQL version, e.g. \"mysql Ver 9.7.1 for … (conda-forge)\". This is `mysql --version`."
73+
}
74+
],
75+
"changelog": [
76+
{
77+
"version": "9.7.1",
78+
"notes": [
79+
"Published v 9.7.1"
80+
]
81+
}
82+
]
83+
}

catalogue/catalogue.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,40 @@
638638
}
639639
},
640640
"publisher": "ed25519:8zcpGtp5sUw3sjLptDR9W/btumEaOv3DO3tTWN/+PCk="
641+
},
642+
{
643+
"id": "io.pilot.mysql",
644+
"version": "9.7.1",
645+
"description": "MySQL 9.7.1 server + client as a native CLI for agents: a full, real client/server SQL database that runs entirely locally with no cloud account and no provisioning. Initialize a data directory, start a server on 127.0.0.1, create databases, and run SQL — results as an aligned table or TSV — with the actual InnoDB engine (transactions, foreign keys, triggers, JSON, window functions). Lifecycle (initialize/start/stop/ping), createdb, query/query_tsv, databases/tables listing, mysqldump, and the full tool surface via a verbatim-argv passthrough. The transactional server-grade sibling of io.pilot.sqlite and io.pilot.postgres.",
646+
"bundle_url": "https://pub-f09f9a4ea848491198d48e329ba030e3.r2.dev/bundles/io.pilot.mysql/9.7.1/io.pilot.mysql-9.7.1-linux-amd64.tar.gz",
647+
"bundle_sha256": "74e57bee2b99cbef1cc10a1120894c6872027766509f0d8d4b252b93d1d0a9e1",
648+
"display_name": "Mysql",
649+
"vendor": "Pilot Protocol",
650+
"categories": [],
651+
"bundle_size": 5359647,
652+
"source_url": "https://github.com/pilot-protocol/app-template/tree/main/submissions/io.pilot.mysql",
653+
"license": "",
654+
"metadata_url": "https://raw.githubusercontent.com/pilot-protocol/pilotprotocol/main/catalogue/apps/io.pilot.mysql/metadata.json",
655+
"metadata_sha256": "b051e9af0bcc334065539cb8870de59e4ff62ca4515cde39bc6b13fbde285a62",
656+
"bundles": {
657+
"linux/amd64": {
658+
"bundle_url": "https://pub-f09f9a4ea848491198d48e329ba030e3.r2.dev/bundles/io.pilot.mysql/9.7.1/io.pilot.mysql-9.7.1-linux-amd64.tar.gz",
659+
"bundle_sha256": "74e57bee2b99cbef1cc10a1120894c6872027766509f0d8d4b252b93d1d0a9e1"
660+
},
661+
"linux/arm64": {
662+
"bundle_url": "https://pub-f09f9a4ea848491198d48e329ba030e3.r2.dev/bundles/io.pilot.mysql/9.7.1/io.pilot.mysql-9.7.1-linux-arm64.tar.gz",
663+
"bundle_sha256": "b37777304ef1976c783e2ad1f667cd8b0188c5a39d5bfe45880ec2baca007fa3"
664+
},
665+
"darwin/amd64": {
666+
"bundle_url": "https://pub-f09f9a4ea848491198d48e329ba030e3.r2.dev/bundles/io.pilot.mysql/9.7.1/io.pilot.mysql-9.7.1-darwin-amd64.tar.gz",
667+
"bundle_sha256": "1cdf637b8dae34b57503ee2dfbd8a6e24eb587c90233edd5718976e9db60120e"
668+
},
669+
"darwin/arm64": {
670+
"bundle_url": "https://pub-f09f9a4ea848491198d48e329ba030e3.r2.dev/bundles/io.pilot.mysql/9.7.1/io.pilot.mysql-9.7.1-darwin-arm64.tar.gz",
671+
"bundle_sha256": "2d6007afea3c6e59aea914c551631c39624ded6cf988dd2252d0dab092e88c21"
672+
}
673+
},
674+
"publisher": "ed25519:cTZr4unmAHK/r8fS+TVQ4QiCIORimYe+y+bIdiUUfAY="
641675
}
642676
]
643677
}

catalogue/catalogue.json.sig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
B6SUaeQm3AZVEbi38wFVVeCMz5/+LvNkrpdaYSUVtfMqeFTF184zjCYg18L6ijqZLx+F3n5fY61bzCq6sZf/Cw==
1+
orqe4RMtOi4pFufIs955zsp6HwJ6dIUwLRqeTnzfetb5tkoPksA1K0q+LgR2byGzOGtzOC8jOq0y/tT4my2BBw==

0 commit comments

Comments
 (0)