@lijuneleven/iris 0.2.8 → 0.2.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lijuneleven/iris",
3
- "version": "0.2.8",
3
+ "version": "0.2.10",
4
4
  "description": "Feishu-first personal AI assistant powered by local Agents.",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -53,6 +53,7 @@ const urls = [
53
53
  ];
54
54
  const vendorDir = path.resolve(__dirname, "..", "vendor");
55
55
  const outPath = path.join(vendorDir, targetPlatform === "windows" ? "iris.exe" : "iris");
56
+ const bundledPath = path.join(vendorDir, assetName);
56
57
 
57
58
  async function download(downloadUrl, redirects = 0) {
58
59
  if (redirects > 5) {
@@ -151,6 +152,21 @@ async function installAgentHooks() {
151
152
  }
152
153
 
153
154
  async function main() {
155
+ if (fs.existsSync(bundledPath)) {
156
+ console.log(`[iris] installing bundled ${assetName}`);
157
+ await fs.promises.copyFile(bundledPath, outPath);
158
+ if (targetPlatform !== "windows") {
159
+ await fs.promises.chmod(outPath, 0o755);
160
+ }
161
+ try {
162
+ await installAgentHooks();
163
+ console.log("[iris] installed Agent hooks and Feishu context skills");
164
+ } catch (hookErr) {
165
+ console.warn(`[iris] Agent integration setup deferred until first launch: ${hookErr.message}`);
166
+ }
167
+ return;
168
+ }
169
+
154
170
  const failures = [];
155
171
 
156
172
  for (const url of urls) {
Binary file
Binary file
Binary file
Binary file
Binary file