@jive-sh/jive 0.5.2 → 0.5.3-latest-darwin-arm64

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.
@@ -0,0 +1,4 @@
1
+ [diffend] Oversized file quarantined before diffing.
2
+ name: package/multi-call-binary
3
+ size: 93585122 bytes
4
+ sha256: dea53d7851e655936c72b54222b7ed16c19a448c656bd706c09ffb0ab8e3d16f
package/package.json CHANGED
@@ -1,8 +1,17 @@
1
1
  {
2
2
  "name": "@jive-sh/jive",
3
- "version": "0.5.2",
4
- "license": "MIT",
3
+ "version": "0.5.3-latest-darwin-arm64",
5
4
  "type": "module",
5
+ "license": "MIT",
6
+ "os": [
7
+ "darwin"
8
+ ],
9
+ "cpu": [
10
+ "arm64"
11
+ ],
12
+ "files": [
13
+ "multi-call-binary"
14
+ ],
6
15
  "description": "The Jive CLI: signs you in to Jive, signs your git commits and GitHub pushes with your account's key on the Jive server, and loads repos into a workspace.",
7
16
  "repository": {
8
17
  "type": "git",
@@ -11,35 +20,5 @@
11
20
  "publishConfig": {
12
21
  "access": "public",
13
22
  "provenance": true
14
- },
15
- "files": [
16
- "README.md",
17
- "bin",
18
- "install.cjs"
19
- ],
20
- "scripts": {
21
- "postinstall": "node ./install.cjs"
22
- },
23
- "bin": {
24
- "git-credential-jive": "./bin/git-credential-jive",
25
- "jive": "./bin/jive",
26
- "jive-signing-agent": "./bin/jive-signing-agent",
27
- "jive-ssh-keygen": "./bin/jive-ssh-keygen"
28
- },
29
- "optionalDependencies": {
30
- "@jive-sh/jive-darwin-arm64": "npm:@jive-sh/jive@0.5.2-latest-darwin-arm64",
31
- "@jive-sh/jive-darwin-x64": "npm:@jive-sh/jive@0.5.2-latest-darwin-x64",
32
- "@jive-sh/jive-linux-arm64": "npm:@jive-sh/jive@0.5.2-latest-linux-arm64",
33
- "@jive-sh/jive-linux-x64": "npm:@jive-sh/jive@0.5.2-latest-linux-x64",
34
- "@jive-sh/jive-windows-x64": "npm:@jive-sh/jive@0.5.2-latest-windows-x64"
35
- },
36
- "dependencies": {
37
- "@effect/platform-bun": "^4.0.0",
38
- "@jive-sh/server-client": "0.10.1",
39
- "convex": "^1.48.0",
40
- "effect": "^4.0.0",
41
- "effective-modules": "0.3.1-effect4",
42
- "javascript-time-ago": "^2.6.4",
43
- "oauth2-cli": "^2.0.0"
44
23
  }
45
24
  }
package/README.md DELETED
@@ -1,134 +0,0 @@
1
- # Jive
2
-
3
- Jive is a **developer platform** and an **agentic workforce platform**. Its purpose is to remove every human step from
4
- building and running software and organizations except one: **consent**, a person saying yes to something done on
5
- their behalf. Jive brings the request to the person, takes the yes (a passkey tap), and does everything else.
6
-
7
- - **Developer platform:** the `jive` CLI (this repository), the CI/CD pipeline every Jive package runs (its
8
- [reusable workflow](.github/workflows/reusable-pipeline.yml), contract in [CICD_API.md](CICD_API.md)), and resource
9
- provisioning, which makes sure every resource a package needs exists in its organization.
10
- - **Agentic workforce platform:** workforces of agents and code that run an organization's work. A software factory
11
- is one kind of workforce, binary decompilation another, a business and its operations another.
12
-
13
- <picture>
14
- <source media="(prefers-color-scheme: dark)" srcset="docs/jive-platforms-dark.svg">
15
- <img alt="Agentic workforce, the outer circle, holding three separate circles: software factory, binary decompilation, and a business and its operations" src="docs/jive-platforms-light.svg" width="480">
16
- </picture>
17
-
18
- ## Agentic workflows, not skills
19
-
20
- A **skill** is instructions an agent reads: it may follow them, skip a step, or forget them after a long session, and
21
- nothing records whether it did. An **agentic workflow** is a process defined in code: each step is deterministic code
22
- or a call to an agent for one bounded task; triggers (a schedule, a commit, a message, a threshold) start it; its
23
- state is saved at every step, so a failed or interrupted step is retried rather than the whole run; and every step
24
- records its start, end, outcome and cost. What must happen is enforced by the workflow, not hoped for from the agent.
25
-
26
- So a business process in Jive is "a running, inspectable, maintainable workflow instead of a fragile chain of manual
27
- procedures" ([architecture §3.3](docs/jive_architecture_discussion.md#33-arbitrary-durable-workflows)), and agents
28
- are called for bounded tasks rather than kept as long-running conversations
29
- ([§2.A](docs/jive_architecture_discussion.md#a-workflows-versus-long-lived-claude-channels)). A workforce is a set of
30
- such workflows, the agents they call, and the connectors they act through
31
- ([§3.2](docs/jive_architecture_discussion.md#32-agentic-workforces)). *Planned:* agentic workflows as a package kind
32
- (`jive-abstract-resource-agentic-workflow`) and workforces built from them.
33
-
34
- ## A marketplace of package kinds
35
-
36
- Everything in Jive is an npm package, and **every kind of package is itself a package**: an *abstract*,
37
- `jive-abstract-<kind>`, implements the six CI/CD hooks for that kind, owns its manifest schema, and scaffolds new
38
- packages of the kind. Extending one gives a package a working pipeline with no CI configuration of its own. Kinds
39
- built today: `jive-abstract-library` (npm libraries and CLIs, this one included), `jive-abstract-backend-convex`,
40
- `jive-abstract-app-expo`, `jive-abstract-docker-image`, `jive-abstract-backend-spacetimedb`, and
41
- `jive-abstract-abstraction`, which creates new abstracts. Anyone can publish an abstract, so the set of kinds grows
42
- like a marketplace. *Planned:* `jive create <kind>` finds every `jive-abstract-*` package and offers them as a menu
43
- (`jive create agentic workflow` resolves `jive-abstract-agentic-workflow`).
44
-
45
- **Resources** are the same idea for what packages use. A resource kind is an abstract defining a contract
46
- (`jive-abstract-resource-connector-package-registry`), and an implementation is a package on one system
47
- (`jive-resource-connector-package-registry-npm`). An organization configures one implementation per kind, and callers
48
- name only the kind: `jive provision connector-package-registry @scope/name` makes sure that package exists on
49
- whichever registry the organization uses. Public *ecosystem* packages (abstracts, connectors) are shared; a *usage*
50
- package is someone's own use of them.
51
-
52
- ## No monorepo needed
53
-
54
- Jive began as a way to make independent repositories work like a monorepo
55
- ([§1](docs/jive_architecture_discussion.md#1-executive-framing)). Each package keeps its own repository, version and
56
- pipeline, and Jive supplies what a monorepo would:
57
-
58
- - **One checkout for local work:** `jive init` makes any repository a workspace and `jive load` adds repos to it as
59
- submodules, all signing and pushing the same way, and `jive load` links each one for local development.
60
- - **One way to ship:** every repository runs the same reusable pipeline through its abstract.
61
- - **Connectors instead of shared code:** a package declares the resources it needs and the organization's connectors
62
- provide them, so nothing has to live in the same repository to work together. *Planned:* the code-repository
63
- connector (`jive-abstract-resource-connector-code-repository`, GitHub for jive-sh), so a package's repository and
64
- its URLs come from the organization rather than from paths or a hard-coded host.
65
-
66
- ## What Jive borrows from Brazil and Version Sets
67
-
68
- Amazon builds its services with an internal system called **Brazil**, organised around many small repositories
69
- rather than one. Public descriptions of it are second-hand: a former Amazon build-team engineer's account
70
- ([gist, 2017](https://gist.github.com/terabyte/15a2d3d407285b8b5a0a7964dd6283b0)) and
71
- [ByteByteGo's guide](https://bytebytego.com/guides/how-does-amazon-build-system-work/). In them:
72
-
73
- - code is broken into **packages**, each team owning its own repositories;
74
- - a **version set** is "a list of package versions that are known to be consistent together", and every build runs
75
- "in a version set";
76
- - a default version set, **live**, is where anyone publishes, and each team keeps its own version set, so "no one team
77
- is blocked on" another's builds;
78
- - minor versions are non-breaking, and major versions are "picked up by request only".
79
-
80
- Jive takes the same shape: independent packages in independent repositories and, *planned*, **version sets**: a
81
- pinned set of package versions known to work together, built and tested as a whole before it is promoted, with
82
- dependents updated when a dependency publishes and versions derived from API changes
83
- ([§15.2](docs/jive_architecture_discussion.md#152-versioning-and-version-sets)). Today each package pins the exact
84
- versions it builds with.
85
-
86
- ## Install
87
-
88
- ```sh
89
- bun add -g @jive-sh/jive
90
- ```
91
-
92
- Installing registers `jive-signing-agent` to start at login (a LaunchAgent on macOS, a `systemctl --user` unit on
93
- Linux, a scheduled task on Windows).
94
-
95
- ## Commands
96
-
97
- | Command | What it does |
98
- | --- | --- |
99
- | `jive login` | Opens `https://jive.sh/login?request=…`, where you sign in with your jive.sh passkey, and waits; then fetches your account's public key, which the server creates on first use. |
100
- | `jive login --cicd` | In a GitHub Actions job with `id-token: write`: exchanges the job's ID token for a session of its pipeline. |
101
- | `jive whoami` | Prints the Jive account (`<handle>@jive.sh`) this machine is signed in as. |
102
- | `jive init` | Makes the git repository you are in a workspace: adds `/.jive/` to its .gitignore, signs in to GitHub (one approval), rewrites every .gitmodules at every depth to https URLs, checks out every submodule not yet checked out (one already checked out keeps its HEAD), and configures the root, every submodule and every untracked repository inside it to sign with your account key and push over SSH through `jive-signing-agent`. |
103
- | `jive load <org> <repo>` | Adds a GitHub repo to the workspace as a submodule by its https URL, fetches its submodules, registers your account key on GitHub as an authentication and signing key, configures it the same way, then runs `bun install` and `bun link`. |
104
- | `jive unload <org> <repo>` | Removes a loaded repo. |
105
- | `jive on <org> <repo> -- <command…>` | Runs a command in a loaded repo's directory; its exit code is jive's. |
106
- | `jive provision <kind> <name>` | Makes sure a resource instance exists, e.g. `jive provision connector-package-registry @scope/name`. The instance is `./package.json`'s `jive.resources.<kind>.<name>`, or `--instance '<json>'`. Needs a pipeline session. |
107
- | `jive daemons` | Lists every Jive daemon registered on this machine, with its state, executable and log. |
108
- | `jive upgrade` | Upgrades jive with the package manager that installed it. |
109
-
110
- `--help`, `--version` and Tab completion (`jive --setup-completion`) work as for every command built with
111
- `jive-abstract-library`'s `Cli`.
112
-
113
- ## How signing works
114
-
115
- Your SSH key lives with your Jive account on [`@jive-sh/server`](https://github.com/jive-sh/server); this machine keeps
116
- only its public key (`~/.jive/ssh/account.pub`). A session comes only from your passkey (`jive login`) or, for a
117
- pipeline, its GitHub OIDC token (`jive login --cicd`), and is kept in `~/.jive/session.json` (owner-only, 12 hours).
118
- `jive-signing-agent` serves the SSH agent protocol on `~/.jive/signing-agent.sock`: it lists the public key and sends
119
- each request's bytes to the server's `ssh:sign`, opening the sign-in page itself when no session is live. Each
120
- repository `jive init` or `jive load` configures signs through `jive-ssh-keygen` (ssh-keygen pointed at the agent) and
121
- pushes with `core.sshCommand` through the agent; your `~/.ssh/config` is untouched. Signing needs `ssh-keygen`
122
- (OpenSSH) on PATH.
123
-
124
- ## Developing
125
-
126
- ```sh
127
- bun install
128
- bun run jive:cicd:audit # type check and tests
129
- bun run install:local # build with the jive-abstract-library checkout beside this one, install globally
130
- ```
131
-
132
- Tests never reach jive.sh, the server or GitHub. The signing agent's tests run the real `ssh-keygen` and `ssh-add`
133
- against a fake server; `src/workspace-cutover.test.ts` runs `jive init` on a scratch workspace with nested submodules,
134
- signs a commit through the agent and pushes it over SSH to a local sshd.