Skip to content
Merged
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
211 changes: 88 additions & 123 deletions objectiveai-js/dist/index.cjs

Large diffs are not rendered by default.

614 changes: 15 additions & 599 deletions objectiveai-js/dist/index.d.ts

Large diffs are not rendered by default.

211 changes: 88 additions & 123 deletions objectiveai-js/dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion objectiveai-js/dist/wasm/loader.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion objectiveai-js/dist/wasm/loader.js

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions objectiveai-web/app/functions/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export default function FunctionDetailPage({ params }: { params: Promise<{ slug:
const publicClient = createPublicClient();

// Fetch function details directly (works for all functions, regardless of profiles)
const details = await Functions.retrieve(publicClient, "github", owner, repository, null);
const details = await Functions.retrieve(publicClient, owner, repository, null);

const category = details.type === "vector.function" ? "Ranking" : "Scoring";

Expand Down Expand Up @@ -175,7 +175,7 @@ export default function FunctionDetailPage({ params }: { params: Promise<{ slug:
// Fallback: try fetching profile from same repo (CLI puts profile.json in the function repo)
if (functionProfiles.length === 0) {
try {
const profile = await Functions.Profiles.retrieve(publicClient, "github", owner, repository, null);
const profile = await Functions.Profiles.retrieve(publicClient, owner, repository, null);
functionProfiles = [{
owner,
repository,
Expand Down Expand Up @@ -289,7 +289,7 @@ export default function FunctionDetailPage({ params }: { params: Promise<{ slug:
try {
// Fetch the full function definition for WASM compilation
const publicClient = createPublicClient();
const funcDef = await Functions.retrieve(publicClient, "github", owner, repository, commit);
const funcDef = await Functions.retrieve(publicClient, owner, repository, commit);

// Use WASM to compile the input split
const splitResult = await compileFunctionInputSplit(funcDef as unknown as FunctionConfig, inputSnapshot);
Expand Down Expand Up @@ -359,13 +359,11 @@ export default function FunctionDetailPage({ params }: { params: Promise<{ slug:
const stream = await Functions.Executions.create(
client,
{
remote: "github",
owner: functionDetails.owner,
repository: functionDetails.repository,
commit: functionDetails.commit,
},
{
remote: "github",
owner: selectedProfile.owner,
repository: selectedProfile.repository,
commit: selectedProfile.commit,
Expand Down
2 changes: 1 addition & 1 deletion objectiveai-web/app/functions/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default function FunctionsPage() {
try {
const slug = `${fn.owner}/${fn.repository}`;

const details = await Functions.retrieve(client, "github", fn.owner, fn.repository, fn.commit);
const details = await Functions.retrieve(client, fn.owner, fn.repository, fn.commit);

const category = deriveCategory(details);
const name = deriveDisplayName(fn.repository);
Expand Down
2 changes: 1 addition & 1 deletion objectiveai-web/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function Home() {
limitedFunctions.map(async (fn): Promise<FeaturedFunction | null> => {
try {
const slug = `${fn.owner}/${fn.repository}`;
const details = await Functions.retrieve(client, "github", fn.owner, fn.repository, fn.commit);
const details = await Functions.retrieve(client, fn.owner, fn.repository, fn.commit);

const category = deriveCategory(details);
const name = deriveDisplayName(fn.repository);
Expand Down