opencode-office 0.1.10 → 0.1.12
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/assets/manifest.xml +128 -0
- package/dist/index.js +12 -3
- package/package.json +5 -4
- package/dist/index.d.ts +0 -3
- package/dist/scripts/publish.d.ts +0 -1
- package/dist/src/index.d.ts +0 -3
- package/dist/version.d.ts +0 -1
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2
|
+
<OfficeApp
|
|
3
|
+
xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
|
|
4
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
5
|
+
xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
|
|
6
|
+
xmlns:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides"
|
|
7
|
+
xsi:type="TaskPaneApp">
|
|
8
|
+
<Id>dac8f4c2-ab45-4714-9e5b-eddc1457e727</Id>
|
|
9
|
+
<Version>1.0.0.3</Version>
|
|
10
|
+
<ProviderName>Command Space Inc.</ProviderName>
|
|
11
|
+
<DefaultLocale>en-US</DefaultLocale>
|
|
12
|
+
<DisplayName DefaultValue="Fabric"/>
|
|
13
|
+
<Description DefaultValue="The AI agent builder"/>
|
|
14
|
+
<IconUrl DefaultValue="https://taskpane.usefabric.xyz/logo-32.png"/>
|
|
15
|
+
<HighResolutionIconUrl DefaultValue="https://taskpane.usefabric.xyz/logo-64.png"/>
|
|
16
|
+
<SupportUrl DefaultValue="https://docs.usefabric.xyz"/>
|
|
17
|
+
|
|
18
|
+
<!-- Domains that will be allowed when navigating. For example, if you use ShowTaskpane and then have an href link, navigation will only be allowed if the domain is on this list. -->
|
|
19
|
+
<AppDomains>
|
|
20
|
+
<AppDomain>https://taskpane.usefabric.xyz</AppDomain>
|
|
21
|
+
<AppDomain>https://storage.usefabric.xyz</AppDomain>
|
|
22
|
+
<AppDomain>https://auth.usefabric.xyz</AppDomain>
|
|
23
|
+
<AppDomain>https://local.usefabric.xyz</AppDomain>
|
|
24
|
+
<AppDomain>https://plentiful-gust-36.authkit.app</AppDomain>
|
|
25
|
+
<AppDomain>https://api.workos.com</AppDomain>
|
|
26
|
+
<AppDomain>https://accounts.google.com</AppDomain>
|
|
27
|
+
</AppDomains>
|
|
28
|
+
<Hosts>
|
|
29
|
+
<Host Name="Workbook"/>
|
|
30
|
+
</Hosts>
|
|
31
|
+
<Requirements>
|
|
32
|
+
<Sets DefaultMinVersion="1.1">
|
|
33
|
+
<Set Name="ExcelApi" MinVersion="1.5"/>
|
|
34
|
+
<Set Name="CustomFunctionsRuntime" MinVersion="1.1"/>
|
|
35
|
+
<Set Name="SharedRuntime" MinVersion="1.1"/>
|
|
36
|
+
<Set Name="KeyboardShortcuts" MinVersion="1.1"/>
|
|
37
|
+
<Set Name="DialogApi" MinVersion="1.2"/>
|
|
38
|
+
</Sets>
|
|
39
|
+
</Requirements>
|
|
40
|
+
<DefaultSettings>
|
|
41
|
+
<SourceLocation DefaultValue="https://taskpane.usefabric.xyz/taskpane"/>
|
|
42
|
+
</DefaultSettings>
|
|
43
|
+
<Permissions>ReadWriteDocument</Permissions>
|
|
44
|
+
<VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
|
|
45
|
+
<Hosts>
|
|
46
|
+
<Host xsi:type="Workbook">
|
|
47
|
+
<Runtimes>
|
|
48
|
+
<Runtime resid="Taskpane.Url" lifetime="long"/>
|
|
49
|
+
</Runtimes>
|
|
50
|
+
<AllFormFactors>
|
|
51
|
+
<ExtensionPoint xsi:type="CustomFunctions">
|
|
52
|
+
<Script>
|
|
53
|
+
<SourceLocation resid="Taskpane.Url"/>
|
|
54
|
+
</Script>
|
|
55
|
+
<Page>
|
|
56
|
+
<SourceLocation resid="Taskpane.Url"/>
|
|
57
|
+
</Page>
|
|
58
|
+
<Metadata>
|
|
59
|
+
<SourceLocation resid="Functions.Metadata.Url"/>
|
|
60
|
+
</Metadata>
|
|
61
|
+
<Namespace resid="Functions.Namespace"/>
|
|
62
|
+
</ExtensionPoint>
|
|
63
|
+
</AllFormFactors>
|
|
64
|
+
<DesktopFormFactor>
|
|
65
|
+
<GetStarted>
|
|
66
|
+
<Title resid="Label.GetStarted"/>
|
|
67
|
+
<Description resid="Description.GetStarted"/>
|
|
68
|
+
<LearnMoreUrl resid="Taskpane.Documentation.Url"/>
|
|
69
|
+
</GetStarted>
|
|
70
|
+
<FunctionFile resid="Taskpane.Url"/>
|
|
71
|
+
<ExtensionPoint xsi:type="PrimaryCommandSurface">
|
|
72
|
+
<OfficeTab id="TabHome">
|
|
73
|
+
<Group id="Group1">
|
|
74
|
+
<Label resid="Label.Group.Main"/>
|
|
75
|
+
<Icon>
|
|
76
|
+
<bt:Image size="16" resid="Icon.16x16"/>
|
|
77
|
+
<bt:Image size="32" resid="Icon.32x32"/>
|
|
78
|
+
<bt:Image size="80" resid="Icon.80x80"/>
|
|
79
|
+
</Icon>
|
|
80
|
+
<Control xsi:type="Button" id="TaskpaneButton">
|
|
81
|
+
<Label resid="Label.Button.Taskpane"/>
|
|
82
|
+
<Supertip>
|
|
83
|
+
<Title resid="Label.Button.Taskpane"/>
|
|
84
|
+
<Description resid="Description.Click"/>
|
|
85
|
+
</Supertip>
|
|
86
|
+
<Icon>
|
|
87
|
+
<bt:Image size="16" resid="Icon.16x16"/>
|
|
88
|
+
<bt:Image size="32" resid="Icon.32x32"/>
|
|
89
|
+
<bt:Image size="80" resid="Icon.80x80"/>
|
|
90
|
+
</Icon>
|
|
91
|
+
<Action xsi:type="ShowTaskpane">
|
|
92
|
+
<TaskpaneId>taskpane</TaskpaneId>
|
|
93
|
+
<SourceLocation resid="Taskpane.Url"/>
|
|
94
|
+
<Title resid="Label.TaskpaneTitle.Main"/>
|
|
95
|
+
</Action>
|
|
96
|
+
</Control>
|
|
97
|
+
</Group>
|
|
98
|
+
</OfficeTab>
|
|
99
|
+
</ExtensionPoint>
|
|
100
|
+
</DesktopFormFactor>
|
|
101
|
+
</Host>
|
|
102
|
+
</Hosts>
|
|
103
|
+
<Resources>
|
|
104
|
+
<bt:Images>
|
|
105
|
+
<bt:Image id="Icon.16x16" DefaultValue="https://taskpane.usefabric.xyz/logo-16.png"/>
|
|
106
|
+
<bt:Image id="Icon.32x32" DefaultValue="https://taskpane.usefabric.xyz/logo-32.png"/>
|
|
107
|
+
<bt:Image id="Icon.80x80" DefaultValue="https://taskpane.usefabric.xyz/logo-80.png"/>
|
|
108
|
+
</bt:Images>
|
|
109
|
+
<bt:Urls>
|
|
110
|
+
<bt:Url id="Taskpane.Url" DefaultValue="https://taskpane.usefabric.xyz/taskpane"/>
|
|
111
|
+
<bt:Url id="Taskpane.Documentation.Url" DefaultValue="https://docs.usefabric.xyz"/>
|
|
112
|
+
<bt:Url id="Functions.Metadata.Url" DefaultValue="https://taskpane.usefabric.xyz/api/config/functions"/>
|
|
113
|
+
</bt:Urls>
|
|
114
|
+
<bt:ShortStrings>
|
|
115
|
+
<bt:String id="Functions.Namespace" DefaultValue="AI"/>
|
|
116
|
+
<bt:String id="Label.GetStarted" DefaultValue="Welcome to Fabric!"/>
|
|
117
|
+
<bt:String id="Label.TaskpaneTitle.Main" DefaultValue="Fabric"/>
|
|
118
|
+
<bt:String id="Label.Group.Main" DefaultValue="Fabric"/>
|
|
119
|
+
<bt:String id="Label.Button.Taskpane" DefaultValue="Fabric"/>
|
|
120
|
+
</bt:ShortStrings>
|
|
121
|
+
<bt:LongStrings>
|
|
122
|
+
<bt:String id="Description.GetStarted" DefaultValue="Click here to get started"/>
|
|
123
|
+
<bt:String id="Description.Click" DefaultValue="Click here"/>
|
|
124
|
+
</bt:LongStrings>
|
|
125
|
+
</Resources>
|
|
126
|
+
</VersionOverrides>
|
|
127
|
+
<ExtendedOverrides Url="https://taskpane.usefabric.xyz/api/config/shortcuts"></ExtendedOverrides>
|
|
128
|
+
</OfficeApp>
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
// src/utils.ts
|
|
3
|
+
import { homedir } from "os";
|
|
4
|
+
import { join } from "path";
|
|
5
|
+
var copyManifest = async () => {
|
|
6
|
+
const sourcePath = join(process.cwd(), "assets", "manifest.xml");
|
|
7
|
+
const destPath = join(homedir(), "Library/Containers/com.microsoft.Excel/Data/Documents/wef", "manifest.xml");
|
|
8
|
+
await Bun.write(destPath, Bun.file(sourcePath), { createPath: true });
|
|
9
|
+
};
|
|
10
|
+
|
|
2
11
|
// src/index.ts
|
|
3
12
|
var OfficePlugin = async (ctx) => {
|
|
4
13
|
console.log("Microsoft Office Plugin Loaded Successfully!");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
14
|
+
await copyManifest();
|
|
15
|
+
console.log("Manifest copied successfully!");
|
|
16
|
+
return {};
|
|
8
17
|
};
|
|
9
18
|
var src_default = OfficePlugin;
|
|
10
19
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-office",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "Microsoft Office plugin for OpenCode",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "al-scion",
|
|
@@ -15,13 +15,14 @@
|
|
|
15
15
|
],
|
|
16
16
|
"scripts": {
|
|
17
17
|
"checktypes": "tsc --noEmit",
|
|
18
|
-
"build": "bun
|
|
18
|
+
"build": "bun run scripts/build.ts",
|
|
19
19
|
"release": "bun run build && npm publish --no-provenance"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@biomejs/biome": "2.3.11",
|
|
23
23
|
"@opencode-ai/plugin": "^1.1.16",
|
|
24
|
+
"@types/bun": "^1.3.5",
|
|
24
25
|
"@types/node": "^25.0.7",
|
|
25
|
-
"
|
|
26
|
+
"ultracite": "^7.0.11"
|
|
26
27
|
}
|
|
27
|
-
}
|
|
28
|
+
}
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/src/index.d.ts
DELETED
package/dist/version.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0";
|