@aigne/afs-github 1.11.0-beta.6 → 1.11.0-beta.8

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/index.d.mts CHANGED
@@ -1,52 +1,39 @@
1
1
  import { Octokit } from "@octokit/rest";
2
+ import { AFSEntry, AFSExecOptions, AFSExecResult, AFSExplainOptions, AFSExplainResult, AFSListOptions, AFSListResult, AFSModule, AFSReadOptions, AFSReadResult, AFSRoot, AFSSearchOptions, AFSSearchResult, AFSStatOptions, AFSStatResult, AFSWorldMappingCapable, ExternalRef, MappingStatus, MutateAction, MutateResult, ProjectionContext, ProviderManifest } from "@aigne/afs";
2
3
  import { WorldMappingCore } from "@aigne/afs-world-mapping";
3
4
  import { z } from "zod";
4
- import { AFSEntry, AFSListOptions, AFSListResult, AFSModule, AFSReadOptions, AFSReadResult, AFSRoot, AFSWorldMappingCapable, ExternalRef, MappingStatus, MutateAction, MutateResult, ProjectionContext } from "@aigne/afs";
5
5
 
6
6
  //#region src/types.d.ts
7
7
  /**
8
8
  * Authentication options
9
9
  */
10
10
  declare const authOptionsSchema: z.ZodObject<{
11
- /** Personal Access Token */token: z.ZodOptional<z.ZodString>;
12
- }, "strip", z.ZodTypeAny, {
13
- token?: string | undefined;
14
- }, {
15
- token?: string | undefined;
16
- }>;
11
+ token: z.ZodOptional<z.ZodString>;
12
+ }, z.core.$strip>;
17
13
  type AuthOptions = z.infer<typeof authOptionsSchema>;
18
14
  /**
19
15
  * Cache configuration
20
16
  */
21
17
  declare const cacheOptionsSchema: z.ZodObject<{
22
- /** Enable caching */enabled: z.ZodDefault<z.ZodBoolean>; /** Cache TTL in milliseconds */
18
+ enabled: z.ZodDefault<z.ZodBoolean>;
23
19
  ttl: z.ZodDefault<z.ZodNumber>;
24
- }, "strip", z.ZodTypeAny, {
25
- enabled: boolean;
26
- ttl: number;
27
- }, {
28
- enabled?: boolean | undefined;
29
- ttl?: number | undefined;
30
- }>;
20
+ }, z.core.$strip>;
31
21
  type CacheOptions = z.infer<typeof cacheOptionsSchema>;
32
22
  /**
33
23
  * Rate limiting configuration
34
24
  */
35
25
  declare const rateLimitOptionsSchema: z.ZodObject<{
36
- /** Enable automatic retry on rate limit */autoRetry: z.ZodDefault<z.ZodBoolean>; /** Maximum retry attempts */
26
+ autoRetry: z.ZodDefault<z.ZodBoolean>;
37
27
  maxRetries: z.ZodDefault<z.ZodNumber>;
38
- }, "strip", z.ZodTypeAny, {
39
- autoRetry: boolean;
40
- maxRetries: number;
41
- }, {
42
- autoRetry?: boolean | undefined;
43
- maxRetries?: number | undefined;
44
- }>;
28
+ }, z.core.$strip>;
45
29
  type RateLimitOptions = z.infer<typeof rateLimitOptionsSchema>;
46
30
  /**
47
31
  * Access mode for the provider
48
32
  */
49
- declare const accessModeSchema: z.ZodDefault<z.ZodEnum<["readonly", "readwrite"]>>;
33
+ declare const accessModeSchema: z.ZodDefault<z.ZodEnum<{
34
+ readonly: "readonly";
35
+ readwrite: "readwrite";
36
+ }>>;
50
37
  type AccessMode = z.infer<typeof accessModeSchema>;
51
38
  /**
52
39
  * Repository mode
@@ -54,7 +41,11 @@ type AccessMode = z.infer<typeof accessModeSchema>;
54
41
  * - multi-repo: Access multiple repositories with full paths
55
42
  * - org: Access all repositories in an organization (requires owner only)
56
43
  */
57
- declare const repoModeSchema: z.ZodDefault<z.ZodEnum<["single-repo", "multi-repo", "org"]>>;
44
+ declare const repoModeSchema: z.ZodDefault<z.ZodEnum<{
45
+ "single-repo": "single-repo";
46
+ "multi-repo": "multi-repo";
47
+ org: "org";
48
+ }>>;
58
49
  type RepoMode = z.infer<typeof repoModeSchema>;
59
50
  /**
60
51
  * Owner type for org mode
@@ -62,94 +53,47 @@ type RepoMode = z.infer<typeof repoModeSchema>;
62
53
  * - user: GitHub user account (uses /users/{username}/repos endpoint)
63
54
  * - undefined: Auto-detect (tries org first, falls back to user)
64
55
  */
65
- declare const ownerTypeSchema: z.ZodOptional<z.ZodEnum<["org", "user"]>>;
56
+ declare const ownerTypeSchema: z.ZodOptional<z.ZodEnum<{
57
+ org: "org";
58
+ user: "user";
59
+ }>>;
66
60
  type OwnerType = z.infer<typeof ownerTypeSchema>;
67
61
  /**
68
62
  * Full options schema for AFSGitHub
69
63
  */
70
64
  declare const afsGitHubOptionsSchema: z.ZodObject<{
71
- /** Module name */name: z.ZodDefault<z.ZodString>; /** Module description */
72
- description: z.ZodOptional<z.ZodString>; /** Authentication */
65
+ name: z.ZodDefault<z.ZodString>;
66
+ description: z.ZodOptional<z.ZodString>;
73
67
  auth: z.ZodOptional<z.ZodObject<{
74
- /** Personal Access Token */token: z.ZodOptional<z.ZodString>;
75
- }, "strip", z.ZodTypeAny, {
76
- token?: string | undefined;
77
- }, {
78
- token?: string | undefined;
79
- }>>; /** Repository owner (required for single-repo mode) */
80
- owner: z.ZodOptional<z.ZodString>; /** Repository name (required for single-repo mode) */
81
- repo: z.ZodOptional<z.ZodString>; /** Access mode */
82
- accessMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<["readonly", "readwrite"]>>>; /** Repository mode */
83
- mode: z.ZodOptional<z.ZodDefault<z.ZodEnum<["single-repo", "multi-repo", "org"]>>>; /** Owner type (org or user). If not set, auto-detects by trying org first. */
84
- ownerType: z.ZodOptional<z.ZodOptional<z.ZodEnum<["org", "user"]>>>; /** GitHub API base URL (for Enterprise) */
85
- baseUrl: z.ZodDefault<z.ZodString>; /** Custom mapping path (overrides default) */
86
- mappingPath: z.ZodOptional<z.ZodString>; /** Cache configuration */
68
+ token: z.ZodOptional<z.ZodString>;
69
+ }, z.core.$strip>>;
70
+ owner: z.ZodOptional<z.ZodString>;
71
+ repo: z.ZodOptional<z.ZodString>;
72
+ accessMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
73
+ readonly: "readonly";
74
+ readwrite: "readwrite";
75
+ }>>>;
76
+ mode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
77
+ "single-repo": "single-repo";
78
+ "multi-repo": "multi-repo";
79
+ org: "org";
80
+ }>>>;
81
+ ownerType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
82
+ org: "org";
83
+ user: "user";
84
+ }>>>;
85
+ baseUrl: z.ZodDefault<z.ZodString>;
86
+ mappingPath: z.ZodOptional<z.ZodString>;
87
87
  cache: z.ZodOptional<z.ZodObject<{
88
- /** Enable caching */enabled: z.ZodDefault<z.ZodBoolean>; /** Cache TTL in milliseconds */
88
+ enabled: z.ZodDefault<z.ZodBoolean>;
89
89
  ttl: z.ZodDefault<z.ZodNumber>;
90
- }, "strip", z.ZodTypeAny, {
91
- enabled: boolean;
92
- ttl: number;
93
- }, {
94
- enabled?: boolean | undefined;
95
- ttl?: number | undefined;
96
- }>>; /** Rate limiting configuration */
90
+ }, z.core.$strip>>;
97
91
  rateLimit: z.ZodOptional<z.ZodObject<{
98
- /** Enable automatic retry on rate limit */autoRetry: z.ZodDefault<z.ZodBoolean>; /** Maximum retry attempts */
92
+ autoRetry: z.ZodDefault<z.ZodBoolean>;
99
93
  maxRetries: z.ZodDefault<z.ZodNumber>;
100
- }, "strip", z.ZodTypeAny, {
101
- autoRetry: boolean;
102
- maxRetries: number;
103
- }, {
104
- autoRetry?: boolean | undefined;
105
- maxRetries?: number | undefined;
106
- }>>; /** Default branch/ref for Contents API (optional) */
94
+ }, z.core.$strip>>;
107
95
  ref: z.ZodOptional<z.ZodString>;
108
- }, "strip", z.ZodTypeAny, {
109
- name: string;
110
- baseUrl: string;
111
- description?: string | undefined;
112
- auth?: {
113
- token?: string | undefined;
114
- } | undefined;
115
- owner?: string | undefined;
116
- repo?: string | undefined;
117
- accessMode?: "readonly" | "readwrite" | undefined;
118
- mode?: "single-repo" | "multi-repo" | "org" | undefined;
119
- ownerType?: "org" | "user" | undefined;
120
- mappingPath?: string | undefined;
121
- cache?: {
122
- enabled: boolean;
123
- ttl: number;
124
- } | undefined;
125
- rateLimit?: {
126
- autoRetry: boolean;
127
- maxRetries: number;
128
- } | undefined;
129
- ref?: string | undefined;
130
- }, {
131
- name?: string | undefined;
132
- description?: string | undefined;
133
- auth?: {
134
- token?: string | undefined;
135
- } | undefined;
136
- owner?: string | undefined;
137
- repo?: string | undefined;
138
- accessMode?: "readonly" | "readwrite" | undefined;
139
- mode?: "single-repo" | "multi-repo" | "org" | undefined;
140
- ownerType?: "org" | "user" | undefined;
141
- baseUrl?: string | undefined;
142
- mappingPath?: string | undefined;
143
- cache?: {
144
- enabled?: boolean | undefined;
145
- ttl?: number | undefined;
146
- } | undefined;
147
- rateLimit?: {
148
- autoRetry?: boolean | undefined;
149
- maxRetries?: number | undefined;
150
- } | undefined;
151
- ref?: string | undefined;
152
- }>;
96
+ }, z.core.$strip>;
153
97
  /**
154
98
  * Input options type (what users provide, with optional fields)
155
99
  */
@@ -319,7 +263,44 @@ declare class AFSGitHub implements AFSModule, AFSWorldMappingCapable {
319
263
  private mappingError?;
320
264
  /** World mapping core for schema-level path resolution and field projection (Level 1) */
321
265
  readonly worldCore: WorldMappingCore;
322
- constructor(options: AFSGitHubOptions);
266
+ static schema(): z.ZodObject<{
267
+ name: z.ZodDefault<z.ZodString>;
268
+ description: z.ZodOptional<z.ZodString>;
269
+ auth: z.ZodOptional<z.ZodObject<{
270
+ token: z.ZodOptional<z.ZodString>;
271
+ }, z.core.$strip>>;
272
+ owner: z.ZodOptional<z.ZodString>;
273
+ repo: z.ZodOptional<z.ZodString>;
274
+ accessMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
275
+ readonly: "readonly";
276
+ readwrite: "readwrite";
277
+ }>>>;
278
+ mode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
279
+ "single-repo": "single-repo";
280
+ "multi-repo": "multi-repo";
281
+ org: "org";
282
+ }>>>;
283
+ ownerType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
284
+ org: "org";
285
+ user: "user";
286
+ }>>>;
287
+ baseUrl: z.ZodDefault<z.ZodString>;
288
+ mappingPath: z.ZodOptional<z.ZodString>;
289
+ cache: z.ZodOptional<z.ZodObject<{
290
+ enabled: z.ZodDefault<z.ZodBoolean>;
291
+ ttl: z.ZodDefault<z.ZodNumber>;
292
+ }, z.core.$strip>>;
293
+ rateLimit: z.ZodOptional<z.ZodObject<{
294
+ autoRetry: z.ZodDefault<z.ZodBoolean>;
295
+ maxRetries: z.ZodDefault<z.ZodNumber>;
296
+ }, z.core.$strip>>;
297
+ ref: z.ZodOptional<z.ZodString>;
298
+ }, z.core.$strip>;
299
+ static manifest(): ProviderManifest;
300
+ constructor(options: AFSGitHubOptions & {
301
+ token?: string;
302
+ uri?: string;
303
+ });
323
304
  /**
324
305
  * Load the default mapping configuration
325
306
  */
@@ -352,6 +333,11 @@ declare class AFSGitHub implements AFSModule, AFSWorldMappingCapable {
352
333
  * Returns the available resource types (issues, pulls, repo)
353
334
  */
354
335
  private getVirtualDirectories;
336
+ /**
337
+ * Check if path points to a file (leaf node) like /issues/{n} or /pulls/{n}
338
+ * These are individual issues/PRs that don't have children.
339
+ */
340
+ private isFilePath;
355
341
  /**
356
342
  * Check if path is root or empty
357
343
  */
@@ -395,11 +381,18 @@ declare class AFSGitHub implements AFSModule, AFSWorldMappingCapable {
395
381
  * - /repo -> list all branches
396
382
  * - /repo/{branch} -> list branch root
397
383
  * - /repo/{branch}/path -> list contents at path
384
+ *
385
+ * @throws AFSNotFoundError if path does not exist
398
386
  */
399
387
  private listViaContentsAPI;
400
388
  /**
401
- * Read file content via GitHub Contents API
402
- * Path format: /repo/{branch}/{filePath}
389
+ * Read via GitHub Contents API
390
+ * Supports:
391
+ * - /repo - return repo virtual directory
392
+ * - /repo/{branch} - return branch directory entry
393
+ * - /repo/{branch}/{path} - return file/directory entry
394
+ *
395
+ * @throws AFSNotFoundError if path does not exist
403
396
  */
404
397
  private readViaContentsAPI;
405
398
  /**
@@ -411,20 +404,115 @@ declare class AFSGitHub implements AFSModule, AFSWorldMappingCapable {
411
404
  * Fetch all repos with pagination support
412
405
  */
413
406
  private fetchAllRepos;
407
+ /**
408
+ * Apply limit to entries array
409
+ */
410
+ private applyLimit;
411
+ /**
412
+ * List immediate children at a path (maxDepth=1 only)
413
+ */
414
+ private listImmediate;
415
+ /**
416
+ * Check if a path represents a directory (has children)
417
+ */
418
+ private isDirectoryPath;
414
419
  /**
415
420
  * List entries at a path
421
+ *
422
+ * Per AFS semantics:
423
+ * - maxDepth=0: return empty array (no children)
424
+ * - maxDepth=1: return immediate children
425
+ * - maxDepth>1: recursively include deeper levels
426
+ * - limit: maximum number of entries to return
427
+ *
428
+ * @throws AFSNotFoundError if path does not exist
416
429
  */
417
430
  list(path: string, options?: AFSListOptions): Promise<AFSListResult>;
431
+ /**
432
+ * Check if path is a .meta path and extract the target path
433
+ */
434
+ private isMetaPath;
435
+ /**
436
+ * Get entry info for a virtual directory path
437
+ */
438
+ private getVirtualDirectoryEntry;
418
439
  /**
419
440
  * Read a single entry
441
+ *
442
+ * Supports:
443
+ * - Directory paths (returns entry info)
444
+ * - .meta paths (returns metadata)
445
+ * - Issue/PR paths (returns content via API)
446
+ * - Repo file paths (returns content via Contents API)
447
+ *
448
+ * @throws AFSNotFoundError if path does not exist
420
449
  */
421
450
  read(path: string, options?: AFSReadOptions): Promise<AFSReadResult>;
451
+ /**
452
+ * Read metadata for a path
453
+ * Returns an entry with meta field containing the metadata
454
+ *
455
+ * @throws AFSNotFoundError if path does not exist
456
+ */
457
+ private readMeta;
422
458
  loadMapping(mappingPath: string): Promise<void>;
423
459
  reloadMapping(): Promise<void>;
424
460
  getMappingStatus(): MappingStatus;
425
461
  resolve(path: string): ExternalRef | null;
426
462
  project(externalData: unknown, context: ProjectionContext): AFSEntry[];
427
463
  mutate(_path: string, _action: MutateAction, _payload: unknown): Promise<MutateResult>;
464
+ /**
465
+ * Get metadata for a path without content.
466
+ * Supports issues, PRs, and virtual directories.
467
+ */
468
+ stat(path: string, _options?: AFSStatOptions): Promise<AFSStatResult>;
469
+ private statIssue;
470
+ private statPR;
471
+ /**
472
+ * Search issues and PRs using the GitHub Search API.
473
+ * Path determines scope: /issues searches issues, /pulls searches PRs, / searches both.
474
+ */
475
+ search(path: string, query: string, options?: AFSSearchOptions): Promise<AFSSearchResult>;
476
+ /**
477
+ * Provide human/LLM-readable explanation of a path.
478
+ */
479
+ explain(path: string, _options?: AFSExplainOptions): Promise<AFSExplainResult>;
480
+ private explainRoot;
481
+ private explainIssuesDir;
482
+ private explainPullsDir;
483
+ private explainIssue;
484
+ private explainPR;
485
+ private readCapabilities;
486
+ /**
487
+ * Get enriched metadata for an issue or PR path.
488
+ * Returns labels, assignees, milestone, reactions from GitHub API.
489
+ */
490
+ private getEnrichedMeta;
491
+ private extractReactions;
492
+ private zeroReactions;
493
+ /**
494
+ * Parse a path to determine if it's an issue or PR path.
495
+ * Returns { type, number } or null.
496
+ */
497
+ private parseIssuePRPath;
498
+ /**
499
+ * List available actions at a path.
500
+ * Returns null if the path is not an .actions path.
501
+ */
502
+ private listActions;
503
+ /**
504
+ * Execute an action at a path.
505
+ * Path format: /{resource}/.actions/{action-name}
506
+ */
507
+ exec(path: string, args: Record<string, unknown>, _options: AFSExecOptions): Promise<AFSExecResult>;
508
+ private execRootAction;
509
+ private execIssueAction;
510
+ private execPRAction;
511
+ /**
512
+ * Handle errors from action execution.
513
+ * Sanitizes error messages to prevent token leaks.
514
+ */
515
+ private handleExecError;
428
516
  }
429
517
  //#endregion
430
518
  export { AFSGitHub, AFSGitHubOptions, AFSGitHubOptionsParsed, AFSGitHubOptionsResolved, AccessMode, AuthOptions, BranchItem, CacheOptions, ContentsItem, ContentsResponse, GitHubClient, GitHubClientOptions, OwnerType, RateLimitOptions, RepoMode, accessModeSchema, afsGitHubOptionsSchema, authOptionsSchema, cacheOptionsSchema, ownerTypeSchema, rateLimitOptionsSchema, repoModeSchema };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/types.ts","../src/client.ts","../src/github.ts"],"mappings":";;;;;;;;AASA;cAAa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;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