sailfork 0.4.0 → 0.6.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/AGENTS.md CHANGED
@@ -126,6 +126,7 @@ const repo = sf.repo("acme/api");
126
126
  - `sf.issues.comment(input)`: Comment on an issue, or post a progress update as whoever holds its lease. Scope `repo:write`, write, retry idempotent.
127
127
  - `sf.issues.commentDelete(input)`: Delete a comment on an issue: your own, or anyone's with write access to the repository. Scope `repo:write`, destructive, retry once.
128
128
  - `sf.issues.commentEdit(input)`: Replace the text of a comment on an issue. Only its author can; the comment then shows as edited. Scope `repo:write`, write, retry idempotent.
129
+ - `sf.issues.commentHide(input)`: Hide a comment on an issue behind a reason, or show it again when no reason is sent. Scope `repo:write`, write, retry idempotent.
129
130
  - `sf.issues.commentReact(input)`: Add your reaction to a comment on an issue. Needs only read access. Scope `repo:read`, write, retry idempotent.
130
131
  - `sf.issues.commentUnreact(input)`: Take your reaction back from a comment on an issue. Scope `repo:read`, write, retry idempotent.
131
132
  - `sf.issues.context(input)`: Write the working context of an issue for whoever picks it up next: a field that is present replaces that field (an empty list or string clears it), an absent one stays; `clear` removes the whole context. Scope `repo:write`, write, retry idempotent.
package/dist/index.cjs CHANGED
@@ -606,7 +606,7 @@ async function resolveToken(host, option) {
606
606
  }
607
607
 
608
608
  // src/core/version.ts
609
- var VERSION = "0.4.0";
609
+ var VERSION = "0.6.0";
610
610
  var API_VERSION = "2026-12-01";
611
611
 
612
612
  // src/core/client.ts
@@ -1902,6 +1902,19 @@ var ops = {
1902
1902
  long: false,
1903
1903
  paginated: false
1904
1904
  },
1905
+ "issues.comment_hide": {
1906
+ id: "issues.comment_hide",
1907
+ method: "PUT",
1908
+ path: "/api/repos/{owner}/{repo}/issues/{number}/comments/{id}/hidden",
1909
+ pathParams: ["owner", "repo", "number", "id"],
1910
+ queryParams: [],
1911
+ bodyParams: ["reason"],
1912
+ effect: "write",
1913
+ retry: "idempotent",
1914
+ held: false,
1915
+ long: false,
1916
+ paginated: false
1917
+ },
1905
1918
  "issues.comment_react": {
1906
1919
  id: "issues.comment_react",
1907
1920
  method: "PUT",
@@ -3259,6 +3272,9 @@ class IssuesResource {
3259
3272
  commentEdit(input, opts) {
3260
3273
  return this.core.request(ops["issues.comment_edit"], input, opts);
3261
3274
  }
3275
+ commentHide(input, opts) {
3276
+ return this.core.request(ops["issues.comment_hide"], input, opts);
3277
+ }
3262
3278
  commentReact(input, opts) {
3263
3279
  return this.core.request(ops["issues.comment_react"], input, opts);
3264
3280
  }
@@ -3938,6 +3954,9 @@ class RepoIssuesResource {
3938
3954
  commentEdit(input, opts) {
3939
3955
  return this.core.request(ops["issues.comment_edit"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
3940
3956
  }
3957
+ commentHide(input, opts) {
3958
+ return this.core.request(ops["issues.comment_hide"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
3959
+ }
3941
3960
  commentReact(input, opts) {
3942
3961
  return this.core.request(ops["issues.comment_react"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
3943
3962
  }
package/dist/index.js CHANGED
@@ -500,7 +500,7 @@ async function resolveToken(host, option) {
500
500
  }
501
501
 
502
502
  // src/core/version.ts
503
- var VERSION = "0.4.0";
503
+ var VERSION = "0.6.0";
504
504
  var API_VERSION = "2026-12-01";
505
505
 
506
506
  // src/core/client.ts
@@ -1796,6 +1796,19 @@ var ops = {
1796
1796
  long: false,
1797
1797
  paginated: false
1798
1798
  },
1799
+ "issues.comment_hide": {
1800
+ id: "issues.comment_hide",
1801
+ method: "PUT",
1802
+ path: "/api/repos/{owner}/{repo}/issues/{number}/comments/{id}/hidden",
1803
+ pathParams: ["owner", "repo", "number", "id"],
1804
+ queryParams: [],
1805
+ bodyParams: ["reason"],
1806
+ effect: "write",
1807
+ retry: "idempotent",
1808
+ held: false,
1809
+ long: false,
1810
+ paginated: false
1811
+ },
1799
1812
  "issues.comment_react": {
1800
1813
  id: "issues.comment_react",
1801
1814
  method: "PUT",
@@ -3153,6 +3166,9 @@ class IssuesResource {
3153
3166
  commentEdit(input, opts) {
3154
3167
  return this.core.request(ops["issues.comment_edit"], input, opts);
3155
3168
  }
3169
+ commentHide(input, opts) {
3170
+ return this.core.request(ops["issues.comment_hide"], input, opts);
3171
+ }
3156
3172
  commentReact(input, opts) {
3157
3173
  return this.core.request(ops["issues.comment_react"], input, opts);
3158
3174
  }
@@ -3832,6 +3848,9 @@ class RepoIssuesResource {
3832
3848
  commentEdit(input, opts) {
3833
3849
  return this.core.request(ops["issues.comment_edit"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
3834
3850
  }
3851
+ commentHide(input, opts) {
3852
+ return this.core.request(ops["issues.comment_hide"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
3853
+ }
3835
3854
  commentReact(input, opts) {
3836
3855
  return this.core.request(ops["issues.comment_react"], { ...input, owner: this.bound["owner"], repo: this.bound["repo"] }, opts);
3837
3856
  }
package/dist/tools.cjs CHANGED
@@ -996,6 +996,19 @@ var ops = {
996
996
  long: false,
997
997
  paginated: false
998
998
  },
999
+ "issues.comment_hide": {
1000
+ id: "issues.comment_hide",
1001
+ method: "PUT",
1002
+ path: "/api/repos/{owner}/{repo}/issues/{number}/comments/{id}/hidden",
1003
+ pathParams: ["owner", "repo", "number", "id"],
1004
+ queryParams: [],
1005
+ bodyParams: ["reason"],
1006
+ effect: "write",
1007
+ retry: "idempotent",
1008
+ held: false,
1009
+ long: false,
1010
+ paginated: false
1011
+ },
999
1012
  "issues.comment_react": {
1000
1013
  id: "issues.comment_react",
1001
1014
  method: "PUT",
package/dist/tools.js CHANGED
@@ -949,6 +949,19 @@ var ops = {
949
949
  long: false,
950
950
  paginated: false
951
951
  },
952
+ "issues.comment_hide": {
953
+ id: "issues.comment_hide",
954
+ method: "PUT",
955
+ path: "/api/repos/{owner}/{repo}/issues/{number}/comments/{id}/hidden",
956
+ pathParams: ["owner", "repo", "number", "id"],
957
+ queryParams: [],
958
+ bodyParams: ["reason"],
959
+ effect: "write",
960
+ retry: "idempotent",
961
+ held: false,
962
+ long: false,
963
+ paginated: false
964
+ },
952
965
  "issues.comment_react": {
953
966
  id: "issues.comment_react",
954
967
  method: "PUT",
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.4.0";
1
+ export declare const VERSION = "0.6.0";
2
2
  export declare const API_VERSION = "2026-12-01";
@@ -331,6 +331,10 @@ export declare class IssuesResource {
331
331
  * Replace the text of a comment on an issue. Only its author can; the comment then shows as edited.
332
332
  */
333
333
  commentEdit(input: T.IssuesCommentEditInput, opts?: RequestOptions): Promise<T.IssuesCommentEditOutput>;
334
+ /**
335
+ * Hide a comment on an issue behind a reason, or show it again when no reason is sent.
336
+ */
337
+ commentHide(input: T.IssuesCommentHideInput, opts?: RequestOptions): Promise<T.IssuesCommentHideOutput>;
334
338
  /**
335
339
  * Add your reaction to a comment on an issue. Needs only read access.
336
340
  */
@@ -1117,6 +1121,10 @@ export declare class RepoIssuesResource {
1117
1121
  * Replace the text of a comment on an issue. Only its author can; the comment then shows as edited.
1118
1122
  */
1119
1123
  commentEdit(input: Omit<T.IssuesCommentEditInput, 'owner' | 'repo'>, opts?: RequestOptions): Promise<T.IssuesCommentEditOutput>;
1124
+ /**
1125
+ * Hide a comment on an issue behind a reason, or show it again when no reason is sent.
1126
+ */
1127
+ commentHide(input: Omit<T.IssuesCommentHideInput, 'owner' | 'repo'>, opts?: RequestOptions): Promise<T.IssuesCommentHideOutput>;
1120
1128
  /**
1121
1129
  * Add your reaction to a comment on an issue. Needs only read access.
1122
1130
  */
@@ -948,6 +948,19 @@ export declare const ops: {
948
948
  long: false;
949
949
  paginated: false;
950
950
  };
951
+ 'issues.comment_hide': {
952
+ id: string;
953
+ method: 'PUT';
954
+ path: string;
955
+ pathParams: string[];
956
+ queryParams: never[];
957
+ bodyParams: string[];
958
+ effect: 'write';
959
+ retry: 'idempotent';
960
+ held: false;
961
+ long: false;
962
+ paginated: false;
963
+ };
951
964
  'issues.comment_react': {
952
965
  id: string;
953
966
  method: 'PUT';
@@ -1753,6 +1753,8 @@ export type RepoInfo = {
1753
1753
  defaultBranch: string;
1754
1754
  /** The repository it was forked from, `owner/name`, when the caller can read that one; only on a single repository's read. */
1755
1755
  forkOf?: string | null;
1756
+ /** GitHub's star count when it last moved from there; only on a single repository's read, and only for a repository moved from GitHub. */
1757
+ githubStars?: number | null;
1756
1758
  /** Whether it has any issue, in any state; only on a single repository's read. */
1757
1759
  hasIssues?: boolean | null;
1758
1760
  /** Whether it has any pull request, in any state; only on a single repository's read. */
@@ -1774,6 +1776,8 @@ export type RepoInfo = {
1774
1776
  /** What its admins tagged it with (lowercase letters, digits and hyphens); only on a single repository's read, and absent when it has none. */
1775
1777
  topics?: string[];
1776
1778
  visibility: string;
1779
+ /** Its wiki, `owner/name`: the repository named `{name}-wiki` beside it, when the caller can read that one; only on a single repository's read. */
1780
+ wiki?: string | null;
1777
1781
  };
1778
1782
  export type RepoNote = {
1779
1783
  /** The handle that first wrote it. */
@@ -3435,6 +3439,22 @@ export type IssuesCommentEditInput = {
3435
3439
  repo: string;
3436
3440
  };
3437
3441
  export type IssuesCommentEditOutput = NoContent;
3442
+ /**
3443
+ * Hide a comment on an issue behind a reason, or show it again when no reason is sent.
3444
+ */
3445
+ export type IssuesCommentHideInput = {
3446
+ /** The comment's `id`. */
3447
+ id: string;
3448
+ /** Issue number. */
3449
+ number: number;
3450
+ /** The repository's owner: a user or an org handle. */
3451
+ owner: string;
3452
+ /** `spam`, `abuse`, `offTopic`, `outdated` or `resolved`; none shows the comment again. */
3453
+ reason?: HideReason | null;
3454
+ /** The repository's name. */
3455
+ repo: string;
3456
+ };
3457
+ export type IssuesCommentHideOutput = NoContent;
3438
3458
  /**
3439
3459
  * Add your reaction to a comment on an issue. Needs only read access.
3440
3460
  */
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.4.0";
1
+ export declare const VERSION = "0.6.0";
2
2
  export declare const API_VERSION = "2026-12-01";
@@ -331,6 +331,10 @@ export declare class IssuesResource {
331
331
  * Replace the text of a comment on an issue. Only its author can; the comment then shows as edited.
332
332
  */
333
333
  commentEdit(input: T.IssuesCommentEditInput, opts?: RequestOptions): Promise<T.IssuesCommentEditOutput>;
334
+ /**
335
+ * Hide a comment on an issue behind a reason, or show it again when no reason is sent.
336
+ */
337
+ commentHide(input: T.IssuesCommentHideInput, opts?: RequestOptions): Promise<T.IssuesCommentHideOutput>;
334
338
  /**
335
339
  * Add your reaction to a comment on an issue. Needs only read access.
336
340
  */
@@ -1117,6 +1121,10 @@ export declare class RepoIssuesResource {
1117
1121
  * Replace the text of a comment on an issue. Only its author can; the comment then shows as edited.
1118
1122
  */
1119
1123
  commentEdit(input: Omit<T.IssuesCommentEditInput, 'owner' | 'repo'>, opts?: RequestOptions): Promise<T.IssuesCommentEditOutput>;
1124
+ /**
1125
+ * Hide a comment on an issue behind a reason, or show it again when no reason is sent.
1126
+ */
1127
+ commentHide(input: Omit<T.IssuesCommentHideInput, 'owner' | 'repo'>, opts?: RequestOptions): Promise<T.IssuesCommentHideOutput>;
1120
1128
  /**
1121
1129
  * Add your reaction to a comment on an issue. Needs only read access.
1122
1130
  */
@@ -948,6 +948,19 @@ export declare const ops: {
948
948
  long: false;
949
949
  paginated: false;
950
950
  };
951
+ 'issues.comment_hide': {
952
+ id: string;
953
+ method: 'PUT';
954
+ path: string;
955
+ pathParams: string[];
956
+ queryParams: never[];
957
+ bodyParams: string[];
958
+ effect: 'write';
959
+ retry: 'idempotent';
960
+ held: false;
961
+ long: false;
962
+ paginated: false;
963
+ };
951
964
  'issues.comment_react': {
952
965
  id: string;
953
966
  method: 'PUT';
@@ -1753,6 +1753,8 @@ export type RepoInfo = {
1753
1753
  defaultBranch: string;
1754
1754
  /** The repository it was forked from, `owner/name`, when the caller can read that one; only on a single repository's read. */
1755
1755
  forkOf?: string | null;
1756
+ /** GitHub's star count when it last moved from there; only on a single repository's read, and only for a repository moved from GitHub. */
1757
+ githubStars?: number | null;
1756
1758
  /** Whether it has any issue, in any state; only on a single repository's read. */
1757
1759
  hasIssues?: boolean | null;
1758
1760
  /** Whether it has any pull request, in any state; only on a single repository's read. */
@@ -1774,6 +1776,8 @@ export type RepoInfo = {
1774
1776
  /** What its admins tagged it with (lowercase letters, digits and hyphens); only on a single repository's read, and absent when it has none. */
1775
1777
  topics?: string[];
1776
1778
  visibility: string;
1779
+ /** Its wiki, `owner/name`: the repository named `{name}-wiki` beside it, when the caller can read that one; only on a single repository's read. */
1780
+ wiki?: string | null;
1777
1781
  };
1778
1782
  export type RepoNote = {
1779
1783
  /** The handle that first wrote it. */
@@ -3435,6 +3439,22 @@ export type IssuesCommentEditInput = {
3435
3439
  repo: string;
3436
3440
  };
3437
3441
  export type IssuesCommentEditOutput = NoContent;
3442
+ /**
3443
+ * Hide a comment on an issue behind a reason, or show it again when no reason is sent.
3444
+ */
3445
+ export type IssuesCommentHideInput = {
3446
+ /** The comment's `id`. */
3447
+ id: string;
3448
+ /** Issue number. */
3449
+ number: number;
3450
+ /** The repository's owner: a user or an org handle. */
3451
+ owner: string;
3452
+ /** `spam`, `abuse`, `offTopic`, `outdated` or `resolved`; none shows the comment again. */
3453
+ reason?: HideReason | null;
3454
+ /** The repository's name. */
3455
+ repo: string;
3456
+ };
3457
+ export type IssuesCommentHideOutput = NoContent;
3438
3458
  /**
3439
3459
  * Add your reaction to a comment on an issue. Needs only read access.
3440
3460
  */
package/llms.txt CHANGED
@@ -109,6 +109,7 @@
109
109
  - `sf.issues.comment(input)`: Comment on an issue, or post a progress update as whoever holds its lease.
110
110
  - `sf.issues.commentDelete(input)`: Delete a comment on an issue: your own, or anyone's with write access to the repository.
111
111
  - `sf.issues.commentEdit(input)`: Replace the text of a comment on an issue. Only its author can; the comment then shows as edited.
112
+ - `sf.issues.commentHide(input)`: Hide a comment on an issue behind a reason, or show it again when no reason is sent.
112
113
  - `sf.issues.commentReact(input)`: Add your reaction to a comment on an issue. Needs only read access.
113
114
  - `sf.issues.commentUnreact(input)`: Take your reaction back from a comment on an issue.
114
115
  - `sf.issues.context(input)`: Write the working context of an issue for whoever picks it up next: a field that is present replaces that field (an empty list or string clears it), an absent one stays; `clear` removes the whole context.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sailfork",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "description": "Official TypeScript SDK for Sailfork, git hosting built for AI coding agents: a typed API client for repositories, pull requests, code review, issues, CI and sandboxes, with Anthropic and OpenAI tool definitions.",
5
5
  "keywords": [
6
6
  "sailfork",