@threadcrumbs/common 0.1.0 → 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/LICENSE.md CHANGED
@@ -1,7 +1,34 @@
1
1
  # License
2
2
 
3
- Copyright (c) 2026 Jake McKown. All rights reserved.
3
+ Copyright (c) 2026 Threadcrumbs LLC. All rights reserved.
4
4
 
5
- This software is proprietary. No license is granted to use, copy, modify, merge, publish,
6
- distribute, sublicense or sell it, in whole or in part, except under a separate written
7
- agreement with the copyright holder.
5
+ This software is proprietary. Threadcrumbs LLC grants you a free, non-exclusive,
6
+ non-transferable license to install and run it, as published by Threadcrumbs LLC, on computers
7
+ you own or control, for your personal or internal business use.
8
+
9
+ Paid features, such as Threadnauts Pro, are licensed to you only as your license key and
10
+ subscription allow, under the terms you agreed to when you bought them.
11
+
12
+ You may not:
13
+
14
+ - copy, modify, merge, publish, distribute, sublicense, rent, or sell this software, in whole
15
+ or in part;
16
+ - reverse engineer, decompile, or disassemble it, except where the law allows this despite
17
+ this restriction;
18
+ - get around its license checks, or share a license key or paid content beyond what your
19
+ subscription allows.
20
+
21
+ This license ends automatically if you break these terms. When it ends, you must stop using
22
+ the software and delete your copies of it.
23
+
24
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
25
+ BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND
26
+ NONINFRINGEMENT. TO THE FULLEST EXTENT THE LAW ALLOWS, IN NO EVENT SHALL THREADCRUMBS LLC BE
27
+ LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR
28
+ OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR ITS USE.
29
+
30
+ Any other use needs a separate written agreement with Threadcrumbs LLC
31
+ (hello@threadcrumbs.io).
32
+
33
+ Portions of this software are third-party code used under their own licenses, which are
34
+ reproduced in [NOTICES.md](NOTICES.md). Those licenses govern those portions.
package/NOTICES.md ADDED
@@ -0,0 +1,33 @@
1
+ # Notices
2
+
3
+ ## Third-party
4
+
5
+ @threadcrumbs/common includes the following third-party software, used under its own license.
6
+
7
+ ### Original source code
8
+
9
+ Portions of @threadcrumbs/common are derived from source code released under the MIT License.
10
+
11
+ ```text
12
+ MIT License
13
+
14
+ Copyright (c) 2026 Jarren Rocks
15
+
16
+ Permission is hereby granted, free of charge, to any person obtaining a copy
17
+ of this software and associated documentation files (the "Software"), to deal
18
+ in the Software without restriction, including without limitation the rights
19
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20
+ copies of the Software, and to permit persons to whom the Software is
21
+ furnished to do so, subject to the following conditions:
22
+
23
+ The above copyright notice and this permission notice shall be included in all
24
+ copies or substantial portions of the Software.
25
+
26
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32
+ SOFTWARE.
33
+ ```
package/README.md CHANGED
@@ -50,7 +50,7 @@ An app that publishes to npm depends on a published version instead. This packag
50
50
 
51
51
  1. Raise `version` in `package.json`, and commit it.
52
52
  2. Run `npm pack --dry-run` and check the list: only `package.json`, `README.md`, `LICENSE.md`,
53
- and the folders in `files`.
53
+ `NOTICES.md`, and the folders in `files`.
54
54
  3. Tag the commit `v<version>`, and push the commit and the tag.
55
55
  4. Run `npm publish`. `publishConfig` makes it public, and npm asks for your second factor.
56
56
  5. Check it with `npm view @threadcrumbs/common version`.
@@ -105,4 +105,5 @@ Node 22.13 or newer, for `node:sqlite`.
105
105
 
106
106
  ## License
107
107
 
108
- Proprietary. See [LICENSE.md](LICENSE.md).
108
+ Proprietary. See [LICENSE.md](LICENSE.md). Portions are derived from source code released under
109
+ the MIT License, whose notice is in [NOTICES.md](NOTICES.md) and ships in every copy.
@@ -166,6 +166,7 @@ function emptyState(sidechain, detail) {
166
166
  cost: null,
167
167
  plan: null,
168
168
  prompts: 0,
169
+ uuids: new Set(),
169
170
  }
170
171
  }
171
172
 
@@ -192,6 +193,11 @@ function applyLine(state, line) {
192
193
  }
193
194
 
194
195
  function applyRecord(state, record) {
196
+ const uuid = text(record.uuid)
197
+ if (uuid) {
198
+ if (state.uuids.has(uuid)) return
199
+ state.uuids.add(uuid)
200
+ }
195
201
  const at = Date.parse(record.timestamp)
196
202
  if (at) {
197
203
  if (!state.startedAt) state.startedAt = at
package/license/index.mjs CHANGED
@@ -8,6 +8,7 @@ export const LICENSE_RENEWAL = 7 * DAY
8
8
 
9
9
  export const LICENSE_PUBLIC_KEYS = Object.freeze({
10
10
  '2026-10': 'SyR5jP9LWOFCeOb3piiSLh5CYsgqOfkOgm7a7qkSXQs',
11
+ 'backup-2026-11': 'AAADryrdOxw1mX7b17ZODwqpP7ViKX_eu6_QVuaMBX8',
11
12
  })
12
13
 
13
14
  const encoder = new TextEncoder()
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@threadcrumbs/common",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "description": "Code the Threadcrumbs apps share, starting with the readers for each coding-agent harness.",
6
- "license": "UNLICENSED",
7
- "author": "Jake McKown",
6
+ "license": "SEE LICENSE IN LICENSE.md",
7
+ "author": "Threadcrumbs LLC",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git+https://github.com/threadcrumbs/common.git"
@@ -28,6 +28,7 @@
28
28
  "./lib/*": "./lib/*.mjs"
29
29
  },
30
30
  "files": [
31
+ "NOTICES.md",
31
32
  "harnesses/",
32
33
  "launch/",
33
34
  "license/",