Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
changeset:
name: change intent
if: github.event_name == 'pull_request' && github.head_ref != 'changeset-release/main'
uses: systemfsoftware/pnpm-release-management/.github/workflows/changeset-check.yml@a7c8ca88d2ace4fb62bfeff20f594d11cffe3780
uses: systemfsoftware/pnpm-release-management/.github/workflows/changeset-check.yml@abe10f41717a22515791721d85c7a88015ab9761
permissions:
contents: read
pull-requests: read
Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: cachix/install-nix-action@bb0495a1086c46893eee56f32fd192dfe4a15bb9 # v32.0.0
- uses: cachix/install-nix-action@382a9ed9481c7c1f94f68b72ef105b3417c73877 # v32.1.0
with:
extra_nix_config: |
extra-substituters = https://nix.systemfsoftware.com
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nix-cache-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
fi
done
exit "$missing"
- uses: cachix/install-nix-action@bb0495a1086c46893eee56f32fd192dfe4a15bb9 # v32.0.0
- uses: cachix/install-nix-action@382a9ed9481c7c1f94f68b72ef105b3417c73877 # v32.1.0
with:
extra_nix_config: |
access-tokens = github.com=${{ github.token }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ concurrency:
jobs:
nix:
name: nix
uses: systemfsoftware/systemfsoftware/.github/workflows/reusable-nix.yml@15b4d2ab1e2af0a154fad2b9af7bd1f6449b3606
uses: systemfsoftware/systemfsoftware/.github/workflows/reusable-nix.yml@0ab2e4d450b922dfa9ed132c83870383ca33efa5
with:
systems: '[{"system": "x86_64-linux", "runner": "ubuntu-latest"}]'
2 changes: 1 addition & 1 deletion .github/workflows/publish-missing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
persist-credentials: false

- uses: cachix/install-nix-action@bb0495a1086c46893eee56f32fd192dfe4a15bb9 # v32.0.0
- uses: cachix/install-nix-action@382a9ed9481c7c1f94f68b72ef105b3417c73877 # v32.1.0
with:
extra_nix_config: |
extra-substituters = https://nix.systemfsoftware.com
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ permissions:
jobs:
release:
if: github.ref == 'refs/heads/main'
uses: systemfsoftware/pnpm-release-management/.github/workflows/release.yml@a7c8ca88d2ace4fb62bfeff20f594d11cffe3780
uses: systemfsoftware/pnpm-release-management/.github/workflows/release.yml@abe10f41717a22515791721d85c7a88015ab9761
with:
# The release PR changes only version surfaces, so its own tree is proved by the merge-queue draft's full CI.
# `release-checks.yml` reuses main's verdict for the base commit and lints the squash message instead of
Expand Down
6 changes: 4 additions & 2 deletions docs/src/content.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { docsLoader } from '@astrojs/starlight/loaders'
import { docsSchema } from '@astrojs/starlight/schema'
import { defineCollection } from 'astro/content/config'
import { type CollectionConfig, defineCollection } from 'astro/content/config'

export const collections = {
export const collections: {
docs: CollectionConfig<ReturnType<ReturnType<typeof docsSchema<never>>>>
} = {
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
}
2 changes: 1 addition & 1 deletion examples/browser-speed/src/wikipedia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export const prepareWikipedia = Effect.fnUntraced(function*(challenge: Wikipedia
url: page.url(),
canonical: await page.$eval(
'link[rel="canonical"]',
(element) => element.getAttribute('href') ?? '',
(element: { getAttribute(name: string): string | null }) => element.getAttribute('href') ?? '',
),
}))

Expand Down
14 changes: 14 additions & 0 deletions examples/browser-speed/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"files": [],
"references": [
{
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.node.json"
},
{
"path": "./tsconfig.test.json"
}
]
}
8 changes: 8 additions & 0 deletions examples/durable-bench/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"files": [],
"references": [
{
"path": "./tsconfig.app.json"
}
]
}
2 changes: 1 addition & 1 deletion examples/sandbox/package.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"name": "@systemfsoftware/agent-example-sandbox",
"version": "0.0.0",
Expand Down Expand Up @@ -37,6 +37,6 @@
"tailwindcss": "catalog:",
"typescript": "catalog:",
"vite": "catalog:",
"wrangler": "4.151.0"
"wrangler": "4.169.0"
}
}
11 changes: 11 additions & 0 deletions examples/sandbox/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"files": [],
"references": [
{
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.node.json"
}
]
}
1 change: 0 additions & 1 deletion examples/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
},
"dependencies": {
"@yielded/auth": "catalog:",
"@yielded/jose": "catalog:",
"effect": "catalog:",
"@systemfsoftware/effect-cf": "catalog:"
},
Expand Down
6 changes: 3 additions & 3 deletions examples/shared/src/server.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { OAuthScope, OAuthServer } from '@yielded/auth'
import { Jwks } from '@yielded/jose'
import { Cause, Context, Effect, Layer, Redacted, Schema } from 'effect'
import { Cause, Context, Duration, Effect, Layer, Redacted, Schema } from 'effect'
import * as SecureRandom from 'effect/crypto/SecureRandom'
import * as Signature from 'effect/crypto/Signature'
import { FetchHttpClient, HttpClient, HttpClientRequest } from 'effect/http'
import * as Jwks from 'effect/jose/Jwks'

import { AccountClaims, AccountError } from './contract'

Expand Down Expand Up @@ -110,7 +110,7 @@ export class Authentication extends Context.Service<
Jwks.layerRemote({
url: env.AUTH_JWKS_URL ?? '',
maxKeys: 16,
cacheTimeMs: 300_000,
timeToLive: Duration.millis(300_000),
}),
),
Layer.provide([
Expand Down
7 changes: 5 additions & 2 deletions examples/travel-planner/src/voice/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,15 @@ export const connectBrowserVoice = Effect.fn('connectBrowserVoice')(function*(

if (!response.ok) return yield* failed()

return yield* Effect.tryPromise({ try: () => response.json(), catch: failed })
return yield* Effect.tryPromise({
try: () => response.text(),
catch: failed,
})
}),
// Keep cancellation attached until the answer body has also been read.
(controller) => Effect.sync(() => controller.abort()),
).pipe(
Effect.flatMap(Schema.decodeUnknownEffect(VoiceAnswer)),
Effect.flatMap(Schema.decodeUnknownEffect(Schema.fromJsonString(VoiceAnswer))),
Effect.timeout('30 seconds'),
Effect.mapError(failed),
)
Expand Down
14 changes: 14 additions & 0 deletions examples/travel-planner/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"files": [],
"references": [
{
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.node.json"
},
{
"path": "./tsconfig.test.json"
}
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"dprint": "catalog:",
"effect": "catalog:",
"esbuild": "catalog:",
"oxlint": "~1.94.0",
"oxlint": "~1.95.0",
"oxlint-tsgolint": "7.0.2008",
"tsrs": "catalog:",
"typescript": "catalog:",
Expand Down
Loading
Loading