NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
authoring.h
Go to the documentation of this file.
1
10#pragma once
11
12#include <neograph/api.h>
16
17#include <cstdint>
18#include <string>
19#include <string_view>
20#include <vector>
21
22namespace neograph::program {
23
25enum class AuthoringFrontend : std::uint8_t {
26 JavaScript,
27 TrustedCpp,
28};
29
30NEOGRAPH_PROGRAM_API std::string_view to_string(AuthoringFrontend frontend) noexcept;
31NEOGRAPH_PROGRAM_API AuthoringFrontend authoring_frontend_from_string(std::string_view value);
32
39 std::string source_id;
40 std::string source;
41 std::vector<ImportRef> imports;
42 std::vector<SourceMapEntry> source_map;
43};
44
45NEOGRAPH_PROGRAM_API ProgramSource make_javascript_source(JavaScriptPublicationRequest request);
46
48NEOGRAPH_PROGRAM_API ProgramBundle compile_javascript(const ProgramCompiler& compiler,
50
52NEOGRAPH_PROGRAM_API ProgramVersion publish_javascript(const ProgramCompiler& compiler,
53 ProgramCatalog& catalog,
55 ProgramAdmission admission);
56
66 StoredArtifactKind kind, bool translated, bool exact_legacy_runtime, bool recoverable_run);
67
68} // namespace neograph::program
NEOGRAPH_API export/import macro for shared-library builds.
NEOGRAPH_PROGRAM_API StoredArtifactClassificationRule classify_stored_artifact(StoredArtifactKind kind, bool translated, bool exact_legacy_runtime, bool recoverable_run)
Build the explicit cutover rule for a retained legacy artifact.
NEOGRAPH_PROGRAM_API ProgramBundle compile_javascript(const ProgramCompiler &compiler, JavaScriptPublicationRequest request)
Compile a JavaScript define()/main() module through the direct API.
AuthoringFrontend
The only source frontends admitted for new publication.
Definition authoring.h:25
NEOGRAPH_PROGRAM_API ProgramVersion publish_javascript(const ProgramCompiler &compiler, ProgramCatalog &catalog, JavaScriptPublicationRequest request, ProgramAdmission admission)
Compile and admit one JavaScript define()/main() module through the direct API.
Admission and process-local materialization of immutable Programs.
Explicit compatibility plans between admitted Program versions.
StoredArtifactKind
Stored source families to which the cutover rules apply.
Definition migration.h:32
Pure versioned Program source compiler.
A direct JavaScript publication request.
Definition authoring.h:38
Explicit policy result; adapters must not infer a compiler from JSON shape.
Definition migration.h:43