@commercelayer/agent-cli 0.1.1 → 0.1.2
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/commands.js +3 -1
- package/package.json +1 -1
package/dist/commands.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// One function per command. Each returns the object the CLI prints, or throws a
|
|
2
2
|
// CliError. Every command is safe to re-run.
|
|
3
3
|
import fs from 'node:fs';
|
|
4
|
+
import { createRequire } from 'node:module';
|
|
4
5
|
import path from 'node:path';
|
|
5
6
|
import { createApi } from './api/client.js';
|
|
6
7
|
import { ignoreCredentials, paths, readCredentials, requireCredentials, writeCredentials } from './files.js';
|
|
@@ -11,7 +12,8 @@ import { buy } from './ucp/buy.js';
|
|
|
11
12
|
import { check } from './ucp/check.js';
|
|
12
13
|
import { discover } from './ucp/client.js';
|
|
13
14
|
import { agentProfile, AGENT_PROFILE_URL } from './ucp/platform.js';
|
|
14
|
-
|
|
15
|
+
/** The package version, read from package.json so a release bumps it in one place. */
|
|
16
|
+
export const VERSION = createRequire(import.meta.url)('../package.json').version;
|
|
15
17
|
export const HELP = {
|
|
16
18
|
init: 'Create a sandbox store for this repo, with no login. Writes .commercelayer/store.yml and .commercelayer/credentials. Reuses the store if store.yml already exists.',
|
|
17
19
|
plan: 'Show what apply would create, update or delete, from .commercelayer/store.yml and the product files under .commercelayer/products/ (*.yml lists, *.csv rows, merged by sku).',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercelayer/agent-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "c11r: the Commerce Layer CLI for coding agents. Builds a sandbox store that people and shopping agents can buy from.",
|
|
5
5
|
"homepage": "https://commercelayer.ai",
|
|
6
6
|
"keywords": [
|