Scan your whole stack
From OX Research Newsroom
Are you using @phosphorco/effect-ai-cloudflare?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v4.1.0-phosphorco.1795619929.g006ed383c5a5
@phosphorco/effect-ai-cloudflare was last scanned on 25 Nov 2026 at version 4.1.0-phosphorco.1795619929.g006ed383c5a5. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 4.1.0-phosphorco.1795619929.g006ed383c5a5 LATEST | 25 Nov 2026 | No rules fired |
| 4.1.0-phosphorco.1795610351.gf5b1a1039c56 | 25 Nov 2026 | No rules fired |
| 4.1.0-phosphorco.1795601783.g9b6454cb50de | 25 Nov 2026 | No rules fired |
| 4.1.0-phosphorco.1795573697.ga2ae92e2b54d | 25 Nov 2026 | Not shown |
| 4.1.0-phosphorco.1795563548.g45249230676d | 25 Nov 2026 | Not shown |
Findings for v4.1.0-phosphorco.1795619929.g006ed383c5a5. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 4.1.0-phosphorco.1795619929.g006ed383c5a5; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Cloudflare Workers AI provider for Effect's DecisionModel. Supports text and JSON classification, ordered ratings, and probabilities with Clef and Clef-flash over REST.
npm install effect @effect/ai-cloudflare
Set CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN, then provide a Cloudflare decision model:
import * as CloudflareClient from "@phosphorco/effect-ai-cloudflare/CloudflareClient"
import * as CloudflareDecisionModel from "@phosphorco/effect-ai-cloudflare/CloudflareDecisionModel"
import * as Decision from "@phosphorco/effect/ai/Decision"
import * as DecisionModel from "@phosphorco/effect/ai/DecisionModel"
import * as Effect from "@phosphorco/effect/Effect"
import * as FetchHttpClient from "@phosphorco/effect/http/FetchHttpClient"
import * as Layer from "@phosphorco/effect/Layer"
import * as Schema from "@phosphorco/effect/Schema"
const Triage = Decision.make({
input: Schema.String,
decisions: {
urgent: Decision.probability({
instructions: "Does this request need immediate attention?"
})
}
})
const Clef = CloudflareDecisionModel.layer({ model: "clef-flash" }).pipe(
Layer.provide(CloudflareClient.layerConfig()),
Layer.provide(FetchHttpClient.layer)
)
const program = DecisionModel.decide(Triage, {
input: "Checkout has been failing for every customer for an hour."
}).pipe(Effect.provide(Clef))
Use "clef" for the larger model. CloudflareDecisionModel.model provides a model descriptor with Cloudflare provider metadata. CloudflareClient.layer accepts an explicit account ID and redacted API token; apiUrl and transformClient customize HTTP access.
The client unwraps Cloudflare's REST envelope and maps failures to AiError. It does not retry automatically. Rate-limit errors include Retry-After when provided. The decision model validates answers and rescales small probability drift from four-decimal rounding.
Cloudflare limits each request to 64 questions, classification to 2–255 choices, and ratings to 2–10 levels. See the Clef API documentation for request limits.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.