anymous 1.2.6 → 1.2.7

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/bin/anymous.cjs CHANGED
@@ -30,7 +30,7 @@ if (!bun) {
30
30
  process.exit(1)
31
31
  }
32
32
 
33
- const child = spawn(bun, ["run", "--conditions=browser", src, ...process.argv.slice(2)], {
33
+ const child = spawn(bun, ["run", "--conditions=browser", "--define", "ANYMOUS_VERSION='1.2.7'", src, ...process.argv.slice(2)], {
34
34
  stdio: "inherit",
35
35
  cwd: pkgDir,
36
36
  env: { ...process.env, ANYMOUS: "1" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anymous",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "AI-powered reverse engineering platform",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  import { Global } from "@anymous-ai/core/global"
2
- import { InstallationVersion } from "@anymous-ai/core/installation/version"
2
+ import { version } from "@/cli/version"
3
3
  import { Flag } from "@anymous-ai/core/flag/flag"
4
4
  import os from "os"
5
5
  import { Duration, Effect } from "effect"
@@ -58,7 +58,7 @@ const InfoCommand = effectCmd({
58
58
  : undefined
59
59
  const terminal = [termProgram, process.env.TERM].filter((item): item is string => Boolean(item)).join(" / ")
60
60
 
61
- console.log(`anymous version: ${InstallationVersion}`)
61
+ console.log(`anymous version: ${version}`)
62
62
  console.log(`os: ${os.type()} ${os.release()} ${os.arch()}`)
63
63
  console.log(`terminal: ${terminal || "unknown"}`)
64
64
  console.log("plugins:")
@@ -18,6 +18,7 @@ import {
18
18
  type ScrollbackWriter,
19
19
  } from "@opentui/core"
20
20
  import * as Locale from "@/util/locale"
21
+ import { version } from "@/cli/version"
21
22
  import { go } from "@/cli/logo"
22
23
  import type { RunSplashTheme } from "./theme"
23
24
 
@@ -171,7 +172,7 @@ function draw(
171
172
  }
172
173
  }
173
174
 
174
- const VERSION = "1.2.3"
175
+ const VERSION = version
175
176
 
176
177
  function build(input: SplashWriterInput, kind: "entry" | "exit", ctx: ScrollbackRenderContext): ScrollbackSnapshot {
177
178
  const width = Math.max(1, ctx.width)
package/src/cli/ui.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { EOL } from "os"
2
2
  import { Schema } from "effect"
3
+ import { versionBanner, fullBanner } from "./version"
3
4
  import { logo as glyphs } from "./logo"
4
5
 
5
6
  const wordmark = [
@@ -54,7 +55,7 @@ export function logo(pad?: string) {
54
55
  result.push(row)
55
56
  result.push(EOL)
56
57
  }
57
- result.push("AI-Powered Reverse Engineering & Pentest Platform v1.2.3")
58
+ result.push(fullBanner())
58
59
  return result.join("")
59
60
  }
60
61
 
@@ -103,7 +104,15 @@ export function logo(pad?: string) {
103
104
  result.push(EOL)
104
105
  })
105
106
  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.2.1", EOL)
107
+ result.push(
108
+ Style.TEXT_INFO,
109
+ "▸",
110
+ Style.TEXT_NORMAL,
111
+ " AI-Powered Reverse Engineering & Pentest Platform ",
112
+ Style.TEXT_DIM,
113
+ versionBanner(),
114
+ EOL,
115
+ )
107
116
  result.push(Style.TEXT_NORMAL, "─".repeat(45))
108
117
  return result.join("").trimEnd()
109
118
  }
@@ -0,0 +1,14 @@
1
+ import { InstallationChannel, InstallationLocal, InstallationVersion } from "@anymous-ai/core/installation/version"
2
+
3
+ export const version = InstallationVersion
4
+ export const channel = InstallationChannel
5
+ export const isLocal = InstallationLocal
6
+
7
+ export function versionBanner(label?: string): string {
8
+ const prefix = label ? `${label} ` : ""
9
+ return `${prefix}v${InstallationVersion}`
10
+ }
11
+
12
+ export function fullBanner(): string {
13
+ return `AI-Powered Reverse Engineering & Pentest Platform v${InstallationVersion}`
14
+ }
@@ -95,7 +95,7 @@ function sdkKey(npm: string): string | undefined {
95
95
  return undefined
96
96
  }
97
97
 
98
- // TODO: fix this stupid inefficient dogshit function
98
+ // TODO: optimize this function - currently iterates multiple times over messages
99
99
  function normalizeMessages(
100
100
  msgs: ModelMessage[],
101
101
  model: Provider.Model,