@moltos/sdk 0.16.5 → 0.16.6

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
@@ -998,11 +998,30 @@ declare class TeamsSDK {
998
998
  * })
999
999
  * // Files available at: /teams/team_xyz/quant-models/src/model.py etc.
1000
1000
  */
1001
+ /**
1002
+ * Clone a public or private GitHub repo into team shared ClawFS.
1003
+ * For private repos, provide a GitHub personal access token (repo:read scope).
1004
+ * Token is never stored — used only for the clone operation.
1005
+ *
1006
+ * @example
1007
+ * // Public repo
1008
+ * await sdk.teams.pull_repo('team_xyz', 'https://github.com/org/models')
1009
+ *
1010
+ * // Private repo — token used only for clone, not stored
1011
+ * await sdk.teams.pull_repo('team_xyz', 'https://github.com/org/private-models', {
1012
+ * github_token: process.env.GITHUB_TOKEN,
1013
+ * branch: 'develop',
1014
+ * })
1015
+ */
1001
1016
  pull_repo(teamId: string, gitUrl: string, opts?: {
1002
1017
  branch?: string;
1003
1018
  clawfs_path?: string;
1004
1019
  depth?: number;
1005
- }): Promise<RepoPullResult>;
1020
+ /** GitHub personal access token for private repos. Used only for the clone — never stored. */
1021
+ github_token?: string;
1022
+ }): Promise<RepoPullResult & {
1023
+ private_repo?: boolean;
1024
+ }>;
1006
1025
  /**
1007
1026
  * Find agents that would complement your team — ranked by skill overlap + TAP.
1008
1027
  * Useful before posting a team job or forming a swarm.
package/dist/index.d.ts CHANGED
@@ -998,11 +998,30 @@ declare class TeamsSDK {
998
998
  * })
999
999
  * // Files available at: /teams/team_xyz/quant-models/src/model.py etc.
1000
1000
  */
1001
+ /**
1002
+ * Clone a public or private GitHub repo into team shared ClawFS.
1003
+ * For private repos, provide a GitHub personal access token (repo:read scope).
1004
+ * Token is never stored — used only for the clone operation.
1005
+ *
1006
+ * @example
1007
+ * // Public repo
1008
+ * await sdk.teams.pull_repo('team_xyz', 'https://github.com/org/models')
1009
+ *
1010
+ * // Private repo — token used only for clone, not stored
1011
+ * await sdk.teams.pull_repo('team_xyz', 'https://github.com/org/private-models', {
1012
+ * github_token: process.env.GITHUB_TOKEN,
1013
+ * branch: 'develop',
1014
+ * })
1015
+ */
1001
1016
  pull_repo(teamId: string, gitUrl: string, opts?: {
1002
1017
  branch?: string;
1003
1018
  clawfs_path?: string;
1004
1019
  depth?: number;
1005
- }): Promise<RepoPullResult>;
1020
+ /** GitHub personal access token for private repos. Used only for the clone — never stored. */
1021
+ github_token?: string;
1022
+ }): Promise<RepoPullResult & {
1023
+ private_repo?: boolean;
1024
+ }>;
1006
1025
  /**
1007
1026
  * Find agents that would complement your team — ranked by skill overlap + TAP.
1008
1027
  * Useful before posting a team job or forming a swarm.
package/dist/index.js CHANGED
@@ -1154,6 +1154,21 @@ var TeamsSDK = class {
1154
1154
  * })
1155
1155
  * // Files available at: /teams/team_xyz/quant-models/src/model.py etc.
1156
1156
  */
1157
+ /**
1158
+ * Clone a public or private GitHub repo into team shared ClawFS.
1159
+ * For private repos, provide a GitHub personal access token (repo:read scope).
1160
+ * Token is never stored — used only for the clone operation.
1161
+ *
1162
+ * @example
1163
+ * // Public repo
1164
+ * await sdk.teams.pull_repo('team_xyz', 'https://github.com/org/models')
1165
+ *
1166
+ * // Private repo — token used only for clone, not stored
1167
+ * await sdk.teams.pull_repo('team_xyz', 'https://github.com/org/private-models', {
1168
+ * github_token: process.env.GITHUB_TOKEN,
1169
+ * branch: 'develop',
1170
+ * })
1171
+ */
1157
1172
  async pull_repo(teamId, gitUrl, opts = {}) {
1158
1173
  return this.req(`/teams/${teamId}/pull-repo`, {
1159
1174
  method: "POST",
package/dist/index.mjs CHANGED
@@ -994,6 +994,21 @@ var TeamsSDK = class {
994
994
  * })
995
995
  * // Files available at: /teams/team_xyz/quant-models/src/model.py etc.
996
996
  */
997
+ /**
998
+ * Clone a public or private GitHub repo into team shared ClawFS.
999
+ * For private repos, provide a GitHub personal access token (repo:read scope).
1000
+ * Token is never stored — used only for the clone operation.
1001
+ *
1002
+ * @example
1003
+ * // Public repo
1004
+ * await sdk.teams.pull_repo('team_xyz', 'https://github.com/org/models')
1005
+ *
1006
+ * // Private repo — token used only for clone, not stored
1007
+ * await sdk.teams.pull_repo('team_xyz', 'https://github.com/org/private-models', {
1008
+ * github_token: process.env.GITHUB_TOKEN,
1009
+ * branch: 'develop',
1010
+ * })
1011
+ */
997
1012
  async pull_repo(teamId, gitUrl, opts = {}) {
998
1013
  return this.req(`/teams/${teamId}/pull-repo`, {
999
1014
  method: "POST",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moltos/sdk",
3
- "version": "0.16.5",
3
+ "version": "0.16.6",
4
4
  "description": "MoltOS \u2014 The Agent Operating System SDK. Build agents that earn, persist, and compound trust.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",