agent-shim 9.13.0 → 9.15.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.
@@ -1562,6 +1562,39 @@ declare const GlobalConfigSchema: z.ZodObject<{
1562
1562
  listed: "listed";
1563
1563
  }>>;
1564
1564
  }, z.core.$strict>>>;
1565
+ jobs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1566
+ target: z.ZodUnion<readonly [z.ZodObject<{
1567
+ identity: z.ZodString;
1568
+ }, z.core.$strict>, z.ZodObject<{
1569
+ pool: z.ZodString;
1570
+ }, z.core.$strict>]>;
1571
+ trigger: z.ZodUnion<readonly [z.ZodObject<{
1572
+ at: z.ZodArray<z.ZodObject<{
1573
+ days: z.ZodArray<z.ZodEnum<{
1574
+ mon: "mon";
1575
+ tue: "tue";
1576
+ wed: "wed";
1577
+ thu: "thu";
1578
+ fri: "fri";
1579
+ sat: "sat";
1580
+ sun: "sun";
1581
+ }>>;
1582
+ time: z.ZodString;
1583
+ timeZone: z.ZodOptional<z.ZodString>;
1584
+ }, z.core.$strict>>;
1585
+ }, z.core.$strict>, z.ZodObject<{
1586
+ beforeReset: z.ZodEnum<{
1587
+ fiveHour: "fiveHour";
1588
+ sevenDay: "sevenDay";
1589
+ }>;
1590
+ lead: z.ZodString;
1591
+ }, z.core.$strict>]>;
1592
+ prompt: z.ZodString;
1593
+ cwd: z.ZodString;
1594
+ timeout: z.ZodString;
1595
+ model: z.ZodOptional<z.ZodString>;
1596
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
1597
+ }, z.core.$strict>>>;
1565
1598
  }, z.core.$strict>;
1566
1599
  type GlobalConfig = z.infer<typeof GlobalConfigSchema>;
1567
1600
  /**
@@ -1608,6 +1641,19 @@ declare const IdentitySchema: z.ZodObject<{
1608
1641
  }>>;
1609
1642
  }, z.core.$strict>>;
1610
1643
  }, z.core.$strict>>;
1644
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1645
+ days: z.ZodArray<z.ZodEnum<{
1646
+ mon: "mon";
1647
+ tue: "tue";
1648
+ wed: "wed";
1649
+ thu: "thu";
1650
+ fri: "fri";
1651
+ sat: "sat";
1652
+ sun: "sun";
1653
+ }>>;
1654
+ time: z.ZodString;
1655
+ timeZone: z.ZodOptional<z.ZodString>;
1656
+ }, z.core.$strict>>>;
1611
1657
  }, z.core.$strict>;
1612
1658
  type Identity = z.infer<typeof IdentitySchema>;
1613
1659
  /**
@@ -1711,6 +1757,12 @@ interface LayoutPaths {
1711
1757
  readonly mcpPermissionsFile: string;
1712
1758
  /** The last identity picked from a pool for each directory, so a conversation stays on the account whose prompt cache is warm. */
1713
1759
  readonly usagePicksFile: string;
1760
+ /** The last anchor the front door's window keeper handled for each identity, so a restart neither replays an anchor nor skips one. */
1761
+ readonly usageAnchorsFile: string;
1762
+ /** The last trigger instance the front door's job keeper handled for each job, so a restart neither repeats nor skips a run. */
1763
+ readonly usageJobsFile: string;
1764
+ /** Directory of one append-only `<job>.log` per job: the result of each unattended run. */
1765
+ readonly jobLogsDir: string;
1714
1766
  }
1715
1767
  /**
1716
1768
  * Resolves the state root: `AGENT_SHIM_HOME` when set to a non-empty string (an empty string counts as unset, consistent with how this project treats empty-string environment variables elsewhere, see the ambient-credential guard), otherwise `~/.agent-shim`, or the former `~/.claude-use` when only that exists.
@@ -5083,6 +5135,19 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
5083
5135
  }>>;
5084
5136
  }, zod_v4_core.$strict>>;
5085
5137
  }, zod_v4_core.$strict>>;
5138
+ anchors: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
5139
+ days: zod.ZodArray<zod.ZodEnum<{
5140
+ mon: "mon";
5141
+ tue: "tue";
5142
+ wed: "wed";
5143
+ thu: "thu";
5144
+ fri: "fri";
5145
+ sat: "sat";
5146
+ sun: "sun";
5147
+ }>>;
5148
+ time: zod.ZodString;
5149
+ timeZone: zod.ZodOptional<zod.ZodString>;
5150
+ }, zod_v4_core.$strict>>>;
5086
5151
  }, zod_v4_core.$strict>;
5087
5152
  }, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
5088
5153
  set: _orpc_server.DecoratedProcedure<DoorApiContext & object, IntersectPick<TInitialContext, $OutContext>, zod.ZodObject<{
@@ -5121,6 +5186,19 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
5121
5186
  }>>;
5122
5187
  }, zod_v4_core.$strict>]>>;
5123
5188
  }, zod_v4_core.$strict>]>>;
5189
+ anchors: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodLiteral<false>, zod.ZodArray<zod.ZodObject<{
5190
+ days: zod.ZodArray<zod.ZodEnum<{
5191
+ mon: "mon";
5192
+ tue: "tue";
5193
+ wed: "wed";
5194
+ thu: "thu";
5195
+ fri: "fri";
5196
+ sat: "sat";
5197
+ sun: "sun";
5198
+ }>>;
5199
+ time: zod.ZodString;
5200
+ timeZone: zod.ZodOptional<zod.ZodString>;
5201
+ }, zod_v4_core.$strict>>]>>;
5124
5202
  }, zod_v4_core.$strict>, zod.ZodObject<{
5125
5203
  action: zod.ZodLiteral<"updated">;
5126
5204
  kind: zod.ZodLiteral<"identity">;
@@ -5162,6 +5240,19 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
5162
5240
  }>>;
5163
5241
  }, zod_v4_core.$strict>>;
5164
5242
  }, zod_v4_core.$strict>>;
5243
+ anchors: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
5244
+ days: zod.ZodArray<zod.ZodEnum<{
5245
+ mon: "mon";
5246
+ tue: "tue";
5247
+ wed: "wed";
5248
+ thu: "thu";
5249
+ fri: "fri";
5250
+ sat: "sat";
5251
+ sun: "sun";
5252
+ }>>;
5253
+ time: zod.ZodString;
5254
+ timeZone: zod.ZodOptional<zod.ZodString>;
5255
+ }, zod_v4_core.$strict>>>;
5165
5256
  }, zod_v4_core.$strict>;
5166
5257
  }, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
5167
5258
  remove: _orpc_server.DecoratedProcedure<DoorApiContext & object, IntersectPick<TInitialContext, $OutContext>, zod.ZodObject<{
@@ -5190,6 +5281,7 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
5190
5281
  kind: zod.ZodLiteral<"profile">;
5191
5282
  name: zod.ZodString;
5192
5283
  value: zod.ZodObject<{
5284
+ description: zod.ZodOptional<zod.ZodString>;
5193
5285
  entries: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodObject<{
5194
5286
  value: zod.ZodBoolean;
5195
5287
  when: zod.ZodUnion<readonly [zod.ZodObject<{
@@ -5265,7 +5357,6 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
5265
5357
  key: zod.ZodType<trilean.JsonValue, unknown, zod_v4_core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
5266
5358
  }, zod_v4_core.$strip>], "kind">]>;
5267
5359
  }, zod_v4_core.$strict>]>>>;
5268
- description: zod.ZodOptional<zod.ZodString>;
5269
5360
  extends: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
5270
5361
  categories: zod.ZodOptional<zod.ZodPipe<zod.ZodObject<{
5271
5362
  all: zod.ZodOptional<zod.ZodBoolean>;
@@ -5309,6 +5400,7 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
5309
5400
  kind: zod.ZodLiteral<"profile">;
5310
5401
  name: zod.ZodString;
5311
5402
  value: zod.ZodObject<{
5403
+ description: zod.ZodOptional<zod.ZodString>;
5312
5404
  entries: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodObject<{
5313
5405
  value: zod.ZodBoolean;
5314
5406
  when: zod.ZodUnion<readonly [zod.ZodObject<{
@@ -5384,7 +5476,6 @@ declare function createConfigApiRouter(deps: ConfigApiDeps): {
5384
5476
  key: zod.ZodType<trilean.JsonValue, unknown, zod_v4_core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
5385
5477
  }, zod_v4_core.$strip>], "kind">]>;
5386
5478
  }, zod_v4_core.$strict>]>>>;
5387
- description: zod.ZodOptional<zod.ZodString>;
5388
5479
  extends: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
5389
5480
  categories: zod.ZodOptional<zod.ZodPipe<zod.ZodObject<{
5390
5481
  all: zod.ZodOptional<zod.ZodBoolean>;
@@ -7713,6 +7804,19 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
7713
7804
  }>>;
7714
7805
  }, zod_v4_core.$strict>>;
7715
7806
  }, zod_v4_core.$strict>>;
7807
+ anchors: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
7808
+ days: zod.ZodArray<zod.ZodEnum<{
7809
+ mon: "mon";
7810
+ tue: "tue";
7811
+ wed: "wed";
7812
+ thu: "thu";
7813
+ fri: "fri";
7814
+ sat: "sat";
7815
+ sun: "sun";
7816
+ }>>;
7817
+ time: zod.ZodString;
7818
+ timeZone: zod.ZodOptional<zod.ZodString>;
7819
+ }, zod_v4_core.$strict>>>;
7716
7820
  }, zod_v4_core.$strict>;
7717
7821
  }, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
7718
7822
  set: _orpc_server.DecoratedProcedure<DoorApiContext & object, IntersectPick<TInitialContext, $OutContext>, zod.ZodObject<{
@@ -7751,6 +7855,19 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
7751
7855
  }>>;
7752
7856
  }, zod_v4_core.$strict>]>>;
7753
7857
  }, zod_v4_core.$strict>]>>;
7858
+ anchors: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodLiteral<false>, zod.ZodArray<zod.ZodObject<{
7859
+ days: zod.ZodArray<zod.ZodEnum<{
7860
+ mon: "mon";
7861
+ tue: "tue";
7862
+ wed: "wed";
7863
+ thu: "thu";
7864
+ fri: "fri";
7865
+ sat: "sat";
7866
+ sun: "sun";
7867
+ }>>;
7868
+ time: zod.ZodString;
7869
+ timeZone: zod.ZodOptional<zod.ZodString>;
7870
+ }, zod_v4_core.$strict>>]>>;
7754
7871
  }, zod_v4_core.$strict>, zod.ZodObject<{
7755
7872
  action: zod.ZodLiteral<"updated">;
7756
7873
  kind: zod.ZodLiteral<"identity">;
@@ -7792,6 +7909,19 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
7792
7909
  }>>;
7793
7910
  }, zod_v4_core.$strict>>;
7794
7911
  }, zod_v4_core.$strict>>;
7912
+ anchors: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
7913
+ days: zod.ZodArray<zod.ZodEnum<{
7914
+ mon: "mon";
7915
+ tue: "tue";
7916
+ wed: "wed";
7917
+ thu: "thu";
7918
+ fri: "fri";
7919
+ sat: "sat";
7920
+ sun: "sun";
7921
+ }>>;
7922
+ time: zod.ZodString;
7923
+ timeZone: zod.ZodOptional<zod.ZodString>;
7924
+ }, zod_v4_core.$strict>>>;
7795
7925
  }, zod_v4_core.$strict>;
7796
7926
  }, zod_v4_core.$strict>, MergedErrorMap<$ErrorMap, TErrorMap>>;
7797
7927
  remove: _orpc_server.DecoratedProcedure<DoorApiContext & object, IntersectPick<TInitialContext, $OutContext>, zod.ZodObject<{
@@ -7820,6 +7950,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
7820
7950
  kind: zod.ZodLiteral<"profile">;
7821
7951
  name: zod.ZodString;
7822
7952
  value: zod.ZodObject<{
7953
+ description: zod.ZodOptional<zod.ZodString>;
7823
7954
  entries: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodObject<{
7824
7955
  value: zod.ZodBoolean;
7825
7956
  when: zod.ZodUnion<readonly [zod.ZodObject<{
@@ -7895,7 +8026,6 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
7895
8026
  key: zod.ZodType<trilean.JsonValue, unknown, zod_v4_core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
7896
8027
  }, zod_v4_core.$strip>], "kind">]>;
7897
8028
  }, zod_v4_core.$strict>]>>>;
7898
- description: zod.ZodOptional<zod.ZodString>;
7899
8029
  extends: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
7900
8030
  categories: zod.ZodOptional<zod.ZodPipe<zod.ZodObject<{
7901
8031
  all: zod.ZodOptional<zod.ZodBoolean>;
@@ -7939,6 +8069,7 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
7939
8069
  kind: zod.ZodLiteral<"profile">;
7940
8070
  name: zod.ZodString;
7941
8071
  value: zod.ZodObject<{
8072
+ description: zod.ZodOptional<zod.ZodString>;
7942
8073
  entries: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<readonly [zod.ZodBoolean, zod.ZodObject<{
7943
8074
  value: zod.ZodBoolean;
7944
8075
  when: zod.ZodUnion<readonly [zod.ZodObject<{
@@ -8014,7 +8145,6 @@ declare function createDoorApiRouter(deps: DoorApiDeps): {
8014
8145
  key: zod.ZodType<trilean.JsonValue, unknown, zod_v4_core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
8015
8146
  }, zod_v4_core.$strip>], "kind">]>;
8016
8147
  }, zod_v4_core.$strict>]>>>;
8017
- description: zod.ZodOptional<zod.ZodString>;
8018
8148
  extends: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
8019
8149
  categories: zod.ZodOptional<zod.ZodPipe<zod.ZodObject<{
8020
8150
  all: zod.ZodOptional<zod.ZodBoolean>;
@@ -9782,6 +9912,19 @@ declare const ConfigIdentityAddOutputSchema: z.ZodObject<{
9782
9912
  }>>;
9783
9913
  }, z.core.$strict>>;
9784
9914
  }, z.core.$strict>>;
9915
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
9916
+ days: z.ZodArray<z.ZodEnum<{
9917
+ mon: "mon";
9918
+ tue: "tue";
9919
+ wed: "wed";
9920
+ thu: "thu";
9921
+ fri: "fri";
9922
+ sat: "sat";
9923
+ sun: "sun";
9924
+ }>>;
9925
+ time: z.ZodString;
9926
+ timeZone: z.ZodOptional<z.ZodString>;
9927
+ }, z.core.$strict>>>;
9785
9928
  }, z.core.$strict>;
9786
9929
  }, z.core.$strict>;
9787
9930
  /** `defaultConfigProfile: false` clears it; `credential: false` removes the credential block, returning the identity to its stored login. At least one field must be present. */
@@ -9821,6 +9964,19 @@ declare const ConfigIdentitySetInputSchema: z.ZodObject<{
9821
9964
  }>>;
9822
9965
  }, z.core.$strict>]>>;
9823
9966
  }, z.core.$strict>]>>;
9967
+ anchors: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodArray<z.ZodObject<{
9968
+ days: z.ZodArray<z.ZodEnum<{
9969
+ mon: "mon";
9970
+ tue: "tue";
9971
+ wed: "wed";
9972
+ thu: "thu";
9973
+ fri: "fri";
9974
+ sat: "sat";
9975
+ sun: "sun";
9976
+ }>>;
9977
+ time: z.ZodString;
9978
+ timeZone: z.ZodOptional<z.ZodString>;
9979
+ }, z.core.$strict>>]>>;
9824
9980
  }, z.core.$strict>;
9825
9981
  declare const ConfigIdentitySetOutputSchema: z.ZodObject<{
9826
9982
  action: z.ZodLiteral<"updated">;
@@ -9863,6 +10019,19 @@ declare const ConfigIdentitySetOutputSchema: z.ZodObject<{
9863
10019
  }>>;
9864
10020
  }, z.core.$strict>>;
9865
10021
  }, z.core.$strict>>;
10022
+ anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
10023
+ days: z.ZodArray<z.ZodEnum<{
10024
+ mon: "mon";
10025
+ tue: "tue";
10026
+ wed: "wed";
10027
+ thu: "thu";
10028
+ fri: "fri";
10029
+ sat: "sat";
10030
+ sun: "sun";
10031
+ }>>;
10032
+ time: z.ZodString;
10033
+ timeZone: z.ZodOptional<z.ZodString>;
10034
+ }, z.core.$strict>>>;
9866
10035
  }, z.core.$strict>;
9867
10036
  }, z.core.$strict>;
9868
10037
  declare const ConfigIdentityRemoveInputSchema: z.ZodObject<{
@@ -9889,6 +10058,7 @@ declare const ConfigProfileAddOutputSchema: z.ZodObject<{
9889
10058
  kind: z.ZodLiteral<"profile">;
9890
10059
  name: z.ZodString;
9891
10060
  value: z.ZodObject<{
10061
+ description: z.ZodOptional<z.ZodString>;
9892
10062
  entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
9893
10063
  value: z.ZodBoolean;
9894
10064
  when: z.ZodUnion<readonly [z.ZodObject<{
@@ -9964,7 +10134,6 @@ declare const ConfigProfileAddOutputSchema: z.ZodObject<{
9964
10134
  key: z.ZodType<trilean.JsonValue, unknown, z.core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
9965
10135
  }, z.core.$strip>], "kind">]>;
9966
10136
  }, z.core.$strict>]>>>;
9967
- description: z.ZodOptional<z.ZodString>;
9968
10137
  extends: z.ZodOptional<z.ZodArray<z.ZodString>>;
9969
10138
  categories: z.ZodOptional<z.ZodPipe<z.ZodObject<{
9970
10139
  all: z.ZodOptional<z.ZodBoolean>;
@@ -10010,6 +10179,7 @@ declare const ConfigProfileSetOutputSchema: z.ZodObject<{
10010
10179
  kind: z.ZodLiteral<"profile">;
10011
10180
  name: z.ZodString;
10012
10181
  value: z.ZodObject<{
10182
+ description: z.ZodOptional<z.ZodString>;
10013
10183
  entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
10014
10184
  value: z.ZodBoolean;
10015
10185
  when: z.ZodUnion<readonly [z.ZodObject<{
@@ -10085,7 +10255,6 @@ declare const ConfigProfileSetOutputSchema: z.ZodObject<{
10085
10255
  key: z.ZodType<trilean.JsonValue, unknown, z.core.$ZodTypeInternals<trilean.JsonValue, unknown>>;
10086
10256
  }, z.core.$strip>], "kind">]>;
10087
10257
  }, z.core.$strict>]>>>;
10088
- description: z.ZodOptional<z.ZodString>;
10089
10258
  extends: z.ZodOptional<z.ZodArray<z.ZodString>>;
10090
10259
  categories: z.ZodOptional<z.ZodPipe<z.ZodObject<{
10091
10260
  all: z.ZodOptional<z.ZodBoolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-shim",
3
- "version": "9.13.0",
3
+ "version": "9.15.0",
4
4
  "description": "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
5
5
  "license": "MIT",
6
6
  "author": "Joseph Mearman <joseph@mearman.co.uk>",