@thinremote/thinr-cli 1.4.0 → 1.5.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/CHANGELOG.md +21 -0
- package/README.md +8 -8
- package/lib/identity.js +2 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.5.0] - 2026-10-16
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Dashboard apps, from `@thinger-io/cli-core` 0.4.0: `thinr dashboard init`
|
|
8
|
+
(a TypeScript app from a template of `@thinger-io/dashboard-sdk`, with a
|
|
9
|
+
`thinr.json` and an AGENTS.md), `thinr dashboard dev` (a link that opens
|
|
10
|
+
the app on its own dev server against the server, with a temporary
|
|
11
|
+
token) and `thinr dashboard publish`; MCP tools `thinr_dashboard_init`
|
|
12
|
+
and `thinr_dashboard_dev` (26 tools).
|
|
13
|
+
- `THINR_TOKEN` (an access token) and `THINR_SERVER` replace the saved
|
|
14
|
+
profile in every command and the MCP server (CI), unless `--profile` or
|
|
15
|
+
`THINR_PROFILE` names one.
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- Requires `@thinger-io/cli-core` 0.4.0.
|
|
20
|
+
- The platform's guides (`concepts`, `product-code`, `server-admin`,
|
|
21
|
+
`dashboard-sdk`, `dashboard-sdk-types`) ship with the CLI and the SDK
|
|
22
|
+
package instead of coming from the server, which stops serving `/sdk/`.
|
|
23
|
+
|
|
3
24
|
## [1.4.0] - 2026-10-14
|
|
4
25
|
|
|
5
26
|
Incompatible change of the MCP tools: thinr is now the generic core it
|
package/README.md
CHANGED
|
@@ -468,14 +468,14 @@ thinr is built on [`@thinger-io/cli-core`][cli-core], the core it shares
|
|
|
468
468
|
with the `thinger` CLI, and serves its 23 generic tools with the `thinr_`
|
|
469
469
|
prefix plus one of its own:
|
|
470
470
|
|
|
471
|
-
| Tools
|
|
472
|
-
|
|
|
473
|
-
| `thinr_resource_describe`, `_list`, `_get`, `_create`, `_update`, `_delete`, `_clone`, `_call`
|
|
474
|
-
| `thinr_device_resource_list`, `thinr_device_resource_call`
|
|
475
|
-
| `thinr_bucket_data_read`, `thinr_bucket_data_write`
|
|
476
|
-
| `thinr_storage_file_*`, `
|
|
477
|
-
| `thinr_doc_read`, `thinr_profile_list`
|
|
478
|
-
| `thinr_device_exec`
|
|
471
|
+
| Tools | What for |
|
|
472
|
+
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
473
|
+
| `thinr_resource_describe`, `_list`, `_get`, `_create`, `_update`, `_delete`, `_clone`, `_call` | Every resource type: the server's and ThinRemote's (below), and their actions |
|
|
474
|
+
| `thinr_device_resource_list`, `thinr_device_resource_call` | What a connected device exposes: agent resources (`monitoring`, `cmd`…) and its scripts |
|
|
475
|
+
| `thinr_bucket_data_read`, `thinr_bucket_data_write` | Time series, monitoring history included (bucket `monitoring`) |
|
|
476
|
+
| `thinr_storage_file_*`, `thinr_dashboard_init` / `_dev` / `_publish`, `thinr_plugin_call`, `thinr_product_resource_call`, `thinr_device_data_send`, `thinr_device_overview` | Storages, web dashboards (create, develop against the server, publish), plugins, product APIs, HTTP devices, account usage |
|
|
477
|
+
| `thinr_doc_read`, `thinr_profile_list` | Guides for agents (`thinremote`, `thinremote-scripts`, `thinremote-playbooks`, `thinremote-metrics-logs`, and the platform's: `concepts`, `product-code`, `server-admin`, `dashboard-sdk`) and profiles |
|
|
478
|
+
| `thinr_device_exec` | A shell command on one device, or on several at once (`devices`, `product`, `group`, `all`) |
|
|
479
479
|
|
|
480
480
|
ThinRemote adds its own resource types to the generic tools, so they are
|
|
481
481
|
listed, read, written and deleted like a device or a token:
|
package/lib/identity.js
CHANGED
|
@@ -15,6 +15,7 @@ export const thinrIdentity = {
|
|
|
15
15
|
displayName: 'ThinRemote',
|
|
16
16
|
description: 'CLI for ThinRemote - Remote management for IoT devices',
|
|
17
17
|
configDir: 'thinr-cli',
|
|
18
|
+
npmPackage: '@thinremote/thinr-cli',
|
|
18
19
|
envPrefix: 'THINR',
|
|
19
20
|
token: { id: 'ThinRemote', name: 'ThinRemote' },
|
|
20
21
|
oauth: { clientId: '3b40164d28730e416cbd' },
|
|
@@ -67,7 +68,7 @@ export const thinrIdentity = {
|
|
|
67
68
|
/** Server-level guidance sent to MCP clients on `initialize`. */
|
|
68
69
|
export const mcpInstructions = `Tools to operate ThinRemote fleets: machines running thinr-agent on a Thinger.io server, with the permissions of the token stored in the CLI profile.
|
|
69
70
|
|
|
70
|
-
- Read the guide first: thinr_doc_read id "thinremote" (the agent, products, which tool for each need, recipes); thinr_doc_read without id lists the rest (scripts, playbooks, metrics and logs) and the
|
|
71
|
+
- Read the guide first: thinr_doc_read id "thinremote" (the agent, products, which tool for each need, recipes); thinr_doc_read without id lists the rest (scripts, playbooks, metrics and logs) and the platform's guides (concepts, product code, server administration, the dashboard SDK).
|
|
71
72
|
- Almost everything is a resource type behind thinr_resource_list / _get / _create / _update / _delete / _call, described by thinr_resource_describe: the server's (device, product, bucket, token, alarm…) and ThinRemote's: device_fs (a device's files and folders, parent = the device), device_script, product_script, product_metric, product_log_source and product_playbook (parent = the product; actions validate, run and rollout). Actions on devices: agent_update, agent_install (the command that installs the agent).
|
|
72
73
|
- Shell commands: thinr_device_exec, on one device or on several (devices, product, group, all).
|
|
73
74
|
- Monitoring: live with thinr_device_resource_call resource "monitoring"; history with thinr_bucket_data_read bucket "monitoring" (device for one), stored only for devices of products that have that bucket (ThinRemote products do).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thinremote/thinr-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "CLI for ThinRemote — remote management for IoT devices, with an MCP server for AI clients",
|
|
5
5
|
"main": "bin/thinr.js",
|
|
6
6
|
"bin": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@inkjs/ui": "^2.0.0",
|
|
51
51
|
"@inquirer/prompts": "^8.4.1",
|
|
52
52
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
53
|
-
"@thinger-io/cli-core": "^0.
|
|
53
|
+
"@thinger-io/cli-core": "^0.4.0",
|
|
54
54
|
"axios": "^1.10.0",
|
|
55
55
|
"chalk": "^5.4.1",
|
|
56
56
|
"cli-progress": "^3.12.0",
|