@run402/sdk 4.79.0 → 4.79.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.
package/dist/actions.d.ts CHANGED
@@ -71,7 +71,7 @@ export interface Run402UpActionInput {
71
71
  noRehearse?: boolean;
72
72
  /** Explicit display name to set on the principal when it has none yet.
73
73
  * Omitted: `RUN402_AGENT_NAME` when set, else a specifically detected
74
- * client (`claude-code`, `codex`, `cursor`) reported as `identity.source:
74
+ * client (`claude-code`, `codex`, `cursor`, `grok`) reported as `identity.source:
75
75
  * "detected"`; when nothing is known no name is written and the result
76
76
  * says `identity.source: "undetected"`. */
77
77
  identityName?: string;
@@ -81,7 +81,7 @@ export interface Run402UpIdentity {
81
81
  display_name: string | null;
82
82
  /** `existing`: already set; `explicit`: set now from `identityName` or
83
83
  * `RUN402_AGENT_NAME`; `detected`: set now from a specifically detected
84
- * client (`claude-code`, `codex`, `cursor`); `undetected`: nothing known
84
+ * client (`claude-code`, `codex`, `cursor`, `grok`); `undetected`: nothing known
85
85
  * and nothing persisted — a guess is never written as a name (the room
86
86
  * presence is `agent` for coordination only); `unavailable`: could not be
87
87
  * read or set (never fails the deploy). */
@@ -5,7 +5,7 @@
5
5
  * persisted as a name. `RUN402_AGENT_NAME` (read by `up` before detection)
6
6
  * is the way any runtime names itself with no per-command flag.
7
7
  */
8
- export type DetectedClientName = "claude-code" | "codex" | "cursor";
8
+ export type DetectedClientName = "claude-code" | "codex" | "cursor" | "grok";
9
9
  export declare function detectClientName(env?: NodeJS.ProcessEnv): DetectedClientName | null;
10
10
  /** The name an agent runtime declares for itself, if any (`RUN402_AGENT_NAME`, trimmed). */
11
11
  export declare function declaredAgentName(env?: NodeJS.ProcessEnv): string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"client-detect.d.ts","sourceRoot":"","sources":["../../src/node/client-detect.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEpE,wBAAgB,gBAAgB,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,kBAAkB,GAAG,IAAI,CAKhG;AAED,4FAA4F;AAC5F,wBAAgB,iBAAiB,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,GAAG,IAAI,CAIrF"}
1
+ {"version":3,"file":"client-detect.d.ts","sourceRoot":"","sources":["../../src/node/client-detect.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE7E,wBAAgB,gBAAgB,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,kBAAkB,GAAG,IAAI,CAOhG;AAED,4FAA4F;AAC5F,wBAAgB,iBAAiB,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,GAAG,IAAI,CAIrF"}
@@ -5,6 +5,9 @@ export function detectClientName(env = process.env) {
5
5
  return "codex";
6
6
  if (env.CURSOR_TRACE_ID || env.CURSOR_SESSION_ID || env.CURSOR_AGENT)
7
7
  return "cursor";
8
+ // Grok Build / Grok CLI: GROK_AGENT=1 and a per-session GROK_SESSION_ID.
9
+ if (env.GROK_AGENT || env.GROK_SESSION_ID)
10
+ return "grok";
8
11
  return null;
9
12
  }
10
13
  /** The name an agent runtime declares for itself, if any (`RUN402_AGENT_NAME`, trimmed). */
@@ -1 +1 @@
1
- {"version":3,"file":"client-detect.js","sourceRoot":"","sources":["../../src/node/client-detect.ts"],"names":[],"mappings":"AASA,MAAM,UAAU,gBAAgB,CAAC,MAAyB,OAAO,CAAC,GAAG;IACnE,IAAI,GAAG,CAAC,UAAU,IAAI,GAAG,CAAC,WAAW,IAAI,GAAG,CAAC,sBAAsB,IAAI,GAAG,CAAC,sBAAsB;QAAE,OAAO,aAAa,CAAC;IACxH,IAAI,GAAG,CAAC,aAAa,IAA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,MAAM,UAAU,iBAAiB,CAAC,MAAyB,OAAO,CAAC,GAAG;IACpE,MAAM,GAAG,GAAG,GAAG,CAAC,iBAAiB,CAAC;IAClC,MAAM,IAAI,GAAG,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACvD,OAAO,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;AACvC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@run402/sdk",
3
- "version": "4.79.0",
3
+ "version": "4.79.1",
4
4
  "description": "Typed TypeScript client for the Run402 API. Kernel shared by the run402-mcp server, the run402 CLI, and user-deployed run402 functions.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",