@intutic/id 3.0.5 → 3.0.7

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.
Files changed (2) hide show
  1. package/README.md +17 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # @intutic/id
2
+
3
+ Prefixed, collision-resistant IDs and timestamps for Intutic packages.
4
+
5
+ ```ts
6
+ import { newId, newIso } from '@intutic/id'
7
+
8
+ newId('wk') // 'wk_V1StGXR8_Z5jdHi6B-myT' prefix, underscore, 21-character nanoid
9
+ newIso() // '2026-10-26T21:38:09.123Z' ISO 8601, UTC
10
+ ```
11
+
12
+ - `newId(prefix)` returns `<prefix>_<nanoid(21)>`. Use a short prefix per kind of thing (`wk` for a workspace, `tc` for a tool call) so an ID is readable in a log line and still unique.
13
+ - `newIso()` returns the current time as an ISO 8601 string. Use it instead of formatting dates by hand so timestamps look the same everywhere.
14
+
15
+ The package has one runtime dependency (`nanoid`) and no configuration.
16
+
17
+ MIT licensed. Source: [github.com/intutic/intutic](https://github.com/intutic/intutic/tree/main/packages/id).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intutic/id",
3
- "version": "3.0.5",
3
+ "version": "3.0.7",
4
4
  "description": "Prefixed, collision-resistant ID generation for Intutic workspaces and entities",
5
5
  "license": "MIT",
6
6
  "repository": {