@functional-systems/srcx 0.1.0-dev.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.
Files changed (52) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/CONTRIBUTING.md +54 -0
  3. package/DESIGN.md +1057 -0
  4. package/LICENSE +202 -0
  5. package/README.md +209 -0
  6. package/RELEASING.md +137 -0
  7. package/VALIDATION.md +181 -0
  8. package/dist/build.d.ts +94 -0
  9. package/dist/build.js +433 -0
  10. package/dist/build.js.map +1 -0
  11. package/dist/chunk.d.ts +30 -0
  12. package/dist/chunk.js +296 -0
  13. package/dist/chunk.js.map +1 -0
  14. package/dist/cli.d.ts +2 -0
  15. package/dist/cli.js +276 -0
  16. package/dist/cli.js.map +1 -0
  17. package/dist/common.d.ts +17 -0
  18. package/dist/common.js +74 -0
  19. package/dist/common.js.map +1 -0
  20. package/dist/git.d.ts +38 -0
  21. package/dist/git.js +224 -0
  22. package/dist/git.js.map +1 -0
  23. package/dist/publish.d.ts +60 -0
  24. package/dist/publish.js +341 -0
  25. package/dist/publish.js.map +1 -0
  26. package/dist/releases.d.ts +8 -0
  27. package/dist/releases.js +79 -0
  28. package/dist/releases.js.map +1 -0
  29. package/dist/remote.d.ts +53 -0
  30. package/dist/remote.js +136 -0
  31. package/dist/remote.js.map +1 -0
  32. package/dist/repository.d.ts +29 -0
  33. package/dist/repository.js +180 -0
  34. package/dist/repository.js.map +1 -0
  35. package/dist/search.d.ts +46 -0
  36. package/dist/search.js +181 -0
  37. package/dist/search.js.map +1 -0
  38. package/dist/settings.d.ts +10 -0
  39. package/dist/settings.js +35 -0
  40. package/dist/settings.js.map +1 -0
  41. package/package.json +58 -0
  42. package/src/build.ts +587 -0
  43. package/src/chunk.ts +328 -0
  44. package/src/cli.ts +366 -0
  45. package/src/common.ts +71 -0
  46. package/src/git.ts +286 -0
  47. package/src/publish.ts +487 -0
  48. package/src/releases.ts +108 -0
  49. package/src/remote.ts +230 -0
  50. package/src/repository.ts +306 -0
  51. package/src/search.ts +282 -0
  52. package/src/settings.ts +59 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,20 @@
1
+ # Changelog
2
+
3
+ ## Unreleased
4
+
5
+ ### Added
6
+
7
+ - Git commit imports, syntax-aware chunks, immutable LambdaDB versions, lexical
8
+ search, exact source reads, and Git tag aliases.
9
+ - Node 22/24 CI, package installation checks, version/channel validation, and
10
+ gated npm dev/rc/stable publication workflows.
11
+ - Contribution and release policies, package metadata, and Apache-2.0 licensing.
12
+
13
+ ### Fixed
14
+
15
+ - Git tag names take precedence over matching commit prefixes.
16
+ - Build commit identity is validated before publication.
17
+ - Pending imports resume without the previous local build artifact.
18
+ - Search/read `--version` selects the corpus instead of printing the CLI version.
19
+
20
+ No npm release has been published yet.
@@ -0,0 +1,54 @@
1
+ # Contributing
2
+
3
+ ## Branches and review
4
+
5
+ `main` remains the default branch and reviewed rc/stable baseline. `develop`
6
+ integrates changes and is the source for npm development builds once enabled.
7
+ These are Git branches, separate from LambdaDB Collection Branches.
8
+
9
+ Create `feat/*`, `fix/*`, or `chore/*` branches from current `develop`. Open PRs
10
+ against `develop` explicitly; GitHub otherwise defaults to `main`. Both long-lived
11
+ branches require a PR, one approving review, resolved review conversations, and
12
+ the `Node.js 22` and `Node.js 24` CI checks against an up-to-date base. New pushes
13
+ dismiss stale approvals. Force pushes and deletion are disabled. Organization
14
+ rules also apply to `main`; repository protection does not override them.
15
+
16
+ Promote reviewed changes through `develop` -> `main` PRs using a merge commit to
17
+ preserve shared ancestry. A `release/*` branch can prepare stable/rc metadata
18
+ for `main` while develop retains a development version. Synchronize release-only
19
+ changes back through a PR with the next development base. Urgent fixes can target
20
+ `main`, followed by a synchronization PR to `develop`.
21
+
22
+ ## Validation
23
+
24
+ ```sh
25
+ npm ci --ignore-scripts
26
+ npm run format:check
27
+ npm run check:version
28
+ npm run typecheck
29
+ npm test
30
+ npm run test:package
31
+ ```
32
+
33
+ CI runs these checks on Node 22 and 24 without LambdaDB credentials. Package
34
+ verification installs the exact tarball in a temporary consumer and exercises
35
+ version/help, Git import and WASM parsing, resumable publication against a
36
+ loopback fixture, version-selected search, and exact reads. It does not call
37
+ LambdaDB or publish npm packages.
38
+
39
+ Keep package and lockfile versions synchronized; the executable reads the package
40
+ version. Add changes to `CHANGELOG.md`. Document flag/JSON/exit-code migrations
41
+ before shipping incompatible behavior. During 0.x, use a minor version for
42
+ incompatible changes and keep patch releases compatible.
43
+
44
+ Use a separate worktree for scoped changes. Before deleting a merged branch,
45
+ verify the remote merge, ancestry, and file contents, and preserve local env/state.
46
+ Do not commit API keys, `.env` files, result handles, or live diagnostic reports.
47
+ Live checks are opt-in and require an explicitly selected development project.
48
+
49
+ ## Releases
50
+
51
+ See [RELEASING.md](RELEASING.md). Preparing this workflow does not publish a package.
52
+ First publication, Trusted Publisher setup, and enabling ongoing dev publication
53
+ are separate maintainer steps. Once enabled, eligible `develop` pushes publish
54
+ automatically; rc/stable tags and GitHub Releases remain explicit actions.