@druumen/sessions-db 0.1.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 +249 -0
- package/LICENSE +201 -0
- package/NOTICE +10 -0
- package/README.md +250 -0
- package/cli/_write-helpers.mjs +99 -0
- package/cli/alias.mjs +115 -0
- package/cli/argparse.mjs +296 -0
- package/cli/close.mjs +116 -0
- package/cli/find.mjs +185 -0
- package/cli/format.mjs +277 -0
- package/cli/link-parent.mjs +133 -0
- package/cli/link.mjs +132 -0
- package/cli/rebuild.mjs +98 -0
- package/cli/sessions-db-session-start-main.mjs +454 -0
- package/cli/sessions-db-session-start.mjs +56 -0
- package/cli/sessions-db.mjs +119 -0
- package/cli/sweep.mjs +171 -0
- package/cli/tree.mjs +127 -0
- package/lib/git-context.mjs +479 -0
- package/lib/identity.mjs +616 -0
- package/lib/index.mjs +145 -0
- package/lib/init.mjs +185 -0
- package/lib/lock.mjs +86 -0
- package/lib/operations.mjs +490 -0
- package/lib/paths.mjs +199 -0
- package/lib/projection.mjs +496 -0
- package/lib/sanitize.mjs +131 -0
- package/lib/storage.mjs +759 -0
- package/lib/sweep.mjs +209 -0
- package/lib/transcript.mjs +230 -0
- package/lib/types.mjs +276 -0
- package/lib/uuid.mjs +116 -0
- package/lib/watch.mjs +217 -0
- package/package.json +53 -0
- package/types/git-context.d.mts +98 -0
- package/types/identity.d.mts +658 -0
- package/types/index.d.mts +10 -0
- package/types/index.d.ts +127 -0
- package/types/init.d.mts +53 -0
- package/types/lock.d.mts +18 -0
- package/types/operations.d.mts +204 -0
- package/types/paths.d.mts +54 -0
- package/types/projection.d.mts +79 -0
- package/types/sanitize.d.mts +39 -0
- package/types/storage.d.mts +276 -0
- package/types/sweep.d.mts +58 -0
- package/types/transcript.d.mts +59 -0
- package/types/types.d.mts +255 -0
- package/types/uuid.d.mts +17 -0
- package/types/watch.d.mts +33 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `@druumen/sessions-db` will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [0.1.0] — 2026-05-15
|
|
9
|
+
|
|
10
|
+
First public release. Extracted from the Druumen monorepo as a
|
|
11
|
+
standalone, Apache-2.0 licensed npm package with zero runtime
|
|
12
|
+
dependencies.
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- **Library API** (one curated entry, `@druumen/sessions-db`):
|
|
17
|
+
`loadProjection`, `watchProjection`, `initProjection`,
|
|
18
|
+
`setAlias`, `linkTask`, `unlinkTask`, `setParent`, `closeSession`,
|
|
19
|
+
`runSweep`, `recordSessionSeen`, `tryUpdateProjection`,
|
|
20
|
+
`rebuildProjection`, `resolveStoragePaths`, plus identity / sanitize /
|
|
21
|
+
uuid / projection-reducer helpers for advanced consumers.
|
|
22
|
+
- **CLI** (`sessions-db` binary, 8 subcommands): `find`, `tree`,
|
|
23
|
+
`alias`, `link`, `link-parent`, `close`, `rebuild`, `sweep`.
|
|
24
|
+
- **Hook** (`sessions-db-session-start` binary): Claude Code
|
|
25
|
+
`SessionStart` integration; bootstrap-safe (kill switch via
|
|
26
|
+
`DRUUMEN_SESSIONS_DB_DISABLED=1`, 2-second hard timeout, always
|
|
27
|
+
exits 0 — never blocks Claude Code start on storage failure).
|
|
28
|
+
- **Identity reconciliation**: 3-priority chain
|
|
29
|
+
(claude_session_id_index → transcript_lineage → fingerprint +
|
|
30
|
+
corroborator). Covers fork / resume / hub-spoke without false-merging
|
|
31
|
+
unrelated sessions.
|
|
32
|
+
- **Storage**: append-only JSONL events log as single source of truth +
|
|
33
|
+
JSON projection cache; lock-safe writes via exclusive-create
|
|
34
|
+
lockfile; rebuild-from-events recovery path.
|
|
35
|
+
- **Sweep**: `activity_state` auto-maintenance
|
|
36
|
+
(active → idle → archived) driven by configurable thresholds, with
|
|
37
|
+
dry-run preview.
|
|
38
|
+
- **Path resolution**: 5-priority chain (explicit arg → env var →
|
|
39
|
+
ascend for `tickets/_logs/` → ascend for `.dru-code/` → default
|
|
40
|
+
`<cwd>/.dru-code/`). Bounded ascend (12 levels max) so the resolver
|
|
41
|
+
never walks to `/` on a slow networked mount.
|
|
42
|
+
- **TypeScript types**: hand-curated `types/index.d.ts` re-export hub
|
|
43
|
+
plus auto-emitted `.d.mts` siblings via `tsc --emitDeclarationOnly`
|
|
44
|
+
+ JSDoc on the source `.mjs` files. Cockpit and other TS consumers
|
|
45
|
+
can `import type { KnownSession, Projection } from '@druumen/sessions-db'`.
|
|
46
|
+
- **Cross-platform**: macOS / Linux / Windows all supported and
|
|
47
|
+
CI-gated. Linux runs on GitLab `test-linux` (Node 20). Windows runs
|
|
48
|
+
on GitHub Actions `windows-latest` (Node 22) on the public mirror
|
|
49
|
+
`github.com/druumen/sessions-db`; the mirror is pushed automatically
|
|
50
|
+
by the GitLab `mirror-to-github` job on every master / tag / fix-or-
|
|
51
|
+
feat-branch push, so Windows CI feedback round-trips in under 30
|
|
52
|
+
minutes during active iteration.
|
|
53
|
+
|
|
54
|
+
### Privacy
|
|
55
|
+
|
|
56
|
+
- `first_prompt_preview` sanitization: NFKC normalize → 9 wrapper
|
|
57
|
+
strip categories (IDE / slash-command / system-reminder / tool-use)
|
|
58
|
+
→ double-pass (catches splice-injection where stripping one wrapper
|
|
59
|
+
exposes a fresh inner wrapper) → UTF-16 codepoint truncation at 200
|
|
60
|
+
chars (no mid-glyph splits).
|
|
61
|
+
- Local-only storage: zero network egress; no telemetry.
|
|
62
|
+
- Privacy opt-out: pass `opts.storeFirstPrompt: false` to
|
|
63
|
+
`recordSessionSeen`, or set env var
|
|
64
|
+
`DRUUMEN_SESSIONS_DB_STORE_PREVIEW=0` (or `=false`, case-insensitive)
|
|
65
|
+
to disable preview storage entirely. When opted out the hook still
|
|
66
|
+
computes fingerprints + transcript_files metadata, so identity
|
|
67
|
+
reconciliation (resume / fork detection) keeps working — only the
|
|
68
|
+
human-readable preview field is dropped. Default `true` (backward
|
|
69
|
+
compat with 0.1.0-dev preview behavior).
|
|
70
|
+
|
|
71
|
+
### Known limitations
|
|
72
|
+
|
|
73
|
+
- Multi-machine sync is not yet supported (single-machine local-only
|
|
74
|
+
in 0.1.x). Multi-host sync targets 0.3.0 with a documented
|
|
75
|
+
schema_version=3 migration.
|
|
76
|
+
- macOS `fs.watch` may emit duplicate events; the library debounces
|
|
77
|
+
internally at 80 ms, so consumers see a single change event per
|
|
78
|
+
logical mutation.
|
|
79
|
+
- (none specific to platform support — see Cross-platform note above for
|
|
80
|
+
current CI coverage.)
|
|
81
|
+
|
|
82
|
+
### Supply chain
|
|
83
|
+
|
|
84
|
+
- **Releases are CI-published only**; no local `npm publish` from
|
|
85
|
+
maintainer laptops. See [`RELEASING.md`](RELEASING.md) for the full
|
|
86
|
+
procedure.
|
|
87
|
+
- **v0.1.0 (bootstrap)** publishes from GitLab CI (`publish-npm` job)
|
|
88
|
+
using a one-time `NPM_TOKEN_BOOTSTRAP` Granular Access Token (48h
|
|
89
|
+
expiry, `@druumen` scope, masked + protected + environment-scoped
|
|
90
|
+
variable, revoked immediately after publish).
|
|
91
|
+
- **v0.1.1 onwards** publish from GitHub Actions
|
|
92
|
+
(`.github/workflows/publish.yml`) via npm **OIDC trusted publishing**
|
|
93
|
+
— no long-lived secrets, short-lived OIDC tokens validated by npm
|
|
94
|
+
registry on each publish — and emit **npm provenance** attestations
|
|
95
|
+
(SLSA-style cryptographically signed build attestations). Consumers
|
|
96
|
+
can verify with `npm view @druumen/sessions-db --json | jq .dist.attestations`.
|
|
97
|
+
- **Tarball `files` whitelist**: only `lib/`, `cli/`, `types/`,
|
|
98
|
+
`LICENSE`, `NOTICE`, `README.md`, `CHANGELOG.md`, `package.json` are
|
|
99
|
+
packed. Tests, fixtures, and dev-only state are excluded by an
|
|
100
|
+
explicit allowlist (not `.npmignore` blocklist).
|
|
101
|
+
- **Account hardening**: maintainer npm account is 2FA-required for
|
|
102
|
+
both login and publish.
|
|
103
|
+
|
|
104
|
+
### Dependencies
|
|
105
|
+
|
|
106
|
+
- Runtime: zero (only `node:fs`, `node:path`, `node:crypto`, `node:os`,
|
|
107
|
+
and other built-in modules).
|
|
108
|
+
- Dev: `typescript` ^5.9.3 (declaration emit only — never bundled into
|
|
109
|
+
the published tarball).
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## Pre-release iteration (build-time history)
|
|
114
|
+
|
|
115
|
+
The entries below document day-by-day construction of 0.1.0 inside the
|
|
116
|
+
Druumen monorepo. They are kept here as build provenance; downstream
|
|
117
|
+
consumers should look at the `[0.1.0]` entry above for the published
|
|
118
|
+
contract.
|
|
119
|
+
|
|
120
|
+
### Day 1 — 2026-05-10
|
|
121
|
+
|
|
122
|
+
- Initial npm package skeleton: `lib/`, `cli/`,
|
|
123
|
+
`__tests__/{unit,cli,hook,git-context}/`.
|
|
124
|
+
- `package.json` with `name=@druumen/sessions-db`, `version=0.0.1-dev`,
|
|
125
|
+
`main`, `types`, `bin`, `exports`, `files`, `engines`, `scripts.test`.
|
|
126
|
+
- Apache 2.0 `LICENSE` + `NOTICE` (Tinfant Tech / Druumen).
|
|
127
|
+
- README outline + this CHANGELOG.
|
|
128
|
+
- Backward-compat thin wrappers at `scripts/sessions-db.mjs` and
|
|
129
|
+
`scripts/hooks/sessions-db-session-start.mjs` so existing
|
|
130
|
+
`~/.claude/settings.json` hook paths and druumen monorepo CLI
|
|
131
|
+
invocations continue to work without re-wiring.
|
|
132
|
+
- Re-export entry `lib/index.mjs` (stub — full public surface filled Day 3).
|
|
133
|
+
- Pure file-move + import-path update — no logic change. 355 tests pass.
|
|
134
|
+
|
|
135
|
+
### Day 2 — 2026-05-10
|
|
136
|
+
|
|
137
|
+
- `tsconfig.sessions-db.json` at worktree root — `allowJs` +
|
|
138
|
+
`emitDeclarationOnly` pipeline. Source files stay `.mjs` (no large
|
|
139
|
+
rewrite); existing JSDoc augmented where needed.
|
|
140
|
+
- `lib/types.mjs` — central `@typedef` source for the public type
|
|
141
|
+
vocabulary.
|
|
142
|
+
- `types/*.d.mts` (auto-emit, 11 files mirroring `lib/*.mjs`) +
|
|
143
|
+
`types/index.d.ts` (hand-crafted curated entry).
|
|
144
|
+
- `__tests__/types-smoke/` — cockpit-style import smoke (4 sub-tests).
|
|
145
|
+
- `package.json`: `devDependencies.typescript` (^5.4.0 — devDep only).
|
|
146
|
+
- 359 tests pass.
|
|
147
|
+
|
|
148
|
+
### Day 3 — 2026-05-10
|
|
149
|
+
|
|
150
|
+
- `lib/operations.mjs` — public write surface
|
|
151
|
+
(`setAlias` / `linkTask` / `unlinkTask` / `setParent` / `closeSession` /
|
|
152
|
+
`runSweep`) with `{ ok, event_id?, error? }` result shape.
|
|
153
|
+
- `lib/index.mjs` filled out — curated re-export hub for the v0.1.0
|
|
154
|
+
public surface.
|
|
155
|
+
- CLI handlers refactored to consume the library API (single source of
|
|
156
|
+
truth for validation + business invariants).
|
|
157
|
+
|
|
158
|
+
### Day 4 — 2026-05-10
|
|
159
|
+
|
|
160
|
+
- `lib/paths.mjs` — 5-priority `resolveStoragePaths` chain (explicit
|
|
161
|
+
arg → env var → tickets/_logs → .dru-code → default).
|
|
162
|
+
- `lib/init.mjs` — Day 4 `initProjection({ rootPath })` form for the
|
|
163
|
+
cockpit Setup Wizard's `.dru-code/` flat-layout default.
|
|
164
|
+
- `STORAGE_FILENAMES` + `MAX_ASCEND_DEPTH` exported.
|
|
165
|
+
- `recordSessionSeen` / `tryUpdateProjection` / `loadProjection`
|
|
166
|
+
updated to delegate to the resolver when no explicit root is given.
|
|
167
|
+
|
|
168
|
+
### Day 5 — 2026-05-10
|
|
169
|
+
|
|
170
|
+
- `.gitlab-ci.yml`: `sessions-db-test-linux` job (path-scoped to
|
|
171
|
+
`packages/sessions-db/**`, `tsconfig.sessions-db.json`,
|
|
172
|
+
`.gitlab-ci.yml`). Cross-platform CI gate. Windows runner TODO.
|
|
173
|
+
- `README.md`: complete operator + library doc — Installation, Library
|
|
174
|
+
API quick start, CLI reference, Hook setup, 5-priority path
|
|
175
|
+
resolution, Privacy, Schema, Versioning, License, Roadmap.
|
|
176
|
+
- `CHANGELOG.md`: this entry (full 0.1.0 inventory + day-by-day
|
|
177
|
+
provenance).
|
|
178
|
+
- `npm pack --dry-run` verified clean (lib/cli/types/LICENSE/NOTICE/
|
|
179
|
+
README/CHANGELOG/package.json only; tests/fixtures excluded via
|
|
180
|
+
`files` field).
|
|
181
|
+
- End-to-end smoke test: tmpdir cockpit-style integration verifies
|
|
182
|
+
`initProjection` → `loadProjection` → `setAlias` → `setParent` →
|
|
183
|
+
`closeSession` → `runSweep` flow as the published API surface.
|
|
184
|
+
- 426 tests pass (Day 4 baseline, no regression).
|
|
185
|
+
|
|
186
|
+
### Day 2.5 — 2026-05-12 (monorepo extraction)
|
|
187
|
+
|
|
188
|
+
- Package history extracted from the Druumen monorepo
|
|
189
|
+
(`drummen.com_cn/packages/sessions-db/`) to a new standalone repo
|
|
190
|
+
`gitlab.tinfant.org/druumen/sessions-db` via `git-filter-repo` so
|
|
191
|
+
the public OSS dependency does not require exposing the private
|
|
192
|
+
monorepo. Apache 2.0 license. History preserved.
|
|
193
|
+
- Monorepo MR !80 strips `packages/sessions-db/` in-tree and adds
|
|
194
|
+
sibling-path resolution to `scripts/sessions-db.mjs` +
|
|
195
|
+
`scripts/hooks/sessions-db-session-start.mjs` so production hooks
|
|
196
|
+
installed via `~/.claude/settings.json` continue to fire without
|
|
197
|
+
re-wiring (resolve to `../../sessions-db/cli/sessions-db.mjs`).
|
|
198
|
+
- GitHub mirror `github.com/druumen/sessions-db` set up via GitLab CI
|
|
199
|
+
`mirror-to-github` job (image: `alpine/git`, fine-grained PAT,
|
|
200
|
+
master + tags + `fix/*` + `feat/*` branch mirroring for iteration).
|
|
201
|
+
|
|
202
|
+
### Day 6 — 2026-05-14 (Windows CI)
|
|
203
|
+
|
|
204
|
+
- GitHub Actions `windows-latest` workflow added (`Windows CI`).
|
|
205
|
+
First run exposed **12 Windows-specific failures** in test
|
|
206
|
+
scaffolding (4 git-context + 4 concurrency NTFS + 3 path
|
|
207
|
+
normalization + 1 init errno shape). Production library/hook code
|
|
208
|
+
was unchanged — 0 lines touched — confirming the production code
|
|
209
|
+
was already cross-platform-portable.
|
|
210
|
+
- Test-only fixes:
|
|
211
|
+
- `pathToFileURL` for spawned-child `node --input-type=module` inline
|
|
212
|
+
imports (`lock.test.mjs`, `storage.test.mjs`) — Windows requires
|
|
213
|
+
`file://` URLs, not absolute paths.
|
|
214
|
+
- `realpathSync.native` for Windows 8.3 short-name resolution in
|
|
215
|
+
`mkTmp` helpers (`git-context.test.mjs`) — `RUNNER~1` collapses
|
|
216
|
+
to `runneradmin`.
|
|
217
|
+
- `normPath` / `assertPathEq` helper for case-insensitive
|
|
218
|
+
slash-normalized path comparison (`git-context.test.mjs`) —
|
|
219
|
+
Windows is case-preserving but case-insensitive at the API.
|
|
220
|
+
- `endsWith(sep + ".git")` (or `'/.git'`) instead of `endsWith('/.git')`
|
|
221
|
+
for git common-dir separator variance.
|
|
222
|
+
- Skip hard-timeout shebang tests on Windows (fake bash binary
|
|
223
|
+
won't execute under cmd.exe / pwsh).
|
|
224
|
+
- Skip POSIX `chmod 0o555` permission test on Windows (NTFS does
|
|
225
|
+
not honor POSIX mode bits — contract still verified on POSIX).
|
|
226
|
+
- `tsc.cmd` shim + `shell: true` for `spawnSync` in
|
|
227
|
+
`types-smoke.test.mjs` — npm installs the .cmd shim on Windows,
|
|
228
|
+
and spawnSync needs a shell to resolve it.
|
|
229
|
+
- `paths.test.mjs`: relaxed exact-equality to `endsWith` for
|
|
230
|
+
`.dru-code` filesystem root ascend (Windows backslash separator).
|
|
231
|
+
- `.gitlab-ci.yml` `test-linux` + `mirror-to-github` rules expanded
|
|
232
|
+
to `fix/*` + `feat/*` (so the mirror job fires for iteration
|
|
233
|
+
branches, enabling sub-30min Windows CI feedback loop).
|
|
234
|
+
- `.github/workflows/sessions-db-windows.yml` push trigger expanded
|
|
235
|
+
to `master` + `fix/**` + `feat/**`.
|
|
236
|
+
- 3 iteration rounds, all under 1 day. Final state: master `708a02e5`
|
|
237
|
+
green on both GitLab `test-linux` and GitHub Actions Windows CI.
|
|
238
|
+
|
|
239
|
+
### Day 7 — 2026-05-14 (supply-chain controls)
|
|
240
|
+
|
|
241
|
+
- `RELEASING.md`: operator playbook for publishing (bootstrap path +
|
|
242
|
+
OIDC path + rotation policy + emergency yank procedure).
|
|
243
|
+
- `.gitlab-ci.yml` `publish-npm` job: bootstrap path for v0.1.0,
|
|
244
|
+
uses `NPM_TOKEN_BOOTSTRAP` masked + protected variable, version
|
|
245
|
+
sanity check against tag, manual-trigger gate, `.npmrc` cleanup.
|
|
246
|
+
- `.github/workflows/publish.yml`: OIDC publish workflow for v0.1.1+
|
|
247
|
+
releases, uses `id-token: write` + `--provenance` flag for npm
|
|
248
|
+
attestations. Inactive until trusted publisher configured on npm
|
|
249
|
+
web (Bootstrap step 7).
|
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for describing the origin of the Work and
|
|
141
|
+
reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Tinfant Tech / Druumen
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
@druumen/sessions-db
|
|
2
|
+
Copyright 2026 Tinfant Tech (https://druumen.com)
|
|
3
|
+
|
|
4
|
+
This product includes software developed at Tinfant Tech (Druumen team).
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
you may not use this file except in compliance with the License.
|
|
8
|
+
You may obtain a copy of the License at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|