6#ifndef PHAROS_NATIVE_ARTIFACT_EMIT_H
7#define PHAROS_NATIVE_ARTIFACT_EMIT_H
72 const char *manifest_text,
73 const char *artifact_generated_by,
74 const char *state_path,
75 const char *base_path,
77 const char *log_format,
78 const char *error_report_path,
80 const char *compiled_entrypoint,
100 const char *artifact_dir,
102 const char *state_path,
103 const char *base_path,
104 const char *log_path,
105 const char *log_format,
106 const char *error_report_path,
108 const char *host_profile,
109 const char *compiled_entrypoint
char * build_native_app_index_html(const char *app_id)
Builds the default index.html payload for a native app artifact.
char * native_website_artifact_dir(const char *build_dir, const char *target_id)
Builds the artifact directory path for a generated website target.
char * json_string_dup_native(const char *value)
Duplicates a string while escaping it for JSON string output.
char * native_website_report_path(const char *build_dir, const char *verb, const char *target_id)
Builds the report file path for a website build or status operation.
int count_substring_occurrences(const char *text, const char *needle)
Counts how many times a substring occurs in a string.
char * build_native_app_build_report_json(const char *artifact_dir, const char *app_id, const char *state_path, const char *base_path, const char *log_path, const char *log_format, const char *error_report_path, const char *debug, const char *host_profile, const char *compiled_entrypoint)
Builds a JSON report describing a native app build result.
char * build_artifact_local_app_manifest_json(const char *manifest_text, const char *artifact_generated_by, const char *state_path, const char *base_path, const char *log_path, const char *log_format, const char *error_report_path, const char *debug, const char *compiled_entrypoint, int route_count, int surface_count, int workflow_count)
Builds an artifact-localized copy of the app-owned manifest.
char * build_native_website_status_report_json(const char *report_id, const char *verb, const char *target_id, const char *artifact_dir)
Builds a JSON status report for a native website artifact.