@jupyterlite/ai 0.18.0 → 0.19.0
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/lib/chat-commands/clear.d.ts +1 -0
- package/lib/chat-commands/index.d.ts +1 -0
- package/lib/chat-commands/skills.d.ts +2 -1
- package/lib/chat-model-handler.d.ts +3 -1
- package/lib/chat-model.d.ts +46 -8
- package/lib/chat-model.js +51 -21
- package/lib/completion/completion-provider.d.ts +3 -1
- package/lib/completion/completion-provider.js +1 -2
- package/lib/completion/index.d.ts +1 -0
- package/lib/components/clear-button.d.ts +1 -0
- package/lib/components/clear-button.js +3 -4
- package/lib/components/completion-status.d.ts +1 -0
- package/lib/components/completion-status.js +5 -4
- package/lib/components/index.d.ts +1 -0
- package/lib/components/model-select.d.ts +1 -0
- package/lib/components/model-select.js +62 -67
- package/lib/components/save-button.d.ts +1 -0
- package/lib/components/save-button.js +4 -5
- package/lib/components/stop-button.d.ts +1 -0
- package/lib/components/stop-button.js +3 -4
- package/lib/components/tool-select.d.ts +3 -1
- package/lib/components/tool-select.js +47 -60
- package/lib/components/usage-display.d.ts +4 -2
- package/lib/components/usage-display.js +50 -61
- package/lib/diff-manager.d.ts +3 -1
- package/lib/index.d.ts +3 -2
- package/lib/index.js +28 -17
- package/lib/models/settings-model.d.ts +3 -1
- package/lib/rendered-message-outputarea.d.ts +1 -0
- package/lib/tokens.d.ts +18 -640
- package/lib/tokens.js +2 -31
- package/lib/widgets/ai-settings.d.ts +3 -1
- package/lib/widgets/ai-settings.js +185 -349
- package/lib/widgets/main-area-chat.d.ts +1 -0
- package/lib/widgets/provider-config-dialog.d.ts +2 -1
- package/lib/widgets/provider-config-dialog.js +102 -167
- package/package.json +111 -258
- package/src/chat-commands/skills.ts +2 -2
- package/src/chat-model-handler.ts +6 -4
- package/src/chat-model.ts +66 -19
- package/src/completion/completion-provider.ts +6 -6
- package/src/components/clear-button.tsx +0 -2
- package/src/components/completion-status.tsx +2 -2
- package/src/components/model-select.tsx +1 -1
- package/src/components/stop-button.tsx +0 -2
- package/src/components/tool-select.tsx +10 -9
- package/src/components/usage-display.tsx +4 -2
- package/src/diff-manager.ts +4 -3
- package/src/index.ts +62 -44
- package/src/models/settings-model.ts +6 -6
- package/src/tokens.ts +23 -788
- package/src/widgets/ai-settings.tsx +14 -11
- package/src/widgets/provider-config-dialog.tsx +8 -8
- package/LICENSE +0 -30
- package/README.md +0 -49
- package/lib/agent.d.ts +0 -280
- package/lib/agent.js +0 -1103
- package/lib/icons.d.ts +0 -3
- package/lib/icons.js +0 -8
- package/lib/providers/built-in-providers.d.ts +0 -21
- package/lib/providers/built-in-providers.js +0 -233
- package/lib/providers/generated-model-info.d.ts +0 -8
- package/lib/providers/generated-model-info.js +0 -502
- package/lib/providers/model-info.d.ts +0 -6
- package/lib/providers/model-info.js +0 -91
- package/lib/providers/models.d.ts +0 -37
- package/lib/providers/models.js +0 -28
- package/lib/providers/provider-registry.d.ts +0 -49
- package/lib/providers/provider-registry.js +0 -72
- package/lib/providers/provider-tools.d.ts +0 -36
- package/lib/providers/provider-tools.js +0 -93
- package/lib/skills/index.d.ts +0 -4
- package/lib/skills/index.js +0 -7
- package/lib/skills/parse-skill.d.ts +0 -25
- package/lib/skills/parse-skill.js +0 -69
- package/lib/skills/skill-loader.d.ts +0 -25
- package/lib/skills/skill-loader.js +0 -133
- package/lib/skills/skill-registry.d.ts +0 -31
- package/lib/skills/skill-registry.js +0 -100
- package/lib/skills/types.d.ts +0 -29
- package/lib/skills/types.js +0 -5
- package/lib/tools/commands.d.ts +0 -11
- package/lib/tools/commands.js +0 -154
- package/lib/tools/skills.d.ts +0 -9
- package/lib/tools/skills.js +0 -73
- package/lib/tools/tool-registry.d.ts +0 -35
- package/lib/tools/tool-registry.js +0 -55
- package/lib/tools/web.d.ts +0 -8
- package/lib/tools/web.js +0 -196
- package/src/agent.ts +0 -1431
- package/src/icons.ts +0 -11
- package/src/providers/built-in-providers.ts +0 -241
- package/src/providers/generated-model-info.ts +0 -508
- package/src/providers/model-info.ts +0 -145
- package/src/providers/models.ts +0 -76
- package/src/providers/provider-registry.ts +0 -88
- package/src/providers/provider-tools.ts +0 -179
- package/src/skills/index.ts +0 -14
- package/src/skills/parse-skill.ts +0 -91
- package/src/skills/skill-loader.ts +0 -175
- package/src/skills/skill-registry.ts +0 -137
- package/src/skills/types.ts +0 -37
- package/src/tools/commands.ts +0 -210
- package/src/tools/skills.ts +0 -84
- package/src/tools/tool-registry.ts +0 -63
- package/src/tools/web.ts +0 -238
- package/src/types.d.ts +0 -4
- package/style/icons/jupyternaut-lite.svg +0 -7
package/lib/tokens.js
CHANGED
|
@@ -13,40 +13,11 @@ export var CommandIds;
|
|
|
13
13
|
CommandIds.saveChat = '@jupyterlite/ai:save-chat';
|
|
14
14
|
CommandIds.restoreChat = '@jupyterlite/ai:restore-chat';
|
|
15
15
|
})(CommandIds || (CommandIds = {}));
|
|
16
|
-
/**
|
|
17
|
-
* The tool registry token.
|
|
18
|
-
*/
|
|
19
|
-
export const IToolRegistry = new Token('@jupyterlite/ai:IToolRegistry', 'Tool registry for AI agent functionality');
|
|
20
|
-
/**
|
|
21
|
-
* The skill registry token.
|
|
22
|
-
*/
|
|
23
|
-
export const ISkillRegistry = new Token('@jupyterlite/ai:ISkillRegistry', 'Skill registry for AI agent functionality');
|
|
24
|
-
/**
|
|
25
|
-
* Token for the provider registry.
|
|
26
|
-
*/
|
|
27
|
-
export const IProviderRegistry = new Token('@jupyterlite/ai:IProviderRegistry', 'Registry for AI providers');
|
|
28
|
-
/**
|
|
29
|
-
* Token for the AI settings model.
|
|
30
|
-
*/
|
|
31
|
-
export const IAISettingsModel = new Token('@jupyterlite/ai:IAISettingsModel');
|
|
32
|
-
/**
|
|
33
|
-
* Token for the agent manager.
|
|
34
|
-
*/
|
|
35
|
-
export const IAgentManager = new Token('@jupyterlite/ai:IAgentManager');
|
|
36
|
-
/*
|
|
37
|
-
* Token for the agent manager factory.
|
|
38
|
-
*/
|
|
39
|
-
export const IAgentManagerFactory = new Token('@jupyterlite/ai:IAgentManagerFactory');
|
|
40
16
|
/**
|
|
41
17
|
* Token for the chat model handler.
|
|
42
18
|
*/
|
|
43
19
|
export const IChatModelHandler = new Token('@jupyterlite/ai:IChatModelHandler');
|
|
44
20
|
/**
|
|
45
|
-
* Token for the
|
|
46
|
-
*/
|
|
47
|
-
export const IDiffManager = new Token('@jupyterlite/ai:IDiffManager');
|
|
48
|
-
/**
|
|
49
|
-
* The string that replaces a secret key in settings.
|
|
21
|
+
* Token for the AI settings model.
|
|
50
22
|
*/
|
|
51
|
-
export const
|
|
52
|
-
export const SECRETS_REPLACEMENT = '***';
|
|
23
|
+
export const IAISettingsModel = new Token('@jupyterlite/ai:IAISettingsModel');
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { IAgentManagerFactory, IAISecretsAccess, IProviderRegistry } from '@jupyternaut/agent';
|
|
1
2
|
import { IThemeManager } from '@jupyterlab/apputils';
|
|
2
3
|
import { ReactWidget } from '@jupyterlab/ui-components';
|
|
3
4
|
import type { TranslationBundle } from '@jupyterlab/translation';
|
|
4
5
|
import React from 'react';
|
|
5
|
-
import
|
|
6
|
+
import type { IAISettingsModel } from '../tokens';
|
|
6
7
|
/**
|
|
7
8
|
* A JupyterLab widget for AI settings configuration
|
|
8
9
|
*/
|
|
@@ -46,3 +47,4 @@ export declare namespace AISettingsWidget {
|
|
|
46
47
|
trans: TranslationBundle;
|
|
47
48
|
}
|
|
48
49
|
}
|
|
50
|
+
//# sourceMappingURL=ai-settings.d.ts.map
|