@matteai/stma 0.2.1

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/LICENSE ADDED
@@ -0,0 +1,93 @@
1
+ Elastic License 2.0 (ELv2)
2
+
3
+ Copyright (c) 2026 Matte AI LLC
4
+
5
+ **Acceptance**
6
+
7
+ By using the software, you agree to all of the terms and conditions below.
8
+
9
+ **Copyright License**
10
+
11
+ The licensor grants you a non-exclusive, royalty-free, worldwide,
12
+ non-sublicensable, non-transferable license to use, copy, distribute, make
13
+ available, and prepare derivative works of the software, in each case subject to
14
+ the limitations and conditions below.
15
+
16
+ **Limitations**
17
+
18
+ You may not provide the software to third parties as a hosted or managed
19
+ service, where the service provides users with access to any substantial set of
20
+ the features or functionality of the software.
21
+
22
+ You may not move, change, disable, or circumvent the license key functionality
23
+ in the software, and you may not remove or obscure any functionality in the
24
+ software that is protected by the license key.
25
+
26
+ You may not alter, remove, or obscure any licensing, copyright, or other notices
27
+ of the licensor in the software. Any use of the licensor's trademarks is subject
28
+ to applicable law.
29
+
30
+ **Patents**
31
+
32
+ The licensor grants you a license, under any patent claims the licensor can
33
+ license, or becomes able to license, to make, have made, use, sell, offer for
34
+ sale, import and have imported the software, in each case subject to the
35
+ limitations and conditions in this license. This license does not cover any
36
+ patent claims that you cause to be infringed by modifications or additions to
37
+ the software. If you or your company make any written claim that the software
38
+ infringes or contributes to infringement of any patent, your patent license for
39
+ the software granted under these terms ends immediately. If your company makes
40
+ such a claim, your patent license ends immediately for work on behalf of your
41
+ company.
42
+
43
+ **Notices**
44
+
45
+ You must ensure that anyone who gets a copy of any part of the software from you
46
+ also gets a copy of these terms.
47
+
48
+ If you modify the software, you must include in any modified copies of the
49
+ software prominent notices stating that you have modified the software.
50
+
51
+ **No Other Rights**
52
+
53
+ These terms do not imply any licenses other than those expressly granted in
54
+ these terms.
55
+
56
+ **Termination**
57
+
58
+ If you use the software in violation of these terms, such use is not licensed,
59
+ and your licenses will automatically terminate. If the licensor provides you
60
+ with a notice of your violation, and you cease all violation of this license no
61
+ later than 30 days after you receive that notice, your licenses will be
62
+ reinstated retroactively. However, if you violate these terms after such
63
+ reinstatement, any additional violation of these terms will cause your licenses
64
+ to terminate automatically and permanently.
65
+
66
+ **No Liability**
67
+
68
+ As far as the law allows, the software comes as is, without any warranty or
69
+ condition, and the licensor will not be liable to you for any damages arising
70
+ out of these terms or the use or nature of the software, under any kind of
71
+ legal claim.
72
+
73
+ **Definitions**
74
+
75
+ The "licensor" is the entity offering these terms, and the "software" is the
76
+ software the licensor makes available under these terms, including any portion
77
+ of it.
78
+
79
+ "you" refers to the individual or entity agreeing to these terms.
80
+
81
+ "your company" is any legal entity, sole proprietorship, or other kind of
82
+ organization that you work for, plus all organizations that have control over,
83
+ are under the control of, or are under common control with that organization.
84
+ "control" means ownership of substantially all the assets of an entity, or the
85
+ power to direct its management and policies by vote, contract, or otherwise.
86
+ Control can be direct or indirect.
87
+
88
+ "your licenses" are all the licenses granted to you for the software under
89
+ these terms.
90
+
91
+ "use" means anything you do with the software requiring one of your licenses.
92
+
93
+ "trademark" means trademarks, service marks, and similar rights.
package/README.md ADDED
@@ -0,0 +1,69 @@
1
+ # stma
2
+
3
+ CLI for **STMA (Speak to my Agent)** — a vendor-neutral control plane for a team's coding
4
+ agents. It makes agent work attributable and safe across humans, repositories and client
5
+ vendors: run lifecycle, leased work claims with a deterministic conflict radar, canonical
6
+ team/project policy with drift receipts, and environment preflight.
7
+
8
+ Works with a hosted STMA deployment or your own self-hosted one
9
+ ([Rheasus/stma](https://github.com/Rheasus/stma)).
10
+
11
+ ## Install
12
+
13
+ ```bash
14
+ npm install -g stma
15
+ # or run it without installing
16
+ npx stma --help
17
+ ```
18
+
19
+ ## Configure
20
+
21
+ The CLI reads two environment variables and never writes your token to disk:
22
+
23
+ ```bash
24
+ export STMA_URL=https://your-deployment.example.com
25
+ export STMA_TOKEN=stma_... # personal access token from the dashboard
26
+ ```
27
+
28
+ PowerShell uses `$env:STMA_URL=...` / `$env:STMA_TOKEN=...`.
29
+
30
+ ## Common commands
31
+
32
+ ```bash
33
+ stma agent register --name alice-codex --client codex
34
+ stma run start --team acme --project payments --task PAY-142 \
35
+ --scope path:src/payments:write --scope migration:payments-db:write
36
+ stma run heartbeat
37
+ stma run finish
38
+
39
+ stma env baseline --team acme --project payments # owner records the golden environment
40
+ stma env preflight --team acme --project payments # compare this machine against it
41
+ stma policy publish --team acme --project payments --file .stma/policy.json
42
+ stma policy pull --team acme --project payments --apply
43
+
44
+ stma run exec --team acme --project payments -- npm test # wrap any command in a run
45
+ ```
46
+
47
+ ## Native lifecycle adapters
48
+
49
+ Install merge-safe project hooks so runs start, heartbeat and finish automatically. The
50
+ install is a dry run by default — review it, then re-run with `--apply`:
51
+
52
+ ```bash
53
+ stma adapter install --target claude-code --team acme --project payments --name alice-claude
54
+ stma adapter install --target claude-code --team acme --project payments --name alice-claude --apply
55
+ ```
56
+
57
+ Targets: `claude-code`, `codex`, `cursor`. Existing hooks in your client config are
58
+ preserved; only STMA's own entries are replaced. Lifecycle events are queued in a bounded
59
+ local outbox when the server is unreachable.
60
+
61
+ ## Privacy
62
+
63
+ Environment snapshots carry tool versions, lockfile hashes and environment variable
64
+ **names** — never values, never file contents. Device identity is a one-way hash; your
65
+ hostname and username are not sent.
66
+
67
+ ## License
68
+
69
+ [Elastic License 2.0](./LICENSE) — © 2026 Matte AI LLC.