@sourcegraph/cody-web 0.6.1 → 0.7.1
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/{agent.worker-DVKzbHSN.mjs → agent.worker-B1CAn5Kx.mjs} +325 -355
- package/dist/agent.worker.js +2 -2
- package/dist/{time-date-5mt-Pcg3.mjs → browser-DJC99jis.mjs} +4512 -4588
- package/dist/demo/App.d.ts.map +1 -1
- package/dist/{git-log-D98vF6zD.mjs → git-log-_sHG8Csy.mjs} +2 -2
- package/dist/{index-AVrhN4Ic.mjs → index-BRvf0zWs.mjs} +2 -2
- package/dist/index.js +24066 -11366
- package/dist/lib/components/CodyWebChat.d.ts +21 -0
- package/dist/lib/components/CodyWebChat.d.ts.map +1 -0
- package/dist/lib/components/skeleton/ChatSkeleton.d.ts +11 -0
- package/dist/lib/components/skeleton/ChatSkeleton.d.ts.map +1 -0
- package/dist/lib/components/use-cody-agent.d.ts +27 -0
- package/dist/lib/components/use-cody-agent.d.ts.map +1 -0
- package/dist/lib/index.d.ts +2 -2
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/{shell-C6EMKtG-.mjs → shell-BGZM4C-m.mjs} +2 -2
- package/dist/style.css +183 -11
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
- package/dist/lib/components/CodyWebPanel.d.ts +0 -7
- package/dist/lib/components/CodyWebPanel.d.ts.map +0 -1
- package/dist/lib/components/CodyWebPanelProvider.d.ts +0 -31
- package/dist/lib/components/CodyWebPanelProvider.d.ts.map +0 -1
- package/dist/lib/utils/use-local-storage.d.ts +0 -14
- package/dist/lib/utils/use-local-storage.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sourcegraph/cody-web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Cody standalone web app",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"@vitest/web-worker": "^1.4.0",
|
|
29
29
|
"@vscode/codicons": "^0.0.35",
|
|
30
30
|
"buffer": "^6.0.3",
|
|
31
|
+
"classnames": "^2.5.1",
|
|
31
32
|
"cody-ai": "workspace:*",
|
|
32
33
|
"events": "^3.3.0",
|
|
33
34
|
"idb": "^8.0.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodyWebPanel.d.ts","sourceRoot":"","sources":["../../../lib/components/CodyWebPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAmD,MAAM,OAAO,CAAA;AA6BhF,OAAO,6BAA6B,CAAA;AAkBpC,MAAM,WAAW,iBAAiB;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;CACrB;AAID,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAsM9C,CAAA"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { type FunctionComponent, type PropsWithChildren } from 'react';
|
|
2
|
-
import type { MessageConnection } from 'vscode-jsonrpc/browser';
|
|
3
|
-
import { type VSCodeWrapper } from 'cody-ai/webviews/utils/VSCodeApi';
|
|
4
|
-
import type { InitialContext } from '../types';
|
|
5
|
-
interface AgentClient {
|
|
6
|
-
rpc: MessageConnection;
|
|
7
|
-
dispose(): void;
|
|
8
|
-
}
|
|
9
|
-
interface CodyWebPanelContextData {
|
|
10
|
-
client: AgentClient | Error | null;
|
|
11
|
-
activeWebviewPanelID: string;
|
|
12
|
-
vscodeAPI: VSCodeWrapper;
|
|
13
|
-
initialContext: InitialContext | undefined;
|
|
14
|
-
}
|
|
15
|
-
export declare const CodyWebPanelContext: import("react").Context<CodyWebPanelContextData>;
|
|
16
|
-
interface CodyWebPanelProviderProps {
|
|
17
|
-
serverEndpoint: string;
|
|
18
|
-
accessToken: string | null;
|
|
19
|
-
createAgentWorker: () => Worker;
|
|
20
|
-
telemetryClientName?: string;
|
|
21
|
-
initialContext?: InitialContext;
|
|
22
|
-
customHeaders?: Record<string, string>;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* The root store/provider node for Cody Web, creates and shares
|
|
26
|
-
* agent client and maintains active web panel ID, chat history and vscodeAPI.
|
|
27
|
-
*/
|
|
28
|
-
export declare const CodyWebPanelProvider: FunctionComponent<PropsWithChildren<CodyWebPanelProviderProps>>;
|
|
29
|
-
export declare function useWebAgentClient(): CodyWebPanelContextData;
|
|
30
|
-
export {};
|
|
31
|
-
//# sourceMappingURL=CodyWebPanelProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodyWebPanelProvider.d.ts","sourceRoot":"","sources":["../../../lib/components/CodyWebPanelProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EASzB,MAAM,OAAO,CAAA;AACd,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAM/D,OAAO,EAAE,KAAK,aAAa,EAAoB,MAAM,kCAAkC,CAAA;AAGvF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAS9C,UAAU,WAAW;IACjB,GAAG,EAAE,iBAAiB,CAAA;IACtB,OAAO,IAAI,IAAI,CAAA;CAClB;AAED,UAAU,uBAAuB;IAC7B,MAAM,EAAE,WAAW,GAAG,KAAK,GAAG,IAAI,CAAA;IAClC,oBAAoB,EAAE,MAAM,CAAA;IAC5B,SAAS,EAAE,aAAa,CAAA;IACxB,cAAc,EAAE,cAAc,GAAG,SAAS,CAAA;CAC7C;AAED,eAAO,MAAM,mBAAmB,kDAS9B,CAAA;AAEF,UAAU,yBAAyB;IAC/B,cAAc,EAAE,MAAM,CAAA;IACtB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,iBAAiB,EAAE,MAAM,MAAM,CAAA;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACzC;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,yBAAyB,CAAC,CA8LhG,CAAA;AAED,wBAAgB,iBAAiB,IAAI,uBAAuB,CAE3D"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type Dispatch, type SetStateAction } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* A helper method to convert any `Storage` object into a React hook, such as `useLocalStorage`.
|
|
4
|
-
*/
|
|
5
|
-
export declare const useStorageHook: <T>(storage: Storage, key: string, initialValue: T) => [T, Dispatch<SetStateAction<T>>];
|
|
6
|
-
/**
|
|
7
|
-
* A React hook to use and set state that is persisted in localStorage.
|
|
8
|
-
*
|
|
9
|
-
* @param key The localStorage key to use for persistence.
|
|
10
|
-
* @param initialValue The initial value to use when there is no value in localStorage for the key.
|
|
11
|
-
* @returns A getter and setter for the value (`const [foo, setFoo] = useLocalStorage('key', 123)`).
|
|
12
|
-
*/
|
|
13
|
-
export declare const useLocalStorage: <T>(key: string, initialValue: T) => [T, Dispatch<SetStateAction<T>>];
|
|
14
|
-
//# sourceMappingURL=use-local-storage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-local-storage.d.ts","sourceRoot":"","sources":["../../../lib/utils/use-local-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,cAAc,EAKtB,MAAM,OAAO,CAAA;AAyCd;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,CAAC,WACnB,OAAO,OACX,MAAM,gBACG,CAAC,KAChB,CAAC,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAwBjC,CAAA;AA2DD;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,GAAI,CAAC,OAAO,MAAM,gBAAgB,CAAC,KAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CACvC,CAAA"}
|