hotfix: rename add extension (#2167)
This commit is contained in:
Generated
+5
-5
@@ -2323,7 +2323,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "goose"
|
name = "goose"
|
||||||
version = "1.0.17"
|
version = "1.0.18"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"async-stream",
|
"async-stream",
|
||||||
@@ -2378,7 +2378,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "goose-bench"
|
name = "goose-bench"
|
||||||
version = "1.0.17"
|
version = "1.0.18"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"async-trait",
|
"async-trait",
|
||||||
@@ -2401,7 +2401,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "goose-cli"
|
name = "goose-cli"
|
||||||
version = "1.0.17"
|
version = "1.0.18"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"async-trait",
|
"async-trait",
|
||||||
@@ -2439,7 +2439,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "goose-mcp"
|
name = "goose-mcp"
|
||||||
version = "1.0.17"
|
version = "1.0.18"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"async-trait",
|
"async-trait",
|
||||||
@@ -2485,7 +2485,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "goose-server"
|
name = "goose-server"
|
||||||
version = "1.0.17"
|
version = "1.0.18"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"async-trait",
|
"async-trait",
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "goose-app",
|
"name": "goose-app",
|
||||||
"version": "1.0.17",
|
"version": "1.0.18",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "goose-app",
|
"name": "goose-app",
|
||||||
"version": "1.0.17",
|
"version": "1.0.18",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ai-sdk/openai": "^0.0.72",
|
"@ai-sdk/openai": "^0.0.72",
|
||||||
|
|||||||
+6
-11
@@ -97,12 +97,7 @@ export default function App() {
|
|||||||
const [pendingLink, setPendingLink] = useState<string | null>(null);
|
const [pendingLink, setPendingLink] = useState<string | null>(null);
|
||||||
const [modalMessage, setModalMessage] = useState<string>('');
|
const [modalMessage, setModalMessage] = useState<string>('');
|
||||||
const [{ view, viewOptions }, setInternalView] = useState<ViewConfig>(getInitialView());
|
const [{ view, viewOptions }, setInternalView] = useState<ViewConfig>(getInitialView());
|
||||||
const {
|
const { getExtensions, addExtension, disableAllExtensions, read } = useConfig();
|
||||||
getExtensions,
|
|
||||||
addExtension: addExtensionToConfig,
|
|
||||||
disableAllExtensions,
|
|
||||||
read,
|
|
||||||
} = useConfig();
|
|
||||||
const initAttemptedRef = useRef(false);
|
const initAttemptedRef = useRef(false);
|
||||||
|
|
||||||
// Utility function to extract the command from the link
|
// Utility function to extract the command from the link
|
||||||
@@ -257,7 +252,7 @@ export default function App() {
|
|||||||
for (const extension of extensions) {
|
for (const extension of extensions) {
|
||||||
try {
|
try {
|
||||||
console.log('Enabling extension: ${extension.name}');
|
console.log('Enabling extension: ${extension.name}');
|
||||||
await addExtensionToConfig(extension.name, extension, true);
|
await addExtension(extension.name, extension, true);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`Failed to enable extension ${extension.name}:`, error);
|
console.error(`Failed to enable extension ${extension.name}:`, error);
|
||||||
}
|
}
|
||||||
@@ -267,7 +262,7 @@ export default function App() {
|
|||||||
}
|
}
|
||||||
console.log('Finished enabling bot config extensions');
|
console.log('Finished enabling bot config extensions');
|
||||||
},
|
},
|
||||||
[disableAllExtensions, addExtensionToConfig]
|
[disableAllExtensions, addExtension]
|
||||||
);
|
);
|
||||||
|
|
||||||
// settings v2 initialization
|
// settings v2 initialization
|
||||||
@@ -322,7 +317,7 @@ export default function App() {
|
|||||||
try {
|
try {
|
||||||
await initializeSystem(provider, model, {
|
await initializeSystem(provider, model, {
|
||||||
getExtensions,
|
getExtensions,
|
||||||
addExtensionToConfig,
|
addExtension,
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error in initialization:', error);
|
console.error('Error in initialization:', error);
|
||||||
@@ -354,7 +349,7 @@ export default function App() {
|
|||||||
console.error('Unhandled error in initialization:', error);
|
console.error('Unhandled error in initialization:', error);
|
||||||
setFatalError(`${error instanceof Error ? error.message : 'Unknown error'}`);
|
setFatalError(`${error instanceof Error ? error.message : 'Unknown error'}`);
|
||||||
});
|
});
|
||||||
}, [read, getExtensions, addExtensionToConfig, enableRecipeConfigExtensionsV2]);
|
}, [read, getExtensions, addExtension, enableRecipeConfigExtensionsV2]);
|
||||||
|
|
||||||
const [isGoosehintsModalOpen, setIsGoosehintsModalOpen] = useState(false);
|
const [isGoosehintsModalOpen, setIsGoosehintsModalOpen] = useState(false);
|
||||||
const [isLoadingSession, setIsLoadingSession] = useState(false);
|
const [isLoadingSession, setIsLoadingSession] = useState(false);
|
||||||
@@ -510,7 +505,7 @@ export default function App() {
|
|||||||
setModalVisible(false); // Dismiss modal immediately
|
setModalVisible(false); // Dismiss modal immediately
|
||||||
try {
|
try {
|
||||||
if (settingsV2Enabled) {
|
if (settingsV2Enabled) {
|
||||||
await addExtensionFromDeepLinkV2(pendingLink, addExtensionToConfig, setView);
|
await addExtensionFromDeepLinkV2(pendingLink, addExtension, setView);
|
||||||
} else {
|
} else {
|
||||||
await addExtensionFromDeepLink(pendingLink, setView);
|
await addExtensionFromDeepLink(pendingLink, setView);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user