MCPcopy Create free account
hub / github.com/arctic-cli/interface / diff

Method diff

packages/sdk/js/src/v2/gen/sdk.gen.ts:1228–1253  ·  view source on GitHub ↗

* Get session diff * * Get all file changes (diffs) made during this session.

(
    parameters: {
      sessionID: string
      directory?: string
      messageID?: string
    },
    options?: Options<never, ThrowOnError>,
  )

Source from the content-addressed store, hash-verified

1226 * Get all file changes (diffs) made during this session.
1227 */
1228 public diff<ThrowOnError extends boolean = false>(
1229 parameters: {
1230 sessionID: string
1231 directory?: string
1232 messageID?: string
1233 },
1234 options?: Options<never, ThrowOnError>,
1235 ) {
1236 const params = buildClientParams(
1237 [parameters],
1238 [
1239 {
1240 args: [
1241 { in: "path", key: "sessionID" },
1242 { in: "query", key: "directory" },
1243 { in: "query", key: "messageID" },
1244 ],
1245 },
1246 ],
1247 )
1248 return (options?.client ?? this.client).get<SessionDiffResponses, SessionDiffErrors, ThrowOnError>({
1249 url: "/session/{sessionID}/diff",
1250 ...options,
1251 ...params,
1252 })
1253 }
1254
1255 /**
1256 * Summarize session

Callers

nothing calls this directly

Calls 2

buildClientParamsFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected