rivet-design 0.22.0 → 0.23.0
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/rivet.js +6 -0
- package/dist/agent-variants/SessionStore.d.ts +2 -21
- package/dist/agent-variants/SessionStore.d.ts.map +1 -1
- package/dist/agent-variants/SessionStore.js +15 -279
- package/dist/agent-variants/SessionStore.js.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.d.ts +0 -3
- package/dist/agent-variants/WorktreeOrchestrator.d.ts.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.js +1 -62
- package/dist/agent-variants/WorktreeOrchestrator.js.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.d.ts.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.js +0 -12
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.js.map +1 -1
- package/dist/agent-variants/contracts.d.ts +896 -2423
- package/dist/agent-variants/contracts.d.ts.map +1 -1
- package/dist/agent-variants/contracts.js +2 -84
- package/dist/agent-variants/contracts.js.map +1 -1
- package/dist/agent-variants/directionBriefs.d.ts +7 -0
- package/dist/agent-variants/directionBriefs.d.ts.map +1 -0
- package/dist/agent-variants/directionBriefs.js +51 -0
- package/dist/agent-variants/directionBriefs.js.map +1 -0
- package/dist/agent-variants/index.d.ts +1 -1
- package/dist/agent-variants/index.d.ts.map +1 -1
- package/dist/agent-variants/runPlan.d.ts +0 -1
- package/dist/agent-variants/runPlan.d.ts.map +1 -1
- package/dist/agent-variants/runPlan.js +0 -4
- package/dist/agent-variants/runPlan.js.map +1 -1
- package/dist/agent-variants/sourceContext.d.ts +0 -2
- package/dist/agent-variants/sourceContext.d.ts.map +1 -1
- package/dist/agent-variants/sourceContext.js +1 -35
- package/dist/agent-variants/sourceContext.js.map +1 -1
- package/dist/agent-variants/variantsTelemetry.d.ts +0 -3
- package/dist/agent-variants/variantsTelemetry.d.ts.map +1 -1
- package/dist/agent-variants/variantsTelemetry.js.map +1 -1
- package/dist/agent-variants/workItemInput.d.ts +470 -470
- package/dist/cli/commands/context.d.ts +3 -1
- package/dist/cli/commands/context.d.ts.map +1 -1
- package/dist/cli/commands/context.js +38 -1
- package/dist/cli/commands/context.js.map +1 -1
- package/dist/cli/commands/contextRequest.d.ts +1 -0
- package/dist/cli/commands/contextRequest.d.ts.map +1 -1
- package/dist/cli/commands/contextRequest.js +65 -5
- package/dist/cli/commands/contextRequest.js.map +1 -1
- package/dist/cli/commands/guidanceReferences.d.ts +1 -0
- package/dist/cli/commands/guidanceReferences.d.ts.map +1 -1
- package/dist/cli/commands/guidanceReferences.js +5 -4
- package/dist/cli/commands/guidanceReferences.js.map +1 -1
- package/dist/cli/commands/guidanceVerifierPackage.d.ts +9 -0
- package/dist/cli/commands/guidanceVerifierPackage.d.ts.map +1 -0
- package/dist/cli/commands/guidanceVerifierPackage.js +41 -0
- package/dist/cli/commands/guidanceVerifierPackage.js.map +1 -0
- package/dist/cli/commands/mcpServe.d.ts +1 -0
- package/dist/cli/commands/mcpServe.d.ts.map +1 -1
- package/dist/cli/commands/mcpServe.js +457 -326
- package/dist/cli/commands/mcpServe.js.map +1 -1
- package/dist/cli/commands/variants.js +2 -2
- package/dist/cli/commands/variants.js.map +1 -1
- package/dist/cli/handoffStore.d.ts +0 -1
- package/dist/cli/handoffStore.d.ts.map +1 -1
- package/dist/cli/handoffStore.js +1 -11
- package/dist/cli/handoffStore.js.map +1 -1
- package/dist/cli/router.d.ts +3 -1
- package/dist/cli/router.d.ts.map +1 -1
- package/dist/cli/router.js +4 -3
- package/dist/cli/router.js.map +1 -1
- package/dist/config/flags.d.ts +0 -3
- package/dist/config/flags.d.ts.map +1 -1
- package/dist/config/flags.js +0 -1
- package/dist/config/flags.js.map +1 -1
- package/dist/hosts/workerDefaults.d.ts +0 -1
- package/dist/hosts/workerDefaults.d.ts.map +1 -1
- package/dist/hosts/workerDefaults.js +1 -2
- package/dist/hosts/workerDefaults.js.map +1 -1
- package/dist/index-core.d.ts +1 -2
- package/dist/index-core.d.ts.map +1 -1
- package/dist/index-core.js +1 -3
- package/dist/index-core.js.map +1 -1
- package/dist/mcp/changeBatchClassification.d.ts +1 -11
- package/dist/mcp/changeBatchClassification.d.ts.map +1 -1
- package/dist/mcp/changeBatchClassification.js +0 -38
- package/dist/mcp/changeBatchClassification.js.map +1 -1
- package/dist/routes/library/guidance.d.ts.map +1 -1
- package/dist/routes/library/guidance.js +7 -0
- package/dist/routes/library/guidance.js.map +1 -1
- package/dist/server.d.ts +0 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +1 -3
- package/dist/server.js.map +1 -1
- package/dist/services/AuthService.d.ts +4 -10
- package/dist/services/AuthService.d.ts.map +1 -1
- package/dist/services/AuthService.js +1 -116
- package/dist/services/AuthService.js.map +1 -1
- package/dist/services/GuidanceVerifierRunner.d.ts +15 -0
- package/dist/services/GuidanceVerifierRunner.d.ts.map +1 -0
- package/dist/services/GuidanceVerifierRunner.js +373 -0
- package/dist/services/GuidanceVerifierRunner.js.map +1 -0
- package/dist/services/HubDiscovery.d.ts +2 -2
- package/dist/services/IntegrationsClient.d.ts +3 -3
- package/dist/services/MCPOnboardingTelemetry.d.ts +0 -2
- package/dist/services/MCPOnboardingTelemetry.d.ts.map +1 -1
- package/dist/services/MCPOnboardingTelemetry.js +1 -78
- package/dist/services/MCPOnboardingTelemetry.js.map +1 -1
- package/dist/services/OperatingSystemServices.d.ts.map +1 -1
- package/dist/services/OperatingSystemServices.js +12 -5
- package/dist/services/OperatingSystemServices.js.map +1 -1
- package/dist/services/ProjectRegistry.d.ts +2 -2
- package/dist/services/TelemetryService.d.ts +1 -9
- package/dist/services/TelemetryService.d.ts.map +1 -1
- package/dist/services/TelemetryService.js +0 -28
- package/dist/services/TelemetryService.js.map +1 -1
- package/dist/services/VariantGenerationService.d.ts +1 -9
- package/dist/services/VariantGenerationService.d.ts.map +1 -1
- package/dist/services/VariantGenerationService.js +16 -140
- package/dist/services/VariantGenerationService.js.map +1 -1
- package/dist/services/VariantRunService.d.ts +0 -6
- package/dist/services/VariantRunService.d.ts.map +1 -1
- package/dist/services/VariantRunService.js +1 -28
- package/dist/services/VariantRunService.js.map +1 -1
- package/dist/services/VariantsRuntime.d.ts.map +1 -1
- package/dist/services/VariantsRuntime.js +0 -1
- package/dist/services/VariantsRuntime.js.map +1 -1
- package/dist/services/accessTokenRefresh.d.ts +0 -3
- package/dist/services/accessTokenRefresh.d.ts.map +1 -1
- package/dist/services/accessTokenRefresh.js +1 -33
- package/dist/services/accessTokenRefresh.js.map +1 -1
- package/dist/services/guidanceDelivery.d.ts +0 -5
- package/dist/services/guidanceDelivery.d.ts.map +1 -1
- package/dist/services/guidanceDelivery.js +1 -20
- package/dist/services/guidanceDelivery.js.map +1 -1
- package/dist/services/guidanceReferences.d.ts.map +1 -1
- package/dist/services/guidanceReferences.js +2 -76
- package/dist/services/guidanceReferences.js.map +1 -1
- package/dist/services/profiles/DesignProfiles.d.ts +31 -16
- package/dist/services/profiles/DesignProfiles.d.ts.map +1 -1
- package/dist/services/profiles/DesignProfiles.js +71 -17
- package/dist/services/profiles/DesignProfiles.js.map +1 -1
- package/dist/services/profiles/ProfilePlanning.d.ts +5 -5
- package/dist/services/profiles/ReferenceReader.d.ts +2 -2
- package/dist/services/profiles/profileContext.d.ts +1 -1
- package/dist/services/retainedTextFiles.d.ts +8 -0
- package/dist/services/retainedTextFiles.d.ts.map +1 -0
- package/dist/services/retainedTextFiles.js +95 -0
- package/dist/services/retainedTextFiles.js.map +1 -0
- package/dist/services/staticProjectTarget.d.ts +0 -1
- package/dist/services/staticProjectTarget.d.ts.map +1 -1
- package/dist/services/staticProjectTarget.js +1 -5
- package/dist/services/staticProjectTarget.js.map +1 -1
- package/dist/services/templates/designCatalog.d.ts +0 -4
- package/dist/services/templates/designCatalog.d.ts.map +1 -1
- package/dist/services/templates/designCatalog.js +1 -27
- package/dist/services/templates/designCatalog.js.map +1 -1
- package/dist/storage/profiles/ProfilePlans.d.ts +18 -18
- package/dist/storage/profiles/ProfileRecords.d.ts +52 -3
- package/dist/storage/profiles/ProfileRecords.d.ts.map +1 -1
- package/dist/storage/profiles/ProfileRecords.js +74 -17
- package/dist/storage/profiles/ProfileRecords.js.map +1 -1
- package/dist/storage/profiles/guidanceVerifier.d.ts +3 -0
- package/dist/storage/profiles/guidanceVerifier.d.ts.map +1 -0
- package/dist/storage/profiles/guidanceVerifier.js +30 -0
- package/dist/storage/profiles/guidanceVerifier.js.map +1 -0
- package/dist/storage/profiles/migrations.d.ts +2 -2
- package/dist/storage/profiles/migrations.d.ts.map +1 -1
- package/dist/storage/profiles/migrations.js +3 -0
- package/dist/storage/profiles/migrations.js.map +1 -1
- package/dist/storage/profiles/planSchema.d.ts +5 -5
- package/dist/storage/profiles/schema.d.ts +28 -1
- package/dist/storage/profiles/schema.d.ts.map +1 -1
- package/dist/storage/profiles/schema.js +1 -0
- package/dist/storage/profiles/schema.js.map +1 -1
- package/dist/types/change-types.d.ts +0 -25
- package/dist/types/change-types.d.ts.map +1 -1
- package/dist/types/cosmos-profile.d.ts +12 -12
- package/dist/types/cosmos.d.ts +20 -20
- package/dist/types/design-profile.d.ts +16 -16
- package/dist/types/guidance-references.d.ts +16 -0
- package/dist/types/guidance-references.d.ts.map +1 -1
- package/dist/types/guidance-references.js +44 -30
- package/dist/types/guidance-references.js.map +1 -1
- package/dist/types/guidance-verifier.d.ts +265 -0
- package/dist/types/guidance-verifier.d.ts.map +1 -0
- package/dist/types/guidance-verifier.js +71 -0
- package/dist/types/guidance-verifier.js.map +1 -0
- package/dist/types/guidance.d.ts +436 -21
- package/dist/types/guidance.d.ts.map +1 -1
- package/dist/types/guidance.js +13 -2
- package/dist/types/guidance.js.map +1 -1
- package/dist/types/reference-connectors.d.ts +20 -20
- package/dist/types/reference-onboarding.d.ts +48 -48
- package/dist/types/variant-reference.d.ts +4 -4
- package/dist/types/x-bookmarks.d.ts +10 -10
- package/dist/utils/skills/cli-guidance.d.ts +1 -1
- package/dist/utils/skills/cli-guidance.d.ts.map +1 -1
- package/dist/utils/skills/cli-guidance.js +19 -6
- package/dist/utils/skills/cli-guidance.js.map +1 -1
- package/dist/utils/skills/codex-skill.d.ts +1 -1
- package/dist/utils/skills/codex-skill.d.ts.map +1 -1
- package/dist/utils/skills/codex-skill.js +1 -1
- package/package.json +1 -2
- package/src/ui/dist/assets/{LibraryEntry-CjxmVfhv.js → LibraryEntry-B9ZkJUtN.js} +8 -8
- package/src/ui/dist/assets/main-CXP-A-qy.css +1 -0
- package/src/ui/dist/assets/{main-CdSzrhWD.js → main-Dls3YqrM.js} +144 -144
- package/src/ui/dist/index.html +2 -2
- package/dist/agent-variants/directionAuthoring.d.ts +0 -27
- package/dist/agent-variants/directionAuthoring.d.ts.map +0 -1
- package/dist/agent-variants/directionAuthoring.js +0 -380
- package/dist/agent-variants/directionAuthoring.js.map +0 -1
- package/dist/services/ComponentSearchService.d.ts +0 -13
- package/dist/services/ComponentSearchService.d.ts.map +0 -1
- package/dist/services/ComponentSearchService.js +0 -167
- package/dist/services/ComponentSearchService.js.map +0 -1
- package/dist/types/style-manipulation-types.d.ts +0 -63
- package/dist/types/style-manipulation-types.d.ts.map +0 -1
- package/dist/types/style-manipulation-types.js +0 -68
- package/dist/types/style-manipulation-types.js.map +0 -1
- package/dist/types/token-types.d.ts +0 -24
- package/dist/types/token-types.d.ts.map +0 -1
- package/dist/types/token-types.js +0 -3
- package/dist/types/token-types.js.map +0 -1
- package/src/ui/dist/assets/main-DVb3ws41.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const PROFILE_SCHEMA = "\nCREATE TABLE profile (singleton INTEGER PRIMARY KEY CHECK(singleton = 1), id TEXT NOT NULL UNIQUE, is_enabled INTEGER NOT NULL, revision INTEGER NOT NULL);\nCREATE TABLE sources (id TEXT PRIMARY KEY, provider TEXT NOT NULL, remote_id TEXT NOT NULL,\n title TEXT NOT NULL, url TEXT, is_included INTEGER NOT NULL, removed_at TEXT, resolved_remote_id TEXT,\n UNIQUE(provider, remote_id));\nCREATE TABLE profile_references (id TEXT PRIMARY KEY, revision INTEGER NOT NULL,\n content_hash TEXT NOT NULL, body TEXT NOT NULL);\nCREATE TABLE memberships (source_id TEXT NOT NULL REFERENCES sources(id),\n reference_id TEXT NOT NULL REFERENCES profile_references(id), seen_job_id TEXT,\n PRIMARY KEY(source_id, reference_id));\nCREATE INDEX memberships_reference ON memberships(reference_id);\nCREATE TABLE observations (reference_id TEXT PRIMARY KEY REFERENCES profile_references(id),\n revision INTEGER NOT NULL, body TEXT NOT NULL);\nCREATE TABLE index_work (reference_id TEXT PRIMARY KEY REFERENCES profile_references(id),\n id TEXT NOT NULL, revision INTEGER NOT NULL, operation TEXT NOT NULL,\n engine_id TEXT, state TEXT NOT NULL);\nCREATE TABLE import_jobs (id TEXT PRIMARY KEY, source_id TEXT NOT NULL REFERENCES sources(id),\n runtime TEXT NOT NULL, state TEXT NOT NULL, cursor TEXT, enumerated INTEGER NOT NULL,\n total INTEGER, error TEXT, updated_at TEXT NOT NULL, is_enumerated INTEGER NOT NULL DEFAULT 0);\nCREATE INDEX import_jobs_source ON import_jobs(source_id);\nCREATE TABLE index_rebuild (singleton INTEGER PRIMARY KEY CHECK(singleton = 1), id TEXT NOT NULL, runtime TEXT NOT NULL);\n\nCREATE TABLE import_cursors (job_id TEXT NOT NULL REFERENCES import_jobs(id), cursor TEXT NOT NULL, PRIMARY KEY(job_id, cursor));\nCREATE TABLE reference_failures (job_id TEXT NOT NULL REFERENCES import_jobs(id), reference_id TEXT NOT NULL REFERENCES profile_references(id), revision INTEGER NOT NULL, stage TEXT NOT NULL, error TEXT NOT NULL, attempts INTEGER NOT NULL, updated_at TEXT NOT NULL, PRIMARY KEY(job_id, reference_id, stage));\n\nCREATE TABLE provider_cooldowns (provider TEXT PRIMARY KEY, retry_at TEXT NOT NULL, attempts INTEGER NOT NULL);\nCREATE TABLE import_collection_references (job_id TEXT NOT NULL REFERENCES import_jobs(id), collection_id TEXT NOT NULL, reference_id TEXT NOT NULL REFERENCES profile_references(id), PRIMARY KEY(job_id, collection_id, reference_id));\n\nCREATE TABLE reference_discoveries (id TEXT PRIMARY KEY, body TEXT NOT NULL);\nCREATE TABLE reference_plans (id TEXT PRIMARY KEY, body TEXT NOT NULL);\nCREATE TABLE planned_sources (source_id TEXT PRIMARY KEY REFERENCES sources(id), discovery_id TEXT NOT NULL REFERENCES reference_discoveries(id), collection_id TEXT NOT NULL);\nCREATE TABLE reference_onboarding (singleton INTEGER PRIMARY KEY CHECK(singleton = 1), state TEXT NOT NULL, offered_at TEXT, remind_at TEXT);\n\nCREATE TABLE connector_onboarding (provider TEXT PRIMARY KEY, state TEXT NOT NULL, offered_at TEXT, remind_at TEXT);\nCREATE TABLE guidance (id TEXT PRIMARY KEY, title TEXT NOT NULL, markdown TEXT NOT NULL, is_enabled INTEGER NOT NULL);\nALTER TABLE guidance ADD COLUMN attachments TEXT;\nALTER TABLE guidance ADD COLUMN \"references\" TEXT;\n";
|
|
2
|
-
export declare const PROFILE_MIGRATIONS: readonly ["ALTER TABLE import_jobs ADD COLUMN is_enumerated INTEGER NOT NULL DEFAULT 0", "CREATE TABLE index_rebuild (singleton INTEGER PRIMARY KEY CHECK(singleton = 1), id TEXT NOT NULL, runtime TEXT NOT NULL);", "ALTER TABLE sources ADD COLUMN resolved_remote_id TEXT; \nCREATE TABLE import_cursors (job_id TEXT NOT NULL REFERENCES import_jobs(id), cursor TEXT NOT NULL, PRIMARY KEY(job_id, cursor));\nCREATE TABLE reference_failures (job_id TEXT NOT NULL REFERENCES import_jobs(id), reference_id TEXT NOT NULL REFERENCES profile_references(id), revision INTEGER NOT NULL, stage TEXT NOT NULL, error TEXT NOT NULL, attempts INTEGER NOT NULL, updated_at TEXT NOT NULL, PRIMARY KEY(job_id, reference_id, stage));\n", "CREATE TABLE provider_cooldowns (provider TEXT PRIMARY KEY, retry_at TEXT NOT NULL, attempts INTEGER NOT NULL);", "CREATE TABLE import_collection_references (job_id TEXT NOT NULL REFERENCES import_jobs(id), collection_id TEXT NOT NULL, reference_id TEXT NOT NULL REFERENCES profile_references(id), PRIMARY KEY(job_id, collection_id, reference_id));", "\nCREATE TABLE reference_discoveries (id TEXT PRIMARY KEY, body TEXT NOT NULL);\nCREATE TABLE reference_plans (id TEXT PRIMARY KEY, body TEXT NOT NULL);\nCREATE TABLE planned_sources (source_id TEXT PRIMARY KEY REFERENCES sources(id), discovery_id TEXT NOT NULL REFERENCES reference_discoveries(id), collection_id TEXT NOT NULL);\nCREATE TABLE reference_onboarding (singleton INTEGER PRIMARY KEY CHECK(singleton = 1), state TEXT NOT NULL, offered_at TEXT, remind_at TEXT);\n", "CREATE TABLE connector_onboarding (provider TEXT PRIMARY KEY, state TEXT NOT NULL, offered_at TEXT, remind_at TEXT);", "CREATE TABLE guidance (id TEXT PRIMARY KEY, title TEXT NOT NULL, markdown TEXT NOT NULL, is_enabled INTEGER NOT NULL);", "ALTER TABLE guidance ADD COLUMN attachments TEXT;", "ALTER TABLE guidance ADD COLUMN \"references\" TEXT;"];
|
|
1
|
+
export declare const PROFILE_SCHEMA = "\nCREATE TABLE profile (singleton INTEGER PRIMARY KEY CHECK(singleton = 1), id TEXT NOT NULL UNIQUE, is_enabled INTEGER NOT NULL, revision INTEGER NOT NULL);\nCREATE TABLE sources (id TEXT PRIMARY KEY, provider TEXT NOT NULL, remote_id TEXT NOT NULL,\n title TEXT NOT NULL, url TEXT, is_included INTEGER NOT NULL, removed_at TEXT, resolved_remote_id TEXT,\n UNIQUE(provider, remote_id));\nCREATE TABLE profile_references (id TEXT PRIMARY KEY, revision INTEGER NOT NULL,\n content_hash TEXT NOT NULL, body TEXT NOT NULL);\nCREATE TABLE memberships (source_id TEXT NOT NULL REFERENCES sources(id),\n reference_id TEXT NOT NULL REFERENCES profile_references(id), seen_job_id TEXT,\n PRIMARY KEY(source_id, reference_id));\nCREATE INDEX memberships_reference ON memberships(reference_id);\nCREATE TABLE observations (reference_id TEXT PRIMARY KEY REFERENCES profile_references(id),\n revision INTEGER NOT NULL, body TEXT NOT NULL);\nCREATE TABLE index_work (reference_id TEXT PRIMARY KEY REFERENCES profile_references(id),\n id TEXT NOT NULL, revision INTEGER NOT NULL, operation TEXT NOT NULL,\n engine_id TEXT, state TEXT NOT NULL);\nCREATE TABLE import_jobs (id TEXT PRIMARY KEY, source_id TEXT NOT NULL REFERENCES sources(id),\n runtime TEXT NOT NULL, state TEXT NOT NULL, cursor TEXT, enumerated INTEGER NOT NULL,\n total INTEGER, error TEXT, updated_at TEXT NOT NULL, is_enumerated INTEGER NOT NULL DEFAULT 0);\nCREATE INDEX import_jobs_source ON import_jobs(source_id);\nCREATE TABLE index_rebuild (singleton INTEGER PRIMARY KEY CHECK(singleton = 1), id TEXT NOT NULL, runtime TEXT NOT NULL);\n\nCREATE TABLE import_cursors (job_id TEXT NOT NULL REFERENCES import_jobs(id), cursor TEXT NOT NULL, PRIMARY KEY(job_id, cursor));\nCREATE TABLE reference_failures (job_id TEXT NOT NULL REFERENCES import_jobs(id), reference_id TEXT NOT NULL REFERENCES profile_references(id), revision INTEGER NOT NULL, stage TEXT NOT NULL, error TEXT NOT NULL, attempts INTEGER NOT NULL, updated_at TEXT NOT NULL, PRIMARY KEY(job_id, reference_id, stage));\n\nCREATE TABLE provider_cooldowns (provider TEXT PRIMARY KEY, retry_at TEXT NOT NULL, attempts INTEGER NOT NULL);\nCREATE TABLE import_collection_references (job_id TEXT NOT NULL REFERENCES import_jobs(id), collection_id TEXT NOT NULL, reference_id TEXT NOT NULL REFERENCES profile_references(id), PRIMARY KEY(job_id, collection_id, reference_id));\n\nCREATE TABLE reference_discoveries (id TEXT PRIMARY KEY, body TEXT NOT NULL);\nCREATE TABLE reference_plans (id TEXT PRIMARY KEY, body TEXT NOT NULL);\nCREATE TABLE planned_sources (source_id TEXT PRIMARY KEY REFERENCES sources(id), discovery_id TEXT NOT NULL REFERENCES reference_discoveries(id), collection_id TEXT NOT NULL);\nCREATE TABLE reference_onboarding (singleton INTEGER PRIMARY KEY CHECK(singleton = 1), state TEXT NOT NULL, offered_at TEXT, remind_at TEXT);\n\nCREATE TABLE connector_onboarding (provider TEXT PRIMARY KEY, state TEXT NOT NULL, offered_at TEXT, remind_at TEXT);\nCREATE TABLE guidance (id TEXT PRIMARY KEY, title TEXT NOT NULL, markdown TEXT NOT NULL, is_enabled INTEGER NOT NULL);\nALTER TABLE guidance ADD COLUMN attachments TEXT;\nALTER TABLE guidance ADD COLUMN \"references\" TEXT;\nALTER TABLE guidance ADD COLUMN verifier TEXT;\n";
|
|
2
|
+
export declare const PROFILE_MIGRATIONS: readonly ["ALTER TABLE import_jobs ADD COLUMN is_enumerated INTEGER NOT NULL DEFAULT 0", "CREATE TABLE index_rebuild (singleton INTEGER PRIMARY KEY CHECK(singleton = 1), id TEXT NOT NULL, runtime TEXT NOT NULL);", "ALTER TABLE sources ADD COLUMN resolved_remote_id TEXT; \nCREATE TABLE import_cursors (job_id TEXT NOT NULL REFERENCES import_jobs(id), cursor TEXT NOT NULL, PRIMARY KEY(job_id, cursor));\nCREATE TABLE reference_failures (job_id TEXT NOT NULL REFERENCES import_jobs(id), reference_id TEXT NOT NULL REFERENCES profile_references(id), revision INTEGER NOT NULL, stage TEXT NOT NULL, error TEXT NOT NULL, attempts INTEGER NOT NULL, updated_at TEXT NOT NULL, PRIMARY KEY(job_id, reference_id, stage));\n", "CREATE TABLE provider_cooldowns (provider TEXT PRIMARY KEY, retry_at TEXT NOT NULL, attempts INTEGER NOT NULL);", "CREATE TABLE import_collection_references (job_id TEXT NOT NULL REFERENCES import_jobs(id), collection_id TEXT NOT NULL, reference_id TEXT NOT NULL REFERENCES profile_references(id), PRIMARY KEY(job_id, collection_id, reference_id));", "\nCREATE TABLE reference_discoveries (id TEXT PRIMARY KEY, body TEXT NOT NULL);\nCREATE TABLE reference_plans (id TEXT PRIMARY KEY, body TEXT NOT NULL);\nCREATE TABLE planned_sources (source_id TEXT PRIMARY KEY REFERENCES sources(id), discovery_id TEXT NOT NULL REFERENCES reference_discoveries(id), collection_id TEXT NOT NULL);\nCREATE TABLE reference_onboarding (singleton INTEGER PRIMARY KEY CHECK(singleton = 1), state TEXT NOT NULL, offered_at TEXT, remind_at TEXT);\n", "CREATE TABLE connector_onboarding (provider TEXT PRIMARY KEY, state TEXT NOT NULL, offered_at TEXT, remind_at TEXT);", "CREATE TABLE guidance (id TEXT PRIMARY KEY, title TEXT NOT NULL, markdown TEXT NOT NULL, is_enabled INTEGER NOT NULL);", "ALTER TABLE guidance ADD COLUMN attachments TEXT;", "ALTER TABLE guidance ADD COLUMN \"references\" TEXT;", "ALTER TABLE guidance ADD COLUMN verifier TEXT;"];
|
|
3
3
|
export declare const PROFILE_SCHEMA_VERSION: number;
|
|
4
4
|
//# sourceMappingURL=migrations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../../src/storage/profiles/migrations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../../src/storage/profiles/migrations.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,cAAc,wsGA8B1B,CAAC;AAEF,eAAO,MAAM,kBAAkB,65DAYrB,CAAC;AAEX,eAAO,MAAM,sBAAsB,QAAgC,CAAC"}
|
|
@@ -18,6 +18,7 @@ CREATE TABLE reference_failures (job_id TEXT NOT NULL REFERENCES import_jobs(id)
|
|
|
18
18
|
const GUIDANCE_SCHEMA = `CREATE TABLE guidance (id TEXT PRIMARY KEY, title TEXT NOT NULL, markdown TEXT NOT NULL, is_enabled INTEGER NOT NULL);`;
|
|
19
19
|
const GUIDANCE_ATTACHMENTS_SCHEMA = `ALTER TABLE guidance ADD COLUMN attachments TEXT;`;
|
|
20
20
|
const GUIDANCE_REFERENCES_SCHEMA = `ALTER TABLE guidance ADD COLUMN "references" TEXT;`;
|
|
21
|
+
const GUIDANCE_VERIFIER_SCHEMA = `ALTER TABLE guidance ADD COLUMN verifier TEXT;`;
|
|
21
22
|
exports.PROFILE_SCHEMA = `
|
|
22
23
|
CREATE TABLE profile (singleton INTEGER PRIMARY KEY CHECK(singleton = 1), id TEXT NOT NULL UNIQUE, is_enabled INTEGER NOT NULL, revision INTEGER NOT NULL);
|
|
23
24
|
CREATE TABLE sources (id TEXT PRIMARY KEY, provider TEXT NOT NULL, remote_id TEXT NOT NULL,
|
|
@@ -47,6 +48,7 @@ ${CONNECTOR_ONBOARDING_SCHEMA}
|
|
|
47
48
|
${GUIDANCE_SCHEMA}
|
|
48
49
|
${GUIDANCE_ATTACHMENTS_SCHEMA}
|
|
49
50
|
${GUIDANCE_REFERENCES_SCHEMA}
|
|
51
|
+
${GUIDANCE_VERIFIER_SCHEMA}
|
|
50
52
|
`;
|
|
51
53
|
exports.PROFILE_MIGRATIONS = [
|
|
52
54
|
'ALTER TABLE import_jobs ADD COLUMN is_enumerated INTEGER NOT NULL DEFAULT 0',
|
|
@@ -59,6 +61,7 @@ exports.PROFILE_MIGRATIONS = [
|
|
|
59
61
|
GUIDANCE_SCHEMA,
|
|
60
62
|
GUIDANCE_ATTACHMENTS_SCHEMA,
|
|
61
63
|
GUIDANCE_REFERENCES_SCHEMA,
|
|
64
|
+
GUIDANCE_VERIFIER_SCHEMA,
|
|
62
65
|
];
|
|
63
66
|
exports.PROFILE_SCHEMA_VERSION = 1 + exports.PROFILE_MIGRATIONS.length;
|
|
64
67
|
//# sourceMappingURL=migrations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrations.js","sourceRoot":"","sources":["../../../src/storage/profiles/migrations.ts"],"names":[],"mappings":";;;AAAA,MAAM,2BAA2B,GAAG,sHAAsH,CAAC;AAC3J,MAAM,sBAAsB,GAAG;;;;;CAK9B,CAAC;AACF,MAAM,yBAAyB,GAAG,iHAAiH,CAAC;AACpJ,MAAM,4BAA4B,GAAG,2OAA2O,CAAC;AACjR,MAAM,oBAAoB,GAAG,2HAA2H,CAAC;AACzJ,MAAM,sBAAsB,GAAG;;;CAG9B,CAAC;AAEF,MAAM,eAAe,GAAG,wHAAwH,CAAC;AACjJ,MAAM,2BAA2B,GAAG,mDAAmD,CAAC;AACxF,MAAM,0BAA0B,GAAG,oDAAoD,CAAC;
|
|
1
|
+
{"version":3,"file":"migrations.js","sourceRoot":"","sources":["../../../src/storage/profiles/migrations.ts"],"names":[],"mappings":";;;AAAA,MAAM,2BAA2B,GAAG,sHAAsH,CAAC;AAC3J,MAAM,sBAAsB,GAAG;;;;;CAK9B,CAAC;AACF,MAAM,yBAAyB,GAAG,iHAAiH,CAAC;AACpJ,MAAM,4BAA4B,GAAG,2OAA2O,CAAC;AACjR,MAAM,oBAAoB,GAAG,2HAA2H,CAAC;AACzJ,MAAM,sBAAsB,GAAG;;;CAG9B,CAAC;AAEF,MAAM,eAAe,GAAG,wHAAwH,CAAC;AACjJ,MAAM,2BAA2B,GAAG,mDAAmD,CAAC;AACxF,MAAM,0BAA0B,GAAG,oDAAoD,CAAC;AAExF,MAAM,wBAAwB,GAAG,gDAAgD,CAAC;AAErE,QAAA,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;EAoB5B,oBAAoB;EACpB,sBAAsB;EACtB,yBAAyB;EACzB,4BAA4B;EAC5B,sBAAsB;EACtB,2BAA2B;EAC3B,eAAe;EACf,2BAA2B;EAC3B,0BAA0B;EAC1B,wBAAwB;CACzB,CAAC;AAEW,QAAA,kBAAkB,GAAG;IAChC,6EAA6E;IAC7E,oBAAoB;IACpB,2DAA2D,sBAAsB,EAAE;IACnF,yBAAyB;IACzB,4BAA4B;IAC5B,sBAAsB;IACtB,2BAA2B;IAC3B,eAAe;IACf,2BAA2B;IAC3B,0BAA0B;IAC1B,wBAAwB;CAChB,CAAC;AAEE,QAAA,sBAAsB,GAAG,CAAC,GAAG,0BAAkB,CAAC,MAAM,CAAC"}
|
|
@@ -26,18 +26,18 @@ export declare const referenceDiscoveries: import("drizzle-orm/sqlite-core").SQL
|
|
|
26
26
|
id: string;
|
|
27
27
|
total: number;
|
|
28
28
|
collections: {
|
|
29
|
-
id: string;
|
|
30
29
|
description: string | null;
|
|
31
30
|
url: string | null;
|
|
32
31
|
title: string;
|
|
32
|
+
id: string;
|
|
33
33
|
children: string[];
|
|
34
34
|
total: number | null;
|
|
35
35
|
parentId: string | null;
|
|
36
36
|
}[];
|
|
37
37
|
profile: {
|
|
38
|
-
id: string;
|
|
39
38
|
url: string;
|
|
40
39
|
title: string;
|
|
40
|
+
id: string;
|
|
41
41
|
username: string;
|
|
42
42
|
};
|
|
43
43
|
createdAt: string;
|
|
@@ -81,14 +81,14 @@ export declare const referencePlans: import("drizzle-orm/sqlite-core").SQLiteTab
|
|
|
81
81
|
tableName: "reference_plans";
|
|
82
82
|
dataType: "object json";
|
|
83
83
|
data: {
|
|
84
|
-
id: string;
|
|
85
84
|
expiresAt: string;
|
|
86
85
|
revision: string;
|
|
87
86
|
runtime: "claude" | "codex" | "cursor";
|
|
87
|
+
id: string;
|
|
88
88
|
profile: {
|
|
89
|
-
id: string;
|
|
90
89
|
url: string;
|
|
91
90
|
title: string;
|
|
91
|
+
id: string;
|
|
92
92
|
username: string;
|
|
93
93
|
};
|
|
94
94
|
createdAt: string;
|
|
@@ -119,10 +119,10 @@ export declare const referencePlans: import("drizzle-orm/sqlite-core").SQLiteTab
|
|
|
119
119
|
unsupportedReason?: string | undefined;
|
|
120
120
|
}[];
|
|
121
121
|
collection: {
|
|
122
|
-
id: string;
|
|
123
122
|
description: string | null;
|
|
124
123
|
url: string | null;
|
|
125
124
|
title: string;
|
|
125
|
+
id: string;
|
|
126
126
|
children: string[];
|
|
127
127
|
total: number | null;
|
|
128
128
|
parentId: string | null;
|
|
@@ -179,6 +179,33 @@ export declare const guidance: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
179
179
|
identity: undefined;
|
|
180
180
|
generated: undefined;
|
|
181
181
|
}, {}>;
|
|
182
|
+
verifier: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
183
|
+
name: string;
|
|
184
|
+
tableName: "guidance";
|
|
185
|
+
dataType: "object json";
|
|
186
|
+
data: {
|
|
187
|
+
markdown: string;
|
|
188
|
+
sourceDigest: string;
|
|
189
|
+
package?: {
|
|
190
|
+
files: {
|
|
191
|
+
name: string;
|
|
192
|
+
content: string;
|
|
193
|
+
}[];
|
|
194
|
+
runtime: "node";
|
|
195
|
+
entrypoint: string;
|
|
196
|
+
} | undefined;
|
|
197
|
+
};
|
|
198
|
+
driverParam: string;
|
|
199
|
+
notNull: false;
|
|
200
|
+
hasDefault: false;
|
|
201
|
+
isPrimaryKey: false;
|
|
202
|
+
isAutoincrement: false;
|
|
203
|
+
hasRuntimeDefault: false;
|
|
204
|
+
enumValues: undefined;
|
|
205
|
+
baseColumn: never;
|
|
206
|
+
identity: undefined;
|
|
207
|
+
generated: undefined;
|
|
208
|
+
}, {}>;
|
|
182
209
|
isEnabled: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
183
210
|
name: string;
|
|
184
211
|
tableName: "guidance";
|
|
@@ -691,8 +718,8 @@ export declare const observations: import("drizzle-orm/sqlite-core").SQLiteTable
|
|
|
691
718
|
description: string;
|
|
692
719
|
revision: number;
|
|
693
720
|
runtime: "claude" | "codex" | "cursor" | "user";
|
|
694
|
-
referenceId: string;
|
|
695
721
|
evidence: "observation" | "preference";
|
|
722
|
+
referenceId: string;
|
|
696
723
|
usage?: {
|
|
697
724
|
inputTokens?: number | undefined;
|
|
698
725
|
outputTokens?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/storage/profiles/schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/storage/profiles/schema.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASpB,CAAC;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBrB,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASzB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkB7B,CAAC"}
|
|
@@ -14,6 +14,7 @@ exports.guidance = (0, sqlite_core_1.sqliteTable)('guidance', {
|
|
|
14
14
|
markdown: (0, sqlite_core_1.text)().notNull(),
|
|
15
15
|
attachments: (0, sqlite_core_1.text)({ mode: 'json' }).$type(),
|
|
16
16
|
references: (0, sqlite_core_1.text)({ mode: 'json' }).$type(),
|
|
17
|
+
verifier: (0, sqlite_core_1.text)({ mode: 'json' }).$type(),
|
|
17
18
|
isEnabled: (0, sqlite_core_1.integer)('is_enabled', { mode: 'boolean' }).notNull(),
|
|
18
19
|
});
|
|
19
20
|
exports.indexRebuild = (0, sqlite_core_1.sqliteTable)('index_rebuild', {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/storage/profiles/schema.ts"],"names":[],"mappings":";;;AAAA,yDAMiC;
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/storage/profiles/schema.ts"],"names":[],"mappings":";;;AAAA,yDAMiC;AAWpB,QAAA,OAAO,GAAG,IAAA,yBAAW,EAAC,SAAS,EAAE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AG,EAAE,CAAC,kBAAU,CAAC,EAAE,CAAC;IAClC,QAAQ,EAAE,IAAA,qBAAO,GAAE,CAAC,OAAO,EAAE;IAC7B,KAAK,EAAE,IAAA,kBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE;IACzD,KAAK,EAAE,IAAA,kBAAI,GAAE,CAAC,OAAO,EAAE;IACvB,QAAQ,EAAE,IAAA,qBAAO,GAAE,CAAC,OAAO,EAAE;IAC7B,SAAS,EAAE,IAAA,kBAAI,EAAC,YAAY,CAAC,CAAC,OAAO,EAAE;CACxC,EACD,CAAC,KAAK,EAAE,EAAE,CAAC;IACT,IAAA,wBAAU,EAAC,EAAE,OAAO,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;CACvE,CACF,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { TokenResponse } from './token-types';
|
|
2
1
|
type BoundingRect = {
|
|
3
2
|
x: number;
|
|
4
3
|
y: number;
|
|
@@ -63,29 +62,5 @@ export type ChangeRecord = {
|
|
|
63
62
|
files: FileChange[];
|
|
64
63
|
commitSha?: string;
|
|
65
64
|
};
|
|
66
|
-
export type CodeModificationRequest = {
|
|
67
|
-
instruction: string;
|
|
68
|
-
elements: ElementContext[];
|
|
69
|
-
temperature?: number;
|
|
70
|
-
images?: string[];
|
|
71
|
-
designTokens?: TokenResponse;
|
|
72
|
-
sessionId?: string;
|
|
73
|
-
model?: string;
|
|
74
|
-
traceId?: string;
|
|
75
|
-
posthogSessionId?: string;
|
|
76
|
-
};
|
|
77
|
-
export type CodeModificationResponse = {
|
|
78
|
-
changes: string;
|
|
79
|
-
filesModified: Array<{
|
|
80
|
-
filePath: string;
|
|
81
|
-
changes: string;
|
|
82
|
-
}>;
|
|
83
|
-
totalElements: number;
|
|
84
|
-
sessionId?: string;
|
|
85
|
-
model?: string;
|
|
86
|
-
ttfmMs?: number;
|
|
87
|
-
traceId?: string;
|
|
88
|
-
agentRunId?: string;
|
|
89
|
-
};
|
|
90
65
|
export {};
|
|
91
66
|
//# sourceMappingURL=change-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"change-types.d.ts","sourceRoot":"","sources":["../../src/types/change-types.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"change-types.d.ts","sourceRoot":"","sources":["../../src/types/change-types.ts"],"names":[],"mappings":"AACA,KAAK,YAAY,GAAG;IAClB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,YAAY,GAAG,SAAS,GAAG,SAAS,CAAC;IAC3E,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,UAAU,GAAG,MAAM,CAAC;CACvC,CAAC;AAEF,MAAM,MAA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ileSchema: z.ZodObject<{
|
|
|
5
5
|
title: z.ZodString;
|
|
6
6
|
url: z.ZodEffects<z.ZodString, string, string>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
id: string;
|
|
9
8
|
url: string;
|
|
10
9
|
title: string;
|
|
10
|
+
id: string;
|
|
11
11
|
username: string;
|
|
12
12
|
}, {
|
|
13
|
-
id: string;
|
|
14
13
|
url: string;
|
|
15
14
|
title: string;
|
|
15
|
+
id: string;
|
|
16
16
|
username: string;
|
|
17
17
|
}>;
|
|
18
18
|
export declare const CosmosProfileCollectionSchema: z.ZodObject<{
|
|
@@ -24,18 +24,18 @@ export declare const CosmosProfileCollectionSchema: z.ZodObject<{
|
|
|
24
24
|
parentId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
|
|
25
25
|
children: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
id: string;
|
|
28
27
|
description: string | null;
|
|
29
28
|
url: string;
|
|
30
29
|
title: string;
|
|
30
|
+
id: string;
|
|
31
31
|
children: string[];
|
|
32
32
|
total: number;
|
|
33
33
|
parentId: string | null;
|
|
34
34
|
}, {
|
|
35
|
-
id: string;
|
|
36
35
|
description: string | null;
|
|
37
36
|
url: string;
|
|
38
37
|
title: string;
|
|
38
|
+
id: string;
|
|
39
39
|
children: string[];
|
|
40
40
|
total: number;
|
|
41
41
|
parentId: string | null;
|
|
@@ -47,14 +47,14 @@ export declare const CosmosProfilePageSchema: z.ZodObject<{
|
|
|
47
47
|
title: z.ZodString;
|
|
48
48
|
url: z.ZodEffects<z.ZodString, string, string>;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
|
-
id: string;
|
|
51
50
|
url: string;
|
|
52
51
|
title: string;
|
|
52
|
+
id: string;
|
|
53
53
|
username: string;
|
|
54
54
|
}, {
|
|
55
|
-
id: string;
|
|
56
55
|
url: string;
|
|
57
56
|
title: string;
|
|
57
|
+
id: string;
|
|
58
58
|
username: string;
|
|
59
59
|
}>;
|
|
60
60
|
collections: z.ZodArray<z.ZodObject<{
|
|
@@ -66,18 +66,18 @@ export declare const CosmosProfilePageSchema: z.ZodObject<{
|
|
|
66
66
|
parentId: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
|
|
67
67
|
children: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
68
68
|
}, "strip", z.ZodTypeAny, {
|
|
69
|
-
id: string;
|
|
70
69
|
description: string | null;
|
|
71
70
|
url: string;
|
|
72
71
|
title: string;
|
|
72
|
+
id: string;
|
|
73
73
|
children: string[];
|
|
74
74
|
total: number;
|
|
75
75
|
parentId: string | null;
|
|
76
76
|
}, {
|
|
77
|
-
id: string;
|
|
78
77
|
description: string | null;
|
|
79
78
|
url: string;
|
|
80
79
|
title: string;
|
|
80
|
+
id: string;
|
|
81
81
|
children: string[];
|
|
82
82
|
total: number;
|
|
83
83
|
parentId: string | null;
|
|
@@ -88,36 +88,36 @@ export declare const CosmosProfilePageSchema: z.ZodObject<{
|
|
|
88
88
|
total: number;
|
|
89
89
|
nextCursor: string | null;
|
|
90
90
|
collections: {
|
|
91
|
-
id: string;
|
|
92
91
|
description: string | null;
|
|
93
92
|
url: string;
|
|
94
93
|
title: string;
|
|
94
|
+
id: string;
|
|
95
95
|
children: string[];
|
|
96
96
|
total: number;
|
|
97
97
|
parentId: string | null;
|
|
98
98
|
}[];
|
|
99
99
|
profile: {
|
|
100
|
-
id: string;
|
|
101
100
|
url: string;
|
|
102
101
|
title: string;
|
|
102
|
+
id: string;
|
|
103
103
|
username: string;
|
|
104
104
|
};
|
|
105
105
|
}, {
|
|
106
106
|
total: number;
|
|
107
107
|
nextCursor: string | null;
|
|
108
108
|
collections: {
|
|
109
|
-
id: string;
|
|
110
109
|
description: string | null;
|
|
111
110
|
url: string;
|
|
112
111
|
title: string;
|
|
112
|
+
id: string;
|
|
113
113
|
children: string[];
|
|
114
114
|
total: number;
|
|
115
115
|
parentId: string | null;
|
|
116
116
|
}[];
|
|
117
117
|
profile: {
|
|
118
|
-
id: string;
|
|
119
118
|
url: string;
|
|
120
119
|
title: string;
|
|
120
|
+
id: string;
|
|
121
121
|
username: string;
|
|
122
122
|
};
|
|
123
123
|
}>;
|
package/dist/types/cosmos.d.ts
CHANGED
|
@@ -19,14 +19,14 @@ export declare const CosmosCollectionSchema: z.ZodObject<{
|
|
|
19
19
|
url: z.ZodEffects<z.ZodString, string, string>;
|
|
20
20
|
children: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
id: string;
|
|
23
22
|
url: string;
|
|
24
23
|
title: string;
|
|
24
|
+
id: string;
|
|
25
25
|
children: string[];
|
|
26
26
|
}, {
|
|
27
|
-
id: string;
|
|
28
27
|
url: string;
|
|
29
28
|
title: string;
|
|
29
|
+
id: string;
|
|
30
30
|
children: string[];
|
|
31
31
|
}>;
|
|
32
32
|
export declare const CosmosElementSchema: z.ZodObject<{
|
|
@@ -49,11 +49,11 @@ export declare const CosmosElementSchema: z.ZodObject<{
|
|
|
49
49
|
}>, "many">;
|
|
50
50
|
unsupportedReason: z.ZodOptional<z.ZodString>;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
-
id: string;
|
|
53
52
|
url: string;
|
|
54
53
|
title: string;
|
|
55
54
|
text: string;
|
|
56
55
|
owner: string | null;
|
|
56
|
+
id: string;
|
|
57
57
|
images: {
|
|
58
58
|
url: string;
|
|
59
59
|
representation: "image" | "video-cover";
|
|
@@ -62,11 +62,11 @@ export declare const CosmosElementSchema: z.ZodObject<{
|
|
|
62
62
|
sourceUrl: string | null;
|
|
63
63
|
unsupportedReason?: string | undefined;
|
|
64
64
|
}, {
|
|
65
|
-
id: string;
|
|
66
65
|
url: string;
|
|
67
66
|
title: string;
|
|
68
67
|
text: string;
|
|
69
68
|
owner: string | null;
|
|
69
|
+
id: string;
|
|
70
70
|
images: {
|
|
71
71
|
url: string;
|
|
72
72
|
representation: "image" | "video-cover";
|
|
@@ -82,14 +82,14 @@ export declare const CosmosPageSchema: z.ZodObject<{
|
|
|
82
82
|
url: z.ZodEffects<z.ZodString, string, string>;
|
|
83
83
|
children: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
84
84
|
}, "strip", z.ZodTypeAny, {
|
|
85
|
-
id: string;
|
|
86
85
|
url: string;
|
|
87
86
|
title: string;
|
|
87
|
+
id: string;
|
|
88
88
|
children: string[];
|
|
89
89
|
}, {
|
|
90
|
-
id: string;
|
|
91
90
|
url: string;
|
|
92
91
|
title: string;
|
|
92
|
+
id: string;
|
|
93
93
|
children: string[];
|
|
94
94
|
}>;
|
|
95
95
|
elements: z.ZodArray<z.ZodObject<{
|
|
@@ -112,11 +112,11 @@ export declare const CosmosPageSchema: z.ZodObject<{
|
|
|
112
112
|
}>, "many">;
|
|
113
113
|
unsupportedReason: z.ZodOptional<z.ZodString>;
|
|
114
114
|
}, "strip", z.ZodTypeAny, {
|
|
115
|
-
id: string;
|
|
116
115
|
url: string;
|
|
117
116
|
title: string;
|
|
118
117
|
text: string;
|
|
119
118
|
owner: string | null;
|
|
119
|
+
id: string;
|
|
120
120
|
images: {
|
|
121
121
|
url: string;
|
|
122
122
|
representation: "image" | "video-cover";
|
|
@@ -125,11 +125,11 @@ export declare const CosmosPageSchema: z.ZodObject<{
|
|
|
125
125
|
sourceUrl: string | null;
|
|
126
126
|
unsupportedReason?: string | undefined;
|
|
127
127
|
}, {
|
|
128
|
-
id: string;
|
|
129
128
|
url: string;
|
|
130
129
|
title: string;
|
|
131
130
|
text: string;
|
|
132
131
|
owner: string | null;
|
|
132
|
+
id: string;
|
|
133
133
|
images: {
|
|
134
134
|
url: string;
|
|
135
135
|
representation: "image" | "video-cover";
|
|
@@ -142,17 +142,17 @@ export declare const CosmosPageSchema: z.ZodObject<{
|
|
|
142
142
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
143
143
|
}, "strip", z.ZodTypeAny, {
|
|
144
144
|
collection: {
|
|
145
|
-
id: string;
|
|
146
145
|
url: string;
|
|
147
146
|
title: string;
|
|
147
|
+
id: string;
|
|
148
148
|
children: string[];
|
|
149
149
|
};
|
|
150
150
|
elements: {
|
|
151
|
-
id: string;
|
|
152
151
|
url: string;
|
|
153
152
|
title: string;
|
|
154
153
|
text: string;
|
|
155
154
|
owner: string | null;
|
|
155
|
+
id: string;
|
|
156
156
|
images: {
|
|
157
157
|
url: string;
|
|
158
158
|
representation: "image" | "video-cover";
|
|
@@ -165,17 +165,17 @@ export declare const CosmosPageSchema: z.ZodObject<{
|
|
|
165
165
|
nextCursor: string | null;
|
|
166
166
|
}, {
|
|
167
167
|
collection: {
|
|
168
|
-
id: string;
|
|
169
168
|
url: string;
|
|
170
169
|
title: string;
|
|
170
|
+
id: string;
|
|
171
171
|
children: string[];
|
|
172
172
|
};
|
|
173
173
|
elements: {
|
|
174
|
-
id: string;
|
|
175
174
|
url: string;
|
|
176
175
|
title: string;
|
|
177
176
|
text: string;
|
|
178
177
|
owner: string | null;
|
|
178
|
+
id: string;
|
|
179
179
|
images: {
|
|
180
180
|
url: string;
|
|
181
181
|
representation: "image" | "video-cover";
|
|
@@ -194,14 +194,14 @@ export declare const CosmosResultSchema: z.ZodDiscriminatedUnion<"status", [z.Zo
|
|
|
194
194
|
url: z.ZodEffects<z.ZodString, string, string>;
|
|
195
195
|
children: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
196
196
|
}, "strip", z.ZodTypeAny, {
|
|
197
|
-
id: string;
|
|
198
197
|
url: string;
|
|
199
198
|
title: string;
|
|
199
|
+
id: string;
|
|
200
200
|
children: string[];
|
|
201
201
|
}, {
|
|
202
|
-
id: string;
|
|
203
202
|
url: string;
|
|
204
203
|
title: string;
|
|
204
|
+
id: string;
|
|
205
205
|
children: string[];
|
|
206
206
|
}>;
|
|
207
207
|
elements: z.ZodArray<z.ZodObject<{
|
|
@@ -224,11 +224,11 @@ export declare const CosmosResultSchema: z.ZodDiscriminatedUnion<"status", [z.Zo
|
|
|
224
224
|
}>, "many">;
|
|
225
225
|
unsupportedReason: z.ZodOptional<z.ZodString>;
|
|
226
226
|
}, "strip", z.ZodTypeAny, {
|
|
227
|
-
id: string;
|
|
228
227
|
url: string;
|
|
229
228
|
title: string;
|
|
230
229
|
text: string;
|
|
231
230
|
owner: string | null;
|
|
231
|
+
id: string;
|
|
232
232
|
images: {
|
|
233
233
|
url: string;
|
|
234
234
|
representation: "image" | "video-cover";
|
|
@@ -237,11 +237,11 @@ export declare const CosmosResultSchema: z.ZodDiscriminatedUnion<"status", [z.Zo
|
|
|
237
237
|
sourceUrl: string | null;
|
|
238
238
|
unsupportedReason?: string | undefined;
|
|
239
239
|
}, {
|
|
240
|
-
id: string;
|
|
241
240
|
url: string;
|
|
242
241
|
title: string;
|
|
243
242
|
text: string;
|
|
244
243
|
owner: string | null;
|
|
244
|
+
id: string;
|
|
245
245
|
images: {
|
|
246
246
|
url: string;
|
|
247
247
|
representation: "image" | "video-cover";
|
|
@@ -257,17 +257,17 @@ export declare const CosmosResultSchema: z.ZodDiscriminatedUnion<"status", [z.Zo
|
|
|
257
257
|
}, "strip", z.ZodTypeAny, {
|
|
258
258
|
status: "ok";
|
|
259
259
|
collection: {
|
|
260
|
-
id: string;
|
|
261
260
|
url: string;
|
|
262
261
|
title: string;
|
|
262
|
+
id: string;
|
|
263
263
|
children: string[];
|
|
264
264
|
};
|
|
265
265
|
elements: {
|
|
266
|
-
id: string;
|
|
267
266
|
url: string;
|
|
268
267
|
title: string;
|
|
269
268
|
text: string;
|
|
270
269
|
owner: string | null;
|
|
270
|
+
id: string;
|
|
271
271
|
images: {
|
|
272
272
|
url: string;
|
|
273
273
|
representation: "image" | "video-cover";
|
|
@@ -281,17 +281,17 @@ export declare const CosmosResultSchema: z.ZodDiscriminatedUnion<"status", [z.Zo
|
|
|
281
281
|
}, {
|
|
282
282
|
status: "ok";
|
|
283
283
|
collection: {
|
|
284
|
-
id: string;
|
|
285
284
|
url: string;
|
|
286
285
|
title: string;
|
|
286
|
+
id: string;
|
|
287
287
|
children: string[];
|
|
288
288
|
};
|
|
289
289
|
elements: {
|
|
290
|
-
id: string;
|
|
291
290
|
url: string;
|
|
292
291
|
title: string;
|
|
293
292
|
text: string;
|
|
294
293
|
owner: string | null;
|
|
294
|
+
id: string;
|
|
295
295
|
images: {
|
|
296
296
|
url: string;
|
|
297
297
|
representation: "image" | "video-cover";
|