Skip to main content

Module architect_http

Module architect_http 

Source
Expand description

Architect HTTP request, preview, editor, and export handlers.

StructsΒ§

ArchitectLlmVendorState πŸ”’
ArchitectPreviewSources πŸ”’
Source files sharing one byte-identical logical editor unit.

EnumsΒ§

ArchitectTaskActionKind πŸ”’
Identifies which task-card action is being guarded by validation state.

ConstantsΒ§

ARCHITECT_PREVIEW_HISTORY_FILES πŸ”’
ARCHITECT_PREVIEW_HISTORY_LIMIT πŸ”’
ARCHITECT_PREVIEW_HISTORY_MAX_BYTES πŸ”’
ARCHITECT_PREVIEW_LEGACY_HISTORY_PATH πŸ”’

FunctionsΒ§

add_architect_edit_toolbar πŸ”’
architect_account_level πŸ”’
architect_apply_editor_source_edit_response πŸ”’
architect_apply_preview_edit_response πŸ”’
architect_apply_preview_history_edit πŸ”’
Applies one undo or redo operation to the generated preview source files.
architect_apply_preview_move_from_view πŸ”’
Moves source units using the transaction’s checked base inventory, avoiding a second media scan.
architect_apply_preview_style_edit πŸ”’
architect_apply_preview_unit_edit πŸ”’
Deletes or duplicates a selected unit in its owning source fragment.
architect_approve_apply_plan_response πŸ”’
architect_attachment_media_type πŸ”’
architect_audio_transcription_multipart πŸ”’
Builds a bounded multipart/form-data payload for external LLM vendor audio transcription.
architect_auto_build_task_response πŸ”’
architect_commit_preview_edit πŸ”’
Serializes preview changes and preserves accepted snapshots on promotion failure.
architect_configure_llm_vendor_connection πŸ”’
Saves validated non-secret LLM vendor settings through the selected database adapter.
architect_configure_llm_vendor_connection_response πŸ”’
architect_configure_preview_media πŸ”’
Configures only a materialized artifact to use stable, isolated preview media storage.
architect_copy_validated_preview_artifact πŸ”’
Places a validated build at the artifact cache path used by one generated preview root.
architect_create_user πŸ”’
Creates an Architect account through one logical database transaction.
architect_create_user_response πŸ”’
architect_current_editor_preview_root πŸ”’
Resolves the current editor source from logical task and version records.
architect_current_editor_version_id_for_task πŸ”’
Uses the same validated accepted version for editing as preview rendering, regardless of retry state.
architect_database_storage_for_app πŸ”’
Resolves the configured adapter and the Architect entities needed by one route.
architect_delete_editor_project_response πŸ”’
architect_delete_task_response πŸ”’
architect_delete_user_response πŸ”’
Deletes another account through the logical contract and revokes cached access.
architect_download_source_export_response πŸ”’
architect_duplicate_editor_project_response πŸ”’
architect_editor_panel_response πŸ”’
architect_editor_preview_workspace πŸ”’
architect_empty_preview_overrides_json πŸ”’
architect_export_diagnostic_response πŸ”’
architect_form_text πŸ”’
architect_fragment_html πŸ”’
architect_generated_app_preview_response πŸ”’
architect_generated_preview_app_runtime πŸ”’
architect_generated_preview_static_response πŸ”’
architect_generated_source_root πŸ”’
architect_guard_preview_actions πŸ”’
architect_guard_task_action_anchors πŸ”’
Replaces task-card action anchors with inert declarative placeholders until the task state allows the action.
architect_import_source_app_project_response πŸ”’
architect_import_source_app_roots πŸ”’
architect_invalidate_preview_artifact πŸ”’
Removes only a failed derived cache’s readiness marker so the next request rebuilds from accepted source.
architect_llm_vendor_connection_request πŸ”’
architect_llm_vendor_state_in_store πŸ”’
Reads one LLM vendor record from the configured Architect database.
architect_manage_users_allowed_response πŸ”’
architect_mark_llm_vendor_secret_saved πŸ”’
Marks encrypted LLM vendor credentials ready for a connection test.
architect_materialized_preview_root πŸ”’
architect_media_root πŸ”’
Resolves Architect attachments and preview images through its independent media configuration.
architect_parse_transcription_text πŸ”’
Extracts the transcript text field from an OpenAI-compatible audio transcription response.
architect_prepare_csv_page_bindings πŸ”’
Applies explicit CSV/page/image requests through the ordinary owner-checked source transaction.
architect_prepare_editor_source_edit_response πŸ”’
architect_prepare_editor_structured_edit_response πŸ”’
architect_prepare_preview_database πŸ”’
architect_prepare_source_bundle πŸ”’
Stages a bounded multi-file source transaction for an owned editable project. New declarations and their templates can therefore be validated and promoted together.
architect_prepare_validated_generated_preview πŸ”’
architect_prepared_preview_root_if_ready πŸ”’
architect_preview_artifact_lock πŸ”’
Shares a build lock only while requests are preparing the same editable preview artifact.
architect_preview_artifact_ready πŸ”’
architect_preview_artifact_root πŸ”’
architect_preview_body_content_start πŸ”’
Locates the end of a document body opening tag; partial app fragments have no host toolbar.
architect_preview_default_file_content πŸ”’
Returns the empty on-disk value used when a preview file has not been created yet.
architect_preview_edit_error_response πŸ”’
architect_preview_edit_mapping πŸ”’
architect_preview_element_template πŸ”’
architect_preview_file_snapshot πŸ”’
Captures the editable preview files that participate in one undo history entry.
architect_preview_history_path πŸ”’
Resolves the generated-source-local history file for an Architect preview version.
architect_preview_home_route πŸ”’
Resolves the default View link to the declared home page without changing explicit nested paths.
architect_preview_image_content_type πŸ”’
architect_preview_image_media_path πŸ”’
architect_preview_image_response πŸ”’
architect_preview_move_sources_from_view πŸ”’
Uses a declared page template to disambiguate source keys shared by different pages.
architect_preview_overrides_json πŸ”’
architect_preview_private_asset_response πŸ”’
Serves entitlement-authorized preview downloads through the normal private-asset boundary.
architect_preview_query_target πŸ”’
Forwards bounded app filters while retaining Architect preview selection as outer routing authority.
architect_preview_redirect_location πŸ”’
Keeps redirects within the selected app preview without absorbing another app or origin.
architect_preview_script_json_text πŸ”’
architect_preview_selected_source πŸ”’
Resolves shared alias declarations while rejecting conflicting cross-file identities.
architect_preview_source_is_newer_than_artifact πŸ”’
architect_preview_sources_from_view πŸ”’
Reads bounded source units inside one accepted app root before planning any writes.
architect_preview_sources_with_template πŸ”’
Resolves shared units together, using a known template only for conflicting page declarations.
architect_queue_transcribed_task_in_store πŸ”’
Queues an accepted voice transcript as one guarded task transaction.
architect_read_image_asset_response πŸ”’
Serves a task-owned image asset without requiring a generated app or invoking extraction.
architect_read_preview_history πŸ”’
Loads preview edit history and falls back to an empty bounded history on stale data.
architect_ready_preview_asset_root πŸ”’
Serves public files from an accepted fresh artifact without repeating database migrations or account preparation.
architect_record_preview_undo_snapshot πŸ”’
Records the current preview source before a mutating edit and clears redo state.
architect_record_preview_undo_snapshot_from_view πŸ”’
Captures undo content from the base inventory already validated for this editor operation.
architect_rename_editor_project_response πŸ”’
architect_restore_preview_snapshot πŸ”’
Restores all source files captured in a single preview undo or redo snapshot.
architect_revoke_llm_vendor_connection πŸ”’
Revokes LLM vendor routing and records its vault audit in one logical transaction.
architect_revoke_llm_vendor_connection_response πŸ”’
architect_rollback_editor_version_response πŸ”’
architect_rotate_llm_vendor_secret_response πŸ”’
architect_set_user_password πŸ”’
architect_set_user_password_response πŸ”’
architect_settings_access_denied_response πŸ”’
architect_settings_review_response πŸ”’
architect_source_bundle_json_to_tar πŸ”’
Converts an Architect JSON source bundle into the same tar format used by task downloads.
architect_source_tar_archive πŸ”’
Builds a deterministic tar archive from one generated Architect app source tree.
architect_stage_preview_only_successor πŸ”’
Carries a checked, patched preview artifact into its immediate accepted successor without recompiling contracts. Only visual preview transactions use this path; source/model/contract changes retain their full build gate.
architect_stage_validated_preview_artifact πŸ”’
Reuses the artifact that passed the editor gate for the new version’s first preview request.
architect_state_parent πŸ”’
architect_storage_ref_path πŸ”’
Converts an Architect storage reference into a safe relative path below the configured storage root.
architect_submit_builtin_task_response πŸ”’
architect_sync_editor_preview_config πŸ”’
Gives an editor version the same backend and isolated data namespace as its validated task.
architect_task_actor_allowed_response πŸ”’
Checks console task actions against the authenticated submitter or legacy project creator.
architect_task_console_response πŸ”’
architect_task_is_validated πŸ”’
architect_task_llm_vendor_in_store πŸ”’
Reads the vendor selected for a task without physical backend queries.
architect_task_store_for_app πŸ”’
Opens the Architect task store through the configured logical database contract.
architect_test_llm_vendor_connection πŸ”’
architect_test_llm_vendor_connection_response πŸ”’
architect_transcribe_audio_attachment_and_queue πŸ”’
Sends a saved Architect audio attachment to a tested external LLM vendor and queues the transcribed task brief.
architect_trim_preview_history πŸ”’
Retains the newest history entries with one linear compaction.
architect_update_llm_vendor_activation_status πŸ”’
Saves bounded connection-test status through the configured database adapter.
architect_update_user πŸ”’
Updates Architect activation and role through one logical transaction.
architect_update_user_response πŸ”’
architect_upload_attachment_response πŸ”’
architect_upload_preview_image_response πŸ”’
architect_upload_transcript_response πŸ”’
architect_user_storage πŸ”’
Resolves the configured database and typed Architect account declarations.
architect_valid_email πŸ”’
architect_valid_username πŸ”’
architect_validated_task_preview_info πŸ”’
Resolves preview workspace metadata through the configured Architect store.
architect_vault_paths πŸ”’
architect_view_editor_source_file_response πŸ”’
architect_write_preview_history πŸ”’
Persists the bounded preview edit history beside the generated source files.
architect_write_preview_source_file πŸ”’
ensure_architect_root_key πŸ”’
http_inline_binary_response πŸ”’
request_query_value πŸ”’
rewrite_architect_generated_preview_css_urls πŸ”’
rewrite_architect_generated_preview_forms πŸ”’
rewrite_architect_generated_preview_response πŸ”’
rewrite_architect_generated_preview_urls πŸ”’

Type AliasesΒ§

ArchitectLlmVendorConnectionRequest πŸ”’