Skip to content

Commit

Permalink
Project update. [p][robotic]
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswrks committed Mar 3, 2024
1 parent e3c638a commit 639a9ff
Show file tree
Hide file tree
Showing 14 changed files with 55 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .browserslistrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Mar 3, 2024 3:00 PM UTC.
# Last generated Mar 3, 2024 4:05 PM UTC.

[production]
node >= 20.9.0
Expand Down
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Mar 3, 2024 3:00 PM UTC.
# Last generated Mar 3, 2024 4:05 PM UTC.

# Locals

Expand Down
8 changes: 4 additions & 4 deletions .env.vault
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ DOTENV_VAULT_MAIN="3rfi+ClkONvfHPiU9FTBcC1+Um/L8QeM9dRw1jFzEqzZXw=="
DOTENV_VAULT_MAIN_VERSION=1

# dev
DOTENV_VAULT_DEV="ak0HXUsJFV/+9Jpph0u0I/VhPLJWOUl2OSLHJIOcB0F50tbcJwei8EpwfehFk9jNqTGbVhfXUuJGwHLP6oW9o2eFYPuqUHjMtD7tpUITrw08+skjSQCIrjlSPY3SRqF+Xa8+Z5H4dShlycSrDaPS0SVu8M1J+7hTxWFNg3B+h7MNE4TypjpYQMvnuMufyddR40FE1RLzk8CFV5OnftBwuQee0/xcKUzVfbS20sBrJS/eHxQKKeLh5lEv+bKbdHkzvy/hzLfEZQY7DcR5KaYwF8C++PwsD+4L02stJRpZMMJuQ8DSiW65Lf08urTrs32myYha227T32Z7BtsT8E5bguZxVS6Fat5FAK4ADi8v1hfSxIcXrRPfGomzBsyqPdsrj5DmluULA9gAjSlprIZh83eAY9YDVV6hIHz8XB702UCckLlNxab4480sx4YbLcF54TFDeQ3GfZGaXDwZIiZY088rjTGa3ZBs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OTENV_VAULT_STAGE="bfqZYD8oVLWMZ0JR5LICV+sB/btaXavszxZLxTfwSH8U5fg="
Expand Down
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Mar 3, 2024 3:00 PM UTC.
# Last generated Mar 3, 2024 4:05 PM UTC.

# Default

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Mar 3, 2024 3:00 PM UTC.
# Last generated Mar 3, 2024 4:05 PM UTC.

# Locals

Expand Down
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# Generated data.
# <generated:start>

# Last generated Mar 3, 2024 3:00 PM UTC.
# Last generated Mar 3, 2024 4:05 PM UTC.

# Locals

Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Mar 3, 2024 3:00 PM UTC.
# Last generated Mar 3, 2024 4:05 PM UTC.

# Packages

Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @note This entire file will be updated automatically.
* @note Instead of editing here, please review `./settings.mjs`.
*
* Last generated using `./settings.mjs` Mar 3, 2024 3:00 PM UTC.
* Last generated using `./settings.mjs` Mar 3, 2024 4:05 PM UTC.
*/
{
"editor.formatOnType": false,
Expand Down
2 changes: 1 addition & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Mar 3, 2024 3:00 PM UTC.
# Last generated Mar 3, 2024 4:05 PM UTC.

# Locals

Expand Down
57 changes: 32 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"publishConfig": {
"access": "public"
},
"version": "1.0.268",
"version": "1.0.269",
"license": "GPL-3.0-or-later",
"name": "@clevercanyon/utilities.cfw",
"description": "Utilities for JavaScript apps running in a Cloudflare Worker environment.",
Expand Down Expand Up @@ -60,6 +60,7 @@
"dependencies": {},
"peerDependencies": {
"@clevercanyon/utilities": "^1.0.880",
"@cloudflare/ai": "1.0.53",
"@upstash/ratelimit": "1.0.0",
"@upstash/redis": "1.28.0"
},
Expand Down
8 changes: 7 additions & 1 deletion src/cfw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ import '#@initialize.ts';

import { $app, $bytes, $class, $crypto, $env, $error, $http, $is, $mm, $obj, $url, $user, type $type } from '@clevercanyon/utilities';

// @ts-ignore -- Broken types.
import { Ai as AiWithBrokenTypes } from '@cloudflare/ai';
import type { Ai as AiClass } from '@cloudflare/ai/dist/ai.d.ts';

/**
* Defines types.
*/
Expand Down Expand Up @@ -47,7 +51,7 @@ export type StdExecutionContext = Readonly<
export type StdEnvironment = Readonly<{
RT: $type.cfw.Fetcher;
RT_KV: $type.cfw.KVNamespace;
AI: unknown; // Not yet available.
AI: $type.cfw.Fetcher;
D1: $type.cfw.D1Database;
R2: $type.cfw.R2Bucket;
KV: $type.cfw.KVNamespace;
Expand Down Expand Up @@ -179,6 +183,8 @@ export const handleFetchEvent = async (ircData: InitialRequestContextData): Prom
// ---
// Misc exports.

export const Ai = AiWithBrokenTypes as new (AI: $type.cfw.Fetcher) => AiClass;

/**
* Creates a scheduled event request.
*
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @note This entire file will be updated automatically.
* @note Instead of editing here, please review `./tsconfig.mjs`.
*
* Last generated using `./tsconfig.mjs` Mar 3, 2024 3:00 PM UTC.
* Last generated using `./tsconfig.mjs` Mar 3, 2024 4:05 PM UTC.
*/
{
"include": ["./src/**/*", "./dev-types.d.ts"],
Expand Down
2 changes: 1 addition & 1 deletion wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# @note This entire file will be updated automatically.
# @note Instead of editing here, please review `./wrangler.mjs`.
#
# Last generated using `./wrangler.mjs` Mar 3, 2024 3:00 PM UTC.
# Last generated using `./wrangler.mjs` Mar 3, 2024 4:05 PM UTC.
##

send_metrics = false
Expand Down

0 comments on commit 639a9ff

Please sign in to comment.