anymous 1.1.3 → 1.1.4
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 +1 -1
- package/src/cli/cmd/run/splash.ts +1 -1
- package/src/cli/ui.ts +2 -2
- package/src/config/config.ts +11 -3
- package/src/plugin/index.ts +13 -8
package/package.json
CHANGED
|
@@ -171,7 +171,7 @@ function draw(
|
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
const VERSION = "1.1.
|
|
174
|
+
const VERSION = "1.1.4"
|
|
175
175
|
|
|
176
176
|
function build(input: SplashWriterInput, kind: "entry" | "exit", ctx: ScrollbackRenderContext): ScrollbackSnapshot {
|
|
177
177
|
const width = Math.max(1, ctx.width)
|
package/src/cli/ui.ts
CHANGED
|
@@ -54,7 +54,7 @@ export function logo(pad?: string) {
|
|
|
54
54
|
result.push(row)
|
|
55
55
|
result.push(EOL)
|
|
56
56
|
}
|
|
57
|
-
result.push("AI-Powered Reverse Engineering & Pentest Platform v1.1.
|
|
57
|
+
result.push("AI-Powered Reverse Engineering & Pentest Platform v1.1.4")
|
|
58
58
|
return result.join("")
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -103,7 +103,7 @@ export function logo(pad?: string) {
|
|
|
103
103
|
result.push(EOL)
|
|
104
104
|
})
|
|
105
105
|
result.push(Style.TEXT_NORMAL, "─".repeat(45), EOL)
|
|
106
|
-
result.push(Style.TEXT_INFO, "▸", Style.TEXT_NORMAL, " AI-Powered Reverse Engineering & Pentest Platform ", Style.TEXT_DIM, "v1.1.
|
|
106
|
+
result.push(Style.TEXT_INFO, "▸", Style.TEXT_NORMAL, " AI-Powered Reverse Engineering & Pentest Platform ", Style.TEXT_DIM, "v1.1.4", EOL)
|
|
107
107
|
result.push(Style.TEXT_NORMAL, "─".repeat(45))
|
|
108
108
|
return result.join("").trimEnd()
|
|
109
109
|
}
|
package/src/config/config.ts
CHANGED
|
@@ -255,9 +255,17 @@ const layer = Layer.effect(
|
|
|
255
255
|
.pipe(Effect.catch(() => Effect.void))
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
258
|
+
const [configJson, anymousJson, anymousJsonc] = yield* Effect.all(
|
|
259
|
+
[
|
|
260
|
+
loadFile(path.join(Global.Path.config, "config.json"), env),
|
|
261
|
+
loadFile(path.join(Global.Path.config, "anymous.json"), env),
|
|
262
|
+
loadFile(path.join(Global.Path.config, "anymous.jsonc"), env),
|
|
263
|
+
],
|
|
264
|
+
{ concurrency: 3 },
|
|
265
|
+
)
|
|
266
|
+
result = mergeConfig(result, configJson)
|
|
267
|
+
result = mergeConfig(result, anymousJson)
|
|
268
|
+
result = mergeConfig(result, anymousJsonc)
|
|
261
269
|
|
|
262
270
|
const legacy = path.join(Global.Path.config, "config")
|
|
263
271
|
if (existsSync(legacy)) {
|
package/src/plugin/index.ts
CHANGED
|
@@ -163,14 +163,19 @@ const layer = Layer.effect(
|
|
|
163
163
|
$: typeof Bun === "undefined" ? undefined : Bun.$,
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
166
|
+
const internalInits = yield* Effect.all(
|
|
167
|
+
(flags.disableDefaultPlugins ? [] : internalPlugins(flags)).map((plugin) =>
|
|
168
|
+
Effect.tryPromise({
|
|
169
|
+
try: () => plugin(input),
|
|
170
|
+
catch: errorMessage,
|
|
171
|
+
}).pipe(
|
|
172
|
+
Effect.tapError((error) => Effect.logError("failed to load internal plugin", { name: plugin.name, error })),
|
|
173
|
+
Effect.option,
|
|
174
|
+
),
|
|
175
|
+
),
|
|
176
|
+
{ concurrency: 10 },
|
|
177
|
+
)
|
|
178
|
+
for (const init of internalInits) {
|
|
174
179
|
if (init._tag === "Some") hooks.push(init.value)
|
|
175
180
|
}
|
|
176
181
|
|