ciscollm-cli 1.1.1 → 1.1.3
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 +122 -279
- package/dist/core/agent/AgentLoop.js +7 -29
- package/dist/core/agent/AgentLoop.js.map +1 -1
- package/dist/core/rollback/TransactionManager.js +89 -92
- package/dist/core/rollback/TransactionManager.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/llm/LLMClient.d.ts +3 -1
- package/dist/infrastructure/llm/LLMClient.js +100 -20
- package/dist/infrastructure/llm/LLMClient.js.map +1 -1
- package/dist/infrastructure/protocols/PlinkSerial.js +11 -1
- package/dist/infrastructure/protocols/PlinkSerial.js.map +1 -1
- package/dist/infrastructure/protocols/SshSession.js +11 -2
- package/dist/infrastructure/protocols/SshSession.js.map +1 -1
- package/dist/infrastructure/protocols/TelnetSession.js +10 -1
- package/dist/infrastructure/protocols/TelnetSession.js.map +1 -1
- package/dist/shared/utils.d.ts +1 -0
- package/dist/shared/utils.js +28 -0
- package/dist/shared/utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/infrastructure/protocols/MockSession.d.ts +0 -80
- package/dist/infrastructure/protocols/MockSession.js +0 -953
- package/dist/infrastructure/protocols/MockSession.js.map +0 -1
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { BaseSession } from './BaseSession';
|
|
2
|
-
export declare class MockSession extends BaseSession {
|
|
3
|
-
private deviceId;
|
|
4
|
-
private interfaces;
|
|
5
|
-
private activeInterface;
|
|
6
|
-
private vlans;
|
|
7
|
-
private shellEnabled;
|
|
8
|
-
private shellVariables;
|
|
9
|
-
private shellFunctions;
|
|
10
|
-
private routes;
|
|
11
|
-
private activeVlan;
|
|
12
|
-
private vlanNames;
|
|
13
|
-
private backupSnapshot;
|
|
14
|
-
private rollbackSnapshots;
|
|
15
|
-
private readonly commandPatterns;
|
|
16
|
-
private getStateFilePath;
|
|
17
|
-
private saveState;
|
|
18
|
-
private loadState;
|
|
19
|
-
constructor(deviceId?: string);
|
|
20
|
-
isShellEnabled(): boolean;
|
|
21
|
-
connect(): Promise<void>;
|
|
22
|
-
execute(command: string, timeoutMs?: number): Promise<string>;
|
|
23
|
-
executeInternal(command: string, timeoutMs?: number): Promise<string>;
|
|
24
|
-
executeBase(command: string, timeoutMs?: number): Promise<string>;
|
|
25
|
-
disconnect(): Promise<void>;
|
|
26
|
-
private updateMode;
|
|
27
|
-
private matchCommand;
|
|
28
|
-
private matchesPattern;
|
|
29
|
-
private isConfigMode;
|
|
30
|
-
private formatInvalidInput;
|
|
31
|
-
private formatIncompleteCommand;
|
|
32
|
-
private findInvalidTokenIndex;
|
|
33
|
-
private transitionToGlobalConfig;
|
|
34
|
-
private transitionToPrivilegedExec;
|
|
35
|
-
private transitionToUserExec;
|
|
36
|
-
private toggleShell;
|
|
37
|
-
private requireGlobalConfigAndToggleShell;
|
|
38
|
-
private handleInterfaceCommand;
|
|
39
|
-
private handleVlanCommand;
|
|
40
|
-
private handleVlanNameCommand;
|
|
41
|
-
private handleExitCommand;
|
|
42
|
-
private handleEndCommand;
|
|
43
|
-
private handleIpAddressCommand;
|
|
44
|
-
private handleNoIpAddressCommand;
|
|
45
|
-
private handleShutdownCommand;
|
|
46
|
-
private handleNoShutdownCommand;
|
|
47
|
-
private handleDescriptionCommand;
|
|
48
|
-
private handleNoDescriptionCommand;
|
|
49
|
-
private handleShowIpInterfaceBrief;
|
|
50
|
-
private handleShowRunningConfig;
|
|
51
|
-
private handleShowVlanBrief;
|
|
52
|
-
private handleShowInterfaces;
|
|
53
|
-
private handleShowInterfacesStatus;
|
|
54
|
-
private handleShowIpRoute;
|
|
55
|
-
private handleCopyRunningConfig;
|
|
56
|
-
private handleConfigureReplace;
|
|
57
|
-
private handleIpRouteCommand;
|
|
58
|
-
private formatBadInterfaceParameter;
|
|
59
|
-
private resolveInterfaceName;
|
|
60
|
-
hasSnapshots(): boolean;
|
|
61
|
-
restoreToInitialSnapshot(): boolean;
|
|
62
|
-
restoreBackupSnapshot(): boolean;
|
|
63
|
-
private pushRollbackSnapshot;
|
|
64
|
-
private clearRollbackSnapshots;
|
|
65
|
-
private cloneSnapshot;
|
|
66
|
-
private restoreSnapshot;
|
|
67
|
-
private refreshConnectedRoutes;
|
|
68
|
-
private isDestinationReachable;
|
|
69
|
-
private computeNetworkAddress;
|
|
70
|
-
private isInSameSubnet;
|
|
71
|
-
private ipMatchesRoute;
|
|
72
|
-
private ipToIntParts;
|
|
73
|
-
private intPartsToIp;
|
|
74
|
-
private simulateLatency;
|
|
75
|
-
private substituteShellVariables;
|
|
76
|
-
private handleDirFlash;
|
|
77
|
-
private handleRouterOspf;
|
|
78
|
-
private handleIpDhcpPool;
|
|
79
|
-
private handleIpAccessList;
|
|
80
|
-
}
|