Skip to content

Sharing

Everything is shared by invite. Nothing is shared until the other person accepts.

lp share invoice-reconciliation @haroon            # a pack (name or space/pack); role read (default) or --role write
lp share waleed-packs @haroon --role write         # a whole space
lp share OPENAI_API_KEY @haroon --ttl 7d           # a key (use only, never the value; see keys.md)
lp share invoice-reconciliation @haroon --notify team-discord   # also post the invite to a channel

The person invited sees a notice on their next lp command (lp: 1 invite from @waleed: pack ... Run lp invites.), then:

lp invites                      # incoming and sent (--json)
lp invite accept i_0123456789   # packs/spaces are downloaded; key grants start now and last --ttl
lp invite reject i_0123456789

The sender can lp invite cancel <id> while it is pending. lp unshare <thing> @haroon removes access immediately (and cancels pending invites for it). A rejected or cancelled invite gives no access and can't be accepted later.

Roles: read (see, download, run checks), write (also push to the space), use (keys only).

Notifications

printf %s "$WEBHOOK_URL" | lp key add TEAM_DISCORD_WEBHOOK --hosts discord.com
lp channel add team-discord --type discord --key TEAM_DISCORD_WEBHOOK
lp notify team-discord "invoice-reconciliation 0.1.1 is out"
lp notify team-discord --run <workflow-run-id>

Types: discord, slack (webhook URL in the vault), telegram (--chat-id, bot token in the vault), email (Resend; --to, --from). Channel files hold names and key NAMES only.