@chernabog/sdk 0.2.0 → 0.3.0

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/services.ts +14 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chernabog/sdk",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "license": "MIT",
5
5
  "description": "Services and helpers for writing Chernabog flows and steps",
6
6
  "repository": {
package/src/services.ts CHANGED
@@ -38,7 +38,20 @@ export const Board = Schema.Struct({ projectNumber: Schema.Finite, readyStatus:
38
38
  export type Board = typeof Board.Type;
39
39
 
40
40
  // configDir none is the agent's default home (~/.claude, ~/.codex).
41
- export const Account = Schema.Struct({ name: Schema.String, configDir: Schema.Option(Schema.String), expectedEmail: Schema.Option(Schema.String) });
41
+ // oauthTokenEnv names the environment variable holding a Claude login token
42
+ // (from `claude setup-token`), for a host with no login of its own, such as CI.
43
+ // usageGate none launches without reading usage, which such a token cannot.
44
+ export const UsageGateMode = Schema.Literals(['usage', 'none']);
45
+
46
+ export type UsageGateMode = typeof UsageGateMode.Type;
47
+
48
+ export const Account = Schema.Struct({
49
+ name: Schema.String,
50
+ configDir: Schema.Option(Schema.String),
51
+ expectedEmail: Schema.Option(Schema.String),
52
+ oauthTokenEnv: Schema.Option(Schema.String),
53
+ usageGate: UsageGateMode,
54
+ });
42
55
 
43
56
  export type Account = typeof Account.Type;
44
57