canopycms 0.0.16 → 0.0.17
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/ai/generate.js +3 -3
- package/dist/ai/handler.js +5 -5
- package/dist/ai/index.js +3 -3
- package/dist/ai/resolve-branch.js +2 -2
- package/dist/api/__test__/mock-client.js +1 -1
- package/dist/api/assets.js +1 -1
- package/dist/api/branch-merge.js +3 -3
- package/dist/api/branch-review.js +4 -4
- package/dist/api/branch-status.js +8 -8
- package/dist/api/branch-withdraw.js +5 -5
- package/dist/api/branch.js +9 -9
- package/dist/api/comments.js +4 -4
- package/dist/api/content.js +5 -5
- package/dist/api/entries.js +8 -8
- package/dist/api/github-sync.js +3 -3
- package/dist/api/groups.js +4 -4
- package/dist/api/guards.js +1 -1
- package/dist/api/index.js +3 -3
- package/dist/api/permissions.js +4 -4
- package/dist/api/reference-options.js +5 -5
- package/dist/api/resolve-references.js +4 -4
- package/dist/api/route-builder.js +1 -1
- package/dist/api/schema.js +5 -5
- package/dist/api/settings-helpers.js +1 -1
- package/dist/api/user.js +1 -1
- package/dist/api/validators.js +3 -3
- package/dist/asset-store.js +1 -1
- package/dist/auth/cache.js +2 -2
- package/dist/auth/caching-auth-plugin.js +1 -1
- package/dist/auth/file-based-auth-cache.js +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/authorization/branch.js +1 -1
- package/dist/authorization/content.js +3 -3
- package/dist/authorization/groups/index.js +2 -2
- package/dist/authorization/groups/loader.js +4 -4
- package/dist/authorization/index.js +8 -8
- package/dist/authorization/path.js +1 -1
- package/dist/authorization/permissions/index.js +2 -2
- package/dist/authorization/permissions/loader.js +3 -3
- package/dist/authorization/permissions/schema.js +1 -1
- package/dist/authorization/test-utils.js +1 -1
- package/dist/authorization/validation.js +1 -1
- package/dist/branch-metadata.js +3 -3
- package/dist/branch-registry.js +2 -2
- package/dist/branch-schema-cache.js +2 -2
- package/dist/branch-workspace.js +6 -6
- package/dist/build/generate-ai-content.js +4 -4
- package/dist/build/index.js +1 -1
- package/dist/cli/cli.js +5 -5
- package/dist/cli/generate-ai-content.js +1 -9
- package/dist/cli/init.js +2 -10
- package/dist/cli/sync.js +1 -1
- package/dist/client.js +9 -9
- package/dist/config/flatten.js +2 -2
- package/dist/config/helpers.js +3 -3
- package/dist/config/index.js +9 -9
- package/dist/config/schemas/collection.js +1 -1
- package/dist/config/schemas/config.js +2 -2
- package/dist/config/schemas/field.js +1 -1
- package/dist/config/validation.js +2 -2
- package/dist/config-test.js +2 -2
- package/dist/config.js +2 -2
- package/dist/content-id-index.js +2 -2
- package/dist/content-listing.js +7 -7
- package/dist/content-reader.js +5 -5
- package/dist/content-store.js +5 -5
- package/dist/content-tree.js +1 -1
- package/dist/context.js +6 -6
- package/dist/editor/BranchManager.js +4 -4
- package/dist/editor/CanopyEditor.js +3 -3
- package/dist/editor/CanopyEditorPage.js +1 -1
- package/dist/editor/CommentsPanel.js +1 -1
- package/dist/editor/Editor.js +18 -18
- package/dist/editor/EntryNavigator.js +1 -1
- package/dist/editor/FormRenderer.js +12 -12
- package/dist/editor/GroupManager.js +1 -1
- package/dist/editor/PermissionManager.js +1 -1
- package/dist/editor/client-reference-resolver.js +1 -1
- package/dist/editor/comments/BranchComments.js +1 -1
- package/dist/editor/comments/EntryComments.js +1 -1
- package/dist/editor/comments/FieldWrapper.js +1 -1
- package/dist/editor/comments/InlineCommentThread.js +1 -1
- package/dist/editor/comments/ThreadCarousel.js +1 -1
- package/dist/editor/components/EditorHeader.js +1 -1
- package/dist/editor/components/UserBadge.js +1 -1
- package/dist/editor/components/index.js +3 -3
- package/dist/editor/context/ApiClientContext.js +1 -1
- package/dist/editor/context/index.js +2 -2
- package/dist/editor/editor-utils.js +1 -1
- package/dist/editor/fields/BlockField.js +1 -1
- package/dist/editor/fields/ObjectField.js +1 -1
- package/dist/editor/fields/ReferenceField.js +1 -1
- package/dist/editor/group-manager/GroupCard.js +1 -1
- package/dist/editor/group-manager/InternalGroupsTab.js +1 -1
- package/dist/editor/group-manager/MemberList.js +1 -1
- package/dist/editor/group-manager/index.js +9 -9
- package/dist/editor/hooks/__test__/test-utils.js +3 -3
- package/dist/editor/hooks/index.js +11 -11
- package/dist/editor/hooks/useBranchActions.js +1 -1
- package/dist/editor/hooks/useBranchManager.js +1 -1
- package/dist/editor/hooks/useCommentSystem.js +2 -2
- package/dist/editor/hooks/useDraftManager.js +1 -1
- package/dist/editor/hooks/useEntryManager.js +3 -3
- package/dist/editor/hooks/useGroupManager.js +1 -1
- package/dist/editor/hooks/usePermissionManager.js +1 -1
- package/dist/editor/hooks/useReferenceResolution.js +1 -1
- package/dist/editor/hooks/useSchemaManager.js +1 -1
- package/dist/editor/hooks/useUserContext.js +1 -1
- package/dist/editor/permission-manager/PermissionEditor.js +4 -4
- package/dist/editor/permission-manager/PermissionLevelBadge.js +1 -1
- package/dist/editor/permission-manager/PermissionTree.js +3 -3
- package/dist/editor/permission-manager/UserSelector.js +1 -1
- package/dist/editor/permission-manager/hooks/usePermissionTree.js +2 -2
- package/dist/editor/permission-manager/index.js +6 -6
- package/dist/editor/preview-bridge.js +1 -1
- package/dist/editor/schema-editor/CollectionEditor.js +2 -2
- package/dist/editor/schema-editor/index.js +2 -2
- package/dist/entry-schema-registry.js +3 -3
- package/dist/git-manager.js +4 -4
- package/dist/github-service.js +1 -1
- package/dist/http/handler.js +7 -7
- package/dist/http/index.js +3 -3
- package/dist/http/router.js +12 -12
- package/dist/id.js +1 -1
- package/dist/index.js +6 -6
- package/dist/operating-mode/client-unsafe-strategy.js +2 -2
- package/dist/operating-mode/client.js +1 -1
- package/dist/operating-mode/index.js +2 -2
- package/dist/paths/branch.js +1 -1
- package/dist/paths/index.js +6 -6
- package/dist/paths/test-utils.js +1 -1
- package/dist/paths/validation.js +1 -1
- package/dist/reference-resolver.js +1 -1
- package/dist/schema/index.js +2 -2
- package/dist/schema/meta-loader.js +1 -1
- package/dist/schema/resolver.js +1 -1
- package/dist/schema/schema-store.js +4 -4
- package/dist/server.js +13 -13
- package/dist/services.js +12 -12
- package/dist/settings-branch-utils.js +1 -1
- package/dist/settings-workspace.js +3 -3
- package/dist/task-queue/index.js +1 -1
- package/dist/task-queue/task-queue.js +1 -1
- package/dist/user.js +1 -1
- package/dist/utils/fs.js +1 -1
- package/dist/validation/reference-validator.js +2 -2
- package/dist/worker/cms-worker.js +5 -5
- package/dist/worker/task-queue-config.js +1 -1
- package/dist/worker/task-queue.js +2 -2
- package/package.json +1 -1
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* if (strategy.supportsBranching()) { ... } // can also use client-safe methods
|
|
23
23
|
*/
|
|
24
24
|
// Client-safe factory and strategy (safe for client bundles)
|
|
25
|
-
export { clientOperatingStrategy, clearClientStrategyCache } from './client-safe-strategy';
|
|
25
|
+
export { clientOperatingStrategy, clearClientStrategyCache } from './client-safe-strategy.js';
|
|
26
26
|
// Client-unsafe factory and strategy (server-side only)
|
|
27
|
-
export { operatingStrategy, clearStrategyCache } from './client-unsafe-strategy';
|
|
27
|
+
export { operatingStrategy, clearStrategyCache } from './client-unsafe-strategy.js';
|
|
28
28
|
//# sourceMappingURL=index.js.map
|
package/dist/paths/branch.js
CHANGED
package/dist/paths/index.js
CHANGED
|
@@ -10,21 +10,21 @@
|
|
|
10
10
|
*
|
|
11
11
|
* Usage:
|
|
12
12
|
* ```ts
|
|
13
|
-
* import { normalizeFilesystemPath, createLogicalPath, parseSlug } from '../paths'
|
|
13
|
+
* import { normalizeFilesystemPath, createLogicalPath, parseSlug } from '../paths/index.js'
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
16
|
// Normalization utilities (client-safe)
|
|
17
|
-
export { normalizeFilesystemPath, normalizeCollectionPath, hasTraversalSequence, createLogicalPath, createPhysicalPath, joinPath, } from './normalize';
|
|
17
|
+
export { normalizeFilesystemPath, normalizeCollectionPath, hasTraversalSequence, createLogicalPath, createPhysicalPath, joinPath, } from './normalize.js';
|
|
18
18
|
// Normalization utilities (server-only, requires Node.js path module)
|
|
19
|
-
export { validateAndNormalizePath } from './normalize-server';
|
|
19
|
+
export { validateAndNormalizePath } from './normalize-server.js';
|
|
20
20
|
// Validation utilities
|
|
21
21
|
export { validateContentPath, isValidCollectionPath, sanitizeForPath,
|
|
22
22
|
// Path type detection and parsing
|
|
23
23
|
hasEmbeddedContentId, looksLikePhysicalPath, looksLikeLogicalPath, parseLogicalPath, parsePhysicalPath, isValidContentId,
|
|
24
24
|
// Branded type validation and parsing
|
|
25
|
-
parseContentId, parseBranchName, parseSlug, } from './validation';
|
|
25
|
+
parseContentId, parseBranchName, parseSlug, } from './validation.js';
|
|
26
26
|
// Path resolution utilities
|
|
27
|
-
export { resolveLogicalPath } from './resolve';
|
|
27
|
+
export { resolveLogicalPath } from './resolve.js';
|
|
28
28
|
// Branch path utilities
|
|
29
|
-
export { resolveBranchPath, ensureBranchRoot, getDefaultBranchBase, resolveBranchPaths, sanitizeBranchName, BranchPathError, } from './branch';
|
|
29
|
+
export { resolveBranchPath, ensureBranchRoot, getDefaultBranchBase, resolveBranchPaths, sanitizeBranchName, BranchPathError, } from './branch.js';
|
|
30
30
|
//# sourceMappingURL=index.js.map
|
package/dist/paths/test-utils.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* // In test files only:
|
|
9
|
-
* import { unsafeAsLogicalPath, unsafeAsSlug } from '../paths/test-utils'
|
|
9
|
+
* import { unsafeAsLogicalPath, unsafeAsSlug } from '../paths/test-utils.js'
|
|
10
10
|
*/
|
|
11
11
|
/** Test-only: cast a string to LogicalPath without validation. */
|
|
12
12
|
export const unsafeAsLogicalPath = (path) => path;
|
package/dist/paths/validation.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Security-focused validation for content paths and slugs.
|
|
5
5
|
*/
|
|
6
|
-
import { normalizeFilesystemPath, hasTraversalSequence } from './normalize';
|
|
6
|
+
import { normalizeFilesystemPath, hasTraversalSequence } from './normalize.js';
|
|
7
7
|
/**
|
|
8
8
|
* Base58 alphabet used for content IDs (excludes ambiguous: 0, O, I, l)
|
|
9
9
|
*/
|
package/dist/schema/index.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
15
|
// Meta loader (low-level API)
|
|
16
|
-
export { loadCollectionMetaFiles, resolveCollectionReferences, watchCollectionMetaFiles, } from './meta-loader';
|
|
16
|
+
export { loadCollectionMetaFiles, resolveCollectionReferences, watchCollectionMetaFiles, } from './meta-loader.js';
|
|
17
17
|
// Resolver (high-level API)
|
|
18
|
-
export { resolveSchema, hasSchemaFiles, isValidSchema } from './resolver';
|
|
18
|
+
export { resolveSchema, hasSchemaFiles, isValidSchema } from './resolver.js';
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -2,7 +2,7 @@ import { promises as fs } from 'fs';
|
|
|
2
2
|
import { join } from 'pathe';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import chokidar from 'chokidar';
|
|
5
|
-
import { extractSlugFromFilename, extractIdFromFilename } from '../content-id-index';
|
|
5
|
+
import { extractSlugFromFilename, extractIdFromFilename } from '../content-id-index.js';
|
|
6
6
|
/**
|
|
7
7
|
* Zod schema for entry type metadata in .collection.json files.
|
|
8
8
|
* Each entry type has a name, format, and schema reference to the entry schema registry.
|
package/dist/schema/resolver.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Field schemas are defined in the entry schema registry and referenced by name
|
|
8
8
|
* in .collection.json files for reusability and type safety.
|
|
9
9
|
*/
|
|
10
|
-
import { loadCollectionMetaFiles, resolveCollectionReferences } from './meta-loader';
|
|
10
|
+
import { loadCollectionMetaFiles, resolveCollectionReferences } from './meta-loader.js';
|
|
11
11
|
/**
|
|
12
12
|
* Resolve schema from .collection.json files.
|
|
13
13
|
*
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
import { promises as fs } from 'node:fs';
|
|
12
12
|
import path from 'node:path';
|
|
13
13
|
import { z } from 'zod';
|
|
14
|
-
import { atomicWriteFile } from '../utils/atomic-write';
|
|
15
|
-
import { resolveCollectionPath } from '../content-id-index';
|
|
16
|
-
import { generateId, isValidId } from '../id';
|
|
17
|
-
import { createLogicalPath, validateAndNormalizePath } from '../paths';
|
|
14
|
+
import { atomicWriteFile } from '../utils/atomic-write.js';
|
|
15
|
+
import { resolveCollectionPath } from '../content-id-index.js';
|
|
16
|
+
import { generateId, isValidId } from '../id.js';
|
|
17
|
+
import { createLogicalPath, validateAndNormalizePath } from '../paths/index.js';
|
|
18
18
|
// ============================================================================
|
|
19
19
|
// Zod Schemas for Validation
|
|
20
20
|
// ============================================================================
|
package/dist/server.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export * from './content-reader';
|
|
2
|
-
export * from './services';
|
|
3
|
-
export * from './build-mode';
|
|
4
|
-
export * from './context';
|
|
5
|
-
export { operatingStrategy } from './operating-mode';
|
|
6
|
-
export * from './authorization/groups';
|
|
7
|
-
export * from './branch-workspace';
|
|
8
|
-
export * from './content-store';
|
|
9
|
-
export { loadCollectionMetaFiles, resolveCollectionReferences, watchCollectionMetaFiles, resolveSchema, } from './schema';
|
|
10
|
-
export { createEntrySchemaRegistry, validateEntrySchemaRegistry } from './entry-schema-registry';
|
|
11
|
-
export { generateId, isValidId } from './id';
|
|
12
|
-
export { buildContentTree } from './content-tree';
|
|
13
|
-
export { listEntries } from './content-listing';
|
|
1
|
+
export * from './content-reader.js';
|
|
2
|
+
export * from './services.js';
|
|
3
|
+
export * from './build-mode.js';
|
|
4
|
+
export * from './context.js';
|
|
5
|
+
export { operatingStrategy } from './operating-mode/index.js';
|
|
6
|
+
export * from './authorization/groups/index.js';
|
|
7
|
+
export * from './branch-workspace.js';
|
|
8
|
+
export * from './content-store.js';
|
|
9
|
+
export { loadCollectionMetaFiles, resolveCollectionReferences, watchCollectionMetaFiles, resolveSchema, } from './schema/index.js';
|
|
10
|
+
export { createEntrySchemaRegistry, validateEntrySchemaRegistry } from './entry-schema-registry.js';
|
|
11
|
+
export { generateId, isValidId } from './id.js';
|
|
12
|
+
export { buildContentTree } from './content-tree.js';
|
|
13
|
+
export { listEntries } from './content-listing.js';
|
|
14
14
|
//# sourceMappingURL=server.js.map
|
package/dist/services.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
|
-
import { getConfigDefaults } from './config';
|
|
3
|
-
import { createCheckPathAccess, createCheckBranchAccess, createCheckContentAccess, loadPathPermissions, } from './authorization';
|
|
4
|
-
import { GitManager } from './git-manager';
|
|
5
|
-
import { BranchRegistry } from './branch-registry';
|
|
6
|
-
import { SettingsWorkspaceManager } from './settings-workspace';
|
|
7
|
-
import { getDefaultBranchBase } from './paths';
|
|
8
|
-
import { createGitHubService } from './github-service';
|
|
9
|
-
import { operatingStrategy } from './operating-mode';
|
|
10
|
-
import { BranchSchemaCache } from './branch-schema-cache';
|
|
11
|
-
import { enqueueTask } from './worker/task-queue';
|
|
12
|
-
import { getTaskQueueDir } from './worker/task-queue-config';
|
|
13
|
-
import { detectHeadBranch } from './utils/git';
|
|
2
|
+
import { getConfigDefaults } from './config/index.js';
|
|
3
|
+
import { createCheckPathAccess, createCheckBranchAccess, createCheckContentAccess, loadPathPermissions, } from './authorization/index.js';
|
|
4
|
+
import { GitManager } from './git-manager.js';
|
|
5
|
+
import { BranchRegistry } from './branch-registry.js';
|
|
6
|
+
import { SettingsWorkspaceManager } from './settings-workspace.js';
|
|
7
|
+
import { getDefaultBranchBase } from './paths/index.js';
|
|
8
|
+
import { createGitHubService } from './github-service.js';
|
|
9
|
+
import { operatingStrategy } from './operating-mode/index.js';
|
|
10
|
+
import { BranchSchemaCache } from './branch-schema-cache.js';
|
|
11
|
+
import { enqueueTask } from './worker/task-queue.js';
|
|
12
|
+
import { getTaskQueueDir } from './worker/task-queue-config.js';
|
|
13
|
+
import { detectHeadBranch } from './utils/git.js';
|
|
14
14
|
/**
|
|
15
15
|
* In dev mode, auto-detect the current HEAD branch if defaultBaseBranch is not set.
|
|
16
16
|
* Eliminates the need to manually update defaultBaseBranch when working on a feature branch.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import fs from 'node:fs/promises';
|
|
2
2
|
import path from 'node:path';
|
|
3
|
-
import { GitManager } from './git-manager';
|
|
4
|
-
import { createDebugLogger } from './utils/debug';
|
|
5
|
-
import { isFileExistsError } from './utils/error';
|
|
3
|
+
import { GitManager } from './git-manager.js';
|
|
4
|
+
import { createDebugLogger } from './utils/debug.js';
|
|
5
|
+
import { isFileExistsError } from './utils/error.js';
|
|
6
6
|
const log = createDebugLogger({ prefix: 'SettingsWorkspace' });
|
|
7
7
|
// In-memory lock to prevent concurrent workspace initialization within the same process.
|
|
8
8
|
// Settings only need one lock (not per-branch like content branches).
|
package/dist/task-queue/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { enqueueTask, dequeueTask, completeTask, failTask, retryTask, recoverOrphanedTasks, cleanupOldTasks, getTask, listTasks, getQueueStats, } from './task-queue';
|
|
1
|
+
export { enqueueTask, dequeueTask, completeTask, failTask, retryTask, recoverOrphanedTasks, cleanupOldTasks, getTask, listTasks, getQueueStats, } from './task-queue.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -21,7 +21,7 @@ import crypto from 'node:crypto';
|
|
|
21
21
|
const DEFAULT_MAX_RETRIES = 3;
|
|
22
22
|
// Silent no-op logger
|
|
23
23
|
const nullLogger = { debug: () => { } };
|
|
24
|
-
import { atomicWriteFile } from '../utils/atomic-write';
|
|
24
|
+
import { atomicWriteFile } from '../utils/atomic-write.js';
|
|
25
25
|
// Local helper — only stdlib dependency, keeps task-queue easy to extract.
|
|
26
26
|
function isNotFoundError(err) {
|
|
27
27
|
return err instanceof Error && 'code' in err && err.code === 'ENOENT';
|
package/dist/user.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Import from client-safe subpaths to avoid pulling in server-only loader code
|
|
2
|
-
import { RESERVED_GROUPS } from './authorization/helpers';
|
|
2
|
+
import { RESERVED_GROUPS } from './authorization/helpers.js';
|
|
3
3
|
/**
|
|
4
4
|
* Branded ANONYMOUS_USER constant - use this for intentional anonymous access.
|
|
5
5
|
* Callers must explicitly pass this to indicate anonymous access is intended.
|
package/dist/utils/fs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isValidId } from '../id';
|
|
2
|
-
import { findFieldsByType } from './field-traversal';
|
|
1
|
+
import { isValidId } from '../id.js';
|
|
2
|
+
import { findFieldsByType } from './field-traversal.js';
|
|
3
3
|
/**
|
|
4
4
|
* ReferenceValidator validates that referenced content IDs exist and match collection constraints.
|
|
5
5
|
*
|
|
@@ -2,11 +2,11 @@ import fs from 'node:fs/promises';
|
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import { simpleGit } from 'simple-git';
|
|
4
4
|
import { Octokit } from '@octokit/rest';
|
|
5
|
-
import { dequeueTask, completeTask, failTask, retryTask, recoverOrphanedTasks, cleanupOldTasks, cmsTaskQueueLogger, } from './task-queue';
|
|
6
|
-
import { getBranchMetadataFileManager, BranchMetadataFileManager } from '../branch-metadata';
|
|
7
|
-
import { extractIdFromFilename } from '../content-id-index';
|
|
8
|
-
import { ROOT_COLLECTION_ID } from '../paths/types';
|
|
9
|
-
import { isFileExistsError } from '../utils/error';
|
|
5
|
+
import { dequeueTask, completeTask, failTask, retryTask, recoverOrphanedTasks, cleanupOldTasks, cmsTaskQueueLogger, } from './task-queue.js';
|
|
6
|
+
import { getBranchMetadataFileManager, BranchMetadataFileManager } from '../branch-metadata.js';
|
|
7
|
+
import { extractIdFromFilename } from '../content-id-index.js';
|
|
8
|
+
import { ROOT_COLLECTION_ID } from '../paths/types.js';
|
|
9
|
+
import { isFileExistsError } from '../utils/error.js';
|
|
10
10
|
const DEFAULT_TASK_TIMEOUT = 60_000;
|
|
11
11
|
const DEFAULT_MAX_RETRIES = 3;
|
|
12
12
|
// Payload validation helpers — fail fast with clear errors instead of silent `as` casts
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* CanopyCMS task queue — re-exports from the generic task-queue module
|
|
3
3
|
* with CMS-specific action types and a WorkerTask alias.
|
|
4
4
|
*/
|
|
5
|
-
import { createDebugLogger } from '../utils/debug';
|
|
5
|
+
import { createDebugLogger } from '../utils/debug.js';
|
|
6
6
|
// ============================================================================
|
|
7
7
|
// Shared logger instance for CMS task queue operations
|
|
8
8
|
// ============================================================================
|
|
@@ -16,5 +16,5 @@ export const cmsTaskQueueLogger = {
|
|
|
16
16
|
// Re-exports from generic task-queue module
|
|
17
17
|
// ============================================================================
|
|
18
18
|
export { enqueueTask, dequeueTask, completeTask, failTask, retryTask, recoverOrphanedTasks, cleanupOldTasks, getTask, getTask as getTaskResult, // backward-compatible alias
|
|
19
|
-
listTasks, getQueueStats, } from '../task-queue';
|
|
19
|
+
listTasks, getQueueStats, } from '../task-queue/index.js';
|
|
20
20
|
//# sourceMappingURL=task-queue.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"//": "@codemirror/language, @lezer/highlight: workaround — @mdxeditor/editor uses cm6-theme-basic-light which peer-requires these but mdxeditor doesn't declare them as dependencies",
|
|
3
3
|
"name": "canopycms",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.17",
|
|
5
5
|
"description": "CanopyCMS core package: schema-driven content, branch-aware editing, and editor UI for Next.js.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|