@framers/agentos-ext-github 0.9.0 → 0.10.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.
- package/README.md +6 -6
- package/dist/documents/GitHubDocumentsConnector.d.ts +37 -11
- package/dist/documents/GitHubDocumentsConnector.d.ts.map +1 -1
- package/dist/documents/GitHubDocumentsConnector.js +67 -22
- package/dist/documents/GitHubDocumentsConnector.js.map +1 -1
- package/dist/documents/links.d.ts +19 -13
- package/dist/documents/links.d.ts.map +1 -1
- package/dist/documents/links.js +43 -24
- package/dist/documents/links.js.map +1 -1
- package/dist/documents/tree.d.ts +29 -10
- package/dist/documents/tree.d.ts.map +1 -1
- package/dist/documents/tree.js +70 -11
- package/dist/documents/tree.js.map +1 -1
- package/manifest.json +1 -1
- package/package.json +3 -2
- package/dist/__tests__/app.test.d.ts +0 -7
- package/dist/__tests__/app.test.d.ts.map +0 -1
- package/dist/__tests__/app.test.js +0 -1219
- package/dist/__tests__/app.test.js.map +0 -1
- package/dist/__tests__/documents.test.d.ts +0 -9
- package/dist/__tests__/documents.test.d.ts.map +0 -1
- package/dist/__tests__/documents.test.js +0 -644
- package/dist/__tests__/documents.test.js.map +0 -1
- package/dist/__tests__/entry.test.d.ts +0 -7
- package/dist/__tests__/entry.test.d.ts.map +0 -1
- package/dist/__tests__/entry.test.js +0 -34
- package/dist/__tests__/entry.test.js.map +0 -1
- package/dist/__tests__/events.test.d.ts +0 -8
- package/dist/__tests__/events.test.d.ts.map +0 -1
- package/dist/__tests__/events.test.js +0 -321
- package/dist/__tests__/events.test.js.map +0 -1
- package/dist/__tests__/fileAndBranchTools.test.d.ts +0 -6
- package/dist/__tests__/fileAndBranchTools.test.d.ts.map +0 -1
- package/dist/__tests__/fileAndBranchTools.test.js +0 -310
- package/dist/__tests__/fileAndBranchTools.test.js.map +0 -1
- package/dist/__tests__/indexer.test.d.ts +0 -6
- package/dist/__tests__/indexer.test.d.ts.map +0 -1
- package/dist/__tests__/indexer.test.js +0 -253
- package/dist/__tests__/indexer.test.js.map +0 -1
- package/dist/__tests__/issueTools.test.d.ts +0 -5
- package/dist/__tests__/issueTools.test.d.ts.map +0 -1
- package/dist/__tests__/issueTools.test.js +0 -183
- package/dist/__tests__/issueTools.test.js.map +0 -1
- package/dist/__tests__/links.test.d.ts +0 -10
- package/dist/__tests__/links.test.d.ts.map +0 -1
- package/dist/__tests__/links.test.js +0 -255
- package/dist/__tests__/links.test.js.map +0 -1
- package/dist/__tests__/prTools.test.d.ts +0 -5
- package/dist/__tests__/prTools.test.d.ts.map +0 -1
- package/dist/__tests__/prTools.test.js +0 -318
- package/dist/__tests__/prTools.test.js.map +0 -1
- package/dist/__tests__/refs.test.d.ts +0 -8
- package/dist/__tests__/refs.test.d.ts.map +0 -1
- package/dist/__tests__/refs.test.js +0 -702
- package/dist/__tests__/refs.test.js.map +0 -1
- package/dist/__tests__/releaseAndActionsTools.test.d.ts +0 -6
- package/dist/__tests__/releaseAndActionsTools.test.d.ts.map +0 -1
- package/dist/__tests__/releaseAndActionsTools.test.js +0 -315
- package/dist/__tests__/releaseAndActionsTools.test.js.map +0 -1
- package/dist/__tests__/repoTools.test.d.ts +0 -6
- package/dist/__tests__/repoTools.test.d.ts.map +0 -1
- package/dist/__tests__/repoTools.test.js +0 -308
- package/dist/__tests__/repoTools.test.js.map +0 -1
- package/dist/__tests__/service.test.d.ts +0 -6
- package/dist/__tests__/service.test.d.ts.map +0 -1
- package/dist/__tests__/service.test.js +0 -173
- package/dist/__tests__/service.test.js.map +0 -1
package/README.md
CHANGED
|
@@ -351,7 +351,7 @@ Top-level pull request comments use the issues API. `github_pr_comment_list` ret
|
|
|
351
351
|
|
|
352
352
|
The `./documents` entry reads repositories through a GitHub App instead of one personal token. Every call goes to GitHub's REST API over the `fetch` you pass (the global `fetch` by default) with `X-GitHub-Api-Version: 2026-03-10`, so tests point it at a stand-in with `{ fetchImpl, apiBase }`.
|
|
353
353
|
|
|
354
|
-
A repository is read by its id, at `/repositories/<id>/branches/<branch>`, `/repositories/<id>/git/trees/<sha>`, `/repositories/<id>/contents/<path
|
|
354
|
+
A repository is read by its id, at `/repositories/<id>/branches/<branch>`, `/repositories/<id>/git/trees/<sha>`, `/repositories/<id>/contents/<path>`, `/repositories/<id>/git/matching-refs/heads/<name>` and `.../matching-refs/tags/<name>`, `/repositories/<id>/git/tags/<sha>` and `/repositories/<id>/commits/<short commit>`, the address GitHub's own redirects for a renamed or moved repository lead to, and never by its name. A name can come to mean another repository: a renamed repository's old name can be taken again, and an account's old login claimed by another account, which ends GitHub's redirects to it; and GitHub answers a public repository's branch, tree and files to any token, an installation token narrowed to other repositories included. The full name builds a read's attribution link and nothing else.
|
|
355
355
|
|
|
356
356
|
```ts
|
|
357
357
|
import { readFileSync } from 'node:fs';
|
|
@@ -452,7 +452,7 @@ Every call runs under a deadline, 30 seconds by default (`GITHUB_TIMEOUT_MS`), i
|
|
|
452
452
|
| `reconcileInstallations(credential, links, { since })` | Answers the linked installations GitHub no longer has (`gone`: missing from the listing and answered 404 at their own address, since an installation removed while the listing is read can move another past a page's end), those GitHub has suspended (`suspended`, whose repositories it does not read), the repositories whose default branch moved past the head last read, the repositories it could not read, and asks again for each event since `since` that no delivery attempt delivered, reporting GitHub's refusals of that step in `deliveries`; a rate limit ends it, with `retryAt` |
|
|
453
453
|
| `GitHubDocumentsConnector` | An `AccountSourceConnector` of `@framers/agentos-ext-account-sources` over one installation's linked repositories, at each one's default branch or at the branch or commit a selection's `at` names, whole or within the folder its `path` names; `resolveRef(repositoryId, refAndPath)` settles a link's ref as a branch, a tag or a commit |
|
|
454
454
|
| `parseGitHubLink(text)` | The repository, folder or file a GitHub address names, read without a request; `refused` for any other address on GitHub's hosts, `null` for another host's |
|
|
455
|
-
| `readTree`, `pathFilter`, `TreeTooLarge` | A tree at a commit within a request budget, `readTree(fetchImpl, token, repositoryId, commit)` reading the repository by its id (a full name is taken too, and reads whatever repository holds that name; a number that is not a positive integer is a `TypeError` before any request), and the filter that keeps documentation, and code when asked (`includeCode`); `TreeTooLarge` carries `reason`, `budget` or `truncated` |
|
|
455
|
+
| `readTree`, `pathFilter`, `TreeTooLarge` | A tree at a commit within a request budget, `readTree(fetchImpl, token, repositoryId, commit, apiBase, { maxRequests, skipFolders, path, signal })` reading the repository by its id (a full name is taken too, and reads whatever repository holds that name; a number that is not a positive integer is a `TypeError` before any request), the whole tree or the folder or file `path` names, and the filter that keeps documentation, and code when asked (`includeCode`); `TreeTooLarge` carries `reason`, `budget` or `truncated` |
|
|
456
456
|
| `CODE_EXTENSIONS`, `GENERATED_CODE_ENDINGS`, `isGeneratedCode(path)` | The source files a filter that includes code keeps, and the endings of the code files a tool writes (minified and bundled files, generated Protocol Buffers and Dart files), which it leaves out |
|
|
457
457
|
| `planTree(blobs, options)`, `IMAGE_EXTENSIONS` | Every file of a tree with its outcome under `pathFilter`'s filter: a note, or skipped with the reason it is left out |
|
|
458
458
|
| `GitHubApiError` | An answer outside 2xx; carries the status, `rateLimited` and `retryAt`, and nothing of the body |
|
|
@@ -476,7 +476,7 @@ The connector's filter, `new GitHubDocumentsConnector(credential, installationId
|
|
|
476
476
|
| `maxFileBytes` | `10485760` (10 MiB): larger files are left out of a listing, and a read past it is answered gone |
|
|
477
477
|
| `maxTreeRequests` | `50` tree requests to list one commit |
|
|
478
478
|
|
|
479
|
-
An item's id is `<repositoryId>:<path>` and its version `<blob>@<commit>`. A tree is asked for recursively; when GitHub answers it truncated (past 100,000 entries or 7 MB), its top level is read and each subtree is asked for the same way, never walking a skipped folder. `TreeTooLarge` is thrown rather than pass `maxTreeRequests` (`reason: 'budget'`), and at a level GitHub answers truncated when it is asked for alone as well (`reason: 'truncated'`), before any folder under it is asked for: no part of a tree is answered, since the files it left out would read as removed. Files are read through the contents endpoint's raw media type as a stream cut at `maxFileBytes`: PDF, Word and HTML as bytes with their media type, the rest as UTF-8 text, each with a `github` source reference whose `url` is the file at the commit, the commit or branch encoded segment by segment as the path is, so a branch named `docs#1` links as `docs%231`. An item whose version names no commit (none, or no `@<commit>` part) is read at the default branch, and its reference names the branch. `changesSince` takes the cursor it answered last (each documentation path's blob), never reads a push's commit list, so a force push is read like any other, and answers a push to another branch than the one it follows with no change. `listing(repositoryId, commit)` lets a caller keep a commit's listing and pass it to `changesSince` as `listing`, with that commit as `after`; it then reads no tree. `listing(repositoryId, commit, { path, signal })` reads a folder's listing, or a file's, the same way. A cursor `changesSince` did not answer throws a `TypeError` that quotes none of it, whatever the push's branch. A file read GitHub refuses for a rate limit throws `GitHubApiError` with its `retryAt`, never an answer that the file is gone, and so does a refused installation token (404 for an installation GitHub no longer has): only the contents read's own 404 answers a file `removed`, so a lost installation never reads as every file gone.
|
|
479
|
+
An item's id is `<repositoryId>:<path>` and its version `<blob>@<commit>`. A tree is asked for recursively; when GitHub answers it truncated (past 100,000 entries or 7 MB), its top level is read and each subtree is asked for the same way, never walking a skipped folder. `TreeTooLarge` is thrown rather than pass `maxTreeRequests` (`reason: 'budget'`), and at a level GitHub answers truncated when it is asked for alone as well (`reason: 'truncated'`), before any folder under it is asked for: no part of a tree is answered, since the files it left out would read as removed. A folder's listing, or a file's, reads the tree for its path alone: when GitHub truncates the tree, the folders on the path are asked for one at a time and the folder the path names is read as a whole tree is, so a folder of a repository with sixty top-level folders costs three requests (the truncated tree, its top level and the folder) where a walk of every folder would pass the default budget of 50. A level that does not name the path's next folder or file answers no file, unless GitHub cut that level short (`reason: 'truncated'`, since the name may stand past the cut). A path through a skipped folder (a folder on it, the last segment aside) holds no file a listing keeps, and answers none before any request. Files are read through the contents endpoint's raw media type as a stream cut at `maxFileBytes`: PDF, Word and HTML as bytes with their media type, the rest as UTF-8 text, each with a `github` source reference whose `url` is the file at the commit, the commit or branch encoded segment by segment as the path is, so a branch named `docs#1` links as `docs%231`. An item whose version names no commit (none, or no `@<commit>` part) is read at the default branch, and its reference names the branch. `changesSince` takes the cursor it answered last (each documentation path's blob), never reads a push's commit list, so a force push is read like any other, and answers a push to another branch than the one it follows with no change. `listing(repositoryId, commit)` lets a caller keep a commit's listing and pass it to `changesSince` as `listing`, with that commit as `after`; it then reads no tree. `listing(repositoryId, commit, { path, signal })` reads a folder's listing, or a file's, the same way. A cursor `changesSince` did not answer throws a `TypeError` that quotes none of it, whatever the push's branch. A file read GitHub refuses for a rate limit throws `GitHubApiError` with its `retryAt`, never an answer that the file is gone, and so does a refused installation token (404 for an installation GitHub no longer has): only the contents read's own 404 answers a file `removed`, so a lost installation never reads as every file gone.
|
|
480
480
|
|
|
481
481
|
The connector refuses, before any request, what it cannot answer whole, and no refusal quotes a cursor, an item id or a path. A repository id, in a selection or in an item id, is a positive integer in decimal (`77`; never `077`, `0x4d` or ` 77`), else a `TypeError`. `list` checks every id of its selection before it reads any repository, so a selection is listed whole or not at all: a repository named twice is a `TypeError`, and one outside the link an `Error` naming its number. `read` throws a `TypeError` for an item id that names no file: one without a path, or whose path has an empty, `.` or `..` segment. `changesSince` compares one repository a call: a selection of none or several, an empty `after`, or a `listing` without the `after` commit it was read at is a `TypeError`, so call it once per repository, each with that repository's own cursor. A `path` with an empty, `.` or `..` segment (a leading or a trailing slash among them), or one that is not text, is a `TypeError` in `list`, `listing`, `changesSince` and `planTree`, and so is a `path` beside other than one repository in `list`. A call whose signal is already aborted throws `GitHubNoAnswer` (`cancelled`) before it checks anything else, so every aborted call answers alike, whatever its inputs.
|
|
482
482
|
|
|
@@ -491,12 +491,12 @@ A selection's `path` narrows `list` and `changesSince` to a folder of one reposi
|
|
|
491
491
|
| `github.com/<owner>/<repo>`, with or without `.git`; `git@github.com:<owner>/<repo>.git` | `{ kind: 'github_repository', owner, repo }` |
|
|
492
492
|
| `github.com/<owner>/<repo>/tree/<ref>/<path>`, and `/blob/<ref>` with no path, which GitHub shows as the folder | `{ kind: 'github_folder', owner, repo, refAndPath }` |
|
|
493
493
|
| `github.com/<owner>/<repo>/blob/<ref>/<path>` and `/raw/<ref>/<path>`; `raw.githubusercontent.com/<owner>/<repo>/<ref>/<path>` | `{ kind: 'github_file', owner, repo, refAndPath, raw }`, `raw` true for the two raw forms |
|
|
494
|
-
| Any other address on `github.com`, `www.github.com`, `gist.github.com`, `api.github.com`, `codeload.github.com`, `uploads.github.com` or a host under `githubusercontent.com`: an account, an issue, a pull request, a wiki, a release, a commit, a tag
|
|
494
|
+
| Any other address on `github.com`, `www.github.com`, `gist.github.com`, `api.github.com`, `codeload.github.com`, `uploads.github.com` or a host under `githubusercontent.com`: an account, an issue, a pull request, a wiki, a release, a commit, a reference that is neither a branch nor a tag (`refs/pull/<n>/head`), a full name with nothing after it under `/blob/` or `/raw/` (`/blob/refs/tags/v1.0`, which GitHub answers 404), a gist, GitHub's own pages, an address that carries credentials, with a scheme or without one (`<user>:<password>@github.com/...`, which a browser opens as an `https://` address); and any address on `ghe.com` or a host under it, where GitHub Enterprise Cloud with data residency serves an enterprise ([GitHub's docs](https://docs.github.com/en/enterprise-cloud@latest/admin/data-residency/about-github-enterprise-cloud-with-data-residency)) | `{ kind: 'refused' }` |
|
|
495
495
|
| An address on any other host, an opaque address such as `mailto:someone@github.com`, and text that is no address | `null` |
|
|
496
496
|
|
|
497
|
-
The scheme, or its absence, a port, the dots that end a host (`github.com.`, `github.com..`), a trailing slash, a query and a fragment are ignored
|
|
497
|
+
The scheme, or its absence, a port, the dots that end a host (`github.com.`, `github.com..`), a trailing slash, a query and a fragment are ignored, and `www.github.com` is read as `github.com`. A branch's or a tag's full name, `refs/heads/<branch>` or `refs/tags/<tag>`, the form GitHub's own Raw links write (`https://github.com/cli/cli/raw/refs/tags/v2.0.0/README.md` for a file at the tag `v2.0.0`, which redirects to `raw.githubusercontent.com/cli/cli/refs/tags/v2.0.0/README.md`), stays whole in `refAndPath` (`refs/tags/v2.0.0/README.md`). The text is read as the [URL standard](https://url.spec.whatwg.org/#concept-basic-url-parser) reads an address, as a browser opens it: the C0 controls and spaces around it (and any other white space there) are dropped, and every tab and newline in it; after `http`, `https`, `ws`, `wss` and `ftp` any run of `/` and `\` stands before the host, none included ([special authority slashes](https://url.spec.whatwg.org/#special-authority-slashes-state)), so `https:github.com/acme-team/handbook`, `https:/github.com/...` and `https:\\github.com\acme-team\handbook` read as `https://github.com/acme-team/handbook`; after `file` two of them, and a third leaves the host [empty](https://url.spec.whatwg.org/#file-host-state), so `file:///github.com/acme-team/handbook` names no host (`null`); after any other scheme (`git://`, `ssh://`) `//`, and without it such a scheme names no host (`null`). A backslash in the path is a slash. Each segment is decoded, and an address whose path has an empty segment, an escape that does not decode, or a `.` or `..` segment or a control character once decoded is refused.
|
|
498
498
|
|
|
499
|
-
A folder's and a file's ref and path are one text, `refAndPath`, since a branch or a tag name may hold a slash. `connector.resolveRef(repositoryId, refAndPath)` settles it as `{ ref, path, commit, kind, name }`: `kind` is `branch`, `tag` or `commit`, `name` the ref as the link writes it, `ref` what `list`, `head` and `changesSince` take as `at`, and `path` the rest (`''` for the ref's root). A first segment of 40 hexadecimal characters is a commit (`commit: true`, in lower case) and `HEAD` the default branch, with no request. Otherwise GitHub's [matching references](https://docs.github.com/en/rest/git/refs#list-matching-references), which answer every reference whose name starts with that segment, are read in turn: the branches and the tags, where the longest name of either that is the text or starts it at a slash is the ref, a tag answered at the commit it names (`commit: true`; an annotated tag's object is [read](https://docs.github.com/en/rest/git/tags#get-a-tag) for it), as github.com serves `/tree/<tag>/`, and the tags not read when a branch's name is the whole text; then, for a first segment of 4 to 39 hexadecimal characters, the short commit through GitHub's [commits](https://docs.github.com/en/rest/commits/commits#get-a-commit) under the `application/vnd.github.sha` media type, which answers the whole commit, or 422 for a prefix no commit has or several have.
|
|
499
|
+
A folder's and a file's ref and path are one text, `refAndPath`, since a branch or a tag name may hold a slash. `connector.resolveRef(repositoryId, refAndPath)` settles it as `{ ref, path, commit, kind, name }`: `kind` is `branch`, `tag` or `commit`, `name` the ref as the link writes it (the branch's or the tag's name, without `refs/heads/` or `refs/tags/`), `ref` what `list`, `head` and `changesSince` take as `at`, and `path` the rest (`''` for the ref's root). A full name, `refs/heads/<branch>/<path>` or `refs/tags/<tag>/<path>`, is read among its own namespace alone: the longest branch, or the longest tag at the commit it names, that is the name and the path or starts them at a slash, with no other namespace, `HEAD` or commit read. It is the one form that tells a tag from a branch of the same name, and a branch from a longer tag beside it: `refs/heads/release/2.0/README.md` is the file `2.0/README.md` of the branch `release` though the tag `release/2.0` stands beside it, and `refs/tags/release/docs` the tag `release` though a branch of that name exists. A branch it names that the repository does not have is answered as a branch, whose listing throws GitHub's 404; a tag it names that the repository does not have, or one that names no commit, throws `GitHubApiError` with status 404, as GitHub answers the address. A branch whose name is 40 hexadecimal characters, which `at` reads as the commit it spells, is settled at its head, read through GitHub's branches (`commit: true`); one the repository does not have throws GitHub's 404 there. For any other text, a first segment of 40 hexadecimal characters is a commit (`commit: true`, in lower case) and `HEAD` the default branch, with no request, but for a default branch whose name is 40 hexadecimal characters, settled at its head the same way. Otherwise GitHub's [matching references](https://docs.github.com/en/rest/git/refs#list-matching-references), which answer every reference whose name starts with that segment, are read in turn: the branches and the tags, where the longest name of either that is the text or starts it at a slash is the ref, a tag answered at the commit it names (`commit: true`; an annotated tag's object is [read](https://docs.github.com/en/rest/git/tags#get-a-tag) for it), as github.com serves `/tree/<tag>/`, and the tags not read when a branch's name is the whole text; then, for a first segment of 4 to 39 hexadecimal characters, the short commit through GitHub's [commits](https://docs.github.com/en/rest/commits/commits#get-a-commit) under the `application/vnd.github.sha` media type, which answers the whole commit, or 422 for a prefix no commit has or several have. By the short name, a branch and a tag of one name settle as the branch. Git keeps no branch beside one under its name (`release` beside `release/1.0`), so at most one such branch exists, but it keeps a tag under a branch's name beside the branch, and the tag `release/2.0` beside the branch `release` settles `release/2.0/docs` as the tag. A first segment none of them settles is answered as a branch all the same, and a listing at it throws GitHub's 404 as `GitHubApiError`; so does 409 for a repository with no commit. A first segment no ref name can begin (a control character, a space, `~`, `^`, `:`, `?`, `*`, `[`, `\`, `..` or `@{`, a leading dot, a trailing `.lock`) is a `TypeError` before any request, and one that is no branch name and none of them settles (`-x`, `@`, `end.`) a `TypeError` after the reads. A `/blob/` address whose text has no slash (`/blob/main`) names its ref alone and is answered as the folder, since GitHub redirects it to `/tree/main`; one whose text has a slash is a file, and when `resolveRef` settles the whole text as the ref (`/blob/release/1.0` in a repository with a `release/1.0` branch), the path is `''`: the address names a ref and no file, which GitHub answers 404.
|
|
500
500
|
|
|
501
501
|
```ts
|
|
502
502
|
import { parseGitHubLink } from '@framers/agentos-ext-github/documents';
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
* repository read by its id at its default branch or at a named branch or commit, whole or within a folder, its tree
|
|
4
4
|
* read once a commit within a request budget, the documentation kept by a filter, each file read as raw bytes under a
|
|
5
5
|
* cap, a push compared by the tree at its `after` commit, and a link's ref settled as a branch (where its name holds a
|
|
6
|
-
* slash), a tag or a commit
|
|
6
|
+
* slash), a tag or a commit, a full name (`refs/heads/<branch>`, `refs/tags/<tag>`) among its own namespace alone. A
|
|
7
|
+
* selection, an item or a call it cannot answer whole is refused before any request.
|
|
7
8
|
* @module agentos-ext-github/documents/GitHubDocumentsConnector
|
|
8
9
|
*/
|
|
9
10
|
import { type AccountSourceConnector, type SourceChanges, type SourceGone, type SourceItem, type SourceRead, type SourceSelection } from '@framers/agentos-ext-account-sources';
|
|
@@ -61,16 +62,24 @@ export interface GitHubChangesSelection extends GitHubListSelection {
|
|
|
61
62
|
export interface ResolvedRef {
|
|
62
63
|
/**
|
|
63
64
|
* The branch's name, or a commit of 40 hexadecimal characters in lower case: the commit the link names, whole or by
|
|
64
|
-
* its first characters,
|
|
65
|
+
* its first characters, the commit a tag names, or the head of a branch whose own name is 40 hexadecimal characters
|
|
66
|
+
* (named by its full name, or the default branch named by `HEAD`), which `at` would read as the commit it spells.
|
|
67
|
+
* `list`, `head` and `changesSince` take it as `at`.
|
|
65
68
|
*/
|
|
66
69
|
ref: string;
|
|
67
70
|
/** The path under the ref, with no leading or trailing slash; `''` for the ref's root. */
|
|
68
71
|
path: string;
|
|
69
|
-
/**
|
|
72
|
+
/**
|
|
73
|
+
* True when `ref` is a commit, which never moves: for a commit, for a tag, read at its commit, and for a branch whose
|
|
74
|
+
* name is 40 hexadecimal characters, read at its head when settled.
|
|
75
|
+
*/
|
|
70
76
|
commit: boolean;
|
|
71
77
|
/** What the link's ref names: a branch (`HEAD` the default branch), a tag or a commit. */
|
|
72
78
|
kind: 'branch' | 'tag' | 'commit';
|
|
73
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* The ref as the link writes it: the branch's or the tag's name (without `refs/heads/` or `refs/tags/` when the link
|
|
81
|
+
* writes the full name), `HEAD`, or the commit, whole or short, as written.
|
|
82
|
+
*/
|
|
74
83
|
name: string;
|
|
75
84
|
}
|
|
76
85
|
/**
|
|
@@ -138,8 +147,11 @@ export declare class GitHubDocumentsConnector implements AccountSourceConnector
|
|
|
138
147
|
/**
|
|
139
148
|
* The documentation files of a repository at a commit within a folder, or the one file a path names
|
|
140
149
|
* (`options.path`), kept before `maxFiles` counts them, under `options.signal`; the whole repository for no path or
|
|
141
|
-
* `''`.
|
|
142
|
-
*
|
|
150
|
+
* `''`. The tree is read for the path alone (`readTree`'s `path`): when GitHub truncates it, only the folders on the
|
|
151
|
+
* path and the folder's own subtree are asked for, within `maxTreeRequests`, so a small folder of a large repository
|
|
152
|
+
* is listed whatever lies beside it. A path with an empty, `.` or `..` segment, or one that is not text, throws a
|
|
153
|
+
* `TypeError` before any request. A caller keeps it for that commit and hands it to `changesSince` with that commit
|
|
154
|
+
* as `after` and the same `path`.
|
|
143
155
|
*/
|
|
144
156
|
listing(repositoryId: number, commit: string, options: GitHubListingOptions): Promise<TreeBlob[]>;
|
|
145
157
|
/**
|
|
@@ -193,7 +205,8 @@ export declare class GitHubDocumentsConnector implements AccountSourceConnector
|
|
|
193
205
|
* The ref and the path of a folder's or a file's `<ref>/<path>` text (`parseGitHubLink`'s `refAndPath`), whose
|
|
194
206
|
* branch or tag name may hold a slash, answered with what the ref is (`kind`) and the name the text writes it by
|
|
195
207
|
* (`name`). A first segment of 40 hexadecimal characters is a commit, in lower case, and `HEAD` the default branch
|
|
196
|
-
* (git names no branch `HEAD`), each settled with no request
|
|
208
|
+
* (git names no branch `HEAD`), each settled with no request, but for a default branch whose name is 40 hexadecimal
|
|
209
|
+
* characters, settled at its head as below. Otherwise, under an installation token narrowed to the
|
|
197
210
|
* repository, GitHub's matching references (https://docs.github.com/en/rest/git/refs#list-matching-references), which
|
|
198
211
|
* answer every reference whose name starts with the first segment, are read in turn until one settles it:
|
|
199
212
|
*
|
|
@@ -211,10 +224,23 @@ export declare class GitHubDocumentsConnector implements AccountSourceConnector
|
|
|
211
224
|
*
|
|
212
225
|
* A first segment neither settles is answered as a branch all the same, and a listing at it then throws GitHub's
|
|
213
226
|
* 404 as `GitHubApiError`; one that is no branch name by git's rules (such as `-x`, `@` or `end.`) throws a
|
|
214
|
-
* `TypeError` instead.
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
227
|
+
* `TypeError` instead.
|
|
228
|
+
*
|
|
229
|
+
* A full name, `refs/heads/<branch>/<path>` or `refs/tags/<tag>/<path>`, the form GitHub's own Raw links write, is
|
|
230
|
+
* read among its own namespace alone, the name after it as the first segment: the longest branch, or the longest tag
|
|
231
|
+
* at the commit it names, that is the name and the path or starts them at a slash. It is the one form that tells a tag
|
|
232
|
+
* from a branch of the same name, and a branch from a longer tag beside it, so no commit, `HEAD` or other namespace is
|
|
233
|
+
* read for it. A branch it names that the repository does not have is answered as a branch all the same, as above; a
|
|
234
|
+
* tag the repository does not have, or one that names no commit, throws `GitHubApiError` with status 404, as GitHub
|
|
235
|
+
* answers an address naming it, since no commit is there to read at. A branch whose name is 40 hexadecimal characters,
|
|
236
|
+
* which a full name or `HEAD` alone reaches, is settled at its head (`commit: true`), read through GitHub's branches,
|
|
237
|
+
* since `at` reads such a name as the commit it spells; one the repository does not have throws GitHub's 404 there as
|
|
238
|
+
* `GitHubApiError`.
|
|
239
|
+
*
|
|
240
|
+
* A text with an empty, `.` or `..` segment, and one whose first segment (after a full name's namespace) no ref
|
|
241
|
+
* name can begin (a control character, a space, `~`, `^`, `:`, `?`, `*`, `[`, `\`, `..` or `@{`, a leading dot or a
|
|
242
|
+
* trailing `.lock`), throw a `TypeError` that quotes none of it, before any request; GitHub's refusal of a read, such
|
|
243
|
+
* as 409 for a repository with no commit, throws `GitHubApiError`.
|
|
218
244
|
*/
|
|
219
245
|
resolveRef(repositoryId: number, refAndPath: string, signal?: AbortSignal): Promise<ResolvedRef>;
|
|
220
246
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GitHubDocumentsConnector.d.ts","sourceRoot":"","sources":["../../src/documents/GitHubDocumentsConnector.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"GitHubDocumentsConnector.d.ts","sourceRoot":"","sources":["../../src/documents/GitHubDocumentsConnector.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAEL,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,UAAU,EAEf,KAAK,eAAe,EACrB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,OAAO,EASL,KAAK,QAAQ,EACb,KAAK,UAAU,EAChB,MAAM,WAAW,CAAC;AAEnB,gCAAgC;AAChC,MAAM,WAAW,gBAAgB;IAC/B,sEAAsE;IACtE,EAAE,EAAE,MAAM,CAAC;IACX,mFAAmF;IACnF,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,sHAAsH;AACtH,MAAM,WAAW,mBAAoB,SAAQ,eAAe;IAC1D;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,yDAAyD;AACzD,MAAM,WAAW,oBAAoB;IACn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,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IAoDtG;;;OAGG;YACW,UAAU;IAsBxB;;;;OAIG;YACW,SAAS;IAgBvB;;;;OAIG;YACW,QAAQ;IAsBtB,uGAAuG;IACjG,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;CAG9B"}
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
* repository read by its id at its default branch or at a named branch or commit, whole or within a folder, its tree
|
|
4
4
|
* read once a commit within a request budget, the documentation kept by a filter, each file read as raw bytes under a
|
|
5
5
|
* cap, a push compared by the tree at its `after` commit, and a link's ref settled as a branch (where its name holds a
|
|
6
|
-
* slash), a tag or a commit
|
|
6
|
+
* slash), a tag or a commit, a full name (`refs/heads/<branch>`, `refs/tags/<tag>`) among its own namespace alone. A
|
|
7
|
+
* selection, an item or a call it cannot answer whole is refused before any request.
|
|
7
8
|
* @module agentos-ext-github/documents/GitHubDocumentsConnector
|
|
8
9
|
*/
|
|
9
10
|
import { ReadCapExceeded, } from '@framers/agentos-ext-account-sources';
|
|
@@ -19,6 +20,11 @@ const COMMIT_SHA_MEDIA_TYPE = 'application/vnd.github.sha';
|
|
|
19
20
|
const COMMIT_SHA_BYTES = 1_024;
|
|
20
21
|
/** The most annotated tags followed from a tag to the commit it names: a tag of a tag is rare. */
|
|
21
22
|
const MAX_TAG_DEPTH = 8;
|
|
23
|
+
/** The namespaces of a branch's and a tag's full name, which `parseGitHubLink` keeps whole in `refAndPath`. */
|
|
24
|
+
const NAMESPACES = [
|
|
25
|
+
{ prefix: 'refs/heads/', space: 'heads' },
|
|
26
|
+
{ prefix: 'refs/tags/', space: 'tags' },
|
|
27
|
+
];
|
|
22
28
|
/** The characters no branch name holds, beside the control characters and the space (`git check-ref-format`). */
|
|
23
29
|
const NOT_IN_BRANCH = '~^:?*[\\';
|
|
24
30
|
/**
|
|
@@ -221,9 +227,10 @@ export class GitHubDocumentsConnector {
|
|
|
221
227
|
const tree = await readTree(this.fetchImpl, await this.token(repositoryId, signal), repository.id, commit, this.apiBase, {
|
|
222
228
|
maxRequests: this.filter.maxTreeRequests,
|
|
223
229
|
skipFolders: this.filter.skipFolders ?? SKIPPED_FOLDERS,
|
|
230
|
+
path,
|
|
224
231
|
signal,
|
|
225
232
|
});
|
|
226
|
-
return pathFilter(this.filter)(
|
|
233
|
+
return pathFilter(this.filter)(tree);
|
|
227
234
|
}
|
|
228
235
|
/**
|
|
229
236
|
* The documentation of each selected repository (its id in `ids`) at its default branch's head, or of one repository
|
|
@@ -364,7 +371,8 @@ export class GitHubDocumentsConnector {
|
|
|
364
371
|
* The ref and the path of a folder's or a file's `<ref>/<path>` text (`parseGitHubLink`'s `refAndPath`), whose
|
|
365
372
|
* branch or tag name may hold a slash, answered with what the ref is (`kind`) and the name the text writes it by
|
|
366
373
|
* (`name`). A first segment of 40 hexadecimal characters is a commit, in lower case, and `HEAD` the default branch
|
|
367
|
-
* (git names no branch `HEAD`), each settled with no request
|
|
374
|
+
* (git names no branch `HEAD`), each settled with no request, but for a default branch whose name is 40 hexadecimal
|
|
375
|
+
* characters, settled at its head as below. Otherwise, under an installation token narrowed to the
|
|
368
376
|
* repository, GitHub's matching references (https://docs.github.com/en/rest/git/refs#list-matching-references), which
|
|
369
377
|
* answer every reference whose name starts with the first segment, are read in turn until one settles it:
|
|
370
378
|
*
|
|
@@ -382,10 +390,23 @@ export class GitHubDocumentsConnector {
|
|
|
382
390
|
*
|
|
383
391
|
* A first segment neither settles is answered as a branch all the same, and a listing at it then throws GitHub's
|
|
384
392
|
* 404 as `GitHubApiError`; one that is no branch name by git's rules (such as `-x`, `@` or `end.`) throws a
|
|
385
|
-
* `TypeError` instead.
|
|
386
|
-
*
|
|
387
|
-
*
|
|
388
|
-
*
|
|
393
|
+
* `TypeError` instead.
|
|
394
|
+
*
|
|
395
|
+
* A full name, `refs/heads/<branch>/<path>` or `refs/tags/<tag>/<path>`, the form GitHub's own Raw links write, is
|
|
396
|
+
* read among its own namespace alone, the name after it as the first segment: the longest branch, or the longest tag
|
|
397
|
+
* at the commit it names, that is the name and the path or starts them at a slash. It is the one form that tells a tag
|
|
398
|
+
* from a branch of the same name, and a branch from a longer tag beside it, so no commit, `HEAD` or other namespace is
|
|
399
|
+
* read for it. A branch it names that the repository does not have is answered as a branch all the same, as above; a
|
|
400
|
+
* tag the repository does not have, or one that names no commit, throws `GitHubApiError` with status 404, as GitHub
|
|
401
|
+
* answers an address naming it, since no commit is there to read at. A branch whose name is 40 hexadecimal characters,
|
|
402
|
+
* which a full name or `HEAD` alone reaches, is settled at its head (`commit: true`), read through GitHub's branches,
|
|
403
|
+
* since `at` reads such a name as the commit it spells; one the repository does not have throws GitHub's 404 there as
|
|
404
|
+
* `GitHubApiError`.
|
|
405
|
+
*
|
|
406
|
+
* A text with an empty, `.` or `..` segment, and one whose first segment (after a full name's namespace) no ref
|
|
407
|
+
* name can begin (a control character, a space, `~`, `^`, `:`, `?`, `*`, `[`, `\`, `..` or `@{`, a leading dot or a
|
|
408
|
+
* trailing `.lock`), throw a `TypeError` that quotes none of it, before any request; GitHub's refusal of a read, such
|
|
409
|
+
* as 409 for a repository with no commit, throws `GitHubApiError`.
|
|
389
410
|
*/
|
|
390
411
|
async resolveRef(repositoryId, refAndPath, signal) {
|
|
391
412
|
notCancelled(signal);
|
|
@@ -393,36 +414,60 @@ export class GitHubDocumentsConnector {
|
|
|
393
414
|
throw new TypeError('a ref and a path have no empty, . or .. segment');
|
|
394
415
|
}
|
|
395
416
|
const repository = this.repository(repositoryId);
|
|
396
|
-
const
|
|
417
|
+
const full = NAMESPACES.find((namespace) => refAndPath.startsWith(namespace.prefix));
|
|
418
|
+
// The name and the path after a full name's namespace, or the whole text.
|
|
419
|
+
const text = full === undefined ? refAndPath : refAndPath.slice(full.prefix.length);
|
|
420
|
+
const first = text.split('/')[0];
|
|
397
421
|
const settled = (name, ref, kind) => ({
|
|
398
422
|
ref,
|
|
399
|
-
path:
|
|
423
|
+
path: text.slice(name.length + 1),
|
|
400
424
|
commit: kind !== 'branch',
|
|
401
425
|
kind,
|
|
402
426
|
name,
|
|
403
427
|
});
|
|
404
|
-
|
|
428
|
+
// A branch (`name` as the text writes it) by its name, or at its head when `at` would read its name as the commit it
|
|
429
|
+
// spells: a full name, or `HEAD` for the default branch, alone reaches such a branch, since a bare 40 hexadecimal
|
|
430
|
+
// characters settle as the commit below.
|
|
431
|
+
const settledBranch = async (name, branch) => {
|
|
432
|
+
if (!COMMIT.test(branch))
|
|
433
|
+
return settled(name, branch, 'branch');
|
|
434
|
+
const head = (await this.branchHead(repository, branch, signal)).toLowerCase();
|
|
435
|
+
if (!COMMIT.test(head))
|
|
436
|
+
throw new Error("GitHub answered a branch's head that is not a commit");
|
|
437
|
+
return { ...settled(name, head, 'branch'), commit: true };
|
|
438
|
+
};
|
|
439
|
+
if (full === undefined && COMMIT.test(first))
|
|
405
440
|
return settled(first, first.toLowerCase(), 'commit');
|
|
406
|
-
if (first === 'HEAD')
|
|
407
|
-
return
|
|
441
|
+
if (full === undefined && first === 'HEAD')
|
|
442
|
+
return settledBranch(first, repository.defaultBranch);
|
|
408
443
|
if (!mayBeginRef(first))
|
|
409
444
|
throw new TypeError('the ref of a link holds what no branch, tag or commit holds');
|
|
410
445
|
const token = await this.token(repository.id, signal);
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
return settled(
|
|
446
|
+
if (full?.space === 'tags') {
|
|
447
|
+
const tag = await this.longestRef(repository, 'tags', first, text, token, signal);
|
|
448
|
+
const tagged = tag === null ? null : await this.tagCommit(repository, tag.fields, token, signal);
|
|
449
|
+
// No commit to read at: GitHub answers an address naming such a tag 404.
|
|
450
|
+
if (tag === null || tagged === null)
|
|
451
|
+
throw new GitHubApiError(404);
|
|
452
|
+
return settled(tag.name, tagged, 'tag');
|
|
453
|
+
}
|
|
454
|
+
const branch = await this.longestRef(repository, 'heads', first, text, token, signal);
|
|
455
|
+
if (full === undefined) {
|
|
456
|
+
// a tag names more of the text than the branch when its name is longer; a branch named by the whole text has no longer
|
|
457
|
+
const tag = branch !== null && branch.name === text ? null : await this.longestRef(repository, 'tags', first, text, token, signal);
|
|
458
|
+
const longer = tag !== null && (branch === null || tag.name.length > branch.name.length) ? tag : null;
|
|
459
|
+
const tagged = longer === null ? null : await this.tagCommit(repository, longer.fields, token, signal);
|
|
460
|
+
if (longer !== null && tagged !== null)
|
|
461
|
+
return settled(longer.name, tagged, 'tag');
|
|
462
|
+
}
|
|
418
463
|
if (branch !== null)
|
|
419
|
-
return
|
|
420
|
-
const commit = SHORT_COMMIT.test(first) ? await this.commitOf(repository, first, token, signal) : null;
|
|
464
|
+
return settledBranch(branch.name, branch.name);
|
|
465
|
+
const commit = full === undefined && SHORT_COMMIT.test(first) ? await this.commitOf(repository, first, token, signal) : null;
|
|
421
466
|
if (commit !== null)
|
|
422
467
|
return settled(first, commit, 'commit');
|
|
423
468
|
if (!isBranchName(first))
|
|
424
469
|
throw new TypeError('the ref of a link names no branch, tag or commit of the repository');
|
|
425
|
-
return
|
|
470
|
+
return settledBranch(first, first);
|
|
426
471
|
}
|
|
427
472
|
/**
|
|
428
473
|
* The longest branch or tag (`space`) whose name is `text` or starts it at a slash, from GitHub's matching references
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GitHubDocumentsConnector.js","sourceRoot":"","sources":["../../src/documents/GitHubDocumentsConnector.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,eAAe,GAQhB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,EAAE,QAAQ,EAAqB,MAAM,gBAAgB,CAAC;AAC1K,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,WAAW,EACX,UAAU,EACV,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EAAE,qBAAqB,EAAE,MAAM,EAAE,CAAC,CAAC;QACnG,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,KAAK,YAAY,cAAc,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,MAAM,KAAK,GAAG,CAAC;gBAAE,OAAO,IAAI,CAAC;YACnG,MAAM,KAAK,CAAC;QACd,CAAC;QACD,IAAI,KAAiB,CAAC;QACtB,IAAI,CAAC;YACH,KAAK,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;QAC/C,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,KAAK,YAAY,eAAe;gBAAE,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;YAClG,MAAM,KAAK,CAAC;QACd,CAAC;QACD,MAAM,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QACpE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;QACnH,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,uGAAuG;IACvG,KAAK,CAAC,MAAM;QACV,8FAA8F;IAChG,CAAC;CACF"}
|
|
@@ -7,10 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
9
|
* What a GitHub address names. A folder's and a file's ref and path are one text, `refAndPath`, since a branch name may
|
|
10
|
-
* hold a slash: `GitHubDocumentsConnector.resolveRef` settles where the ref ends.
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
10
|
+
* hold a slash: `GitHubDocumentsConnector.resolveRef` settles where the ref ends. A branch's or a tag's full name stays
|
|
11
|
+
* whole in it (`refs/heads/<branch>/<path>`, `refs/tags/<tag>/<path>`), and `resolveRef` reads that name among the
|
|
12
|
+
* branches or the tags alone. `raw` marks a file address that serves the file's bytes alone (`/raw/` on github.com, or
|
|
13
|
+
* raw.githubusercontent.com). A file's text can be a branch alone (`/blob/release/1.0` names the file `1.0` of
|
|
14
|
+
* `release`, or the branch `release/1.0` and no file); when `resolveRef` settles it with an empty path, the address
|
|
15
|
+
* names a ref and no file, which GitHub answers 404.
|
|
14
16
|
*/
|
|
15
17
|
export type GitHubLink = {
|
|
16
18
|
kind: 'github_repository';
|
|
@@ -33,12 +35,12 @@ export type GitHubLink = {
|
|
|
33
35
|
/**
|
|
34
36
|
* What a GitHub address names, read without a request. Null for an address whose host is not GitHub's, and for text
|
|
35
37
|
* that is no address; `refused` for an address on GitHub's hosts that names no repository, folder or file read here: an
|
|
36
|
-
* account, an issue, a pull request, a wiki, a release, a commit, a
|
|
37
|
-
* the API, an archive, GitHub's own pages, an address that carries credentials (with a
|
|
38
|
-
* `<user>:<password>@github.com/...`), a host of GitHub Enterprise Cloud with data residency
|
|
39
|
-
* and a host other than github.com, www.github.com and raw.githubusercontent.com. The scheme
|
|
40
|
-
* the dots that end a host, `.git`, a trailing slash, a query and a fragment are ignored, and
|
|
41
|
-
* an SSH address (`git@github.com:<owner>/<repo>.git`).
|
|
38
|
+
* account, an issue, a pull request, a wiki, a release, a commit, a reference that is neither a branch nor a tag
|
|
39
|
+
* (`refs/pull/<n>/head`), a gist, the API, an archive, GitHub's own pages, an address that carries credentials (with a
|
|
40
|
+
* scheme or without one: `<user>:<password>@github.com/...`), a host of GitHub Enterprise Cloud with data residency
|
|
41
|
+
* (`<subdomain>.ghe.com`), and a host other than github.com, www.github.com and raw.githubusercontent.com. The scheme
|
|
42
|
+
* (or its absence), a port, the dots that end a host, `.git`, a trailing slash, a query and a fragment are ignored, and
|
|
43
|
+
* so is the `git` user of an SSH address (`git@github.com:<owner>/<repo>.git`).
|
|
42
44
|
*
|
|
43
45
|
* The text is read as the URL standard reads an address: the C0 controls and spaces around it, and any other white
|
|
44
46
|
* space there, are dropped, and every tab and newline in it; after `http`, `https`, `ws`, `wss` and `ftp` any run of
|
|
@@ -47,9 +49,13 @@ export type GitHubLink = {
|
|
|
47
49
|
* other scheme, `//`. A backslash in the path is a slash.
|
|
48
50
|
*
|
|
49
51
|
* A folder's and a file's ref and path are answered as one text, each segment decoded, since a branch name may hold a
|
|
50
|
-
* slash
|
|
51
|
-
*
|
|
52
|
-
*
|
|
52
|
+
* slash. A branch's or a tag's full name, `refs/heads/<branch>` or `refs/tags/<tag>`, the form GitHub's own Raw links
|
|
53
|
+
* write, stays whole in it, so `resolveRef` reads the name among the branches or the tags alone: the full name is the
|
|
54
|
+
* one form that tells a tag from a branch of the same name, or a branch from a longer tag beside it (the branch
|
|
55
|
+
* `release` and the tag `release/2.0`). A `/blob/` address whose text has no slash names a ref alone and is a folder,
|
|
56
|
+
* as GitHub shows it (its `/blob/<ref>` redirects to `/tree/<ref>`); one whose text has a slash is a file, which
|
|
57
|
+
* `resolveRef` may settle as a ref alone (an empty path). A full name with nothing after it under `/blob/` or `/raw/`
|
|
58
|
+
* names no file, as GitHub answers it 404, and is refused.
|
|
53
59
|
*
|
|
54
60
|
* @param text The address as pasted; the controls and spaces around it are dropped.
|
|
55
61
|
* @throws TypeError when `text` is not a string.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../src/documents/links.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH
|
|
1
|
+
{"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../src/documents/links.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;GAQG;AACH,MAAM,MAAM,UAAU,GAClB;IAAE,IAAI,EAAE,mBAAmB,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC1D;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GAC1E;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,OAAO,CAAA;CAAE,GACtF;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC;AAoOxB;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI,CAwB/D"}
|