@hexagen-monaco/sync 0.5.2 → 0.7.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/dist/cli.js +1610 -620
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +24 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/domain/types.d.ts +8 -1
- package/dist/domain/types.d.ts.map +1 -1
- package/dist/fs-utils.d.ts +17 -4
- package/dist/fs-utils.d.ts.map +1 -1
- package/dist/generators/apps-framework-templates.d.ts +2 -1
- package/dist/generators/apps-framework-templates.d.ts.map +1 -1
- package/dist/generators/apps.d.ts.map +1 -1
- package/dist/generators/architecture-files.d.ts.map +1 -1
- package/dist/generators/barrels/recursive.d.ts +2 -3
- package/dist/generators/barrels/recursive.d.ts.map +1 -1
- package/dist/generators/barrels.d.ts +2 -3
- package/dist/generators/barrels.d.ts.map +1 -1
- package/dist/generators/cross-context.d.ts +5 -0
- package/dist/generators/cross-context.d.ts.map +1 -0
- package/dist/generators/eslint.d.ts +3 -1
- package/dist/generators/eslint.d.ts.map +1 -1
- package/dist/generators/layer-folders.d.ts +18 -6
- package/dist/generators/layer-folders.d.ts.map +1 -1
- package/dist/generators/package-json.d.ts +2 -3
- package/dist/generators/package-json.d.ts.map +1 -1
- package/dist/generators/port-analyzer.d.ts +38 -4
- package/dist/generators/port-analyzer.d.ts.map +1 -1
- package/dist/generators/reap.d.ts +7 -3
- package/dist/generators/reap.d.ts.map +1 -1
- package/dist/generators/root-file-templates.d.ts +4 -4
- package/dist/generators/root-file-templates.d.ts.map +1 -1
- package/dist/generators/root-files.d.ts.map +1 -1
- package/dist/generators/shared-kernel.d.ts +23 -0
- package/dist/generators/shared-kernel.d.ts.map +1 -0
- package/dist/generators/stubs.d.ts +13 -0
- package/dist/generators/stubs.d.ts.map +1 -1
- package/dist/generators/tsconfig.d.ts.map +1 -1
- package/dist/index.js +1441 -470
- package/dist/index.js.map +1 -1
- package/dist/journal.d.ts +64 -0
- package/dist/journal.d.ts.map +1 -0
- package/dist/migration-report.d.ts +13 -2
- package/dist/migration-report.d.ts.map +1 -1
- package/dist/results.d.ts +66 -0
- package/dist/results.d.ts.map +1 -1
- package/dist/scope-filter.d.ts +35 -0
- package/dist/scope-filter.d.ts.map +1 -0
- package/dist/sync-engine-helpers.d.ts.map +1 -1
- package/dist/sync-engine.d.ts +13 -1
- package/dist/sync-engine.d.ts.map +1 -1
- package/dist/templates/adobe-creative-production/manifest.json +2 -0
- package/dist/templates/adobe-express/manifest.json +2 -0
- package/dist/templates/adobe-firefly-composite/manifest.json +2 -0
- package/dist/templates/adobe-firefly-content-tagging/manifest.json +2 -0
- package/dist/templates/adobe-firefly-core/manifest.json +2 -0
- package/dist/templates/adobe-firefly-custom-models/manifest.json +2 -0
- package/dist/templates/adobe-firefly-generate/manifest.json +2 -0
- package/dist/templates/adobe-firefly-media/manifest.json +2 -0
- package/dist/templates/adobe-firefly-storage-azure/manifest.json +2 -0
- package/dist/templates/adobe-firefly-storage-gcs/manifest.json +2 -0
- package/dist/templates/adobe-firefly-storage-s3/manifest.json +2 -0
- package/dist/templates/adobe-firefly-upscale/manifest.json +2 -0
- package/dist/templates/adobe-illustrator/manifest.json +2 -0
- package/dist/templates/adobe-ims-spa/manifest.json +2 -0
- package/dist/templates/adobe-indesign/manifest.json +2 -0
- package/dist/templates/adobe-lightroom/manifest.json +2 -0
- package/dist/templates/adobe-photoshop/manifest.json +2 -0
- package/dist/templates/adobe-substance-3d/manifest.json +2 -0
- package/dist/templates/auth-mock/manifest.json +2 -0
- package/dist/templates/bedrock-agentcore-runtime/manifest.json +10 -2
- package/dist/templates/bedrock-agentcore-services/manifest.json +38 -9
- package/dist/templates/better-auth/manifest.json +2 -0
- package/dist/templates/bullmq/manifest.json +2 -0
- package/dist/templates/ci-github-actions/README.md +7 -0
- package/dist/templates/ci-github-actions/files/.github/dependabot.yml +16 -4
- package/dist/templates/ci-github-actions/files/.github/workflows/ci.yml +7 -3
- package/dist/templates/ci-github-actions/files/.github/workflows/preview.yml +20 -2
- package/dist/templates/ci-github-actions/manifest.json +26 -6
- package/dist/templates/clerk/manifest.json +2 -0
- package/dist/templates/design-system/manifest.json +14 -3
- package/dist/templates/docker/manifest.json +2 -0
- package/dist/templates/error-handling/manifest.json +2 -0
- package/dist/templates/eslint-no-console/manifest.json +2 -0
- package/dist/templates/github-oauth/manifest.json +2 -0
- package/dist/templates/google-oauth/manifest.json +2 -0
- package/dist/templates/langgraph/manifest.json +62 -15
- package/dist/templates/llm-adapter/manifest.json +2 -0
- package/dist/templates/magic-link/manifest.json +2 -0
- package/dist/templates/mcp-server/README.md +49 -0
- package/dist/templates/mcp-server/files/.env.mcp.example +6 -0
- package/dist/templates/mcp-server/files/.mcp.json.example +8 -0
- package/dist/templates/mcp-server/files/bin/cli.ts +15 -0
- package/dist/templates/mcp-server/files/src/infrastructure/mcp/prompts/example.prompt.ts +32 -0
- package/dist/templates/mcp-server/files/src/infrastructure/mcp/registry/register-all.ts +11 -0
- package/dist/templates/mcp-server/files/src/infrastructure/mcp/registry/tool-registry.test.ts +67 -0
- package/dist/templates/mcp-server/files/src/infrastructure/mcp/registry/tool-registry.ts +45 -0
- package/dist/templates/mcp-server/files/src/infrastructure/mcp/resources/example.resource.ts +28 -0
- package/dist/templates/mcp-server/files/src/infrastructure/mcp/sdk.ts +41 -0
- package/dist/templates/mcp-server/files/src/infrastructure/mcp/server.ts +52 -0
- package/dist/templates/mcp-server/files/src/infrastructure/mcp/tools/example.tool.test.ts +31 -0
- package/dist/templates/mcp-server/files/src/infrastructure/mcp/tools/example.tool.ts +74 -0
- package/dist/templates/mcp-server/files/src/infrastructure/mcp/transport/register-transports.ts +15 -0
- package/dist/templates/mcp-server/files/src/infrastructure/mcp/transport/stdio.ts +14 -0
- package/dist/templates/mcp-server/manifest.json +68 -0
- package/dist/templates/mcp-server-http/README.md +98 -0
- package/dist/templates/mcp-server-http/files/.env.mcp-http.example +22 -0
- package/dist/templates/mcp-server-http/files/src/infrastructure/mcp/auth/bearer.test.ts +54 -0
- package/dist/templates/mcp-server-http/files/src/infrastructure/mcp/auth/bearer.ts +49 -0
- package/dist/templates/mcp-server-http/files/src/infrastructure/mcp/auth/oauth.test.ts +50 -0
- package/dist/templates/mcp-server-http/files/src/infrastructure/mcp/auth/oauth.ts +53 -0
- package/dist/templates/mcp-server-http/files/src/infrastructure/mcp/guard.test.ts +75 -0
- package/dist/templates/mcp-server-http/files/src/infrastructure/mcp/guard.ts +26 -0
- package/dist/templates/mcp-server-http/files/src/infrastructure/mcp/transport/http.ts +94 -0
- package/dist/templates/mcp-server-http/files/src/infrastructure/mcp/transport/register-transports.ts +15 -0
- package/dist/templates/mcp-server-http/manifest.json +56 -0
- package/dist/templates/microsoft-entra/manifest.json +2 -0
- package/dist/templates/nextauth/manifest.json +2 -0
- package/dist/templates/observability/manifest.json +10 -2
- package/dist/templates/rate-limiting/manifest.json +2 -0
- package/dist/templates/shared-types/manifest.json +2 -0
- package/dist/templates/supabase/manifest.json +2 -0
- package/dist/templates/supabase-auth/manifest.json +2 -0
- package/dist/toolchain-version.d.ts +14 -0
- package/dist/toolchain-version.d.ts.map +1 -0
- package/dist/types/manifest/apps.d.ts +12 -1
- package/dist/types/manifest/apps.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/application/use-cases/stub-generation.use-case.d.ts +0 -23
- package/dist/application/use-cases/stub-generation.use-case.d.ts.map +0 -1
- package/dist/generators/migration-assistant.d.ts +0 -7
- package/dist/generators/migration-assistant.d.ts.map +0 -1
- package/dist/generators/migration-audit.d.ts +0 -28
- package/dist/generators/migration-audit.d.ts.map +0 -1
- package/dist/generators/migration-stubs.d.ts +0 -7
- package/dist/generators/migration-stubs.d.ts.map +0 -1
- package/dist/generators/test-generator.d.ts +0 -7
- package/dist/generators/test-generator.d.ts.map +0 -1
- package/dist/generators/test-templates/data-builder.d.ts +0 -2
- package/dist/generators/test-templates/data-builder.d.ts.map +0 -1
- package/dist/generators/test-templates/enhanced-test-double.d.ts +0 -2
- package/dist/generators/test-templates/enhanced-test-double.d.ts.map +0 -1
- package/dist/generators/test-templates/index.d.ts +0 -5
- package/dist/generators/test-templates/index.d.ts.map +0 -1
- package/dist/generators/test-templates/integration-test.d.ts +0 -2
- package/dist/generators/test-templates/integration-test.d.ts.map +0 -1
- package/dist/generators/test-templates/unit-test.d.ts +0 -2
- package/dist/generators/test-templates/unit-test.d.ts.map +0 -1
- package/dist/generators/wiring.d.ts +0 -20
- package/dist/generators/wiring.d.ts.map +0 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { LoggerPort } from "@hexagen/shared";
|
|
2
|
+
/** What sync did to the file — determines the inverse op on rollback. */
|
|
3
|
+
export type JournalEntryKind = "created" | "overwritten" | "deleted";
|
|
4
|
+
export interface JournalEntry {
|
|
5
|
+
/** Absolute path of the mutated file. */
|
|
6
|
+
path: string;
|
|
7
|
+
kind: JournalEntryKind;
|
|
8
|
+
/**
|
|
9
|
+
* Full pre-mutation content; `null` iff the file did not exist (kind
|
|
10
|
+
* "created"). Held in memory for the run's lifetime — generated artifacts
|
|
11
|
+
* are small text files, and a journal that spills to disk could itself
|
|
12
|
+
* fail on the same broken substrate it exists to recover from.
|
|
13
|
+
*/
|
|
14
|
+
preContent: string | null;
|
|
15
|
+
}
|
|
16
|
+
export interface RollbackFailure {
|
|
17
|
+
path: string;
|
|
18
|
+
/** The inverse op that was attempted, for the operator-facing print. */
|
|
19
|
+
intended: string;
|
|
20
|
+
error: string;
|
|
21
|
+
}
|
|
22
|
+
export interface RollbackOutcome {
|
|
23
|
+
attempted: number;
|
|
24
|
+
restored: number;
|
|
25
|
+
failures: RollbackFailure[];
|
|
26
|
+
}
|
|
27
|
+
export declare class SyncJournal {
|
|
28
|
+
private entries;
|
|
29
|
+
/**
|
|
30
|
+
* Record a write BEFORE it is attempted. `preContent: null` means the file
|
|
31
|
+
* did not exist (a create); a string is the full pre-image of an overwrite.
|
|
32
|
+
* Over-recording is safe: rolling back a write that never happened either
|
|
33
|
+
* restores identical content or unlinks a file that is not there (ENOENT
|
|
34
|
+
* tolerated below). Under-recording loses user data — so mutation sites
|
|
35
|
+
* record first, mutate second.
|
|
36
|
+
*/
|
|
37
|
+
recordWrite(filePath: string, preContent: string | null): void;
|
|
38
|
+
/** Record a deletion BEFORE the unlink, with the full pre-image. */
|
|
39
|
+
recordDelete(filePath: string, preContent: string): void;
|
|
40
|
+
get size(): number;
|
|
41
|
+
/**
|
|
42
|
+
* Human-readable journal lines (workspace-relative), oldest first — printed
|
|
43
|
+
* verbatim when a failed run must NOT roll back (--allow-dirty).
|
|
44
|
+
*/
|
|
45
|
+
describeEntries(workspaceRoot: string): string[];
|
|
46
|
+
/**
|
|
47
|
+
* Replay the journal in REVERSE order: restore pre-images, unlink created
|
|
48
|
+
* files. Reverse order makes repeated writes to the same path converge on
|
|
49
|
+
* the OLDEST pre-image (pass-1 barrel pre-image is restored last), i.e. the
|
|
50
|
+
* true pre-sync state.
|
|
51
|
+
*
|
|
52
|
+
* Per-entry best-effort: a failing inverse op is collected and replay
|
|
53
|
+
* CONTINUES — restoring nine of ten files beats aborting at the first
|
|
54
|
+
* error. The caller prints the failures; nothing here (or anywhere) falls
|
|
55
|
+
* back to a git-wide reset/clean.
|
|
56
|
+
*
|
|
57
|
+
* Restores use a plain writeFile, not the atomic tmp+rename protocol: the
|
|
58
|
+
* rollback may be running on the same broken substrate that failed the
|
|
59
|
+
* sync, and the simplest possible write maximizes the odds of getting the
|
|
60
|
+
* user's bytes back on disk.
|
|
61
|
+
*/
|
|
62
|
+
rollback(logger: LoggerPort, workspaceRoot: string): Promise<RollbackOutcome>;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=journal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"journal.d.ts","sourceRoot":"","sources":["../src/journal.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,yEAAyE;AACzE,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,CAAC;AAErE,MAAM,WAAW,YAAY;IAC3B,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,gBAAgB,CAAC;IACvB;;;;;OAKG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,eAAe,EAAE,CAAC;CAC7B;AAED,qBAAa,WAAW;IACtB,OAAO,CAAC,OAAO,CAAsB;IAErC;;;;;;;OAOG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAQ9D,oEAAoE;IACpE,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI;IAIxD,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;;OAGG;IACH,eAAe,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,EAAE;IAMhD;;;;;;;;;;;;;;;OAeG;IACG,QAAQ,CACZ,MAAM,EAAE,UAAU,EAClB,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,eAAe,CAAC;CAmD5B"}
|
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
import type { SyncConfig } from "./config.js";
|
|
2
|
+
/**
|
|
3
|
+
* Closed audit vocabulary (PR-B1, promised in the PR-A2 review): every tag a
|
|
4
|
+
* generator may record, enforced at the call sites through ReportRecorder
|
|
5
|
+
* (domain/types.ts) and at the sink through `record()` below. The previous
|
|
6
|
+
* shape was an honest-but-open `string` after review #315 showed a
|
|
7
|
+
* five-member union silently laundering the rest through a cast. PR-B2 (D6)
|
|
8
|
+
* deleted the dead generator family (wiring, test-generator, the migration-*
|
|
9
|
+
* trio) that owned every "info" recorder, and "warn" had no recorder at all —
|
|
10
|
+
* both dropped here as promised; "warning" is the live spelling (eslint.ts).
|
|
11
|
+
*/
|
|
12
|
+
export type ReportEntryType = "created" | "updated" | "deleted" | "skipped" | "blocked" | "warning" | "error";
|
|
2
13
|
export interface ReportEntry {
|
|
3
|
-
type:
|
|
14
|
+
type: ReportEntryType;
|
|
4
15
|
target: string;
|
|
5
16
|
message?: string;
|
|
6
17
|
}
|
|
7
18
|
export declare class MigrationReport {
|
|
8
19
|
private entries;
|
|
9
|
-
record(type:
|
|
20
|
+
record(type: ReportEntryType, target: string, message?: string): void;
|
|
10
21
|
writeReport(config: SyncConfig): Promise<void>;
|
|
11
22
|
}
|
|
12
23
|
//# sourceMappingURL=migration-report.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration-report.d.ts","sourceRoot":"","sources":["../src/migration-report.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"migration-report.d.ts","sourceRoot":"","sources":["../src/migration-report.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C;;;;;;;;;GASG;AACH,MAAM,MAAM,eAAe,GACvB,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,OAAO,CAAC;AAEZ,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,eAAe;IAC1B,OAAO,CAAC,OAAO,CAAqB;IACpC,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;IAGxD,WAAW,CAAC,MAAM,EAAE,UAAU;CAuErC"}
|
package/dist/results.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Outcome vocabulary of `safeWriteFileAtomic` (fs-utils.ts). Declared here so
|
|
3
|
+
* every generator routes the same closed set through `recordWriteStatus`
|
|
4
|
+
* below instead of re-spelling the union (pre-B2, every generator hand-rolled
|
|
5
|
+
* its own copy of the routing if-chain and two of them miscounted — see the
|
|
6
|
+
* helper's doc).
|
|
7
|
+
*/
|
|
8
|
+
export type WriteStatus = "created" | "updated" | "unchanged" | "skipped" | "protected";
|
|
1
9
|
/**
|
|
2
10
|
* Result shape returned by each individual generator function.
|
|
3
11
|
*/
|
|
@@ -5,6 +13,20 @@ export interface GeneratorResult {
|
|
|
5
13
|
created: string[];
|
|
6
14
|
skipped: string[];
|
|
7
15
|
updated: string[];
|
|
16
|
+
/**
|
|
17
|
+
* Paths removed (or, under --dry-run, that WOULD be removed) by a generator.
|
|
18
|
+
* Introduced in PR-A2 for the empty-barrel unlink path — deletions were
|
|
19
|
+
* previously miscounted into `created`; surfaced in the engine summary since
|
|
20
|
+
* PR-B2 (truthful counts).
|
|
21
|
+
*/
|
|
22
|
+
deleted: string[];
|
|
23
|
+
/**
|
|
24
|
+
* Paths whose generated content already matched on disk byte-for-byte
|
|
25
|
+
* (PR-B2, RCA #5). A converged tree lands everything here — `created`/
|
|
26
|
+
* `updated`/`deleted` mean an actual (or, under --dry-run, a planned)
|
|
27
|
+
* mutation, which is what `sync --check` gates on.
|
|
28
|
+
*/
|
|
29
|
+
unchanged: string[];
|
|
8
30
|
totalOps: number;
|
|
9
31
|
summary?: string;
|
|
10
32
|
error?: Error;
|
|
@@ -13,4 +35,48 @@ export interface GeneratorResult {
|
|
|
13
35
|
* Factory for empty result.
|
|
14
36
|
*/
|
|
15
37
|
export declare function createEmptyResult(): GeneratorResult;
|
|
38
|
+
/**
|
|
39
|
+
* Run-level aggregate returned by `SyncEngine.run()` (PR-B2). Counts sum every
|
|
40
|
+
* generator's buckets; `totalOps` is the number of actual (real run) or planned
|
|
41
|
+
* (--dry-run) mutations — creates + updates + deletes. A converged tree
|
|
42
|
+
* reports `totalOps: 0`, which is exactly what `sync --check` gates on (the
|
|
43
|
+
* CLI exits non-zero iff `totalOps > 0`; the exit-code decision stays in
|
|
44
|
+
* cli.ts per the A1 doctrine — the engine only reports).
|
|
45
|
+
*
|
|
46
|
+
* `errors` counts generators that failed-soft — caught their own exception
|
|
47
|
+
* into `result.error` (the Wave-2e "skip this package, do not abort" contract:
|
|
48
|
+
* tsconfig, eslint, apps, root-files) instead of throwing. A failed generator
|
|
49
|
+
* contributes ZERO ops, so without this count a run that could not even plan a
|
|
50
|
+
* file still printed `Total ops : 0` and exited 0 — errors masqueraded as
|
|
51
|
+
* convergence (PR-B2 review, B-1). The CLI exits non-zero whenever
|
|
52
|
+
* `errors > 0`, on real runs and previews alike; `totalOps` deliberately does
|
|
53
|
+
* NOT include errors (it means "planned mutations", and a failure plans
|
|
54
|
+
* nothing — the two are separate facts and separate exit reasons).
|
|
55
|
+
*/
|
|
56
|
+
export interface SyncRunSummary {
|
|
57
|
+
created: number;
|
|
58
|
+
updated: number;
|
|
59
|
+
deleted: number;
|
|
60
|
+
unchanged: number;
|
|
61
|
+
skipped: number;
|
|
62
|
+
totalOps: number;
|
|
63
|
+
/** Generators that caught a failure into `result.error` this run. */
|
|
64
|
+
errors: number;
|
|
65
|
+
durationMs: number;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* The single routing truth from a write status to the result buckets
|
|
69
|
+
* (PR-B2, RCA #5). Before this helper each generator hand-rolled the same
|
|
70
|
+
* if-chain, and two of them lied: shared-kernel counted updates as `created`
|
|
71
|
+
* and `unchanged` as `skipped`; layer-folders counted directory mkdirs as
|
|
72
|
+
* `created` on every run. Routing rules:
|
|
73
|
+
*
|
|
74
|
+
* created / updated → their bucket, +1 totalOps (a real or planned change)
|
|
75
|
+
* unchanged → `unchanged`, NOT an op (nothing was or would be written)
|
|
76
|
+
* skipped / protected → `skipped`, NOT an op (deliberately left alone)
|
|
77
|
+
*
|
|
78
|
+
* Deletions don't flow through here — they are not a `safeWriteFileAtomic`
|
|
79
|
+
* outcome; the deleting generator pushes `result.deleted` itself (recursive.ts).
|
|
80
|
+
*/
|
|
81
|
+
export declare function recordWriteStatus(result: GeneratorResult, filePath: string, status: WriteStatus): void;
|
|
16
82
|
//# sourceMappingURL=results.d.ts.map
|
package/dist/results.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"results.d.ts","sourceRoot":"","sources":["../src/results.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,eAAe,
|
|
1
|
+
{"version":3,"file":"results.d.ts","sourceRoot":"","sources":["../src/results.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GACnB,SAAS,GACT,SAAS,GACT,WAAW,GACX,SAAS,GACT,WAAW,CAAC;AAEhB;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB;;;;;OAKG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB;;;;;OAKG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,eAAe,CASnD;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,eAAe,EACvB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,WAAW,GAClB,IAAI,CAaN"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scope filtering for `hexagen sync --only <pattern…>`.
|
|
3
|
+
*
|
|
4
|
+
* Conservative "direct targets only" semantics — a scope pattern limits which
|
|
5
|
+
* workspace-relative paths the engine is allowed to write, with **no dependency
|
|
6
|
+
* fan-out**. Regenerating one package does not pull in the packages that
|
|
7
|
+
* reference it; for cross-package changes, run a full sync. This keeps `--only`
|
|
8
|
+
* predictable: what you name is exactly what can be written.
|
|
9
|
+
*
|
|
10
|
+
* Pattern forms (a path is in scope if it matches ANY pattern):
|
|
11
|
+
*
|
|
12
|
+
* - **Plain path / directory prefix** (no glob metacharacters): matches the
|
|
13
|
+
* path itself and everything beneath it. `packages/shared` matches
|
|
14
|
+
* `packages/shared` and `packages/shared/src/index.ts`.
|
|
15
|
+
* - **Glob** (contains `*` or `?`): matched against the FULL relative path,
|
|
16
|
+
* anchored. `*` matches any run of non-separator characters, `**` matches
|
|
17
|
+
* any run including the `/` separator, and `?` matches a single
|
|
18
|
+
* non-separator character. A single `*` therefore stays within one path
|
|
19
|
+
* segment (so it matches a package's own `tsconfig.json` but not one nested
|
|
20
|
+
* under `src`), while a double-star reaches any depth (e.g. an `index.ts`
|
|
21
|
+
* anywhere beneath a package). See the unit tests for concrete cases.
|
|
22
|
+
*
|
|
23
|
+
* Intentionally dependency-free (no minimatch/picomatch) — the `sync` package
|
|
24
|
+
* keeps its runtime surface lean, and these semantics are a deliberately small
|
|
25
|
+
* subset rather than full POSIX globbing.
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* True when `relativePath` falls within at least one of the `--only` scope
|
|
29
|
+
* patterns. An empty / undefined pattern list means "no scope filter" — callers
|
|
30
|
+
* should not invoke this when the user passed no `--only`, but it returns
|
|
31
|
+
* `false` for an empty list so a misuse fails closed rather than writing
|
|
32
|
+
* everything.
|
|
33
|
+
*/
|
|
34
|
+
export declare function matchesScope(relativePath: string, patterns: readonly string[]): boolean;
|
|
35
|
+
//# sourceMappingURL=scope-filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scope-filter.d.ts","sourceRoot":"","sources":["../src/scope-filter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AA0CH;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC1B,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,SAAS,MAAM,EAAE,GAC1B,OAAO,CAWT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-engine-helpers.d.ts","sourceRoot":"","sources":["../src/sync-engine-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAEvE,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,eAAe,CAAC;IAC3B,SAAS,EAAE,eAAe,CAAC;IAC3B,OAAO,EAAE,eAAe,CAAC;IACzB,IAAI,EAAE,eAAe,CAAC;IACtB,SAAS,EAAE,eAAe,CAAC;IAC3B,MAAM,EAAE,eAAe,CAAC;IACxB,KAAK,EAAE,eAAe,CAAC;IACvB,IAAI,EAAE,eAAe,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,eAAe,EAAE,GAAG,EAAE,eAAe,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"sync-engine-helpers.d.ts","sourceRoot":"","sources":["../src/sync-engine-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAEvE,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,eAAe,CAAC;IAC3B,SAAS,EAAE,eAAe,CAAC;IAC3B,OAAO,EAAE,eAAe,CAAC;IACzB,IAAI,EAAE,eAAe,CAAC;IACtB,SAAS,EAAE,eAAe,CAAC;IAC3B,MAAM,EAAE,eAAe,CAAC;IACxB,KAAK,EAAE,eAAe,CAAC;IACvB,IAAI,EAAE,eAAe,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,eAAe,EAAE,GAAG,EAAE,eAAe,GAAG,IAAI,CAgB7E;AAED,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,eAAe,EAC1B,UAAU,EAAE,eAAe,GAC1B,eAAe,CAuEjB"}
|
package/dist/sync-engine.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SyncFlags } from "./config.js";
|
|
2
|
+
import { type SyncRunSummary } from "./results.js";
|
|
2
3
|
import type { Manifest } from "./types/manifest.js";
|
|
3
4
|
export interface SyncEngineOptions {
|
|
4
5
|
targetRoot?: string;
|
|
@@ -6,6 +7,8 @@ export interface SyncEngineOptions {
|
|
|
6
7
|
}
|
|
7
8
|
export declare class SyncEngine {
|
|
8
9
|
private report;
|
|
10
|
+
private journal;
|
|
11
|
+
private failures;
|
|
9
12
|
private partialConfig;
|
|
10
13
|
private fullConfig;
|
|
11
14
|
private manifest;
|
|
@@ -14,8 +17,17 @@ export declare class SyncEngine {
|
|
|
14
17
|
constructor(flags: SyncFlags, options?: SyncEngineOptions);
|
|
15
18
|
private getInitOptions;
|
|
16
19
|
private getConfig;
|
|
20
|
+
/**
|
|
21
|
+
* Record a failed-soft generator result (B-1). Called at every site that
|
|
22
|
+
* receives a GeneratorResult, including the ones that never set `error`
|
|
23
|
+
* today — the check is one truthy test, and a future generator adopting the
|
|
24
|
+
* catch-into-result contract is then surfaced without anyone remembering
|
|
25
|
+
* this seam. `row` matches the summary-table label so the FAILED line and
|
|
26
|
+
* the table read as one report.
|
|
27
|
+
*/
|
|
28
|
+
private noteFailure;
|
|
17
29
|
private ensureDirectories;
|
|
18
30
|
private generateCoreArtifacts;
|
|
19
|
-
run(): Promise<
|
|
31
|
+
run(): Promise<SyncRunSummary>;
|
|
20
32
|
}
|
|
21
33
|
//# sourceMappingURL=sync-engine.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-engine.d.ts","sourceRoot":"","sources":["../src/sync-engine.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAc,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"sync-engine.d.ts","sourceRoot":"","sources":["../src/sync-engine.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAc,MAAM,aAAa,CAAC;AAkBpD,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAkBpD,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,qBAAa,UAAU;IACrB,OAAO,CAAC,MAAM,CAAyB;IAKvC,OAAO,CAAC,OAAO,CAAqB;IAYpC,OAAO,CAAC,QAAQ,CAA+C;IAC/D,OAAO,CAAC,aAAa,CAAY;IACjC,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,QAAQ,CAAgB;IAChC,OAAO,CAAC,aAAa,CAAc;IACnC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAoB;gBAEjC,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,iBAAiB;IAKzD,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,SAAS;IAOjB;;;;;;;OAOG;IACH,OAAO,CAAC,WAAW;YAML,iBAAiB;YAmCjB,qBAAqB;IAiG7B,GAAG,IAAI,OAAO,CAAC,cAAc,CAAC;CA+SrC"}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
"name": "Adobe Creative Production API",
|
|
4
4
|
"description": "Creative Production batch automation for Adobe Firefly Services (image.adobe.io): a CreativeProductionPort + adapter that maps a published workflow over N assets in one async batch job and surfaces per-asset status (partial success) over the adobe-firefly-core foundation. Async batch.",
|
|
5
5
|
"version": "1.0.0",
|
|
6
|
+
"provides": "external-integration.out-adapter",
|
|
7
|
+
"scope": "context",
|
|
6
8
|
"requires": ["adobe-firefly-core"],
|
|
7
9
|
"conflicts": [],
|
|
8
10
|
"questions": [],
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
"name": "Adobe Express API",
|
|
4
4
|
"description": "Express batch automation for Adobe Firefly Services (image.adobe.io): an ExpressAutomationPort + adapter that renders many variants from a published Express template in one async batch job — the localization use case (translated copy + regional imagery per locale) over the adobe-firefly-core foundation. Async.",
|
|
5
5
|
"version": "1.0.0",
|
|
6
|
+
"provides": "external-integration.out-adapter",
|
|
7
|
+
"scope": "context",
|
|
6
8
|
"requires": ["adobe-firefly-core"],
|
|
7
9
|
"conflicts": [],
|
|
8
10
|
"questions": [
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
"name": "Adobe Firefly — Composite",
|
|
4
4
|
"description": "Composite Operations service for Adobe Firefly: a CompositePort + adapter that blends a product image into a scene (matching tone/lighting/shadow) over the adobe-firefly-core foundation. Async; returns multiple candidate outputs (the port returns an array of hrefs).",
|
|
5
5
|
"version": "1.0.0",
|
|
6
|
+
"provides": "external-integration.out-adapter",
|
|
7
|
+
"scope": "context",
|
|
6
8
|
"requires": ["adobe-firefly-core"],
|
|
7
9
|
"conflicts": [],
|
|
8
10
|
"questions": [
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
"name": "Adobe Firefly — Content Tagging",
|
|
4
4
|
"description": "Content Tagging service for Adobe Firefly: a ContentTaggingPort + adapter that returns structured tags/metadata for an image (the one service whose result is JSON, not an asset — exercises the foundation's non-asset path). Sync or short async; presigns the input only.",
|
|
5
5
|
"version": "1.0.0",
|
|
6
|
+
"provides": "external-integration.out-adapter",
|
|
7
|
+
"scope": "context",
|
|
6
8
|
"requires": ["adobe-firefly-core"],
|
|
7
9
|
"conflicts": [],
|
|
8
10
|
"questions": [
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
"name": "Adobe Firefly Services — Core",
|
|
4
4
|
"description": "Shared foundation for Adobe Firefly Services: IMS OAuth Server-to-Server token provider (cached), a base REST client (x-api-key + bearer, retry, timeout), the async job port (polling or webhook), a presigned-URL storage seam (passthrough default), and Adobe error classification. Service addons require this and add one port + adapter each.",
|
|
5
5
|
"version": "1.0.0",
|
|
6
|
+
"provides": "external-integration.out-adapter",
|
|
7
|
+
"scope": "context",
|
|
6
8
|
"requires": ["env-setup", "error-handling"],
|
|
7
9
|
"conflicts": [],
|
|
8
10
|
"questions": [
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
"name": "Adobe Firefly — Custom Models",
|
|
4
4
|
"description": "Custom Models (training + inference) for Adobe Firefly Services (firefly-api.adobe.io): a CustomModelPort + adapter to train a brand-tuned model from a curated dataset, check status, list models, and generate with a trained model, over the adobe-firefly-core foundation. Async, long-running, webhook-friendly via FireflyJobPort.",
|
|
5
5
|
"version": "1.0.0",
|
|
6
|
+
"provides": "external-integration.out-adapter",
|
|
7
|
+
"scope": "context",
|
|
6
8
|
"requires": ["adobe-firefly-core"],
|
|
7
9
|
"conflicts": [],
|
|
8
10
|
"questions": [
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
"name": "Adobe Firefly — Generate",
|
|
4
4
|
"description": "Firefly Generate API (the flagship service): an ImageGenerationPort + adapter for text-to-image and the image-edit operations (generative fill/expand, image-to-image, style transfer) over the adobe-firefly-core foundation. Async via FireflyJobPort; presigned IO; content-credentials and safety flags pass through as port options.",
|
|
5
5
|
"version": "1.0.0",
|
|
6
|
+
"provides": "external-integration.out-adapter",
|
|
7
|
+
"scope": "context",
|
|
6
8
|
"requires": ["adobe-firefly-core"],
|
|
7
9
|
"conflicts": [],
|
|
8
10
|
"questions": [
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
"name": "Adobe Firefly — Audio/Video (Media)",
|
|
4
4
|
"description": "Audio/Video (Media) generation for Adobe Firefly Services (firefly-api.adobe.io): a MediaGenerationPort + adapter for text-to-video, image-to-video, audio/video translation, speech, and sound effects over the adobe-firefly-core foundation. Async and LONG (minutes) via FireflyJobPort; webhook job_mode strongly recommended. Partner models (Veo/Runway/Kling/ElevenLabs) are opaque model ids where entitled — no partner SDKs.",
|
|
5
5
|
"version": "1.0.0",
|
|
6
|
+
"provides": "external-integration.out-adapter",
|
|
7
|
+
"scope": "context",
|
|
6
8
|
"requires": ["adobe-firefly-core"],
|
|
7
9
|
"conflicts": [],
|
|
8
10
|
"questions": [
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
"name": "Adobe Firefly — Azure Blob Presigned Storage",
|
|
4
4
|
"description": "Registers an Azure Blob Storage presigner for the adobe-firefly-core storage seam: mints read SAS URLs for Firefly inputs and create/write SAS URLs for outputs (storage: \"external\"). Signs with an account key, or a managed-identity user-delegation key when no key is set. Mutually exclusive with the S3/GCS presigners. Install @azure/storage-blob + @azure/identity.",
|
|
5
5
|
"version": "1.0.0",
|
|
6
|
+
"provides": "external-integration.out-adapter",
|
|
7
|
+
"scope": "context",
|
|
6
8
|
"requires": ["adobe-firefly-core"],
|
|
7
9
|
"conflicts": ["adobe-firefly-storage-s3", "adobe-firefly-storage-gcs"],
|
|
8
10
|
"questions": [
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
"name": "Adobe Firefly — GCS Presigned Storage",
|
|
4
4
|
"description": "Registers a Google Cloud Storage presigner for the adobe-firefly-core storage seam: signs V4 read URLs for Firefly inputs and V4 write URLs for outputs (storage: \"external\"). Mutually exclusive with the S3/Azure presigners. Install @google-cloud/storage.",
|
|
5
5
|
"version": "1.0.0",
|
|
6
|
+
"provides": "external-integration.out-adapter",
|
|
7
|
+
"scope": "context",
|
|
6
8
|
"requires": ["adobe-firefly-core"],
|
|
7
9
|
"conflicts": ["adobe-firefly-storage-s3", "adobe-firefly-storage-azure"],
|
|
8
10
|
"questions": [
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
"name": "Adobe Firefly — S3 Presigned Storage",
|
|
4
4
|
"description": "Registers an Amazon S3 presigner for the adobe-firefly-core storage seam: presigns GET URLs for Firefly inputs and PUT URLs for outputs (storage: \"external\"). Mutually exclusive with the GCS/Azure presigners. Install @aws-sdk/client-s3 + @aws-sdk/s3-request-presigner.",
|
|
5
5
|
"version": "1.0.0",
|
|
6
|
+
"provides": "external-integration.out-adapter",
|
|
7
|
+
"scope": "context",
|
|
6
8
|
"requires": ["adobe-firefly-core"],
|
|
7
9
|
"conflicts": ["adobe-firefly-storage-gcs", "adobe-firefly-storage-azure"],
|
|
8
10
|
"questions": [
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
"name": "Adobe Firefly — Upscale",
|
|
4
4
|
"description": "Image Upscale service for Adobe Firefly. Adds an UpscalePort + adapter that submits an async upscale job through the adobe-firefly-core foundation (IMS auth, REST client, job port, presigned storage). The lightest service — a good end-to-end validation of the foundation.",
|
|
5
5
|
"version": "1.0.0",
|
|
6
|
+
"provides": "external-integration.out-adapter",
|
|
7
|
+
"scope": "context",
|
|
6
8
|
"requires": ["adobe-firefly-core"],
|
|
7
9
|
"conflicts": [],
|
|
8
10
|
"questions": [
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
"name": "Adobe Illustrator API",
|
|
4
4
|
"description": "Illustrator automation for Adobe Firefly Services (image.adobe.io): an IllustratorPort + adapter for artboard rendering, variable-data merge, and vector scaling (vector→raster at arbitrary scale — ads to billboards) over the adobe-firefly-core foundation. Async.",
|
|
5
5
|
"version": "1.0.0",
|
|
6
|
+
"provides": "external-integration.out-adapter",
|
|
7
|
+
"scope": "context",
|
|
6
8
|
"requires": ["adobe-firefly-core"],
|
|
7
9
|
"conflicts": [],
|
|
8
10
|
"questions": [
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
"name": "Adobe IMS SPA (PKCE)",
|
|
4
4
|
"description": "Modern Adobe IMS Single Page App + PKCE flow: login, callback, logout routes, AES-256-GCM token store, silent auto-refresh, and a root middleware that protects configured paths and validates IMS sessions while still honouring AUTH_MODE=mock as a dev short-circuit.",
|
|
5
5
|
"version": "2.0.0",
|
|
6
|
+
"provides": "platform.auth",
|
|
7
|
+
"scope": "project",
|
|
6
8
|
"requires": ["shared-types", "auth-mock", "env-setup"],
|
|
7
9
|
"conflicts": [
|
|
8
10
|
"nextauth",
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
"name": "Adobe InDesign API",
|
|
4
4
|
"description": "InDesign automation for Adobe Firefly Services (image.adobe.io): an InDesignPort + adapter for data merge (template + data source), layout rendering, and PDF export over the adobe-firefly-core foundation. Async.",
|
|
5
5
|
"version": "1.0.0",
|
|
6
|
+
"provides": "external-integration.out-adapter",
|
|
7
|
+
"scope": "context",
|
|
6
8
|
"requires": ["adobe-firefly-core"],
|
|
7
9
|
"conflicts": [],
|
|
8
10
|
"questions": [
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
"name": "Adobe Lightroom API",
|
|
4
4
|
"description": "Lightroom automation for Adobe Firefly Services (image.adobe.io/lrService): a LightroomPort + adapter for auto-tone, preset application, and parametric edits over the adobe-firefly-core foundation. Async, batch-oriented photo editing / color grading.",
|
|
5
5
|
"version": "1.0.0",
|
|
6
|
+
"provides": "external-integration.out-adapter",
|
|
7
|
+
"scope": "context",
|
|
6
8
|
"requires": ["adobe-firefly-core"],
|
|
7
9
|
"conflicts": [],
|
|
8
10
|
"questions": [
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
"name": "Adobe Photoshop API",
|
|
4
4
|
"description": "Photoshop automation for Adobe Firefly Services (image.adobe.io/pie/psdService): a PhotoshopAutomationPort + adapter for Smart Object replacement, text-layer edits, action JSON, crop, and PSD rendering over the adobe-firefly-core foundation. Async; inputs are named layers in a pre-authored .psd.",
|
|
5
5
|
"version": "1.0.0",
|
|
6
|
+
"provides": "external-integration.out-adapter",
|
|
7
|
+
"scope": "context",
|
|
6
8
|
"requires": ["adobe-firefly-core"],
|
|
7
9
|
"conflicts": [],
|
|
8
10
|
"questions": [
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
"name": "Adobe Substance 3D API",
|
|
4
4
|
"description": "Substance 3D automation for Adobe Firefly Services (image.adobe.io): a Substance3DPort + adapter for scene render, composite, and relight over the adobe-firefly-core foundation. Async, compute-heavy — the longest-running Firefly jobs; polled by status URL (image.adobe.io services don't deliver Firefly webhooks) and the poll has no max-wait cap, so long renders aren't cut off.",
|
|
5
5
|
"version": "1.0.0",
|
|
6
|
+
"provides": "external-integration.out-adapter",
|
|
7
|
+
"scope": "context",
|
|
6
8
|
"requires": ["adobe-firefly-core"],
|
|
7
9
|
"conflicts": [],
|
|
8
10
|
"questions": [
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
"name": "Auth Mock",
|
|
4
4
|
"description": "Dev-only root middleware that injects shared-types' MOCK_USER as x-user-context when AUTH_MODE=mock. Real auth providers ship their own middleware that overwrites this one and still honours AUTH_MODE=mock as a dev short-circuit.",
|
|
5
5
|
"version": "3.0.0",
|
|
6
|
+
"provides": "platform.auth",
|
|
7
|
+
"scope": "project",
|
|
6
8
|
"requires": ["shared-types", "env-setup"],
|
|
7
9
|
"conflicts": [],
|
|
8
10
|
"questions": [
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
"id": "bedrock-agentcore-runtime",
|
|
3
3
|
"name": "Bedrock AgentCore Runtime",
|
|
4
4
|
"description": "Deploy the Hexagen TypeScript server to Amazon Bedrock AgentCore Runtime as an ARM64 container implementing the HTTP contract (POST /invocations, GET /ping). Generates agentcore.json, an IAM execution policy, and an optional deploy GitHub Action — no Python agent scaffolding.",
|
|
5
|
+
"provides": "platform.runtime",
|
|
6
|
+
"scope": "project",
|
|
5
7
|
"version": "1.0.0",
|
|
6
8
|
"requires": ["docker", "env-setup"],
|
|
7
9
|
"conflicts": [],
|
|
@@ -68,11 +70,17 @@
|
|
|
68
70
|
".env.agentcore.example",
|
|
69
71
|
{
|
|
70
72
|
"path": ".github/workflows/deploy-agentcore.yml",
|
|
71
|
-
"when": {
|
|
73
|
+
"when": {
|
|
74
|
+
"answer": "deploy_ci",
|
|
75
|
+
"equals": true
|
|
76
|
+
}
|
|
72
77
|
},
|
|
73
78
|
{
|
|
74
79
|
"path": "infra/agentcore-stack.ts",
|
|
75
|
-
"when": {
|
|
80
|
+
"when": {
|
|
81
|
+
"answer": "provision",
|
|
82
|
+
"equals": "cdk"
|
|
83
|
+
}
|
|
76
84
|
}
|
|
77
85
|
],
|
|
78
86
|
"checklist": [
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
"id": "bedrock-agentcore-services",
|
|
3
3
|
"name": "Bedrock AgentCore Services",
|
|
4
4
|
"description": "Hexagonal ports + adapters for Amazon Bedrock AgentCore stateful services — Memory (multi-turn + long-term recall), Gateway (APIs/Lambdas/MCP as MCP tools), and Identity (workload token + IdP claim bridge to UserContext). The application layer depends only on the ports; install @aws-sdk/client-bedrock-agentcore.",
|
|
5
|
+
"provides": "agent.out-adapter",
|
|
6
|
+
"scope": "context",
|
|
5
7
|
"version": "1.0.0",
|
|
6
8
|
"requires": ["env-setup"],
|
|
7
9
|
"conflicts": [],
|
|
@@ -46,39 +48,66 @@
|
|
|
46
48
|
"outputs": [
|
|
47
49
|
{
|
|
48
50
|
"path": "src/domain/ports/out/agent-memory.port.ts",
|
|
49
|
-
"when": {
|
|
51
|
+
"when": {
|
|
52
|
+
"answer": "services",
|
|
53
|
+
"includes": "memory"
|
|
54
|
+
}
|
|
50
55
|
},
|
|
51
56
|
{
|
|
52
57
|
"path": "src/infrastructure/agentcore/memory/agentcore-memory.adapter.ts",
|
|
53
|
-
"when": {
|
|
58
|
+
"when": {
|
|
59
|
+
"answer": "services",
|
|
60
|
+
"includes": "memory"
|
|
61
|
+
}
|
|
54
62
|
},
|
|
55
63
|
{
|
|
56
64
|
"path": "src/infrastructure/agentcore/memory/memory-config.ts",
|
|
57
|
-
"when": {
|
|
65
|
+
"when": {
|
|
66
|
+
"answer": "services",
|
|
67
|
+
"includes": "memory"
|
|
68
|
+
}
|
|
58
69
|
},
|
|
59
70
|
{
|
|
60
71
|
"path": "src/domain/ports/out/tool-gateway.port.ts",
|
|
61
|
-
"when": {
|
|
72
|
+
"when": {
|
|
73
|
+
"answer": "services",
|
|
74
|
+
"includes": "gateway"
|
|
75
|
+
}
|
|
62
76
|
},
|
|
63
77
|
{
|
|
64
78
|
"path": "src/infrastructure/agentcore/gateway/agentcore-gateway.adapter.ts",
|
|
65
|
-
"when": {
|
|
79
|
+
"when": {
|
|
80
|
+
"answer": "services",
|
|
81
|
+
"includes": "gateway"
|
|
82
|
+
}
|
|
66
83
|
},
|
|
67
84
|
{
|
|
68
85
|
"path": "src/infrastructure/agentcore/gateway/mcp-tool-mapper.ts",
|
|
69
|
-
"when": {
|
|
86
|
+
"when": {
|
|
87
|
+
"answer": "services",
|
|
88
|
+
"includes": "gateway"
|
|
89
|
+
}
|
|
70
90
|
},
|
|
71
91
|
{
|
|
72
92
|
"path": "src/domain/ports/out/agent-identity.port.ts",
|
|
73
|
-
"when": {
|
|
93
|
+
"when": {
|
|
94
|
+
"answer": "services",
|
|
95
|
+
"includes": "identity"
|
|
96
|
+
}
|
|
74
97
|
},
|
|
75
98
|
{
|
|
76
99
|
"path": "src/infrastructure/agentcore/identity/agentcore-identity.adapter.ts",
|
|
77
|
-
"when": {
|
|
100
|
+
"when": {
|
|
101
|
+
"answer": "services",
|
|
102
|
+
"includes": "identity"
|
|
103
|
+
}
|
|
78
104
|
},
|
|
79
105
|
{
|
|
80
106
|
"path": "src/infrastructure/agentcore/identity/idp-bridge.ts",
|
|
81
|
-
"when": {
|
|
107
|
+
"when": {
|
|
108
|
+
"answer": "services",
|
|
109
|
+
"includes": "identity"
|
|
110
|
+
}
|
|
82
111
|
},
|
|
83
112
|
"agentcore/agentcore-services.json",
|
|
84
113
|
".env.agentcore-services.example"
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
"name": "Better Auth",
|
|
4
4
|
"description": "Standalone Better Auth server: email/password + Google/GitHub social providers, magic-link plugin, built-in rate limiting, typed auth client, and core DB schema + migration",
|
|
5
5
|
"version": "1.0.0",
|
|
6
|
+
"provides": "platform.auth",
|
|
7
|
+
"scope": "project",
|
|
6
8
|
"requires": ["env-setup"],
|
|
7
9
|
"conflicts": [
|
|
8
10
|
"auth-mock",
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
"name": "BullMQ",
|
|
4
4
|
"description": "Typed BullMQ job queues with workers, scheduler, Redis fallback to in-process sync execution, optional Bull Board dashboard, and per-queue routing. Designed for background processing (image generation, email, webhooks, exports) where tasks are too slow for request/response cycles.",
|
|
5
5
|
"version": "1.0.0",
|
|
6
|
+
"provides": "messaging.out-adapter",
|
|
7
|
+
"scope": "context",
|
|
6
8
|
"requires": ["env-setup"],
|
|
7
9
|
"conflicts": [],
|
|
8
10
|
"questions": [
|
|
@@ -51,6 +51,13 @@ the secrets each needs.
|
|
|
51
51
|
- The "Validate env vars" step runs `check:env` from [`env-setup`](../env-setup); delete it if
|
|
52
52
|
env-setup isn't installed.
|
|
53
53
|
- Only the workflow for the chosen `deploy_target` is emitted.
|
|
54
|
+
- **Dependabot is tuned to avoid a first-publish PR flood.** Action bumps are
|
|
55
|
+
grouped into one PR; npm minor+patch bumps are batched into one PR per
|
|
56
|
+
dependency type (`production-dependencies`, `dev-dependencies`), while **major**
|
|
57
|
+
bumps still arrive individually for careful review. To go quieter, make the npm
|
|
58
|
+
ecosystem security-only: change the npm entry's existing
|
|
59
|
+
`open-pull-requests-limit: 5` to `0` (version updates off; security updates
|
|
60
|
+
still open) — trades freshness for near-zero noise on a freshly scaffolded repo.
|
|
54
61
|
|
|
55
62
|
## Checklist (post-install)
|
|
56
63
|
|