@github/copilot 0.0.337-8 → 0.0.337-9
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/package.json +2 -2
- package/sdk/index.d.ts +16 -11
- package/sdk/index.js +259 -259
- package/sdk/index.js.map +3 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@github/copilot",
|
|
3
3
|
"description": "GitHub Copilot CLI brings the power of Copilot coding agent directly to your terminal.",
|
|
4
|
-
"version": "0.0.337-
|
|
4
|
+
"version": "0.0.337-9",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"sdk/**/*"
|
|
34
34
|
],
|
|
35
35
|
"buildMetadata": {
|
|
36
|
-
"gitCommit": "
|
|
36
|
+
"gitCommit": "06bc071"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"node-pty": "npm:@devm33/node-pty@^1.0.8",
|
package/sdk/index.d.ts
CHANGED
|
@@ -1500,32 +1500,37 @@ declare const SessionEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1500
1500
|
}>]>;
|
|
1501
1501
|
|
|
1502
1502
|
/**
|
|
1503
|
-
* SessionManager
|
|
1503
|
+
* Base SessionManager - manages sessions in memory without persistence.
|
|
1504
|
+
* Generic type TSession allows subclasses to work with specific Session types.
|
|
1504
1505
|
*/
|
|
1505
|
-
export declare
|
|
1506
|
+
export declare class SessionManager<TSession extends Session = Session> {
|
|
1507
|
+
protected sessions: Map<string, TSession>;
|
|
1508
|
+
protected logger: RunnerLogger;
|
|
1509
|
+
private lastAccessedSessionId;
|
|
1510
|
+
constructor({ logger }?: SessionManagerOptions);
|
|
1506
1511
|
/**
|
|
1507
|
-
* Create a new session
|
|
1512
|
+
* Create a new session in memory
|
|
1508
1513
|
*/
|
|
1509
1514
|
createSession(): Promise<TSession>;
|
|
1510
1515
|
/**
|
|
1511
|
-
* Get
|
|
1516
|
+
* Get existing session by ID
|
|
1512
1517
|
*/
|
|
1513
|
-
|
|
1518
|
+
getSession(sessionId: string): Promise<TSession | undefined>;
|
|
1514
1519
|
/**
|
|
1515
|
-
* Get
|
|
1520
|
+
* Get the most recently created or accessed session
|
|
1516
1521
|
*/
|
|
1517
|
-
|
|
1522
|
+
getLastSession(): Promise<TSession | undefined>;
|
|
1518
1523
|
/**
|
|
1519
|
-
* List all
|
|
1524
|
+
* List all sessions with their metadata
|
|
1520
1525
|
*/
|
|
1521
1526
|
listSessions(): Promise<SessionMetadata[]>;
|
|
1522
1527
|
/**
|
|
1523
1528
|
* Save session state immediately
|
|
1529
|
+
* Base class does nothing (no persistence)
|
|
1524
1530
|
*/
|
|
1525
|
-
saveSession(
|
|
1531
|
+
saveSession(_session: TSession): Promise<void>;
|
|
1526
1532
|
/**
|
|
1527
|
-
* Delete
|
|
1528
|
-
* @param options Options including session to delete
|
|
1533
|
+
* Delete session from memory
|
|
1529
1534
|
*/
|
|
1530
1535
|
deleteSession(session: TSession): Promise<void>;
|
|
1531
1536
|
}
|