mirror of
https://github.com/hansjone/dsh-ops-cron.git
synced 2026-10-14 04:23:17 +08:00
Make uds-auth optional: standalone local mode for cron.
Without udsAuth, trusted HTTP uses a synthetic __local__ viewer that sees all jobs; with uds-auth, keep multi-user empNo isolation and admin folders. Document that IM channels are not default UDS accounts. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
1c504eb1fd
commit
933bad9201
8 changed files with 132 additions and 27 deletions
4
lib/index.d.ts
vendored
4
lib/index.d.ts
vendored
|
|
@ -17,6 +17,10 @@ export function createHostService(options?: object): object
|
|||
export function makeLiveSessionPort(ctx: object): object
|
||||
export function resolveSessionPlacement(ctx: object, job?: object, deps?: object): { cwd: string, workspace: object | null }
|
||||
export const UNASSIGNED_OWNER: '__unassigned__'
|
||||
export const LOCAL_EMP_NO: '__local__'
|
||||
export function isMultiUserIdentity(identity: object | null | undefined): boolean
|
||||
export function localIdentity(overrides?: object): object
|
||||
export function claimUnassignedForViewer(state: object, identity: object, deps?: object): { state: object, changed: boolean }
|
||||
export function jobVisibleToIdentity(job: object, identity: object): boolean
|
||||
export function canViewAllJobs(identity: object): boolean
|
||||
export function assertCanAccessJob(job: object, identity: object): object
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue