primcli 3.0.0-preview.26 → 3.0.0-preview.27

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.
@@ -7330,6 +7330,7 @@ var ConnectCommand = class ConnectCommand extends Command {
7330
7330
  this.log(JSON.stringify({
7331
7331
  status: "reused",
7332
7332
  pass: meta,
7333
+ skill_command: "primitive skill",
7333
7334
  revoke_command: revokeCommand
7334
7335
  }));
7335
7336
  return;
@@ -7339,6 +7340,7 @@ var ConnectCommand = class ConnectCommand extends Command {
7339
7340
  this.log(`Expires at: ${meta.expires_at}`);
7340
7341
  if (meta.slice_summary) this.log(`Scope: ${meta.slice_summary}`);
7341
7342
  if (meta.manage_url) this.log(`Manage / extend / promote: ${meta.manage_url}`);
7343
+ this.log("Live scoped skill: `primitive skill` (or `primitive skill install`)");
7342
7344
  this.log(`This pass expires automatically. Only run \`${revokeCommand}\` if explicitly asked to revoke access early.`);
7343
7345
  return;
7344
7346
  }
@@ -7378,6 +7380,7 @@ var ConnectCommand = class ConnectCommand extends Command {
7378
7380
  pass: meta,
7379
7381
  preview: claimed.preview,
7380
7382
  guide: claimed.guide,
7383
+ skill_command: "primitive skill",
7381
7384
  revoke_command: revokeCommand
7382
7385
  }));
7383
7386
  return;
@@ -7387,6 +7390,7 @@ var ConnectCommand = class ConnectCommand extends Command {
7387
7390
  this.log(`Expires at: ${meta.expires_at}`);
7388
7391
  if (meta.slice_summary) this.log(`Scope: ${meta.slice_summary}`);
7389
7392
  if (meta.manage_url) this.log(`Manage / extend / promote: ${meta.manage_url}`);
7393
+ this.log("Live scoped skill: `primitive skill` (or `primitive skill install`)");
7390
7394
  if (typeof claimed.guide === "string" && claimed.guide.trim()) {
7391
7395
  this.log("");
7392
7396
  this.log(claimed.guide.trim());
@@ -11822,8 +11826,8 @@ const PRIMITIVE_TEAM_AUTHOR = {
11822
11826
  name: "Primitive Team",
11823
11827
  url: "https://primitive.dev"
11824
11828
  };
11825
- const SDK_VERSION_RANGE = "^3.0.0-preview.26";
11826
- const CLI_VERSION_RANGE = "^3.0.0-preview.26";
11829
+ const SDK_VERSION_RANGE = "^3.0.0-preview.27";
11830
+ const CLI_VERSION_RANGE = "^3.0.0-preview.27";
11827
11831
  const ESBUILD_VERSION_RANGE = "^0.27.0";
11828
11832
  function renderHandler() {
11829
11833
  return `// env.PRIMITIVE_API_KEY, env.PRIMITIVE_WEBHOOK_SECRET, and
@@ -14858,6 +14862,7 @@ var WhoamiCommand = class WhoamiCommand extends Command {
14858
14862
  auth_method: "agent_pass",
14859
14863
  pass,
14860
14864
  grant,
14865
+ skill_command: "primitive skill",
14861
14866
  revoke_command: revokeCommand
14862
14867
  }, null, 2));
14863
14868
  return;
@@ -14870,6 +14875,7 @@ var WhoamiCommand = class WhoamiCommand extends Command {
14870
14875
  if (pass.slice_summary) lines.push(`Scope: ${pass.slice_summary}`);
14871
14876
  if (pass.manage_url) lines.push(`Manage / extend / promote: ${pass.manage_url}`);
14872
14877
  if (perms.length > 0) lines.push(`Permissions: ${perms.join(", ")}`);
14878
+ lines.push("Live scoped skill: `primitive skill`");
14873
14879
  lines.push(`Disconnect and revoke: ${revokeCommand}`);
14874
14880
  this.log(lines.join("\n"));
14875
14881
  return;
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: primitive-connect
3
- description: Load before any primitive command or Primitive mail work, including in a session that is already connected. You have your own email address and it is your identity with people, services and other agents. Covers sending, replying, waiting for an answer or for an external service's sign-up verification code or link, reading and searching mail, --fyi acknowledgements, automatic signals, work claims, thread muting and peer agents, plus connecting this agent from a copied setup instruction (npx -y primitive@latest agent connect) or over the HTTP API without a terminal.
3
+ description: Load before any primitive command or Primitive mail work, including in a session that is already connected or using a temporary Access Pass. Covers your agent email address (sending, replying, waiting for answers or sign-up verification codes/links, reading and searching mail, --fyi acknowledgements, automatic signals, work claims, thread muting and peer agents), claiming temporary Access Passes (primitive connect), respecting global credential locks (primitive lock), pulling your live permission- and entitlement-scoped skill (primitive skill), and connecting an agent from a setup instruction (npx -y primitive@latest agent connect) or over the HTTP API without a terminal.
4
4
  ---
5
5
 
6
6
  # Your email address
@@ -26,6 +26,7 @@ session](#connect-this-session). Never send as your owner's own login instead.
26
26
  | To | Run |
27
27
  | --- | --- |
28
28
  | Know who you are | `primitive whoami` |
29
+ | Load your live scoped skill | `primitive skill` (or `primitive skill install`) |
29
30
  | Write to someone | `primitive send --to <address> --subject "<subject>" --body-stdin` |
30
31
  | Answer an email | `primitive reply --id <email-id> --body-stdin` |
31
32
  | Ask and use the exact answer | `primitive chat <address>`, question on stdin |
@@ -159,10 +160,8 @@ Details: [Trust rules in detail](references/collaboration.md#trust-rules-in-deta
159
160
 
160
161
  ## Connect this session
161
162
 
162
- Skip this in a hook-registered Claude Code session: it is already connected. When the owner
163
- pastes a setup instruction from the Primitive app, that request authorizes the
164
- connection; do not ask again. Run this in your own non-interactive tool shell,
165
- with the setup URL on stdin through a quoted heredoc, never as an argument:
163
+ For a temporary Access Pass (`pit_v1_...`), pipe it into `primitive connect` (it dominates global auth automatically; never run `primitive unlock` if locked) and run `primitive skill` ([Access Passes and live skill](references/access-passes.md)).
164
+ Skip agent setup in a hook-registered Claude Code session: it is already connected. When the owner pastes a setup instruction from the Primitive app, that request authorizes the connection; do not ask again. Run this in your own non-interactive tool shell, with the setup URL on stdin through a quoted heredoc, never as an argument:
166
165
 
167
166
  ```sh
168
167
  npx -y primitive@latest agent connect --session "$CLAUDE_CODE_SESSION_ID" --json <<'INVITATION'
@@ -181,7 +180,7 @@ Without Node.js 22 or a terminal: [HTTP API path](references/manual-setup.md#con
181
180
  Read the one a task needs. Their commands assume this session acts as its
182
181
  agent; without the hook, see [Sessions without the hook](references/connect.md#sessions-without-the-hook).
183
182
 
184
- - Identity: [connect and manage](references/connect.md), [external services](references/external-services.md)
183
+ - Identity: [connect and manage](references/connect.md), [access passes and live skill](references/access-passes.md), [external services](references/external-services.md)
185
184
  - Mail: [conversations](references/conversations.md), [collaboration](references/collaboration.md), [contacts](references/contacts.md), [first contact](references/contact-requests.md)
186
185
  - Receiving: [presence](references/presence-and-receiving.md), [native sessions](references/native-session.md)
187
186
  - Without the CLI: [manual and HTTP setup](references/manual-setup.md), [HTTP helper](references/private-api-fallback.md), [mail helpers](references/communication.md)
@@ -0,0 +1,32 @@
1
+ # Temporary Access Passes and Live Scoped Skill
2
+
3
+ ## Claiming a temporary Access Pass
4
+
5
+ When a user shares a temporary Access Pass URL (`https://api.primitive.dev/v1/access/pit_v1_...`) or `pit_v1_...` token, claim it through stdin so the secret stays out of process listings:
6
+
7
+ ```sh
8
+ printf '%s' '<pass-url-or-token>' | primitive connect
9
+ ```
10
+
11
+ - An active Access Pass binds to this agent session (auto-detecting `PRIMITIVE_SESSION_ID`, Claude Code, Codex, Antigravity, Cursor, Windsurf, Gemini CLI, OpenCode, and similar harnesses, or `--profile <name>`) and automatically dominates any global CLI login (`credentials.json`) or ambient `PRIMITIVE_API_KEY`.
12
+ - Never bypass an active Access Pass to use the user's global login instead, never print the returned API key, and do not auto-revoke the pass after answering unless the user explicitly asks to end access (it expires automatically).
13
+ - If you need more time, wider scope, or a production API key, send the user the management link returned by `primitive connect` or `primitive whoami` (`?action=extend&add=4h`, `?action=expand`, or `?action=promote`).
14
+
15
+ ## Respecting global credential locks (`primitive lock`)
16
+
17
+ Users can lock their global CLI credentials (`credentials.json` and `PRIMITIVE_API_KEY`) with `primitive lock` so local agent sessions cannot accidentally use admin credentials.
18
+
19
+ - Active Access Passes (`primitive connect <url>`) and connected agent profiles (`PRIMITIVE_AGENT_PROFILE`) continue to work normally while locked.
20
+ - If a command fails because global credentials are locked, never run `primitive unlock` or try to work around the lock. Ask the user to share a scoped Access Pass (`primitive connect`) or to unlock manually in their own interactive terminal.
21
+
22
+ ## Loading your live permission- and entitlement-scoped skill
23
+
24
+ After connecting (with an Access Pass, connected agent profile, or API key), pull the live skill document tailored to your exact active permissions and organization entitlements:
25
+
26
+ ```sh
27
+ primitive skill # print live scoped SKILL.md to stdout
28
+ primitive skill install # write into local agent skill directories
29
+ primitive skill --check # exits 0 if fresh, 2 if stale
30
+ ```
31
+
32
+ The live skill only includes capabilities both your credential and the organization permit (such as staged reply and standalone drafts, email rules, mail activity coordination, or semantic search). Re-run `primitive skill` or `primitive skill --check` if the user expands your pass or changes org entitlements.
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "name": "primitive-connect",
3
- "version": "a2e1e9de1cb60b4c",
3
+ "version": "c1133484268300c5",
4
4
  "source": {
5
5
  "repository": "https://github.com/primitivedotdev/skills",
6
6
  "path": "skills/primitive-connect",
7
- "commit": "a178a469ed1310b58bf4f5ce2a15c17c30799edc"
7
+ "commit": "03032d11695af6642d7cb1e0ddd7ae4d954c3ca0"
8
8
  },
9
9
  "files": {
10
- "SKILL.md": "37d40b66010319c6a176bc8eb66affd93cab0968c609ad523dac087d3077d29d",
10
+ "SKILL.md": "4508383562a1ead54a1cb62a6cd0c99661e614ccc14cdda7bcc285c66de3b9fa",
11
11
  "package-lock.json": "5edf89546abae8a22d9cf67d1a0966f1df682e23c341a09a51c2ebdc95866ba9",
12
12
  "package.json": "3ea7cf130139b3106b3e4909032bc53571e6e4cdbde48ab572262e3b4a250ca4",
13
+ "references/access-passes.md": "f8f4d3aa4ae5053effb26e92c5817123f0b6ca1cdc95936fe429857f5350da16",
13
14
  "references/collaboration.md": "b9c599bf66ae58ea8c779cdceddb11882cc9f0da2fba0e4ca363ad8d01d64d5b",
14
15
  "references/communication.md": "d9599e3c563a4cd1c7dd658f730306b669f7ad6522b3632dc55fd5feee60cd30",
15
16
  "references/connect.md": "46d3e62e6b021100a0ddf84269bcb59a1725a3da4e360c797f378ce13cf5c4ec",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primcli",
3
- "version": "3.0.0-preview.26",
3
+ "version": "3.0.0-preview.27",
4
4
  "publishConfig": {
5
5
  "tag": "preview"
6
6
  },