numo-cli 1.0.1 → 1.1.0
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 +3 -0
- package/dist/cli.cjs +5 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
**The ADHD-friendly CLI for Numo — built for humans and AI agents.**
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/numo-cli)
|
|
6
|
+
[](https://www.npmjs.com/package/numo-cli)
|
|
6
7
|
[](LICENSE)
|
|
7
8
|
[](https://github.com/mindistio/numo-cli/actions/workflows/ci.yml)
|
|
8
9
|
|
|
10
|
+
**npm:** [npmjs.com/package/numo-cli](https://www.npmjs.com/package/numo-cli)
|
|
11
|
+
|
|
9
12
|
## Install
|
|
10
13
|
|
|
11
14
|
**npx (no install):**
|
package/dist/cli.cjs
CHANGED
|
@@ -5761,14 +5761,15 @@ async function commit(writes) {
|
|
|
5761
5761
|
const baseUrl = getFirestoreBaseUrl();
|
|
5762
5762
|
const dbUrl = baseUrl.replace("/documents", "");
|
|
5763
5763
|
const url2 = `${dbUrl}/documents:commit`;
|
|
5764
|
+
const toResourceName = (path4) => `${baseUrl}/${path4}`.replace("https://firestore.googleapis.com/v1/", "");
|
|
5764
5765
|
const ops = writes.map((w) => {
|
|
5765
5766
|
if (w.type === "delete") {
|
|
5766
|
-
return { delete:
|
|
5767
|
+
return { delete: toResourceName(w.path) };
|
|
5767
5768
|
}
|
|
5768
5769
|
const op = {};
|
|
5769
5770
|
if (w.type === "update" && w.data) {
|
|
5770
5771
|
op.update = {
|
|
5771
|
-
name:
|
|
5772
|
+
name: toResourceName(w.path),
|
|
5772
5773
|
fields: toFirestoreFields(w.data)
|
|
5773
5774
|
};
|
|
5774
5775
|
if (w.fieldMask) {
|
|
@@ -5777,7 +5778,7 @@ async function commit(writes) {
|
|
|
5777
5778
|
}
|
|
5778
5779
|
if (w.type === "transform") {
|
|
5779
5780
|
op.update = {
|
|
5780
|
-
name:
|
|
5781
|
+
name: toResourceName(w.path),
|
|
5781
5782
|
fields: {}
|
|
5782
5783
|
};
|
|
5783
5784
|
op.updateTransforms = (w.transforms ?? []).map((t2) => ({
|
|
@@ -11303,7 +11304,7 @@ function fetchLatestVersion(state) {
|
|
|
11303
11304
|
// src/cli/cli.ts
|
|
11304
11305
|
init_tty();
|
|
11305
11306
|
init_errors();
|
|
11306
|
-
var CLI_VERSION = true ? "1.0
|
|
11307
|
+
var CLI_VERSION = true ? "1.1.0" : "0.0.0-dev";
|
|
11307
11308
|
var program2 = new Command();
|
|
11308
11309
|
program2.name("numo").description("CLI for Numo \u2014 programmatic access for humans and AI agents").version(CLI_VERSION).option("--json [fields]", "Output as JSON (optionally: comma-separated field names)").option("-q, --quiet", "Suppress interactive output, implies --json").hook("preAction", (thisCommand) => {
|
|
11309
11310
|
const opts = thisCommand.optsWithGlobals();
|